:root {

 --bg-color: #050505;

 --neon-pink: #ff00ff;

 --neon-blue: #00ffff;

 --neon-purple: #b026ff;

 --glass-bg: rgba(20, 20, 25, 0.7);

 --glass-border: rgba(0, 255, 255, 0.2);

 --text-main: #f0f0f0;

 --text-muted: #a0a0a0;

 --font-family: 'Outfit', sans-serif;

}



* { margin: 0; padding: 0; box-sizing: border-box; }



body {

 font-family: var(--font-family);

 background-color: var(--bg-color);

 color: var(--text-main);

 min-height: 100svh;

 overflow-x: hidden;

 background-image: url('assets/bg.webp');

 background-size: cover;

 background-position: center;

 background-attachment: fixed;

}



input, textarea, select {

 -webkit-appearance: none;

 border-radius: 5px; /* iOS default is heavily rounded, override it */

}



/* Custom Scrollbar */

::-webkit-scrollbar {

 width: 8px;

 height: 8px;

}

::-webkit-scrollbar-track {

 background: rgba(0, 0, 0, 0.5);

 border-radius: 4px;

}

::-webkit-scrollbar-thumb {

 background: var(--neon-pink);

 border-radius: 4px;

}

::-webkit-scrollbar-thumb:hover {

 background: var(--neon-blue);

}



.background-overlay {

 position: fixed;

 top: 0; left: 0; width: 100%; height: 100%;

 background: linear-gradient(135deg, rgba(5, 5, 5, 0.9) 0%, rgba(20, 5, 30, 0.8) 100%);

 z-index: -1;

}



/* NAVBAR */

.navbar {

 position: sticky;

 top: 15px;

 z-index: 1000;

 display: flex;

 justify-content: space-between;

 align-items: center;

 width: 95%;

 max-width: 1400px;

 margin: 0 auto 20px auto;

 padding: 0.6rem 2rem;

 border-radius: 20px;

 background: rgba(10, 10, 15, 0.7);

 backdrop-filter: blur(15px);

 -webkit-backdrop-filter: blur(15px);

 border: 1px solid rgba(255, 255, 255, 0.08);

 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);

 transition: all 0.3s ease;

}



/* AVATAR DROPDOWN MENU */

.nav-avatar-wrapper {

 position: relative;

}



.nav-avatar-wrapper #nav-avatar {

 transition: box-shadow 0.3s ease, transform 0.2s ease;

}



.nav-avatar-wrapper #nav-avatar:hover {

 box-shadow: 0 0 0 3px var(--neon-blue), 0 0 15px rgba(0, 243, 255, 0.4);

 transform: scale(1.07);

}



.avatar-dropdown {

 position: absolute;

 top: calc(100% + 14px);

 right: 0;

 width: 230px;

 background: rgba(8, 10, 20, 0.92);

 border: 1px solid rgba(0, 243, 255, 0.25);

 border-radius: 16px;

 box-shadow:

 0 20px 50px rgba(0, 0, 0, 0.85),

 0 0 0 1px rgba(255,255,255,0.04) inset,

 0 0 30px rgba(0, 243, 255, 0.06);

 backdrop-filter: blur(24px) saturate(180%);

 -webkit-backdrop-filter: blur(24px) saturate(180%);

 display: flex;

 flex-direction: column;

 overflow: hidden;

 z-index: 2000;

 opacity: 1;

 transform: translateY(0) scale(1);

 transform-origin: top right;

 transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),

 transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);

 pointer-events: auto;

}



/* Arrow pointer */

.avatar-dropdown::before {

 content: '';

 position: absolute;

 top: -7px;

 right: 14px;

 width: 13px;

 height: 13px;

 background: rgba(8, 10, 20, 0.95);

 border-left: 1px solid rgba(0, 243, 255, 0.25);

 border-top: 1px solid rgba(0, 243, 255, 0.25);

 transform: rotate(45deg);

 border-radius: 2px 0 0 0;

}



.avatar-dropdown.hidden {

 opacity: 0;

 transform: translateY(-8px) scale(0.97);

 pointer-events: none;

 display: flex;

}



/* User header inside dropdown */

.dropdown-user-header {

 padding: 1rem 1.1rem 0.8rem;

 border-bottom: 1px solid rgba(255,255,255,0.06);

 display: flex;

 align-items: center;

 gap: 0.75rem;

 background: rgba(0, 243, 255, 0.03);

}



.dropdown-user-header img {

 width: 36px;

 height: 36px;

 border-radius: 50%;

 border: 1.5px solid var(--neon-blue);

 object-fit: cover;

 box-shadow: 0 0 8px rgba(0,243,255,0.3);

 flex-shrink: 0;

}



.dropdown-user-info {

 display: flex;

 flex-direction: column;

 min-width: 0;

}



.dropdown-user-name {

 color: #fff;

 font-size: 0.85rem;

 font-weight: 700;

 letter-spacing: 0.5px;

 white-space: nowrap;

 overflow: hidden;

 text-overflow: ellipsis;

}



.dropdown-user-status {

 color: var(--neon-blue);

 font-size: 0.7rem;

 font-family: monospace;

 letter-spacing: 1px;

 margin-top: 2px;

}



/* Items group */

.dropdown-group {

 padding: 0.35rem 0;

}



.dropdown-item {

 padding: 0.7rem 1.1rem;

 color: rgba(255, 255, 255, 0.7);

 font-size: 0.82rem;

 font-weight: 600;

 cursor: pointer;

 transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;

 display: flex;

 align-items: center;

 gap: 11px;

 letter-spacing: 0.3px;

 position: relative;

}



.dropdown-item svg {

 flex-shrink: 0;

 opacity: 0.7;

 transition: opacity 0.15s ease;

}



.dropdown-item:hover {

 background: rgba(255, 255, 255, 0.06);

 color: #fff;

 padding-left: 1.35rem;

}



.dropdown-item:hover svg {

 opacity: 1;

}



/* Per-item accent on hover */

#dropdown-profile:hover { color: var(--neon-blue); background: rgba(0,243,255,0.07); }

#dropdown-profile:hover svg { stroke: var(--neon-blue); }



#dropdown-watchlist:hover { color: var(--neon-pink); background: rgba(255,0,255,0.07); }

#dropdown-watchlist:hover svg { stroke: var(--neon-pink); }



#dropdown-subscriptions:hover { color: #b026ff; background: rgba(176,38,255,0.07); }

#dropdown-subscriptions:hover svg { stroke: #b026ff; }



#dropdown-sysadmin { color: var(--neon-blue); }

#dropdown-sysadmin:hover { color: #fff; background: rgba(0,243,255,0.1); }

#dropdown-sysadmin:hover svg { stroke: #fff; }



.dropdown-divider {

 height: 1px;

 background: rgba(255, 255, 255, 0.07);

 margin: 0;

}



#dropdown-logout {

 color: rgba(255, 60, 100, 0.8) !important;

 padding: 0.7rem 1.1rem;

 margin: 0;

}

#dropdown-logout:hover {

 background: rgba(255, 50, 80, 0.1);

 color: #ff3366 !important;

 padding-left: 1.35rem;

}

#dropdown-logout:hover svg { stroke: #ff3366; }



/* Light mode system preference */

@media (prefers-color-scheme: light) {

 .avatar-dropdown {

 background: rgba(245, 247, 255, 0.96);

 border-color: rgba(0, 130, 200, 0.25);

 box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05) inset;

 }

 .avatar-dropdown::before {

 background: rgba(245, 247, 255, 0.96);

 border-color: rgba(0, 130, 200, 0.25);

 }

 .dropdown-user-header {

 background: rgba(0, 130, 200, 0.05);

 border-bottom-color: rgba(0,0,0,0.07);

 }

 .dropdown-user-name { color: #111; }

 .dropdown-item { color: rgba(20, 20, 40, 0.75); }

 .dropdown-item:hover { background: rgba(0,0,0,0.05); color: #111; }

 .dropdown-divider { background: rgba(0,0,0,0.08); }

}





.nav-brand {

 font-size: 1.5rem;

 font-weight: 800;

}



.nav-links {

 list-style: none;

 display: flex;

 gap: 0.3rem;

 flex: 2;

 justify-content: center;

 background: rgba(0, 0, 0, 0.3);

 padding: 0.4rem;

 border-radius: 12px;

 border: 1px solid rgba(255, 255, 255, 0.05);

}



.mobile-menu-btn {

 display: none;

 background: transparent;

 border: none;

 color: var(--neon-pink);

 cursor: pointer;

 padding: 0.5rem;

 z-index: 1000;

}

.mobile-menu-btn:focus {

 outline: none;

}



.nav-links li {
  display: flex;
}
.nav-link {
  height: 100%;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.6);

 text-decoration: none;

 font-weight: 600;

 text-transform: uppercase;

 letter-spacing: 1px;

 font-size: 0.8rem;

 padding: 0.6rem 1.2rem;

 border-radius: 8px;

 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

 position: relative;

 display: flex;

 align-items: center;

 gap: 8px;

}



.nav-link:hover {

 color: #fff;

 background: rgba(255, 255, 255, 0.05);

 text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);

}



.nav-link.active {

 color: var(--neon-blue);

 background: rgba(0, 243, 255, 0.1);

 box-shadow: inset 0 0 0 1px rgba(0, 243, 255, 0.2);

 text-shadow: 0 0 10px var(--neon-blue);

}



#nav-link-foryou {

 color: rgba(255, 0, 128, 0.6);

 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



#nav-link-foryou:hover {

 color: #fff;

 background: rgba(255, 0, 128, 0.15);

 box-shadow: inset 0 0 0 1px rgba(255, 0, 128, 0.2);

 text-shadow: 0 0 10px rgba(255, 0, 128, 0.8);

}



#nav-link-foryou.active {

 color: var(--neon-pink);

 background: rgba(255, 0, 128, 0.1);

 box-shadow: inset 0 0 0 1px rgba(255, 0, 128, 0.2);

 text-shadow: 0 0 10px var(--neon-pink);

}



/* CONTENT CONTAINER */

.content {

 max-width: 1200px;

 margin: 0 auto;

 padding: 2rem;

}



.page-section {

 display: flex;

 flex-direction: column;

 align-items: center;

 animation: fadeIn 0.4s ease-out forwards;

}



.page-section.hidden {

 display: none !important;

}



@keyframes fadeIn {

 from { opacity: 0; transform: translateY(10px); }

 to { opacity: 1; transform: translateY(0); }

}



header { text-align: center; margin-bottom: 3rem; margin-top: 2rem; }

header p { color: var(--neon-blue); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; text-shadow: 0 0 5px var(--neon-blue); }



/* Glitch Effect */


/* MOBILE GLITCH: Lightweight RGB Split */



/* DESKTOP GLITCH: Original intense clip: rect */

    

    



@keyframes glitch-anim-mobile {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}
@keyframes glitch-anim2-mobile {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  75% { transform: translate(2px, 2px); }
}



.navbar 












  20% { transform: translate(-2px, 2px); opacity: 0.9; }
  40% { transform: translate(-2px, -2px); opacity: 0.8; }
  60% { transform: translate(2px, 2px); opacity: 0.9; }
  80% { transform: translate(2px, -2px); opacity: 0.8; }
 20% { clip: rect(61px, 9999px, 20px, 0); } 40% { clip: rect(3px, 9999px, 84px, 0); } 60% { clip: rect(22px, 9999px, 12px, 0); } 80% { clip: rect(89px, 9999px, 78px, 0); } 100% { clip: rect(30px, 9999px, 92px, 0); } 


  25% { transform: translate(2px, -2px); opacity: 0.8; }
  50% { transform: translate(-2px, 2px); opacity: 0.9; }
  75% { transform: translate(2px, 2px); opacity: 0.8; }
 20% { clip: rect(2px, 9999px, 46px, 0); } 40% { clip: rect(89px, 9999px, 13px, 0); } 60% { clip: rect(45px, 9999px, 80px, 0); } 80% { clip: rect(21px, 9999px, 3px, 0); } 100% { clip: rect(98px, 9999px, 55px, 0); } 



/* White Flicker Glitch for OO */

.wool-text-container { display: inline-flex; align-items: center; }







  5% { clip: rect(65px, 9999px, 30px, 0); }
  10% { clip: rect(34px, 9999px, 12px, 0); }
  15% { clip: rect(78px, 9999px, 90px, 0); }
  20% { clip: rect(2px, 9999px, 45px, 0); }
  25% { clip: rect(89px, 9999px, 12px, 0); }
  30% { clip: rect(45px, 9999px, 76px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 34px, 0); }
  45% { clip: rect(23px, 9999px, 67px, 0); }
  50% { clip: rect(89px, 9999px, 12px, 0); }
  55% { clip: rect(12px, 9999px, 89px, 0); }
  60% { clip: rect(56px, 9999px, 23px, 0); }
  65% { clip: rect(90px, 9999px, 45px, 0); }
  70% { clip: rect(23px, 9999px, 78px, 0); }
  75% { clip: rect(67px, 9999px, 12px, 0); }
  80% { clip: rect(34px, 9999px, 89px, 0); }
  85% { clip: rect(89px, 9999px, 34px, 0); }
  90% { clip: rect(12px, 9999px, 67px, 0); }
  95% { clip: rect(78px, 9999px, 23px, 0); }
  100% { clip: rect(45px, 9999px, 90px, 0); }



  5% { clip: rect(12px, 9999px, 45px, 0); }
  10% { clip: rect(89px, 9999px, 23px, 0); }
  15% { clip: rect(34px, 9999px, 78px, 0); }
  20% { clip: rect(90px, 9999px, 12px, 0); }
  25% { clip: rect(23px, 9999px, 89px, 0); }
  30% { clip: rect(67px, 9999px, 34px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 45px, 0); }
  45% { clip: rect(34px, 9999px, 89px, 0); }
  50% { clip: rect(90px, 9999px, 23px, 0); }
  55% { clip: rect(23px, 9999px, 78px, 0); }
  60% { clip: rect(67px, 9999px, 12px, 0); }
  65% { clip: rect(12px, 9999px, 67px, 0); }
  70% { clip: rect(89px, 9999px, 34px, 0); }
  75% { clip: rect(45px, 9999px, 90px, 0); }
  80% { clip: rect(90px, 9999px, 45px, 0); }
  85% { clip: rect(23px, 9999px, 89px, 0); }
  90% { clip: rect(67px, 9999px, 12px, 0); }
  95% { clip: rect(12px, 9999px, 78px, 0); }
  100% { clip: rect(78px, 9999px, 34px, 0); }



 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; }
 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; }
 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; }
 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; }
 96% { transform: skewX(10deg); opacity: 0.8; }

 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; }
 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; }
 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; }
 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; }
 96% { transform: skewX(10deg); opacity: 0.8; }

 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; text-shadow: -4px 0 white, 4px 0 rgba(255,255,255,0.8), 0 0 20px white; filter: brightness(1.5); }
 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; text-shadow: 0 0 5px white; filter: none; }
 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; text-shadow: 4px 0 white, -4px 0 rgba(255,255,255,0.8), 0 0 15px white; filter: brightness(1.5); }
 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; text-shadow: -5px 0 white, 0 0 20px white; filter: brightness(1.5); }
 96% { transform: skewX(10deg); opacity: 0.8; text-shadow: 5px 0 white, 0 0 20px white; filter: brightness(2); }


 89% { transform: skewX(15deg); opacity: 0.8; }
 90% { transform: skewX(-10deg); opacity: 0.3; }
 91% { transform: skewX(5deg); opacity: 0.9; }
 95% { transform: skewX(-20deg); opacity: 0.5; }
 96% { transform: skewX(10deg); opacity: 0.8; }


 

 /* Flicker 1 */

 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; text-shadow: -4px 0 white, 4px 0 rgba(255,255,255,0.8), 0 0 20px white; filter: brightness(1.5); }

 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; text-shadow: 0 0 5px white; filter: none; }

 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; text-shadow: 4px 0 white, -4px 0 rgba(255,255,255,0.8), 0 0 15px white; filter: brightness(1.5); }

 92% { transform: none; opacity: 1; text-shadow: 0 0 10px var(--neon-pink); filter: none; }



 /* Flicker 2 */

 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; text-shadow: -5px 0 white, 0 0 20px white; filter: brightness(1.5); }

 96% { transform: skewX(10deg); opacity: 0.8; text-shadow: 5px 0 white, 0 0 20px white; filter: brightness(2); }

 97% { transform: none; opacity: 1; text-shadow: 0 0 10px var(--neon-pink); filter: none; }







@keyframes text-glitch-anim {

 0% { text-shadow: 2px 2px var(--neon-pink), -2px -2px var(--neon-blue); transform: translate(0); }

 25% { text-shadow: -2px 2px var(--neon-pink), 2px -2px var(--neon-blue); transform: translate(1px, 1px); }

 50% { text-shadow: 2px -2px var(--neon-pink), -2px 2px var(--neon-blue); transform: translate(-1px, -1px); }

 75% { text-shadow: -2px -2px var(--neon-pink), 2px 2px var(--neon-blue); transform: translate(1px, -1px); }

 100% { text-shadow: 2px 2px var(--neon-pink), -2px -2px var(--neon-blue); transform: translate(0); }

}



.text-pulse {

 animation: text-pulse-anim 1s infinite alternate;

}

@keyframes text-pulse-anim {

 0% { opacity: 0.4; }

 100% { opacity: 1; }

}



/* ── Container Layouts ───────────────────────── */







/* Glassmorphism */

.glass-panel {

 background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);

 border: 1px solid var(--glass-border); border-radius: 15px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

}



/* WOOLPOOL PAGE */

.input-card { width: 100%; max-width: 900px; padding: 2rem; margin-bottom: 3rem; position: relative; z-index: 10; }

.input-group { margin-bottom: 0; min-width: 0; position: relative; z-index: 11; }

.input-group label { display: flex; align-items: flex-end; height: 2.8rem; margin-bottom: 0.5rem; color: var(--neon-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.input-group input { width: 100%; padding: 1rem; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 0, 255, 0.3); border-radius: 5px; color: white; font-family: var(--font-family); font-size: 1rem; transition: all 0.3s ease; position: relative; z-index: 12; }

.input-group input:focus { outline: none; border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }



/* Mode Toggle */

.btn-mode { padding: 0.5rem 1.5rem; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); color: var(--text-muted); font-family: var(--font-family); cursor: pointer; border-radius: 20px; transition: all 0.3s ease; }

.btn-mode:hover { color: var(--text-main); border-color: var(--neon-blue); }

.btn-mode.active { background: rgba(0, 255, 255, 0.1); color: var(--neon-blue); border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(0, 255, 255, 0.3); }



/* Tag Input Container */

.tag-input-container { background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 0, 255, 0.3); border-radius: 5px; padding: 0.5rem; display: flex; flex-direction: column; position: relative; z-index: 100; }

.tag-input-container:focus-within { border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }

#genre-tags:not(:empty), #liked-tags:not(:empty) { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }

.genre-tag { background: rgba(255, 0, 255, 0.2); border: 1px solid var(--neon-pink); color: white; padding: 0.2rem 0.6rem; border-radius: 15px; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }

.genre-tag span { cursor: pointer; color: var(--neon-pink); font-weight: bold; }

.genre-tag span:hover { color: white; }



.tag-input-wrapper { display: flex; align-items: center; position: relative; }

.tag-input-wrapper input { border: none !important; background: transparent !important; box-shadow: none !important; padding: 0.5rem !important; flex: 1; margin: 0 !important; position: relative; z-index: 12; }

.ghost-text { position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.2); pointer-events: none; white-space: pre; font-size: 1rem; }

.dropdown-arrow { background: transparent; border: none; color: var(--neon-blue); cursor: pointer; padding: 0 0.5rem; display: flex; align-items: center; transition: color 0.3s ease; }

.dropdown-arrow:hover { color: var(--neon-pink); }



#genre-dropdown { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; max-height: 250px; overflow-y: auto; z-index: 10; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.8rem; padding: 1.5rem; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); border: 1px solid var(--neon-pink); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 255, 0.2); }

.genre-dropdown-item { cursor: pointer; color: var(--text-main); font-size: 0.9rem; font-weight: 500; background: rgba(0, 255, 255, 0.05); padding: 0.5rem; border-radius: 5px; text-align: center; border: 1px solid transparent; transition: all 0.2s ease; }

.genre-dropdown-item:hover { background: rgba(255, 0, 255, 0.2); color: white; border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(255, 0, 255, 0.3); }



/* Avatar Selection CSS */

.avatar-wrapper { 

 display: flex; 

 flex-direction: column; 

 align-items: center; 

 gap: 0.5rem; 

} 

.avatar-name { 

 font-size: 0.75rem; 

 color: #aaa; 

 text-align: center; 

 max-width: 100%; 

 white-space: nowrap; 

 overflow: hidden; 

 text-overflow: ellipsis; 

 transition: 0.3s; 

} 

.avatar-wrapper:hover .avatar-name, .avatar-img.selected + .avatar-name { 

 color: var(--neon-blue); 

 text-shadow: 0 0 5px var(--neon-blue); 

} 

.avatar-img { 

 width: 100px; 

 height: 100px; 

 object-fit: cover; 

 border-radius: 50%; 

 border: 3px solid transparent; 

 cursor: pointer; 

 transition: 0.3s; 

 box-shadow: 0 4px 10px rgba(0,0,0,0.5); 

} 

.avatar-img:hover, .avatar-img.selected { 

 border-color: var(--neon-blue); 

 box-shadow: 0 0 20px rgba(0,255,255,0.4); 

 transform: scale(1.05); 

}



/* Buttons */

.btn-neon {

 width: 100%; padding: 1rem; background: transparent; border: 2px solid var(--neon-blue); color: var(--neon-blue);

 font-family: var(--font-family); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;

 cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s ease; border-radius: 5px; margin-top: 1rem;

}

.btn-neon:hover { background: var(--neon-blue); color: var(--bg-color); box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue); }

.small-btn { width: auto; padding: 0.8rem 2rem; margin-top: 0; }



/* How It Works Button */
.btn-how-it-works {
 display: flex; align-items: center; gap: 8px; justify-content: center;
 padding: 12px 24px; font-size: 0.85rem; font-weight: 800; 
 background: linear-gradient(135deg, rgba(255, 0, 128, 0.15) 0%, rgba(255, 0, 128, 0.05) 100%);
 border: 1px solid rgba(255, 0, 128, 0.3); color: #fff;
 border-radius: 8px; cursor: pointer; 
 transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,0,128,0.1);
 backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
 text-transform: uppercase; letter-spacing: 1.5px;
 position: relative; overflow: hidden;
 text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.btn-how-it-works::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg); transition: all 0.5s;
}

.btn-how-it-works:hover {
 background: linear-gradient(135deg, rgba(255, 0, 128, 0.4) 0%, rgba(255, 0, 128, 0.1) 100%);
 border-color: var(--neon-pink); color: #fff;
 box-shadow: 0 5px 25px rgba(255,0,128,0.4), inset 0 0 15px rgba(255,0,128,0.4);
 transform: translateY(-3px) scale(1.02);
}

.btn-how-it-works:hover::before {
  left: 150%;
}

.btn-how-it-works:not(#btn-regenerate-foryou):not(#btn-foryou-options) svg {
 animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

 0%, 20%, 50%, 80%, 100% { transform: translateY(0); }

 40% { transform: translateY(4px); }

 60% { transform: translateY(2px); }

}



/* Loaders */

.hidden { display: none !important; }

#loading, #catalog-loading { margin: 2rem 0; text-align: center; }

.loader { display: flex; flex-direction: column; align-items: center; }

.scanner { width: 80px; height: 80px; border: 4px solid var(--neon-purple); border-radius: 50%; border-top-color: transparent; animation: spin 1s linear infinite; margin-bottom: 1rem; box-shadow: 0 0 15px var(--neon-purple); }

@keyframes spin { to { transform: rotate(360deg); } }



/* Results Grids */

.results-grid, .catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; width: 100%; }



.anime-card {

 padding: 1.5rem; position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;

 display: flex; flex-direction: column;

}

.anime-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2); border-color: var(--neon-pink); }



.grid-poster-card {

 height: 420px;

 background-color: #0a0a0f; 

 background-size: cover;

 background-position: center;

 background-repeat: no-repeat;

 border-radius: 12px; 

 display: flex; 

 flex-direction: column; 

 justify-content: flex-end;

 cursor: pointer; 

 box-shadow: 0 10px 30px rgba(0,0,0,0.8); 

 overflow: hidden;

 border: 1px solid rgba(255,255,255,0.05);

 position: relative;

 padding: 0;

 transition: transform 0.3s, box-shadow 0.3s;

}

.grid-poster-card::before {

 content: '';

 position: absolute;

 top: 0; left: 0; right: 0; bottom: 0;

 background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 100%);

 z-index: 1;

 pointer-events: none;

}

.grid-poster-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(255, 0, 128, 0.3); border-color: var(--neon-pink); }

.grid-poster-content {

 position: relative;

 z-index: 2;

 padding: 1.5rem;

}

.grid-poster-card h3 { color: white; font-size: 1.4rem; margin-bottom: 0.5rem; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-weight: 800; }

.grid-poster-card .anime-genre { display: inline-block; font-size: 0.7rem; color: var(--neon-blue); margin-bottom: 0.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); border: none; padding: 0; }

.grid-poster-card .anime-reason { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); line-height: 1.4; font-style: italic; border: none; padding: 0; }







.anime-title { font-size: 1.5rem; color: var(--neon-blue); margin-bottom: 0.5rem; font-weight: 800; }

.anime-genre { font-size: 0.8rem; color: var(--neon-pink); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: inline-block; padding: 0.2rem 0.5rem; border: 1px solid var(--neon-pink); border-radius: 3px; }

.anime-description { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; color: #ddd; flex-grow: 1; }

.anime-reason { font-size: 0.85rem; color: var(--text-muted); font-style: italic; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }



/* CATALOG FILTERS */

.filter-panel {

 width: 100%; max-width: 800px; padding: 1.5rem; margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1rem;

 position: relative; z-index: 9999;

}

.search-row {

 display: flex; gap: 1rem; align-items: center; width: 100%;

}

.search-row input {

 flex-grow: 1; padding: 1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); border-radius: 5px; color: white; font-size: 1rem;

}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {

 outline: none;

 border-color: var(--neon-blue);

 box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);

}



/* Custom Select Dropdowns */

.custom-select-wrapper { position: relative; width: 100%; font-family: var(--font-family); }

.select-selected {

 background-color: rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 243, 255, 0.3);

 color: var(--text-main); padding: 0.8rem 1rem; border-radius: 5px; cursor: pointer; user-select: none;

 display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;

}

.select-selected:hover { border-color: var(--neon-blue); box-shadow: 0 0 10px rgba(0,243,255,0.2); }

.select-selected.select-arrow-active .arrow { transform: rotate(180deg); }

.arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--neon-blue); }



.select-items {

 position: absolute; background-color: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px);

 border: 1px solid var(--neon-blue); top: 100%; left: 0; right: 0; z-index: 99; border-radius: 5px; margin-top: 5px;

 max-height: 350px; overflow-y: auto; box-shadow: 0 5px 20px rgba(0,0,0,0.5);

}

.select-hide { display: none; }

.select-items div {

 color: var(--text-main); padding: 0.8rem 1rem; cursor: pointer; user-select: none; transition: background 0.2s, color 0.2s;

}

.select-items div:hover, .same-as-selected { background-color: rgba(0, 243, 255, 0.1); color: var(--neon-blue); }

.select-items::-webkit-scrollbar { width: 6px; }

.select-items::-webkit-scrollbar-track { background: transparent; }

.select-items::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 10px; }



.filters-row {

 display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 100;

}

.filter-group {

 flex: 1; min-width: 150px; display: flex; flex-direction: column; position: relative;

}

.filter-group label {

 color: var(--neon-pink); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.3rem; letter-spacing: 1px;

}

.filter-group select {

 width: 100%; padding: 0.8rem; background: rgba(0,0,0,0.7); border: 1px solid var(--glass-border); border-radius: 5px; color: white; font-family: var(--font-family); font-size: 0.9rem; cursor: pointer;

}

.filter-group select:focus { outline: none; border-color: var(--neon-purple); box-shadow: 0 0 10px rgba(176, 38, 255, 0.3); }

.filter-group select option { background: #111; color: white; }



.catalog-item {

 padding: 0;

 overflow: hidden;

}

.catalog-img {

 width: 100%;

 height: 350px;

 object-fit: cover;

 border-bottom: 1px solid var(--glass-border);

}

.catalog-content {

 padding: 1.5rem;

 flex-grow: 1;

 display: flex;

 flex-direction: column;

}

.catalog-score {

 position: absolute;

 top: 10px; right: 10px;

 background: rgba(0,0,0,0.8);

 color: #ffb400;

 padding: 5px 10px;

 border-radius: 5px;

 font-weight: bold;

 border: 1px solid #ffb400;

}

.catalog-status {

 position: absolute;

 top: 10px; left: 10px;

 background: rgba(0,0,0,0.8);

 color: var(--neon-pink);

 padding: 5px 10px;

 border-radius: 5px;

 font-weight: bold;

 font-size: 0.75rem;

 text-transform: uppercase;

 border: 1px solid var(--neon-pink);

}

.catalog-genres {

 display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;

}

.catalog-genre {

 font-size: 0.7rem; color: var(--neon-blue); border: 1px solid var(--neon-blue); padding: 2px 6px; border-radius: 3px;

}



/* ABOUT SECTION */

.about-container {

 max-width: 800px; padding: 3rem; line-height: 1.6;

}

.about-container h2 { color: var(--neon-pink); margin-bottom: 1rem; margin-top: 2rem; font-size: 1.8rem;}

.about-container h2:first-child { margin-top: 0; }

.about-container p { margin-bottom: 1.5rem; color: #ccc; }

.about-container ul { margin-left: 2rem; color: #ccc; }

.about-container li { margin-bottom: 0.5rem; }

.about-container li strong { color: var(--neon-blue); }



.team-grid {

 display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin: 3rem 0;

}

.team-card {

 background: rgba(0,0,0,0.4); padding: 2rem; border-radius: 10px; text-align: center; border: 1px solid var(--glass-border);

}

.team-avatar {

 width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1rem; background-size: cover; background-color: rgba(255,255,255,0.1); border: 2px solid var(--neon-purple);

}

.team-card h3 { color: var(--text-main); margin-bottom: 0.5rem; }

.team-card p { color: var(--neon-blue); font-size: 0.9rem; margin-bottom: 0; }



/* MODAL STYLES */

.modal {

 position: fixed; top: 0; left: 0; width: 100%; height: 100%;

 background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);

 z-index: 3000; display: flex; justify-content: center; align-items: center;

 padding: 2rem;

}

.modal-content {

 width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto;

 background: rgba(10,10,15,0.95); padding: 2.5rem; position: relative;

 border: 1px solid var(--neon-blue); box-shadow: 0 0 30px rgba(0,255,255,0.2);

 border-radius: 15px;

}

/* Custom scrollbar for modal */

.modal-content::-webkit-scrollbar { width: 8px; }

.modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 4px; }

.modal-content::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 4px; }



.close-btn {

 position: absolute; top: 1rem; right: 1.5rem; 

 width: 40px; height: 40px; 

 background: rgba(255, 0, 60, 0.1); border: 1px solid var(--neon-pink); 

 color: var(--neon-pink); font-size: 2.2rem; font-weight: normal; font-family: "Helvetica Neue", Arial, sans-serif;

 cursor: pointer; transition: 0.3s ease; line-height: 1;

 display: flex; justify-content: center; align-items: center;

 border-radius: 8px;

 box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);

 z-index: 10;

 padding-top: 2px;

 padding-right: 1px;

}



.close-btn:hover { 

 background: var(--neon-pink); color: white;

 box-shadow: 0 0 15px var(--neon-pink); 

 transform: scale(1.15); /* Hover zoom */

}



.modal-header { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }

.modal-poster { width: 250px; border-radius: 10px; border: 1px solid var(--neon-purple); box-shadow: 0 0 15px rgba(176,38,255,0.3); object-fit: cover; }

.modal-title-area { flex: 1; min-width: 300px; display: flex; flex-direction: column; justify-content: center; }

.modal-title { font-size: 2.5rem; color: var(--neon-blue); margin-bottom: 0.5rem; line-height: 1.1; font-weight: 800;}

.modal-title-jp { font-size: 1.2rem; color: #888; margin-bottom: 1.5rem; }

.modal-trailer-btn { display: inline-block; padding: 0.8rem 1.5rem; background: transparent; border: 1px solid var(--neon-pink); color: var(--neon-pink); text-decoration: none; border-radius: 5px; font-weight: bold; text-align: center; max-width: 250px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }

.modal-trailer-btn:hover { background: var(--neon-pink); color: white; box-shadow: 0 0 15px var(--neon-pink); }



.modal-facts-grid {

 display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2.5rem;

}

.fact-box {

 background: rgba(0,0,0,0.6); padding: 1.2rem; border: 1px solid var(--glass-border); border-radius: 8px; text-align: center; transition: 0.3s;

}

.fact-box:hover { border-color: var(--neon-blue); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,255,255,0.1); }

.fact-label { display: block; font-size: 0.75rem; color: var(--neon-pink); text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 1px; }

.fact-value { font-size: 1.1rem; color: white; font-weight: bold; }



.modal-synopsis h3 { color: var(--neon-blue); margin-bottom: 1rem; border-bottom: 1px solid rgba(0,255,255,0.3); padding-bottom: 0.5rem; font-size: 1.5rem; }

.modal-synopsis p { line-height: 1.8; color: #ddd; font-size: 1rem; }



/* --- WOOLPOOL AI GUIDE --- */

.ai-guide-container { width: 100%; max-width: 1000px; margin: 4rem auto 2rem; padding: 0 1rem; }

.guide-title { text-align: center; font-size: 2.5rem; margin-bottom: 0.5rem; }

.guide-subtitle { text-align: center; color: var(--neon-blue); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 3rem; text-shadow: 0 0 5px var(--neon-blue); }



.guide-block { display: flex; align-items: center; gap: 3rem; margin-bottom: 4rem; }

.guide-block.reverse { flex-direction: row-reverse; }



.guide-sprite { flex: 0 0 350px; display: flex; justify-content: center; }

.guide-sprite img { width: 100%; max-width: 350px; border-radius: 20px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); border: 2px solid var(--glass-border); transition: transform 0.3s ease, box-shadow 0.3s ease; }

.guide-sprite img:hover { transform: scale(1.05) translateY(-10px); box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3); border-color: var(--neon-pink); }

.guide-sprite img.flip-image { transform: scaleX(-1); }

.guide-sprite img.flip-image:hover { transform: scaleX(-1) scale(1.05) translateY(-10px); box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3); border-color: var(--neon-pink); }



.guide-content { flex: 1; padding: 2rem; }

.guide-content h3 { color: var(--neon-pink); font-size: 1.5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

.guide-content p { color: var(--text-main); line-height: 1.6; margin-bottom: 1rem; font-size: 1.05rem; }

.guide-content strong { color: var(--neon-blue); font-weight: 600; }



/* EPISODES STYLES */

.modal-episodes-section { margin-top: 3rem; }

.modal-episodes-section h3 { color: var(--neon-pink); margin-bottom: 1rem; border-bottom: 1px solid rgba(255,0,255,0.3); padding-bottom: 0.5rem; font-size: 1.5rem; }

.episodes-container {

 max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem;

 background: rgba(0,0,0,0.4); padding: 1rem; border-radius: 8px; border: 1px solid var(--glass-border);

}

.episodes-container::-webkit-scrollbar { width: 6px; }

.episodes-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 3px; }

.episodes-container::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 3px; }



.episode-row {

 display: flex; justify-content: space-between; align-items: center; padding: 1rem;

 background: rgba(20,20,25,0.8); border: 1px solid rgba(0,255,255,0.1); border-radius: 5px;

 transition: 0.2s;

}

.episode-row:hover { border-color: var(--neon-blue); background: rgba(0,255,255,0.05); }

.ep-left { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }

.ep-number { font-weight: bold; color: var(--neon-blue); font-size: 0.9rem; letter-spacing: 1px; }

.ep-title { color: white; font-size: 1.1rem; }

.ep-title-jp { color: #888; font-size: 0.85rem; }

.ep-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; min-width: 100px; }

.ep-date { color: var(--neon-pink); font-size: 0.9rem; font-family: monospace; }

.ep-score { color: #ffb400; font-weight: bold; font-size: 1rem; }

.ep-badge { font-size: 0.7rem; padding: 2px 6px; border-radius: 3px; border: 1px solid currentColor; margin-left: 5px; text-transform: uppercase; }

.ep-badge.filler { color: #ff4444; }

.ep-badge.recap { color: #aaaaaa; }



/* SEASON TABS STYLES */

.modal-relations-section { margin-top: 2rem; margin-bottom: 2rem; }

.modal-relations-section h3 { color: var(--neon-pink); margin-bottom: 1rem; border-bottom: 1px solid rgba(255,0,255,0.3); padding-bottom: 0.5rem; font-size: 1.5rem; }



.season-tabs {

 display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.8rem;

}

.season-tabs::-webkit-scrollbar { height: 6px; }

.season-tabs::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 3px; }

.season-tabs::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 3px; }



.season-tab {

 background: rgba(0,0,0,0.6); border: 1px solid var(--glass-border); color: #ccc;

 padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; transition: 0.3s;

 display: flex; flex-direction: column; align-items: flex-start; min-width: 140px;

 flex-shrink: 0;

}

.season-tab:hover:not(.active) {

 background: rgba(0,255,255,0.1); border-color: var(--neon-blue); color: white;

}

.season-tab.active {

 background: rgba(255,0,255,0.2); border-color: var(--neon-pink); color: white; cursor: default;

}

.tab-label { font-size: 0.7rem; color: var(--neon-blue); text-transform: uppercase; margin-bottom: 0.2rem; }

.season-tab.active .tab-label { color: var(--neon-pink); }

.tab-title { font-size: 0.85rem; font-weight: bold; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



/* DROPDOWN STYLES */

.season-dropdown {

 appearance: none; -webkit-appearance: none;

 background: rgba(0,0,0,0.6); border: 1px solid var(--neon-blue); color: white;

 padding: 0.6rem 2rem 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: bold;

 cursor: pointer; transition: 0.3s;

 outline: none; box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);

 width: 100%; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;

}

.season-dropdown:hover {

 background: rgba(0,255,255,0.1); box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);

}

.select-container::after {

 content: '▼'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);

 color: var(--neon-blue); pointer-events: none; font-size: 0.8rem;

}

.season-dropdown option {

 background-color: #111118;

 color: white;

}



/* WATCHLIST STYLES */

.watchlist-card {

 transition: box-shadow 0.3s ease, border-color 0.3s ease !important;

 border: 1px solid var(--glass-border);

}

.watchlist-card:hover {

 border-color: var(--neon-blue) !important;

 box-shadow: 0 0 15px var(--neon-blue), inset 0 0 10px rgba(0, 255, 255, 0.2);

 z-index: 10;

}



/* --- NETWORK SYNC --- */

.network-sync-container {

 display: flex;

 gap: 2rem;

 width: 100%;

 max-width: 1200px;

 margin: 0 auto;

 align-items: flex-start;

}



.sync-column {

 flex: 1 1 50%;
 max-width: 50%;
 min-width: 0;

 background: rgba(10, 10, 15, 0.7);

 border: 1px solid rgba(255, 255, 255, 0.05);

 border-radius: 15px;

 padding: 1.5rem;

 backdrop-filter: blur(15px);

 transition: transform 0.4s ease, box-shadow 0.4s ease;

}



.sync-column:hover {

 transform: translateY(-5px);

}



.feed-column {

 border-top: 2px solid var(--neon-blue);

 box-shadow: inset 0 50px 50px -50px rgba(0, 243, 255, 0.1), 0 10px 30px rgba(0,0,0,0.5);

}



.feed-column:hover {

 box-shadow: inset 0 50px 50px -50px rgba(0, 243, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);

}



.reviews-column {

 border-top: 2px solid var(--neon-blue);

 box-shadow: inset 0 50px 50px -50px rgba(0, 243, 255, 0.1), 0 10px 30px rgba(0,0,0,0.5);

}



.reviews-column:hover {

 box-shadow: inset 0 50px 50px -50px rgba(0, 243, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);

}



.live-indicator {

 display: inline-block;

 width: 10px;

 height: 10px;

 border-radius: 50%;

 background: var(--neon-blue);

 box-shadow: 0 0 10px var(--neon-blue);

 animation: pulse-live 1.5s infinite;

}



@keyframes pulse-live {

 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }

 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 243, 255, 0); }

 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }

}



.live-feed-container {

 display: flex;

 flex-direction: column;

 gap: 1rem;

 height: 450px;

 overflow: hidden;

 padding-right: 0.5rem;

}



.feed-item {

 display: flex;

 gap: 1rem;

 align-items: flex-start;

 padding: 1rem;

 background: linear-gradient(90deg, rgba(0,243,255,0.08) 0%, rgba(0,0,0,0.6) 100%);

 border-radius: 10px;

 border-left: 3px solid var(--neon-blue);

 box-shadow: -2px 0 15px rgba(0,243,255,0.15);

 backdrop-filter: blur(5px);

 transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;

 animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

 transform-origin: top;

 cursor: default;

}



.feed-item:hover {

 transform: translateX(8px);

 background: linear-gradient(90deg, rgba(0,243,255,0.15) 0%, rgba(0,0,0,0.7) 100%);

 box-shadow: -4px 0 25px rgba(0,243,255,0.3);

}



@keyframes slideDown {

 0% { opacity: 0; transform: translateY(-20px) scale(0.9); }

 100% { opacity: 1; transform: translateY(0) scale(1); }

}



.feed-avatar {

 width: 40px;

 height: 40px;

 flex-shrink: 0;

 border-radius: 50%;

 border: 1px solid var(--neon-blue);

 object-fit: cover;

}



.feed-content {

 flex: 1;

 min-width: 0;

 font-size: 0.9rem;

 line-height: 1.4;

}



.feed-username {

 font-weight: bold;

 color: var(--neon-blue);

}



.community-reviews-container {

 display: flex;

 flex-direction: column;

 gap: 1rem;

 height: 450px;

 overflow-y: auto;

 padding-right: 0.5rem;

}



.review-item {

 display: flex;

 gap: 1rem;

 align-items: flex-start;

 padding: 1rem;

 background: linear-gradient(90deg, rgba(0,243,255,0.08) 0%, rgba(0,0,0,0.6) 100%);

 border-radius: 10px;

 border-left: 3px solid var(--neon-blue);

 box-shadow: -2px 0 15px rgba(0,243,255,0.15);

 backdrop-filter: blur(5px);

 transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;

 animation: fadeIn 0.4s ease forwards;

 cursor: default;

}



.review-item:hover {

 transform: translateX(8px);

 background: linear-gradient(90deg, rgba(0,243,255,0.15) 0%, rgba(0,0,0,0.7) 100%);

 box-shadow: -4px 0 25px rgba(0,243,255,0.3);

}



.review-header {

 display: flex;

 justify-content: space-between;

 align-items: center;

 margin-bottom: 0.5rem;

}



.review-user-info {

 display: flex;

 align-items: center;

 gap: 1rem;

}



.review-avatar {

 width: 40px;

 height: 40px;

 flex-shrink: 0;

 border-radius: 50%;

 border: 1px solid var(--neon-blue);

 object-fit: cover;

}



.review-stars {

 color: #ffd700;

 text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);

 letter-spacing: 2px;

}



.review-text {

 font-style: italic;

 color: #ddd;

 font-size: 1rem;

 margin-top: 0.5rem;

}



.star-input.active, .star-input.hover {

 color: #ffd700;

 text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);

}



/* ============================================================

 RESPONSIVE DESIGN — MOBILE FIRST

 ============================================================ */

@keyframes mobileSlideUp {

 from { transform: translateY(100%); opacity: 0; }

 to { transform: translateY(0); opacity: 1; }

}



.mobile-swipe-indicator { display: none; }




/* STEAM DECK / SMALL LAPTOP OPTIMIZATION (1280px screen width) */
@media (max-width: 1300px) and (min-width: 769px) {
    .navbar {
        padding: 0.4rem 0.8rem !important;
        width: 98% !important;
        gap: 0.2rem !important;
    }
    .nav-links {
        gap: 0.1rem !important;
        flex: auto !important;
    }
    .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.7rem !important;
        gap: 3px !important;
    }
    .nav-link svg {
        width: 14px !important;
        height: 14px !important;
    }
    .nav-brand {
        font-size: 1rem !important;
        gap: 5px !important;
        flex: none !important;
    }
    .nav-brand svg {
        width: 24px !important;
        height: 24px !important;
    }
    .auth-section {
        flex: none !important;
    }
    #nav-avatar {
        width: 38px !important;
        height: 38px !important;
    }
}

@media (max-width: 768px) {

    /* Fix overlap between login button and hamburger menu */
    .auth-section {
        flex: 0 1 auto !important;
        margin-right: 15px; margin-left: auto;
    }
    .nav-brand {
        flex: 1 !important;
        white-space: nowrap;
    }
    #btn-login-modal {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
        margin: 0 !important;
        width: auto !important;
    }
    #nav-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .navbar .nav-brand svg {
        width: 28px !important;
        height: 28px !important;
    }
    .mobile-menu-btn svg {
        width: 30px !important;
        height: 30px !important;
    }



 .hide-on-mobile { display: none !important; }

 

 .mobile-swipe-indicator {

 display: flex;

 align-items: center;

 justify-content: center;

 gap: 0.5rem;

 margin-top: 0.8rem;

 color: var(--neon-blue);

 font-size: 0.65rem;

 font-weight: bold;

 text-transform: uppercase;

 letter-spacing: 1px;

 opacity: 0.7;

 }

 .swipe-arrow {

 animation: swipeLeftAnim 1.5s infinite ease-in-out;

 }

 @keyframes swipeLeftAnim {

 0% { transform: translateX(0); opacity: 0.3; }

 50% { transform: translateX(-8px); opacity: 1; }

 100% { transform: translateX(0); opacity: 0.3; }

 }



 /* ── Navbar ─────────────────────────────────── */

 .navbar {

 padding: 1.2rem 1rem !important;

 top: 0;

 left: 0;

 width: 100%;

 border-radius: 0;

 border: none;

 border-bottom: 1px solid var(--glass-border);

 background: transparent;

 }

 .navbar .nav-brand { font-size: 1.35rem !important; }

 .mobile-menu-btn { display: flex; position: relative; z-index: 2000; }

 

 /* Fix modals on small screens so they can be scrolled when keyboard opens */

 .modal {

 align-items: flex-start !important;

 padding: 1.5rem !important;

 padding-top: 5dvh !important;

 overflow-y: auto !important;

 }



 /* Full-screen slide-down mobile menu */

 .nav-links {

 position: fixed; top: 0; left: 0;

 width: 100vw; height: 100dvh;

 background: rgba(5, 5, 12, 0.98);

 backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);

 flex-direction: column; justify-content: center; align-items: center;

 gap: 1.5rem;

 transform: translateY(-100%);

 transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);

 z-index: 1000; opacity: 0; pointer-events: none;

 }

 .nav-links.mobile-active {

 transform: translateY(0); opacity: 1; pointer-events: auto;

 }

 .nav-link {

 font-size: 1.3rem;

 padding: 0.9rem 2.5rem;

 width: 85vw;

 text-align: center;

 border-radius: 12px;

 border: 1px solid rgba(255,255,255,0.06);

 background: rgba(255,255,255,0.03);

 }

 .nav-link.active {

 background: rgba(0, 243, 255, 0.08);

 border-color: rgba(0, 243, 255, 0.3);

 }

 /* Avatar dropdown on mobile - full width */

 .avatar-dropdown {

 right: -5px;

 width: 240px;

 

 background: rgb(8, 10, 20); /* Solid background to prevent neon bleed-through */

 }



 /* ── Hero / WoolPool AI page ─────────────────── */

 .wool-text-container { font-size: 4rem !important; letter-spacing: 2px !important; flex-wrap: wrap; text-align: center; }

 



 .input-card {

 padding: 1.25rem;

 border-radius: 14px;

 }

 .mode-toggle { flex-direction: column; gap: 0.6rem; }

 .btn-mode { width: 100%; justify-content: center; }



 /* Prevent iOS zoom on input focus */

 input, select, textarea { font-size: 16px !important; }



 .search-row { flex-direction: column; gap: 0.75rem; }



 /* Genre tags wrap naturally */

 .genre-tags, .liked-tags {

 flex-wrap: wrap;

 gap: 0.4rem;

 }

 .genre-tag { font-size: 0.75rem; padding: 0.4rem 0.75rem; }



 /* Tag input full width */

 .tag-input-container { flex-wrap: wrap; z-index: 100; }

 .tag-input-container input { width: 100% !important; }



 #genre-dropdown {

 padding: 0.8rem;

 gap: 0.4rem;

 grid-template-columns: repeat(2, 1fr);

 }

 .genre-dropdown-item {

 font-size: 0.8rem;

 padding: 0.4rem;

 }



 /* Scan button full width */

 .btn-neon { width: 100%; }

 button.small-btn { width: auto; }



 /* ── Results Grid — 2 per row ────────────────── */

 .results-grid, .catalog-grid {

 grid-template-columns: repeat(2, minmax(0, 1fr));

 gap: 0.75rem;

 }

 .anime-card { padding: 0.85rem; }

 .anime-title { font-size: 0.95rem; }

 .anime-description { font-size: 0.8rem; -webkit-line-clamp: 3; }



 /* ── Catalog (Archive) — poster style ───────── */

 .catalog-item { padding: 0 !important; }

 .catalog-grid .anime-description,

 .catalog-grid .catalog-genres { display: none; }

 .catalog-grid .catalog-img { height: 200px; }

 .catalog-grid .catalog-content { padding: 0.65rem; text-align: center; }

 .catalog-grid .anime-title {

 font-size: 0.85rem; margin-bottom: 0;

 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

 }

 .catalog-grid .catalog-score { font-size: 0.65rem; padding: 3px 5px; top: 6px; right: 6px; }

 .catalog-grid .catalog-status { font-size: 0.55rem; padding: 3px 5px; top: 6px; left: 6px; }



 /* ── Modals ──────────────────────────────────── */

 .modal-content {

 padding: 1.5rem;

 max-height: 90dvh;

 width: 100%;

 }



 .modal-header { flex-direction: column; align-items: center; text-align: center; gap: 1rem; margin-top: 10px; }

 .modal-title-area { min-width: 100%; align-items: center; }

 .modal-title { font-size: 1.6rem; }

 .modal-poster { max-width: 160px; }

 .season-dropdown { max-width: 100%; width: 100%; white-space: normal; }

 .close-btn { top: 0.5rem; right: 0.5rem; width: 32px; height: 32px; font-size: 1.5rem; }



 /* Woolpool Core (About) & System Logs (Settings) */

 #about .glass-panel { padding: 1.25rem !important; }

 #about .glass-panel > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 0.5rem; text-align: left; margin-bottom: 1.5rem !important; }

 #about .glass-panel > div:nth-child(2) { grid-template-columns: 1fr !important; gap: 2rem !important; }

 #about .glass-panel [style*="justify-content: space-between"] { flex-direction: column !important; align-items: flex-start !important; gap: 0.2rem; margin-bottom: 1rem !important; }

 #about .glass-panel h2 { font-size: 1rem !important; }

 #about .glass-panel h4 { font-size: 1.1rem !important; }

 #about .glass-panel p, #about .glass-panel span { font-size: 0.85rem !important; word-wrap: break-word; }

 #about .glass-panel > div:nth-child(2) > div > div > div[onclick] { padding: 1rem !important; gap: 12px !important; }

 #about .glass-panel > div:nth-child(2) > div > div > div[onclick] > div:first-child { width: 60px !important; height: 60px !important; }

 

 .terminal-container { width: 100% !important; max-width: 100% !important; }

 .terminal-pinwall-container { height: auto !important; min-height: 600px; display: flex; flex-direction: column; }

 .pin-col-container { flex-direction: column !important; gap: 1rem !important; height: auto; padding: 1rem !important; }

 .pin-col { flex: none; height: 350px; overflow-y: auto; }



 /* Woolpool Ai & Archivist Modals */

 #modal-woolpool-ai .modal-content > div[style*="display: flex"],

 #modal-archivist .modal-content > div[style*="display: flex"] {

 flex-direction: column !important;

 }

 #modal-woolpool-ai .modal-content > div[style*="display: flex"] > div,

 #modal-archivist .modal-content > div[style*="display: flex"] > div {

 min-width: 0 !important;

 padding: 1.5rem !important;

 border-right: none !important;

 border-left: none !important;

 border-bottom: 1px solid rgba(0, 243, 255, 0.1) !important;

 }

 #modal-archivist .modal-content > div[style*="display: flex"] > div { 

 border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; 

 }

 

 #modal-woolpool-ai h2, #modal-archivist h2 { font-size: 1.8rem !important; margin-bottom: 1rem !important; }

 

 /* Ensure small tags wrap cleanly */

 #modal-woolpool-ai .modal-content [style*="gap: 10px"],

 #modal-archivist .modal-content [style*="gap: 10px"] {

 flex-wrap: wrap !important;

 gap: 8px !important;

 margin-bottom: 1.5rem !important;

 }

 

 /* Stats box under GIF */

 #modal-woolpool-ai .modal-content [style*="grid-template-columns"],

 #modal-archivist .modal-content [style*="grid-template-columns"] {

 grid-template-columns: 1fr !important;

 }



 /* Fix SYS_NODE text behind GIF */

 #modal-woolpool-ai .modal-content [style*="SYS_NODE"],

 #modal-archivist .modal-content [style*="SYS_NODE"] {

 z-index: 10 !important;

 background: rgba(0,0,0,0.6) !important;

 padding: 4px 8px !important;

 border-radius: 4px !important;

 backdrop-filter: blur(5px) !important;

 }

 .engine-gif { margin-top: 30px !important; z-index: 5 !important; }



 /* Watched / Watchlist modal grids */

 #full-watchlist-grid,

 #watched-grid {

 grid-template-columns: repeat(2, minmax(0, 1fr));

 gap: 0.75rem;

 max-height: 60dvh;

 }

 #full-watchlist-search,

 #watched-search { width: 100% !important; }



 /* For You 3D Carousel & Rows */

 #foryou-netflix-rows { padding: 0 5px !important; gap: 1.5rem !important; margin-top: 2rem !important; }

 .netflix-row-title { font-size: 1.1rem !important; margin-bottom: 0.5rem !important; padding-left: 5px !important; }

 .netflix-row-container { padding-bottom: 10px !important; gap: 6px !important; }

 .netflix-item { min-width: 120px !important; width: 120px !important; height: 180px !important; }

 

 .carousel-3d-container {

 height: 320px !important;

 perspective: 500px;

 margin-bottom: 60px !important;

 }

 .foryou-card { width: 180px !important; height: 270px !important; }

 .card-prev { transform: translateX(-65%) scale(0.8) translateZ(-60px) !important; opacity: 0.6 !important; }

 .card-next { transform: translateX(65%) scale(0.8) translateZ(-60px) !important; opacity: 0.6 !important; }



 /* Hide long text on mobile to avoid text-only cards */

 .foryou-card .card-content p, .netflix-item .card-content p { display: none !important; }



 /* Move Swiper arrows outside the cards */

 #swiper-btn-left { top: auto !important; bottom: -50px !important; left: 20% !important; transform: none !important; padding: 0.5rem 1rem !important; border-radius: 8px !important; }

 #swiper-btn-right { top: auto !important; bottom: -50px !important; right: 20% !important; transform: none !important; padding: 0.5rem 1rem !important; border-radius: 8px !important; }



 /* Mobile Jikan rows */

 .netflix-slider-wrapper { container-type: inline-size; margin-bottom: 30px !important; } /* Space for arrows */

 

 .jikan-swiper .foryou-card { 

 width: calc(50cqw - 3px) !important; 

 height: calc((50cqw - 3px) * 1.5) !important; 

 }

 .skeleton-row > div > div { 

 flex: 0 0 calc(50cqw - 3px) !important; 

 height: calc((50cqw - 3px) * 1.5) !important; 

 }

 .netflix-slider-wrapper .jikan-nav-btn { 

 display: flex !important; 

 top: auto !important;

 bottom: -25px !important;

 transform: none !important;

 opacity: 0.8 !important; 

 width: 40px !important; 

 height: 40px !important; 

 background: rgba(0,0,0,0.8) !important;

 border: 1px solid var(--neon-pink) !important;

 }

 .netflix-slider-wrapper .jikan-nav-btn.left { left: 20% !important; }

 .netflix-slider-wrapper .jikan-nav-btn.right { right: 20% !important; }

 

 .jikan-swiper .anime-title { font-size: 0.95rem !important; }

 .jikan-swiper .anime-genre { font-size: 0.65rem !important; }

 

 .foryou-card .anime-genre { border: none !important; padding: 0 !important; }

 .hide-on-mobile { display: none !important; }



 /* Fix header and How It Works button */

 #foryou-results-container > div:first-child { flex-direction: row !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; gap: 15px !important; padding-right: 0 !important; margin-bottom: 2rem !important; }

 #foryou-results-container > div:first-child .btn-how-it-works { width: auto !important; margin-left: auto !important; }

 

 .action-bar-container { margin-top: 4rem !important; }





 /* ── Profile section in review area ─────────── */

 .form-grid { grid-template-columns: 1fr !important; }

 .guide-block, .guide-block.reverse {

 flex-direction: column; gap: 1.5rem;

 }

 .guide-sprite { flex: none; width: 100%; }

 .guide-sprite img { max-width: 220px; height: auto; object-fit: contain; }



 /* ── Network Sync / Community ─────────────── */

 .network-sync-container { 

 flex-direction: column; 

 align-items: stretch;

 }

 .sync-column {

 width: 100%;
 max-width: 100%;

 box-sizing: border-box;

 }

 .live-feed-container {

 height: 350px; 

 overflow: hidden !important;

 pointer-events: none; 

 touch-action: none;

 }

 .community-reviews-container { 

 height: 350px; 

 overflow-y: auto; 

 -ms-overflow-style: none;

 scrollbar-width: none;

 }

 .live-feed-container::-webkit-scrollbar, .community-reviews-container::-webkit-scrollbar {

 display: none;

 }

 .add-review-section > div:first-child { flex-direction: column; gap: 1rem; align-items: flex-start !important; }

 .review-input-row { flex-wrap: wrap; height: auto !important; }

 .review-input-row > div { width: 100%; min-height: 50px; flex: 1 1 100% !important; }

 .review-input-row > button { width: 100% !important; min-height: 50px; flex: 1 1 100% !important; }



 /* ── Horizontal AI card ─────────────────────── */

 .horizontal-ai-card { flex-direction: column; }

 .horizontal-poster {

 width: 100%; height: 220px;

 border-right: none;

 border-bottom: 1px solid rgba(0, 243, 255, 0.2);

 }

 .horizontal-content { padding: 1rem; }



 /* ── Toast notifications ─────────────────────── */

 .toast-container { bottom: 80px; right: 1rem; left: 1rem; }

 .toast { font-size: 0.85rem; padding: 0.8rem 1rem; }



 /* ── Netflix rows ────────────────────────────── */

 .netflix-row-title { font-size: 1.1rem; padding-left: 1rem; }

 .netflix-row { padding: 0.5rem 1rem 1rem; gap: 0.4rem; }

 .netflix-card { width: 160px; height: 90px; }



 /* ── Watchlist preview cards ─────────────────── */

 .watchlist-card img { height: 160px; }



 /* ── Paywall / Subs page ─────────────────────── */

 .paywall-tier-card { padding: 1.5rem 1rem; }



 /* ── Section padding ─────────────────────────── */

 .page-section { padding: 0 0.75rem; }

 .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

}



/* ── Very small phones (< 400px) ────────────────── */

@media (max-width: 400px) {

 .navbar { padding: 0.6rem 0.75rem; }

 .navbar .nav-brand { font-size: 0.95rem; }

 .results-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }

 #full-watchlist-grid, #watched-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

 .foryou-card { width: 180px; height: 290px; }

 .modal-title { font-size: 1.3rem; }

 

}



/* Themes */

body.theme-crimson { --bg-color: #0d0000; --neon-pink: #ff003c; --neon-blue: #ff2a2a; --neon-purple: #880000; --glass-bg: rgba(30, 5, 5, 0.8); --glass-border: rgba(255, 0, 60, 0.3); }

body.theme-abyss { --bg-color: #000510; --neon-pink: #0088ff; --neon-blue: #00f0ff; --neon-purple: #0044aa; --glass-bg: rgba(5, 10, 30, 0.8); --glass-border: rgba(0, 240, 255, 0.3); }



/* Toasts */

.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; pointer-events: none; }

.toast { background: rgba(10, 10, 15, 0.95); border-left: 4px solid var(--neon-blue); color: white; padding: 1rem 1.5rem; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(0,255,255,0.2); font-family: var(--font-family); transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 10px; pointer-events: auto; }

.toast.show { transform: translateX(0); }

.toast.success { border-left-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0,255,255,0.2); }

.toast.error { border-left-color: var(--neon-pink); box-shadow: 0 0 15px rgba(255,0,255,0.2); }

.toast.warning { border-left-color: #ffb400; box-shadow: 0 0 15px rgba(255,180,0,0.2); }



/* FOR YOU SWIPER - 3D CAROUSEL */

.carousel-3d-container {

 position: relative;

 width: 100%;

 max-width: 900px;

 height: 450px;

 margin: 0 auto;

 perspective: 1000px;

 display: flex;

 justify-content: center;

 align-items: center;

}



.foryou-card { 

 position: absolute;

 width: 280px; 

 height: 420px;

 background-color: #0a0a0f; 

 background-size: cover;

 background-position: center;

 background-repeat: no-repeat;

 border-radius: 12px; 

 transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 

 display: flex; 

 flex-direction: column; 

 justify-content: flex-end;

 cursor: pointer; 

 box-shadow: 0 10px 30px rgba(0,0,0,0.8); 

 overflow: hidden;

 border: 1px solid rgba(255,255,255,0.05);

}



/* 3D Carousel States */

.card-hidden {

 opacity: 0;

 transform: translateX(0) scale(0.8) translateZ(-200px);

 z-index: 0;

 pointer-events: none;

}

.card-prev {

 opacity: 0.6;

 transform: translateX(-110%) scale(0.85) translateZ(-100px);

 z-index: 1;

 pointer-events: auto;

}

.card-next {

 opacity: 0.6;

 transform: translateX(110%) scale(0.85) translateZ(-100px);

 z-index: 1;

 pointer-events: auto;

}

.card-active {

 opacity: 1;

 transform: translateX(0) scale(1) translateZ(0);

 z-index: 3;

 pointer-events: auto;

 box-shadow: 0 15px 40px rgba(255,0,128,0.4);

 border-color: var(--neon-pink);

}

.foryou-card::before {

 content: '';

 position: absolute;

 top: 0; left: 0; right: 0; bottom: 0;

 background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 70%);

 z-index: 1;

}



.foryou-remove-btn {

 position: absolute;

 top: 15px;

 right: 15px;

 width: 30px;

 height: 30px;

 border-radius: 50%;

 background: rgba(0, 0, 0, 0.5);

 color: var(--text-muted);

 display: flex;

 align-items: center;

 justify-content: center;

 font-size: 14px;

 cursor: pointer;

 z-index: 10;

 border: 1px solid var(--glass-border);

 backdrop-filter: blur(5px);

 transition: all 0.3s ease;

 opacity: 0; /* Hidden by default */

}



.foryou-card:hover .foryou-remove-btn {

 opacity: 1;

}



.foryou-remove-btn:hover {

 color: var(--neon-pink);

 border-color: var(--neon-pink);

 background: rgba(255, 0, 60, 0.2);

 box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);

 transform: scale(1.1);

}



.trailer-player {

 position: absolute;

 top: 0;

 left: 0;

 width: 100%;

 height: 100%;

 z-index: 0;

 overflow: hidden;

 background-color: black;

 border-radius: 12px;

}



.trailer-player iframe {

 position: absolute;

 top: -25%;

 left: -82.14%;

 width: 400%;

 height: 150%;

 pointer-events: none; /* Let hover events pass through to the card */

}



.foryou-unmute-btn {

 position: absolute;

 top: 15px;

 left: 15px;

 width: 36px;

 height: 36px;

 border-radius: 50%;

 background: rgba(0, 0, 0, 0.6);

 color: white;

 display: flex;

 align-items: center;

 justify-content: center;

 font-size: 16px;

 cursor: pointer;

 z-index: 10;

 border: 1px solid rgba(255, 255, 255, 0.2);

 backdrop-filter: blur(5px);

 transition: all 0.3s ease;

}



.foryou-unmute-btn:hover {

 background: rgba(255, 255, 255, 0.1);

 transform: scale(1.1);

}

.foryou-card-content {

 position: relative;

 z-index: 2;

 padding: 1.5rem;

 display: flex;

 flex-direction: column;

}

.foryou-card:hover { 

 box-shadow: 0 15px 30px rgba(255,0,128,0.3); 

 border-color: var(--neon-pink); 

}



/* Specific Hover Transforms for 3D layout to prevent jumping */

.card-active:hover {

 transform: translateX(0) scale(1.05) translateZ(0);

}

.card-prev:hover {

 transform: translateX(-110%) scale(0.9) translateZ(-100px);

 opacity: 0.8;

}

.card-next:hover {

 transform: translateX(110%) scale(0.9) translateZ(-100px);

 opacity: 0.8;

}

.foryou-card { 

 user-select: none;

 -webkit-user-select: none;

 -moz-user-select: none;

 -ms-user-select: none;

}

.foryou-card h3 { color: white; font-size: 1.4rem; margin-bottom: 0.5rem; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.foryou-card .anime-genre { display: inline-block; font-size: 0.7rem; color: var(--neon-blue); margin-bottom: 0.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

.foryou-card p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.4; display: none; /* Hide standard description for these cards */ }

.foryou-card .anime-reason { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); line-height: 1.4; font-style: italic; margin-top: auto; }



@keyframes containerHighlightPulse {

 0% { background: transparent; transform: scale(1); box-shadow: none; border-radius: 4px; }

 25% { background: rgba(255, 0, 128, 0.2); transform: scale(1.05); box-shadow: 0 0 20px rgba(255,0,128,0.5); padding: 5px; }

 50% { background: transparent; transform: scale(1); box-shadow: none; padding: 0;}

 75% { background: rgba(255, 0, 128, 0.2); transform: scale(1.05); box-shadow: 0 0 20px rgba(255,0,128,0.5); padding: 5px; }

 100% { background: transparent; transform: scale(1); box-shadow: none; border-radius: 4px; padding: 0; }

}



.container-highlight-anim {

 animation: containerHighlightPulse 2s ease-in-out;

}



.paywall-tier-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2); }

.paywall-tier-card:nth-child(2):hover { box-shadow: 0 10px 30px rgba(255, 0, 128, 0.4); }

/* Netflix Rows */

.netflix-row-container {

 width: 100%;

 margin-bottom: 2rem;

 overflow: hidden;

}



.netflix-row-title {

 color: white;

 font-size: 1.5rem;

 margin-bottom: 1rem;

 font-weight: 700;

 padding-left: 2rem;

 text-shadow: 0 2px 4px rgba(0,0,0,0.8);

}



.netflix-row {

 display: flex;

 overflow-x: auto;

 gap: 0.5rem;

 padding: 1rem 2rem 2rem 2rem;

 scroll-behavior: smooth;

 -webkit-overflow-scrolling: touch;

}



.netflix-row::-webkit-scrollbar {

 display: none;

}



.netflix-row {

 -ms-overflow-style: none;

 scrollbar-width: none;

}



.netflix-card {

 flex: 0 0 auto;

 width: 250px;

 height: 140px;

 position: relative;

 border-radius: 4px;

 background-size: cover;

 background-position: center;

 cursor: pointer;

 transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0.3s;

 box-shadow: 0 4px 10px rgba(0,0,0,0.5);

 transform-origin: center center;

 overflow: hidden;

}



.netflix-card:hover {

 transform: scale(1.35);

 z-index: 100;

 box-shadow: 0 10px 20px rgba(0,0,0,0.8);

 border: 1px solid rgba(255,255,255,0.2);

}



.netflix-card-title {

 position: absolute;

 bottom: 0;

 left: 0;

 right: 0;

 padding: 0.5rem;

 background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);

 color: white;

 font-size: 0.9rem;

 font-weight: bold;

 white-space: nowrap;

 overflow: hidden;

 text-overflow: ellipsis;

 opacity: 1;

 transition: opacity 0.3s;

}



.netflix-card:hover .netflix-card-title {

 opacity: 0; /* Hide title on hover so iframe is clean */

}



.netflix-card-iframe {

 position: absolute;

 top: 0;

 left: 0;

 width: 100%;

 height: 100%;

 border: none;

 pointer-events: none;

 opacity: 0;

 transition: opacity 0.3s ease-in-out;

 z-index: 2;

}



.netflix-card:hover .netflix-card-iframe.loaded {

 opacity: 1;

}

/* Small 3D Carousels for Netflix Rows */

.carousel-3d-small {

 height: 320px;

 max-width: 700px;

}

.foryou-card.card-small {

 width: 180px;

 height: 270px;

}



/* NETFLIX ROW SLIDERS */

.netflix-slider-wrapper {

 position: relative;

 width: 100%;

 /* No overflow:hidden so arrows don't get clipped */

}



.netflix-slider-track {

 display: flex;

 gap: 15px;

 width: 100%;

 padding: 30px 0; /* Add padding here so box-shadow fits inside the scrollable area */

}



.netflix-card {

 width: 180px;

 height: 270px;

 flex: 0 0 180px;

 position: relative;

 border-radius: 12px;

 overflow: hidden;

 cursor: pointer;

 box-shadow: 0 5px 15px rgba(0,0,0,0.5);

 transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

 border: 2px solid transparent;

}



.netflix-card:hover {

 transform: scale(1.05);

 border-color: var(--neon-pink);

 z-index: 10;

}



.netflix-arrow {

 position: absolute;

 top: 50%;

 transform: translateY(-50%);

 background: rgba(0, 0, 0, 0.7);

 color: white;

 border: none;

 font-size: 2rem;

 padding: 20px 10px;

 cursor: pointer;

 z-index: 20;

 transition: background 0.3s, opacity 0.3s;

 opacity: 0; /* hidden until row hover */

 height: 100%;

}



.netflix-slider-wrapper:hover .netflix-arrow {

 opacity: 1;

}



.netflix-arrow:hover {

 background: rgba(255, 0, 85, 0.8); /* neon pink tint */

}



.netflix-arrow.left-arrow {

 left: 0;

}



.netflix-arrow.right-arrow {

 right: 0;

}



/* HORIZONTAL AI CARDS */

.results-grid.horizontal-list {

 display: flex;

 flex-direction: column;

 gap: 1.5rem;

}

.horizontal-ai-card {

 display: flex;

 flex-direction: row;

 width: 100%;

 border-radius: 12px;

 background: rgba(10, 10, 15, 0.6);

 border: 1px solid rgba(0, 243, 255, 0.2);

 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);

 overflow: hidden;

 transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;

 animation: fadeInUp 0.5s ease-out forwards;

 opacity: 0;

 cursor: pointer;

}

.horizontal-ai-card:hover {

 transform: translateY(-5px);

 box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4);

 border-color: var(--neon-blue);

}

.horizontal-poster {

 width: 250px;

 min-width: 250px;

 background-size: cover;

 background-position: center;

 position: relative;

 border-right: 1px solid rgba(0, 243, 255, 0.2);

}

.horizontal-content {

 padding: 2rem;

 flex-grow: 1;

 display: flex;

 flex-direction: column;

 justify-content: center;

 border: none !important;

}



.terminal-reason {

 margin-top: 1.5rem;

 background: rgba(0, 0, 0, 0.8);

 border: 1px solid var(--neon-pink);

 border-radius: 5px;

 font-family: monospace;

 overflow: hidden;

}

.terminal-header {

 background: rgba(255, 0, 128, 0.2);

 padding: 0.3rem 0.8rem;

 color: var(--neon-pink);

 font-size: 0.8rem;

 font-weight: bold;

 border-bottom: 1px solid rgba(255, 0, 128, 0.3);

}

.terminal-body {

 padding: 1rem;

 color: #fff;

 font-size: 0.95rem;

 line-height: 1.5;

 text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);

}





@keyframes fadeInUp {

 from { opacity: 0; transform: translateY(20px); }

 to { opacity: 1; transform: translateY(0); }

}

@keyframes blink {

 0%, 100% { opacity: 1; }

 50% { opacity: 0; }

}



/* Ghost Protocol Toggle Switch */

.toggle-switch {

 position: relative;

 width: 44px;

 height: 22px;

}



.toggle-switch .slider {

 position: absolute;

 cursor: pointer;

 top: 0;

 left: 0;

 right: 0;

 bottom: 0;

 background-color: rgba(255, 255, 255, 0.1);

 transition: .4s;

 border-radius: 24px;

 border: 1px solid rgba(255, 255, 255, 0.2);

}



.toggle-switch .slider:before {

 position: absolute;

 content: "";

 height: 14px;

 width: 14px;

 left: 3px;

 bottom: 3px;

 background-color: #888;

 transition: .4s;

 border-radius: 50%;

}



.toggle-switch input:checked + .slider {

 background-color: rgba(255, 0, 128, 0.2);

 border-color: var(--neon-pink);

 box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);

}



.toggle-switch input:checked + .slider:before {

 transform: translateX(22px);

 background-color: var(--neon-pink);

 box-shadow: 0 0 10px var(--neon-pink);

}



.ghost-toggle-wrapper:hover span {

 color: white !important;

}



/* --- TERMINAL PINWALL --- */

.terminal-pinwall-container {

 width: 100%;

 height: 600px;

 background: rgba(0, 5, 0, 0.9);

 border: 1px solid #0f0;

 box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.1), 0 0 15px rgba(0, 255, 0, 0.2);

 border-radius: 8px;

 padding: 2rem;

 position: relative;

 overflow: hidden;

 display: flex;

 flex-direction: column;

}



/* Scanline effect */

.terminal-pinwall-container::before {

 content: " ";

 display: block;

 position: absolute;

 top: 0;

 left: 0;

 bottom: 0;

 right: 0;

 background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));

 z-index: 2;

 background-size: 100% 2px, 3px 100%;

 pointer-events: none;

}



.pinwall-grid {

 display: grid;

 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

 gap: 1.5rem;

 flex: 1;

 overflow-y: auto;

 padding-bottom: 2rem;

 position: relative;

 z-index: 3;

 /* Custom scrollbar for terminal */

}



.pinwall-grid::-webkit-scrollbar {

 width: 8px;

}

.pinwall-grid::-webkit-scrollbar-track {

 background: rgba(0, 20, 0, 0.5);

}

.pinwall-grid::-webkit-scrollbar-thumb {

 background: rgba(0, 255, 0, 0.3);

 border-radius: 4px;

}

.pinwall-grid::-webkit-scrollbar-thumb:hover {

 background: rgba(0, 255, 0, 0.6);

}



.pin-card {

 background: rgba(0, 20, 0, 0.8);

 border: 1px solid rgba(0, 255, 0, 0.2);

 padding: 1.5rem;

 border-radius: 4px;

 position: relative;

 transition: all 0.3s ease;

 display: flex;

 flex-direction: column;

}



.pin-card:hover {

 border-color: #0f0;

 box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);

 transform: translateY(-2px);

 background: rgba(0, 30, 0, 0.9);

}



.pin-card-header {

 display: flex;

 justify-content: space-between;

 align-items: center;

 border-bottom: 1px solid rgba(0, 255, 0, 0.2);

 padding-bottom: 0.8rem;

 margin-bottom: 1rem;

}



.pin-card-date {

 color: #555;

 font-size: 0.75rem;

 font-family: 'Courier New', Courier, monospace;

}



.pin-card-origin {

 color: var(--neon-pink);

 font-size: 0.75rem;

 font-family: 'Courier New', Courier, monospace;

}



.pin-card-title {

 color: #fff;

 font-family: 'Courier New', Courier, monospace;

 font-size: 1.1rem;

 font-weight: bold;

 text-shadow: 0 0 5px rgba(255,255,255,0.2);

 margin-bottom: 0.8rem;

 text-transform: uppercase;

}



.pin-card-title::before {

 content: '> ';

 color: #0f0;

}



.pin-card-content {

 color: #0f0;

 font-family: 'Courier New', Courier, monospace;

 font-size: 0.9rem;

 line-height: 1.6;

 flex: 1;

 text-shadow: 0 0 2px rgba(0,255,0,0.3);

}



/* CLI Admin Input */

.admin-cli-wrapper {

 position: relative;

 z-index: 3;

 margin-top: 1.5rem;

 border-top: 1px solid rgba(0, 255, 0, 0.3);

 padding-top: 1.5rem;

 display: flex;

 align-items: flex-start;

 gap: 15px;

 background: rgba(0, 10, 0, 0.9);

}



.cli-prompt {

 color: var(--neon-pink);

 font-family: 'Courier New', Courier, monospace;

 font-weight: bold;

 white-space: nowrap;

 padding-top: 0.5rem;

 text-shadow: 0 0 5px rgba(255, 0, 128, 0.5);

}



.cli-input-group {

 flex: 1;

 display: flex;

 flex-direction: column;

 gap: 1rem;

}



.cli-input {

 background: rgba(0, 20, 0, 0.5);

 border: 1px solid rgba(0, 255, 0, 0.3);

 color: #0f0;

 font-family: 'Courier New', Courier, monospace;

 font-size: 1rem;

 padding: 0.8rem 1rem;

 width: 100%;

 outline: none;

 border-radius: 2px;

}



.cli-input:focus {

 border: 1px solid #0f0;

 box-shadow: inset 0 0 10px rgba(0,255,0,0.1), 0 0 10px rgba(0,255,0,0.2);

}



.cli-input::placeholder {

 color: rgba(0, 255, 0, 0.2);

}



.cli-submit {

 background: transparent;

 border: 1px solid var(--neon-pink);

 color: var(--neon-pink);

 font-family: 'Courier New', Courier, monospace;

 padding: 0.8rem 2rem;

 cursor: pointer;

 align-self: flex-end;

 transition: all 0.2s;

 text-transform: uppercase;

 font-weight: bold;

 border-radius: 2px;

}



.cli-submit:hover {

 background: rgba(255, 0, 128, 0.1);

 box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);

 text-shadow: 0 0 5px var(--neon-pink);

}



/* --- SPLIT PINWALL LAYOUT --- */

.pin-col-container {

 display: flex;

 flex-direction: row;

 gap: 2rem;

 flex: 1;

 overflow: hidden;

 position: relative;

 z-index: 3;

 padding-bottom: 1rem;

}



.pin-col {

 flex: 1;

 display: flex;

 flex-direction: column;

 gap: 1.5rem;

 overflow-y: auto;

 padding-right: 1rem;

}



.pin-col::-webkit-scrollbar {

 width: 6px;

}

.pin-col::-webkit-scrollbar-track {

 background: rgba(0, 20, 0, 0.5);

}

.pin-col::-webkit-scrollbar-thumb {

 background: rgba(0, 255, 0, 0.3);

 border-radius: 4px;

}



.col-header {

 text-align: center;

 font-family: 'Courier New', Courier, monospace;

 font-weight: bold;

 font-size: 1.2rem;

 padding-bottom: 1rem;

 border-bottom: 2px dashed rgba(255,255,255,0.2);

 margin-bottom: 1rem;

 position: sticky;

 top: 0;

 background: rgba(0, 5, 0, 0.95);

 z-index: 10;

}



.col-header.news {

 color: #ffd700;

 border-bottom-color: rgba(255, 215, 0, 0.5);

 text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);

}



.col-header.patch {

 color: #0f0;

 border-bottom-color: rgba(0, 255, 0, 0.5);

 text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);

}



/* --- THEMED CARDS --- */

.pin-card.news {

 border-color: rgba(255, 215, 0, 0.4);

}

.pin-card.news:hover {

 border-color: #ffd700;

 box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);

}

.pin-card.news .pin-card-header {

 border-bottom-color: rgba(255, 215, 0, 0.3);

}

.pin-card.news .pin-card-origin {

 color: #ffd700;

}

.pin-card.news .pin-card-title::before {

 color: #ffd700;

}

.pin-card.news .pin-card-content {

 color: #fff;

 text-shadow: 0 0 2px rgba(255,255,255,0.2);

}



.pin-card.patch {

 border-color: rgba(0, 255, 0, 0.3);

}

.pin-card.patch:hover {

 border-color: #0f0;

 box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);

}

.pin-card.patch .pin-card-header {

 border-bottom-color: rgba(0, 255, 0, 0.3);

}



/* Type Selector */

.cli-select {

 background: rgba(0, 20, 0, 0.5);

 border: 1px solid var(--neon-pink);

 color: var(--neon-pink);

 font-family: 'Courier New', Courier, monospace;

 font-size: 1rem;

 padding: 0.8rem 1rem;

 outline: none;

 border-radius: 2px;

 cursor: pointer;

}

.cli-select option {

 background: #000;

 color: #0f0;

}



/* Delete Button */

.delete-post-btn {

 cursor: pointer;

 color: #ff4444;

 font-weight: bold;

 font-family: monospace;

 transition: all 0.2s;

}

.delete-post-btn:hover {

 color: #ff0000;

 text-shadow: 0 0 5px #ff0000;

}

.hidden {

 display: none !important;

}



/* ---- Trailer Animations ---- */

.foryou-card-content {

 container-type: size;

 height: 100%;

}

.foryou-card .card-bg,

.foryou-card .foryou-card-content .anime-genre,

.foryou-card .foryou-card-content .anime-reason,

.foryou-card .foryou-remove-btn {

 transition: opacity 0.5s ease;

}

.foryou-card .anime-title {

 transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);

 transform-origin: top left;

 display: -webkit-box;

 -webkit-line-clamp: 4;

 -webkit-box-orient: vertical;

 overflow: hidden;

}



/* Playing State */

.foryou-card.trailer-playing .card-bg,

.foryou-card.trailer-playing .foryou-card-content .anime-genre,

.foryou-card.trailer-playing .foryou-card-content .anime-reason,

.foryou-card.trailer-playing .foryou-remove-btn {

 opacity: 0 !important;

 pointer-events: none;

}

.foryou-card.trailer-playing .anime-title {

 transform: translateY(calc(100cqh - 5rem)); 

 text-shadow: 0 2px 15px rgba(0,0,0,1), 0 0 5px rgba(0,0,0,0.8);

}



/* Mobile Overrides for Horizontal AI Cards */

@media (max-width: 768px) {

    /* Fix overlap between login button and hamburger menu */
    .auth-section {
        flex: 0 1 auto !important;
        margin-right: 15px; margin-left: auto;
    }
    .nav-brand {
        flex: 1 !important;
        white-space: nowrap;
    }
    #btn-login-modal {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    #nav-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .navbar .nav-brand svg {
        width: 38px !important;
        height: 38px !important;
    }
    .mobile-menu-btn svg {
        width: 40px !important;
        height: 40px !important;
    }



 .horizontal-ai-card { 

 flex-direction: column !important; 

 }

 .horizontal-poster {

 width: 100% !important; 

 min-width: 100% !important;

 height: 220px !important;

 border-right: none !important;

 border-bottom: 1px solid rgba(0, 243, 255, 0.2) !important;

 }

 .horizontal-content { 

 padding: 1.5rem 1rem !important; 

 }

}



/* --- UI Redesign: Toggle Switch & Action Bar --- */

.action-bar-container {

 display: flex;

 flex-wrap: wrap;

 justify-content: center;

 gap: 1.5rem;

 align-items: center;

 margin-top: 2rem;

 padding: 1rem;

 position: relative;

 z-index: 100;

}



.premium-btn {

 background: linear-gradient(45deg, rgba(255, 0, 128, 0.1), rgba(0, 243, 255, 0.1));

 border: 1px solid var(--neon-pink);

 color: white;

 padding: 0.8rem 1.5rem;

 font-size: 1rem;

 font-weight: bold;

 border-radius: 8px;

 cursor: pointer;

 backdrop-filter: blur(10px);

 box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);

 transition: all 0.3s ease;

 display: flex;

 align-items: center;

 gap: 0.8rem;

 text-transform: uppercase;

 letter-spacing: 1px;

}

.premium-btn:hover {

 background: linear-gradient(45deg, rgba(255, 0, 128, 0.3), rgba(0, 243, 255, 0.3));

 box-shadow: 0 0 25px rgba(255, 0, 128, 0.6);

 transform: translateY(-2px);

}



.toggle-switch-label {

 display: flex;

 align-items: center;

 gap: 1rem;

 cursor: pointer;

 color: white;

 font-size: 0.95rem;

 transition: color 0.3s ease;

}



.toggle-switch {

 position: relative;

 width: 44px;

 height: 24px;

 background: rgba(255, 255, 255, 0.1);

 border-radius: 12px;

 border: 1px solid rgba(255, 255, 255, 0.2);

 transition: all 0.3s ease;

 display: inline-block;

}

.toggle-switch::after {

 content: '';

 position: absolute;

 top: 2px;

 left: 2px;

 width: 18px;

 height: 18px;

 background: white;

 border-radius: 50%;

 transition: transform 0.3s ease;

}

input[type="checkbox"].toggle-input {

 display: none;

}

input[type="checkbox"].toggle-input:checked + .toggle-switch {

 background: var(--neon-pink);

 border-color: var(--neon-pink);

 box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);

}

input[type="checkbox"].toggle-input:checked + .toggle-switch::after {

 transform: translateX(20px);

}



/* --- Custom Tooltips --- */

.has-tooltip {

 position: relative;

}

.custom-tooltip {

 position: absolute;

 bottom: calc(100% + 10px);

 left: 50%;

 transform: translateX(-50%) translateY(10px);

 background: rgba(10, 10, 15, 0.95);

 border: 1px solid var(--neon-pink);

 padding: 0.8rem 1rem;

 border-radius: 8px;

 font-size: 0.8rem;

 color: white;

 width: max-content;

 max-width: 250px;

 text-align: center;

 line-height: 1.4;

 box-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 10px rgba(255,0,128,0.3);

 opacity: 0;

 pointer-events: none;

 transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

 z-index: 200;

}

.custom-tooltip::after {

 content: '';

 position: absolute;

 top: 100%;

 left: 50%;

 transform: translateX(-50%);

 border-width: 6px;

 border-style: solid;

 border-color: var(--neon-pink) transparent transparent transparent;

}

.has-tooltip:hover .custom-tooltip {

 opacity: 1;

 transform: translateX(-50%) translateY(0);

}



/* FOOTER & LEGAL MODALS */

.site-footer {

 text-align: center;

 padding: 3rem 1rem;

 margin-top: 5rem;

 background: linear-gradient(to top, rgba(0, 243, 255, 0.05), transparent);

 border-top: 1px solid rgba(0, 243, 255, 0.2);

}

.footer-links {

 display: flex;

 justify-content: center;

 gap: 2rem;

 margin-bottom: 1.5rem;

 flex-wrap: wrap;

}

.footer-links a {

 color: rgba(255, 255, 255, 0.5);

 text-decoration: none;

 font-size: 0.85rem;

 text-transform: uppercase;

 letter-spacing: 2px;

 transition: all 0.3s ease;

 cursor: pointer;

 position: relative;

}

.footer-links a:hover {

 color: var(--neon-blue);

 text-shadow: 0 0 10px var(--neon-blue);

}

.footer-copyright {

 color: rgba(255, 255, 255, 0.3);

 font-size: 0.75rem;

 letter-spacing: 1px;

 font-family: monospace;

}



.legal-modal {

 position: fixed;

 top: 0;

 left: 0;

 width: 100%;

 height: 100%;

 background: rgba(0, 0, 0, 0.8);

 backdrop-filter: blur(15px);

 -webkit-backdrop-filter: blur(15px);

 z-index: 9999;

 display: flex;

 align-items: center;

 justify-content: center;

 opacity: 0;

 pointer-events: none;

 transition: opacity 0.4s ease;

}

.legal-modal.active {

 opacity: 1;

 pointer-events: auto;

}

.legal-modal-content {

 background: rgba(10, 10, 15, 0.85);

 border: 1px solid rgba(0, 243, 255, 0.3);

 border-radius: 16px;

 width: 90%;

 max-width: 800px;

 max-height: 80vh;

 overflow-y: auto;

 padding: 3rem;

 position: relative;

 box-shadow: 0 0 40px rgba(0, 243, 255, 0.15), inset 0 0 20px rgba(0, 243, 255, 0.05);

 transform: translateY(30px) scale(0.95);

 transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

 text-align: left;

}

.legal-modal.active .legal-modal-content {

 transform: translateY(0) scale(1);

}

.legal-modal-content h1 {

 font-size: 2.2rem;

 color: transparent;

 background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));

 -webkit-background-clip: text;

 -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);

 margin-top: 0;

 border-bottom: 2px solid rgba(0, 243, 255, 0.2);

 padding-bottom: 1rem;

 text-transform: uppercase;

 letter-spacing: 2px;

}

.legal-modal-content h2 {

 color: var(--neon-pink);

 font-size: 1.1rem;

 text-transform: uppercase;

 letter-spacing: 1px;

 margin-top: 2rem;

 margin-bottom: 1rem;

}

.legal-modal-content p, .legal-modal-content li {

 color: rgba(255, 255, 255, 0.7);

 line-height: 1.8;

 margin-bottom: 1rem;

 font-size: 0.95rem;

}

.legal-modal-content a {

 color: var(--neon-blue);

 text-decoration: none;

 border-bottom: 1px dashed var(--neon-blue);

 padding-bottom: 2px;

 transition: all 0.3s;

}

.legal-modal-content a:hover {

 color: var(--neon-pink);

 border-bottom-color: var(--neon-pink);

 text-shadow: 0 0 8px var(--neon-pink);

}

.legal-close {

 position: absolute;

 top: 1.5rem;

 right: 1.5rem;

 font-size: 2rem;

 color: rgba(255, 255, 255, 0.3);

 cursor: pointer;

 background: none;

 border: none;

 padding: 0.5rem;

 transition: all 0.3s ease;

 line-height: 1;

}

.legal-close:hover {

 color: var(--neon-pink);

 transform: scale(1.1) rotate(90deg);

 text-shadow: 0 0 10px var(--neon-pink);

}

/* Scrollbar for legal modal */

.legal-modal-content::-webkit-scrollbar {

 width: 6px;

}

.legal-modal-content::-webkit-scrollbar-track {

 background: rgba(0, 0, 0, 0.3);

 border-radius: 3px;

 margin-block: 10px;

}

.legal-modal-content::-webkit-scrollbar-thumb {

 background: rgba(0, 243, 255, 0.2);

 border-radius: 3px;

}

.legal-modal-content::-webkit-scrollbar-thumb:hover {

 background: rgba(0, 243, 255, 0.5);

}



/* SEO & Mobile Accessibility */

@media (max-width: 768px) {

    /* Fix overlap between login button and hamburger menu */
    .auth-section {
        flex: 0 1 auto !important;
        margin-right: 15px; margin-left: auto;
    }
    .nav-brand {
        flex: 1 !important;
        white-space: nowrap;
    }
    #btn-login-modal {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    #nav-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .navbar .nav-brand svg {
        width: 38px !important;
        height: 38px !important;
    }
    .mobile-menu-btn svg {
        width: 40px !important;
        height: 40px !important;
    }



 .seo-touch-targets a, .seo-touch-targets button, a.nav-link, button {

 min-width: 48px;

 min-height: 48px;

 margin: 8px 0;

 }

}

input, select, textarea {

 font-size: 16px !important; /* Prevents iOS Safari Auto-Zoom */

}



/* --- PREMIUM CYBERPUNK AUTH MODAL --- */

#auth-modal {

 position: fixed;

 top: 0; left: 0;

 width: 100vw; height: 100vh;

 background: rgba(5, 5, 10, 0.85);

 backdrop-filter: blur(12px);

 z-index: 10000;

 display: flex;

 justify-content: center;

 align-items: center;

 opacity: 1;

 transition: opacity 0.3s ease, visibility 0.3s ease;

}

#auth-modal.hidden {

 opacity: 0;

 visibility: hidden;

 display: flex !important; /* Keep flex for transition, hide with opacity/visibility */

 pointer-events: none;

}

.auth-modal-content {

 background: linear-gradient(145deg, rgba(15, 15, 25, 0.9), rgba(5, 5, 10, 0.95));

 border: 1px solid rgba(0, 243, 255, 0.3);

 box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 243, 255, 0.15);

 border-radius: 16px;

 width: 100%;

 max-width: 420px;

 padding: 2.5rem 2rem;

 position: relative;

 transform: translateY(0);

 transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

 overflow: hidden;

}

#auth-modal.hidden .auth-modal-content {

 transform: translateY(30px);

}

.auth-modal-content::before {

 content: '';

 position: absolute;

 top: 0; left: 0; width: 100%; height: 2px;

 background: linear-gradient(90deg, transparent, #00f3ff, transparent);

 opacity: 0.7;

}



.close-btn {

 position: absolute;

 top: 15px; right: 15px;

 background: transparent;

 border: none;

 color: rgba(255, 255, 255, 0.6);

 font-size: 1.8rem;

 cursor: pointer;

 transition: color 0.2s, transform 0.2s;

 line-height: 1;

}

.close-btn:hover {

 color: #ff003c;

 transform: scale(1.1) rotate(90deg);

}



.auth-header {

 text-align: center;

 margin-bottom: 2rem;

}



.auth-subtitle {

 color: rgba(0, 243, 255, 0.7);

 font-family: monospace;

 font-size: 0.85rem;

 margin: 0;

 letter-spacing: 1px;

}



.auth-tabs {

 display: flex;

 gap: 10px;

 margin-bottom: 2rem;

}

.auth-tab {

 flex: 1;

 background: rgba(255, 255, 255, 0.03);

 border: 1px solid rgba(255, 255, 255, 0.1);

 color: rgba(255, 255, 255, 0.6);

 padding: 10px;

 border-radius: 8px;

 font-family: 'Outfit', sans-serif;

 font-weight: 600;

 letter-spacing: 1px;

 cursor: pointer;

 transition: all 0.3s ease;

}

.auth-tab.active {

 background: rgba(0, 243, 255, 0.1);

 border-color: #00f3ff;

 color: #00f3ff;

 box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);

}



.auth-form-container {

 display: flex;

 flex-direction: column;

 gap: 1.2rem;

}

.input-group {

 position: relative;

}

.cyber-input {

 width: 100%;

 background: rgba(0, 0, 0, 0.4);

 border: 1px solid rgba(255, 255, 255, 0.15);

 padding: 14px 16px;

 border-radius: 8px;

 color: #fff;

 font-family: 'Outfit', sans-serif;

 font-size: 1rem;

 transition: all 0.3s ease;

 box-sizing: border-box;

}

.cyber-input:focus {

 outline: none;

 border-color: #00f3ff;

 background: rgba(0, 243, 255, 0.05);

}

.input-border {

 position: absolute;

 bottom: 0; left: 0; width: 0; height: 2px;

 background: #00f3ff;

 transition: width 0.3s ease;

 border-radius: 0 0 8px 8px;

}

.cyber-input:focus ~ .input-border {

 width: 100%;

}



.auth-error-msg {

 color: #ff003c;

 font-size: 0.85rem;

 text-align: center;

 min-height: 1.2rem;

 font-family: monospace;

}



.cyber-btn {

 position: relative;

 padding: 14px;

 border-radius: 8px;

 font-family: 'Outfit', sans-serif;

 font-weight: 700;

 letter-spacing: 2px;

 cursor: pointer;

 overflow: hidden;

 transition: all 0.3s ease;

 display: flex;

 justify-content: center;

 align-items: center;

 width: 100%;

 border: none;

}

.primary-btn {

 background: linear-gradient(90deg, #00f3ff, #0088ff);

 color: #000;

 box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);

}

.primary-btn:hover {

 box-shadow: 0 0 30px rgba(0, 243, 255, 0.7);

 transform: translateY(-2px);

}

.primary-btn .btn-text {

 position: relative;

 z-index: 2;

}



.divider {

 display: flex;

 align-items: center;

 text-align: center;

 margin: 1rem 0;

}

.divider::before, .divider::after {

 content: '';

 flex: 1;

 border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.divider-text {

 padding: 0 15px;

 color: rgba(255, 255, 255, 0.4);

 font-size: 0.75rem;

 font-family: monospace;

 letter-spacing: 1px;

}



.google-btn {

 background: #fff;

 color: #333;

 display: flex;

 justify-content: center;

 align-items: center;

 gap: 12px;

 padding: 12px;

 border-radius: 8px;

 border: none;

 font-family: 'Outfit', sans-serif;

 font-weight: 600;

 cursor: pointer;

 transition: all 0.2s ease;

 width: 100%;

}

.google-btn:hover {

 background: #f0f0f0;

 transform: translateY(-2px);

 box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);

}

.google-icon {

 width: 20px; height: 20px;

}

/* Loading Spinner */

.loading-spinner {

 width: 40px;

 height: 40px;

 border: 4px solid rgba(0, 255, 255, 0.1);

 border-left-color: var(--neon-blue);

 border-radius: 50%;

 animation: spin 1s linear infinite;

 margin: 0 auto 1rem auto;

}

@keyframes spin {

 to { transform: rotate(360deg); }
}

/* MAGAZINE LAYOUT INSIGHTS */
.magazine-layout p, .magazine-layout ul, .magazine-layout li { font-size: 1.15rem; line-height: 2.1; margin-bottom: 2.5rem; color: #d1d5db; font-weight: 400; letter-spacing: 0.3px; font-family: 'Outfit', sans-serif; }
.magazine-layout h3, .magazine-layout h4 { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.2); margin-top: 2.5rem; margin-bottom: 1.5rem; font-size: 1.6rem; letter-spacing: -0.5px; }
.magazine-layout p strong { color: var(--neon-pink); font-weight: 800; text-shadow: 0 0 10px rgba(255,0,255,0.3); }
.magazine-layout .first-paragraph::first-letter { float: left; font-size: 4.5rem; line-height: 0.8; padding-right: 12px; padding-top: 8px; color: var(--neon-pink); font-weight: 800; text-shadow: 0 0 20px var(--neon-pink); }
.magazine-layout .first-paragraph { display: flow-root; margin-bottom: 2.5rem; }
.magazine-layout .first-paragraph { display: flow-root; margin-bottom: 2.5rem; }
.magazine-layout h2 { font-size: 2.2rem; color: #ffffff; text-shadow: 0 0 15px rgba(255,255,255,0.3); margin-top: 5rem; margin-bottom: 2.5rem; font-weight: 600; letter-spacing: -0.5px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.8rem; }
.magazine-layout .pull-quote { font-size: 1.5rem; line-height: 1.7; font-weight: 300; border-left: 2px solid var(--neon-pink); padding: 1.5rem 2.5rem; margin: 4.5rem 0; background: linear-gradient(90deg, rgba(255,0,255,0.03), transparent); color: #ffffff; border-radius: 0 12px 12px 0; letter-spacing: -0.3px; }
.magazine-layout .article-header { position: relative; width: 100%; height: 30vh; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem 3rem; overflow: hidden; border-bottom: 2px solid var(--neon-blue); box-shadow: 0 5px 30px rgba(0, 255, 255, 0.1); }
.magazine-layout .article-body { position: relative; max-width: 800px; margin: 0 auto; padding: 6rem 2rem; background-color: #050505; z-index: 10; display: block; }

.blog-inline-gif {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 3rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 243, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.blog-inline-gif:hover {
    opacity: 1;
}



/* TAG STYLES */
.tag {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-right: 8px;
  display: inline-block;
  margin-bottom: 5px;
  box-shadow: none !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.tag:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}
.tag-pink, .tag-blue, .tag-purple {
  /* Inherit the elegant design regardless of specific color class */
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: none !important;
}
/* Fallback */
.tag:not(.tag-pink):not(.tag-purple):not(.tag-blue):nth-child(n) {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Anime Link Styling */
.anime-link { color: #ff00ff; text-decoration: underline; text-decoration-color: rgba(255, 0, 255, 0.5); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: 0.3s; font-weight: 600; }
.anime-link:hover { color: #00f0ff; text-decoration-color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.8); }



  10% { transform: translate(-4px, -2px) skewX(2deg); opacity: 0.8; }
  20% { transform: translate(4px, 2px) skewX(-2deg); opacity: 0.9; }
  30% { transform: translate(-4px, 2px) skewX(2deg); opacity: 0.8; }
  40% { transform: translate(4px, -2px) skewX(-2deg); opacity: 0.9; }
  50% { transform: translate(-2px, -4px) skewX(1deg); opacity: 0.7; }
  60% { transform: translate(2px, 4px) skewX(-1deg); opacity: 0.8; }
  70% { transform: translate(-4px, 2px) skewX(3deg); opacity: 0.9; }
  80% { transform: translate(4px, -2px) skewX(-3deg); opacity: 0.8; }
  90% { transform: translate(-2px, 4px) skewX(1deg); opacity: 0.9; }



  15% { transform: translate(4px, 2px) skewX(-2deg); opacity: 0.9; }
  25% { transform: translate(-4px, -2px) skewX(2deg); opacity: 0.8; }
  35% { transform: translate(4px, -2px) skewX(-2deg); opacity: 0.9; }
  45% { transform: translate(-4px, 2px) skewX(2deg); opacity: 0.8; }
  55% { transform: translate(2px, 4px) skewX(-1deg); opacity: 0.7; }
  65% { transform: translate(-2px, -4px) skewX(1deg); opacity: 0.8; }
  75% { transform: translate(4px, -2px) skewX(-3deg); opacity: 0.9; }
  85% { transform: translate(-4px, 2px) skewX(3deg); opacity: 0.8; }
  95% { transform: translate(2px, -4px) skewX(-1deg); opacity: 0.9; }




  5% { clip: rect(65px, 9999px, 30px, 0); }
  10% { clip: rect(34px, 9999px, 12px, 0); }
  15% { clip: rect(78px, 9999px, 90px, 0); }
  20% { clip: rect(2px, 9999px, 45px, 0); }
  25% { clip: rect(89px, 9999px, 12px, 0); }
  30% { clip: rect(45px, 9999px, 76px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 34px, 0); }
  45% { clip: rect(23px, 9999px, 67px, 0); }
  50% { clip: rect(89px, 9999px, 12px, 0); }
  55% { clip: rect(12px, 9999px, 89px, 0); }
  60% { clip: rect(56px, 9999px, 23px, 0); }
  65% { clip: rect(90px, 9999px, 45px, 0); }
  70% { clip: rect(23px, 9999px, 78px, 0); }
  75% { clip: rect(67px, 9999px, 12px, 0); }
  80% { clip: rect(34px, 9999px, 89px, 0); }
  85% { clip: rect(89px, 9999px, 34px, 0); }
  90% { clip: rect(12px, 9999px, 67px, 0); }
  95% { clip: rect(78px, 9999px, 23px, 0); }
  100% { clip: rect(45px, 9999px, 90px, 0); }



  5% { clip: rect(12px, 9999px, 45px, 0); }
  10% { clip: rect(89px, 9999px, 23px, 0); }
  15% { clip: rect(34px, 9999px, 78px, 0); }
  20% { clip: rect(90px, 9999px, 12px, 0); }
  25% { clip: rect(23px, 9999px, 89px, 0); }
  30% { clip: rect(67px, 9999px, 34px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 45px, 0); }
  45% { clip: rect(34px, 9999px, 89px, 0); }
  50% { clip: rect(90px, 9999px, 23px, 0); }
  55% { clip: rect(23px, 9999px, 78px, 0); }
  60% { clip: rect(67px, 9999px, 12px, 0); }
  65% { clip: rect(12px, 9999px, 67px, 0); }
  70% { clip: rect(89px, 9999px, 34px, 0); }
  75% { clip: rect(45px, 9999px, 90px, 0); }
  80% { clip: rect(90px, 9999px, 45px, 0); }
  85% { clip: rect(23px, 9999px, 89px, 0); }
  90% { clip: rect(67px, 9999px, 12px, 0); }
  95% { clip: rect(12px, 9999px, 78px, 0); }
  100% { clip: rect(78px, 9999px, 34px, 0); }



@keyframes twitch-flicker-heavy {
 0%, 88%, 94%, 98%, 100% { transform: none; opacity: 1; text-shadow: 0 0 10px var(--neon-pink); filter: none; }
 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; text-shadow: -4px 0 white, 4px 0 rgba(255,255,255,0.8), 0 0 20px white; filter: brightness(1.5); }
 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; text-shadow: 0 0 5px white; filter: none; }
 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; text-shadow: 4px 0 white, -4px 0 rgba(255,255,255,0.8), 0 0 15px white; filter: brightness(1.5); }
 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; text-shadow: -5px 0 white, 0 0 20px white; filter: brightness(1.5); }
 96% { transform: skewX(10deg); opacity: 0.8; text-shadow: 5px 0 white, 0 0 20px white; filter: brightness(2); }
}


.twitch-flicker {
    animation: twitch-flicker 6s infinite;
}






  5% { clip: rect(65px, 9999px, 30px, 0); }
  10% { clip: rect(34px, 9999px, 12px, 0); }
  15% { clip: rect(78px, 9999px, 90px, 0); }
  20% { clip: rect(2px, 9999px, 45px, 0); }
  25% { clip: rect(89px, 9999px, 12px, 0); }
  30% { clip: rect(45px, 9999px, 76px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 34px, 0); }
  45% { clip: rect(23px, 9999px, 67px, 0); }
  50% { clip: rect(89px, 9999px, 12px, 0); }
  55% { clip: rect(12px, 9999px, 89px, 0); }
  60% { clip: rect(56px, 9999px, 23px, 0); }
  65% { clip: rect(90px, 9999px, 45px, 0); }
  70% { clip: rect(23px, 9999px, 78px, 0); }
  75% { clip: rect(67px, 9999px, 12px, 0); }
  80% { clip: rect(34px, 9999px, 89px, 0); }
  85% { clip: rect(89px, 9999px, 34px, 0); }
  90% { clip: rect(12px, 9999px, 67px, 0); }
  95% { clip: rect(78px, 9999px, 23px, 0); }
  100% { clip: rect(45px, 9999px, 90px, 0); }



  5% { clip: rect(12px, 9999px, 45px, 0); }
  10% { clip: rect(89px, 9999px, 23px, 0); }
  15% { clip: rect(34px, 9999px, 78px, 0); }
  20% { clip: rect(90px, 9999px, 12px, 0); }
  25% { clip: rect(23px, 9999px, 89px, 0); }
  30% { clip: rect(67px, 9999px, 34px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 45px, 0); }
  45% { clip: rect(34px, 9999px, 89px, 0); }
  50% { clip: rect(90px, 9999px, 23px, 0); }
  55% { clip: rect(23px, 9999px, 78px, 0); }
  60% { clip: rect(67px, 9999px, 12px, 0); }
  65% { clip: rect(12px, 9999px, 67px, 0); }
  70% { clip: rect(89px, 9999px, 34px, 0); }
  75% { clip: rect(45px, 9999px, 90px, 0); }
  80% { clip: rect(90px, 9999px, 45px, 0); }
  85% { clip: rect(23px, 9999px, 89px, 0); }
  90% { clip: rect(67px, 9999px, 12px, 0); }
  95% { clip: rect(12px, 9999px, 78px, 0); }
  100% { clip: rect(78px, 9999px, 34px, 0); }







@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 83px, 0); }
  5% { clip: rect(65px, 9999px, 30px, 0); }
  10% { clip: rect(34px, 9999px, 12px, 0); }
  15% { clip: rect(78px, 9999px, 90px, 0); }
  20% { clip: rect(2px, 9999px, 45px, 0); }
  25% { clip: rect(89px, 9999px, 12px, 0); }
  30% { clip: rect(45px, 9999px, 76px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 34px, 0); }
  45% { clip: rect(23px, 9999px, 67px, 0); }
  50% { clip: rect(89px, 9999px, 12px, 0); }
  55% { clip: rect(12px, 9999px, 89px, 0); }
  60% { clip: rect(56px, 9999px, 23px, 0); }
  65% { clip: rect(90px, 9999px, 45px, 0); }
  70% { clip: rect(23px, 9999px, 78px, 0); }
  75% { clip: rect(67px, 9999px, 12px, 0); }
  80% { clip: rect(34px, 9999px, 89px, 0); }
  85% { clip: rect(89px, 9999px, 34px, 0); }
  90% { clip: rect(12px, 9999px, 67px, 0); }
  95% { clip: rect(78px, 9999px, 23px, 0); }
  100% { clip: rect(45px, 9999px, 90px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  5% { clip: rect(12px, 9999px, 45px, 0); }
  10% { clip: rect(89px, 9999px, 23px, 0); }
  15% { clip: rect(34px, 9999px, 78px, 0); }
  20% { clip: rect(90px, 9999px, 12px, 0); }
  25% { clip: rect(23px, 9999px, 89px, 0); }
  30% { clip: rect(67px, 9999px, 34px, 0); }
  35% { clip: rect(12px, 9999px, 90px, 0); }
  40% { clip: rect(78px, 9999px, 45px, 0); }
  45% { clip: rect(34px, 9999px, 89px, 0); }
  50% { clip: rect(90px, 9999px, 23px, 0); }
  55% { clip: rect(23px, 9999px, 78px, 0); }
  60% { clip: rect(67px, 9999px, 12px, 0); }
  65% { clip: rect(12px, 9999px, 67px, 0); }
  70% { clip: rect(89px, 9999px, 34px, 0); }
  75% { clip: rect(45px, 9999px, 90px, 0); }
  80% { clip: rect(90px, 9999px, 45px, 0); }
  85% { clip: rect(23px, 9999px, 89px, 0); }
  90% { clip: rect(67px, 9999px, 12px, 0); }
  95% { clip: rect(12px, 9999px, 78px, 0); }
  100% { clip: rect(78px, 9999px, 34px, 0); }
}

@keyframes twitch-flicker {
 0%, 88%, 94%, 98%, 100% { transform: none; opacity: 1; text-shadow: 0 0 10px var(--neon-pink); filter: none; }
 89% { transform: skewX(15deg) rotate(-2deg); opacity: 0.8; text-shadow: -4px 0 white, 4px 0 rgba(255,255,255,0.8), 0 0 20px white; filter: brightness(1.5); }
 90% { transform: skewX(-10deg) translateY(2px); opacity: 0.3; text-shadow: 0 0 5px white; filter: none; }
 91% { transform: skewX(5deg) rotate(4deg); opacity: 0.9; text-shadow: 4px 0 white, -4px 0 rgba(255,255,255,0.8), 0 0 15px white; filter: brightness(1.5); }
 95% { transform: skewX(-20deg) rotate(-3deg) translateY(-2px); opacity: 0.5; text-shadow: -5px 0 white, 0 0 20px white; filter: brightness(1.5); }
 96% { transform: skewX(10deg); opacity: 0.8; text-shadow: 5px 0 white, 0 0 20px white; filter: brightness(2); }
}

/* --- NEW CYBER GLITCH ANIMATION FOR ALL TITLES (MOBILE ONLY) --- */


@media (max-width: 768px) {

    /* Fix overlap between login button and hamburger menu */
    .auth-section {
        flex: 0 1 auto !important;
        margin-right: 15px; margin-left: auto;
    }
    .nav-brand {
        flex: 1 !important;
        white-space: nowrap;
    }
    #btn-login-modal {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    #nav-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .navbar .nav-brand svg {
        width: 38px !important;
        height: 38px !important;
    }
    .mobile-menu-btn svg {
        width: 40px !important;
        height: 40px !important;
    }


    

    @keyframes pure-color-glitch {
        0%, 90%, 98%, 100% {
            filter: none;
        }
        92% {
            filter: hue-rotate(180deg) saturate(300%) drop-shadow(5px 0 0 rgba(0, 243, 255, 0.8)) drop-shadow(-5px 0 0 rgba(255, 0, 128, 0.8));
        }
        96% {
            filter: hue-rotate(-90deg) saturate(300%) drop-shadow(-5px 0 0 rgba(255, 0, 128, 0.8)) drop-shadow(5px 0 0 rgba(0, 243, 255, 0.8));
        }
    }
}

/* --- UNIFIED SECTION TITLES --- */
.main-section-title {
    font-size: 4rem !important;
    letter-spacing: 2px !important;
}

@media (max-width: 768px) {

    /* Fix overlap between login button and hamburger menu */
    .auth-section {
        flex: 0 1 auto !important;
        margin-right: 15px; margin-left: auto;
    }
    .nav-brand {
        flex: 1 !important;
        white-space: nowrap;
    }
    #btn-login-modal {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    #nav-avatar {
        width: 42px !important;
        height: 42px !important;
    }
    .navbar .nav-brand svg {
        width: 38px !important;
        height: 38px !important;
    }
    .mobile-menu-btn svg {
        width: 40px !important;
        height: 40px !important;
    }


    .main-section-title {
        font-size: 3rem !important;
    }
    .wool-text-container {
        font-size: 3rem !important;
    }
\n\n\n\n



}


/* --- MASSIVE PC-ONLY GLITCH EFFECT --- */
@media (min-width: 769px) {
    .pc-glitch {
        position: relative;
        display: inline-block;
        white-space: nowrap;
        text-shadow: -2px 0 rgba(0, 243, 255, 0.9), 2px 0 rgba(255, 0, 128, 0.9);
    }
    
    .pc-glitch::before,
    .pc-glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        pointer-events: none;
        opacity: 0;
    }
    
    .pc-glitch::before {
        left: 4px;
        text-shadow: -4px 0 var(--neon-pink);
        animation: pc-glitch-anim-1 5s infinite linear;
        z-index: -1;
    }
    
    .pc-glitch::after {
        left: -4px;
        text-shadow: 4px 0 var(--neon-cyan);
        animation: pc-glitch-anim-2 4.3s infinite linear;
        z-index: -2;
    }
    
    /* Glitch triggers on hover */
    .pc-glitch:hover::before {
        opacity: 1;
        animation: pc-glitch-hover-1 0.2s infinite linear alternate-reverse !important;
    }
    .pc-glitch:hover::after {
        opacity: 1;
        animation: pc-glitch-hover-2 0.25s infinite linear alternate-reverse !important;
    }

    /* Periodic Background Spasms */
    @keyframes pc-glitch-anim-1 {
        0%, 80% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(0, 0); }
        81% { opacity: 1; clip-path: inset(20% 0 80% 0); transform: translate(-4px, 2px); }
        83% { opacity: 1; clip-path: inset(60% 0 10% 0); transform: translate(4px, -2px); }
        85% { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translate(-4px, 2px); }
        87% { opacity: 1; clip-path: inset(80% 0 5% 0); transform: translate(4px, -2px); }
        89% { opacity: 1; clip-path: inset(40% 0 40% 0); transform: translate(-4px, 2px); }
        91%, 100% { opacity: 0; transform: translate(0, 0); }
    }
    
    @keyframes pc-glitch-anim-2 {
        0%, 75% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(0, 0); filter: hue-rotate(0deg); }
        76% { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translate(4px, -2px); filter: hue-rotate(90deg); }
        78% { opacity: 1; clip-path: inset(80% 0 5% 0); transform: translate(-4px, 2px); filter: hue-rotate(180deg); }
        80% { opacity: 1; clip-path: inset(30% 0 50% 0); transform: translate(4px, -2px); filter: hue-rotate(270deg); }
        82% { opacity: 1; clip-path: inset(5% 0 70% 0); transform: translate(-4px, 2px); filter: hue-rotate(360deg); }
        84%, 100% { opacity: 0; transform: translate(0, 0); filter: hue-rotate(0deg); }
    }

    /* Intense Hover Spasms */
    @keyframes pc-glitch-hover-1 {
        0% { clip-path: inset(20% 0 80% 0); transform: translate(-4px, 2px) skewX(5deg); }
        20% { clip-path: inset(60% 0 10% 0); transform: translate(4px, -2px) skewX(-5deg); }
        40% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, 2px) skewX(5deg); }
        60% { clip-path: inset(80% 0 5% 0); transform: translate(4px, -2px) skewX(-5deg); }
        80% { clip-path: inset(40% 0 40% 0); transform: translate(-4px, 2px) skewX(5deg); }
        100% { clip-path: inset(15% 0 80% 0); transform: translate(4px, -2px) skewX(-5deg); }
    }

    @keyframes pc-glitch-hover-2 {
        0% { clip-path: inset(10% 0 60% 0); transform: translate(4px, -2px); filter: hue-rotate(90deg); }
        20% { clip-path: inset(80% 0 5% 0); transform: translate(-4px, 2px); filter: hue-rotate(180deg) invert(1); }
        40% { clip-path: inset(30% 0 50% 0); transform: translate(4px, -2px); filter: hue-rotate(270deg); }
        60% { clip-path: inset(5% 0 70% 0); transform: translate(-4px, 2px); filter: hue-rotate(360deg) invert(1); }
        80% { clip-path: inset(60% 0 10% 0); transform: translate(4px, -2px); filter: hue-rotate(90deg); }
        100% { clip-path: inset(20% 0 80% 0); transform: translate(-4px, 2px); filter: hue-rotate(180deg) invert(1); }
    }
}


/* --- PERFORMANCE-OPTIMIZED MOBILE GLITCH EFFECT --- */
@media (max-width: 768px) {
    .pc-glitch {
        position: relative;
        display: inline-block;
        white-space: nowrap;
        /* Permanent RGB text-shadow, slightly scaled down for mobile screens */
        text-shadow: -1.5px 0 rgba(0, 243, 255, 0.9), 1.5px 0 rgba(255, 0, 128, 0.9);
    }
    
    .pc-glitch::before {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        pointer-events: none;
        opacity: 0;
        z-index: -1;
        
        /* Mobile-optimized single layer */
        text-shadow: -3px 0 var(--neon-pink), 3px 0 var(--neon-cyan);
        animation: mobile-glitch-anim 4s infinite linear;
        /* Hardware acceleration hint */
        will-change: transform, opacity;
    }
    
    @keyframes mobile-glitch-anim {
        0%, 90% { opacity: 0; transform: translate3d(0, 0, 0); }
        91% { opacity: 1; transform: translate3d(-3px, 2px, 0); }
        93% { opacity: 1; transform: translate3d(3px, -1px, 0); }
        95% { opacity: 1; transform: translate3d(-2px, -2px, 0); }
        97% { opacity: 0; transform: translate3d(0, 0, 0); }
        100% { opacity: 0; }
    }
}

/* DONATION BANNER CSS */
.donation-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    margin: 1.5rem auto 2.5rem auto;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(0, 20, 20, 0.6);
    gap: 2rem;
    max-width: 1000px;
}
.donation-banner h4 {
    color: var(--neon-blue);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.donation-banner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}
.btn-donate {
    white-space: nowrap;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    width: auto !important;
    text-align: center;
    margin-top: 0 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .content {
        padding: 1.5rem !important;
    }
    .donation-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.2rem;
        margin-top: 1rem;
    }
    .donation-banner h4 {
        justify-content: center;
    }
    
    /* Mobile optimization for About Core Tab */
    #about .main-section-title {
        font-size: clamp(1rem, 7.5vw, 2.5rem) !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }
    #about .pc-glitch {
        white-space: nowrap !important;
    }
    #about .pc-glitch::after {
        display: none !important;
        animation: none !important;
    }
    #about p {
        font-size: 1rem !important;
        padding: 0 15px;
        text-align: center !important;
    }
    #about h2 {
        font-size: 1.2rem !important;
        white-space: normal !important;
        text-align: center !important;
        border-left: none !important;
        padding-left: 0 !important;
        width: 100%;
    }
    #about h3 {
        justify-content: center !important;
    }
    #about .content-wrapper {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden;
    }
    #about .glass-panel {
        padding: 1.2rem !important;
        text-align: center !important;
    }
    #about article.glass-panel {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }
}


/* --- CLEAN & RESPONSIVE NAVBAR FIX --- */

/* Desktop view (>= 1150px) */
@media (min-width: 1150px) {
    .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: clamp(0.4rem, 0.6vw, 0.8rem) clamp(0.5rem, 1vw, 1.5rem) !important;
        gap: clamp(0.2rem, 0.5vw, 0.5rem) !important;
        width: 98% !important;
        max-width: 1600px !important;
        margin: 15px auto 20px auto !important;
        box-sizing: border-box !important;
        overflow: visible !important; 
        border-radius: 20px !important;
    }
    .nav-brand {
        flex: 0 0 auto !important;
        min-width: max-content !important;
    }
    .hamburger {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(2px, 0.3vw, 8px) !important;
        flex: 1 1 auto !important;
        min-width: 0 !important; /* CRITICAL: prevents pushing avatar off screen */
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 !important;
        margin: 0 clamp(0.2rem, 0.5vw, 1rem) !important;
    }
    .nav-links li {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .nav-link {
        font-size: clamp(10px, 0.75vw, 15px) !important;
        padding: clamp(6px, 0.5vw, 10px) clamp(6px, 0.8vw, 14px) !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        align-items: center !important;
        gap: clamp(3px, 0.3vw, 6px) !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        font-weight: 600 !important;
    }
    .nav-link svg {
        width: clamp(12px, 1vw, 16px) !important;
        height: clamp(12px, 1vw, 16px) !important;
        flex-shrink: 0 !important;
    }
    
    .woolgirl-btn {
        border: 1px solid transparent !important;
        background: rgba(255, 255, 255, 0.03) !important;
        color: rgba(255, 100, 255, 0.9) !important;
    }
    .woolgirl-btn:hover {
        border: 1px solid rgba(255, 0, 255, 0.3) !important;
        background: rgba(255, 0, 255, 0.08) !important;
        color: var(--neon-pink) !important;
    }
    .nav-link.woolgirl-btn.active, .woolgirl-btn.active {
        border: 1px solid rgba(255, 0, 255, 0.6) !important;
        background: rgba(255, 0, 255, 0.15) !important;
        color: var(--neon-pink) !important;
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.2) !important;
    }

    .auth-section {
        flex: 0 0 auto !important;
        min-width: max-content !important;
        margin-left: auto !important;
    }
}

/* Mobile/Tablet view (<= 1149px) */
@media (max-width: 1149px) {
    .navbar {
        padding: 0.8rem 1rem !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .hamburger {
        display: flex !important;
    }
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.75rem !important;
        padding: 6rem 1.5rem 2rem 1.5rem !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: rgba(10, 10, 15, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out !important;
        z-index: 999 !important;
    }
    .nav-links.mobile-active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .nav-links li {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .nav-link, .woolgirl-btn {
        width: 100% !important;
        max-width: 320px !important;
        min-height: 50px !important;
        box-sizing: border-box !important;
        display: flex !important; 
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        padding: 0 1rem !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        margin: 0 !important;
        transition: all 0.25s ease !important;
        color: rgba(255,255,255,0.85) !important;
    }
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
    }
    .nav-link.active {
        background: rgba(0, 243, 255, 0.12) !important;
        border: 1px solid rgba(0, 243, 255, 0.4) !important;
        color: var(--neon-blue) !important;
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.15) !important;
    }
    .woolgirl-btn {
        border: 1px solid rgba(255, 0, 255, 0.5) !important;
        background: rgba(255, 0, 255, 0.12) !important;
        color: var(--neon-pink) !important;
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.2) !important;
    }
    .auth-section {
        flex: 0 0 auto !important;
        margin-right: 15px !important;
        margin-left: auto !important;
    }
}

/* Fix hidden tabs */
.nav-link[style*="display:none"], .nav-link[style*="display: none"] { display: none !important; }
#nav-link-subscriptions { display: none !important; }

/* Woolgirl btn: transparent by default, only styled on hover/active */
@media (min-width: 1150px) {
    .woolgirl-btn {
        background: transparent !important;
        border: 1px solid transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        color: rgba(255, 100, 255, 0.9) !important;
    }
    .woolgirl-btn:hover {
        background: rgba(255, 0, 255, 0.08) !important;
        border: 1px solid rgba(255, 0, 255, 0.4) !important;
        box-shadow: 0 0 12px rgba(255, 0, 255, 0.2) !important;
        color: var(--neon-pink) !important;
        text-shadow: 0 0 8px rgba(255, 0, 255, 0.4) !important;
    }
    .woolgirl-btn.active {
        background: rgba(255, 0, 255, 0.12) !important;
        border: 1px solid rgba(255, 0, 255, 0.6) !important;
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.25) !important;
        color: var(--neon-pink) !important;
        text-shadow: 0 0 8px rgba(255, 0, 255, 0.5) !important;
    }
}
