/* style.css – Global styles for Vybez Hub */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  --primary: #cba6f7;
  --primary-hover: #b48ead;
  --accent: #f5c2e7;
  --bg-dark: #11111b;
  --glass-bg: rgba(17, 17, 27, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #cdd6f4;
  --text-muted: #a6adc8;
  --error: #f38ba8;
  --success: #a6e3a1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: url('cozy_anime_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Navigation */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 30px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--primary);
  letter-spacing: 3px;
  margin-top: -5px;
}

.nav-pill {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 5px;
  list-style: none;
  gap: 5px;
}

.nav-pill li a {
  text-decoration: none;
  color: #a6adc8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.nav-pill li a.active,
.nav-pill li a:hover {
  background: #dc14f7;
  color: white;
  box-shadow: 0 0 15px rgba(255, 62, 62, 0.5);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.icon-circle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #11111b;
  padding: 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(203, 166, 247, 0.4);
}

.btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
}

.hero-content {
  padding: 50px;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.member-count {
  display: inline-block;
  background: rgba(203, 166, 247, 0.2);
  color: var(--accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
  transition: transform 0.3s, border-color 0.3s;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

.card video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 15px 15px 0 0;
}

.card h3 {
  padding: 15px 10px 5px;
  font-size: 1.3rem;
}

/* Character View */
#character-view {
  display: none;
}

.back-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
}

/* Resource List */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}

.resource-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.resource-info h4 {
  font-size: 1.2rem;
  color: var(--primary);
}

.resource-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Auth Form */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.success-msg {
  color: var(--success);
  font-size: 1rem;
  margin-top: 10px;
}

/* Footer */
footer {
  background: rgba(17, 17, 27, 0.95);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* Utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMove 0.8s forwards;
}

@keyframes fadeInMove {
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 0 50px var(--primary);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Pro Card Styles */
.pro-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 42, 128, 0.2);
  border: 1px solid rgba(255, 42, 128, 0.4);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pro-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pro-card:hover .card-overlay {
  opacity: 1;
}

.overlay-text {
  color: #ff2a80;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.pro-card:hover .overlay-text {
  transform: translateY(0);
}

.card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
}

.premium-badge {
  background: rgba(255, 42, 128, 0.8);
  color: white;
  box-shadow: 0 0 0 0 rgba(255, 42, 128, 0.7);
  animation: pulseGlow 2s infinite;
}

.char-badge {
  background: rgba(42, 128, 255, 0.8);
  color: white;
}

.empty-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.card-info {
  padding: 15px;
  text-align: center;
}

.card-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: white;
}

/* Alphabet Filter */
.alphabet-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a0b0;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 42, 128, 0.15);
  border-color: rgba(255, 42, 128, 0.4);
  color: #fff;
}

.filter-btn.active {
  background: #ff2a80;
  border-color: #ff2a80;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 42, 128, 0.4);
}

.filter-btn:active {
  transform: scale(0.92);
  transition: transform 0.1s ease;
}

/* Animations */
.pro-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 5;
  pointer-events: none;
}

.pro-card:hover::after {
  animation: shine 0.8s ease-out forwards;
}

@keyframes shine {
  0% { left: -150%; }
  100% { left: 200%; }
}

.anime-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

@keyframes fadeUpEntrance {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 128, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 42, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 128, 0); }
}

/* Ambient Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  background: #0d0d16;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: floatBlobs 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: rgba(255, 42, 128, 0.35);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 700px;
  max-height: 700px;
  background: rgba(112, 0, 255, 0.25);
  animation-delay: -5s;
}

.blob-3 {
  top: 30%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: rgba(0, 153, 255, 0.2);
  animation-delay: -12s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -5%) scale(1.1); }
  66% { transform: translate(-4%, 4%) scale(0.95); }
  100% { transform: translate(6%, 8%) scale(1.05); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0d0d16;
  border-left: 1px solid rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 128, 0.4);
  border-radius: 10px;
  border: 2px solid #0d0d16;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 128, 0.8);
}

/* Text Selection */
::selection {
  background: rgba(255, 42, 128, 0.4);
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: rgba(255, 42, 128, 0.4);
  color: #ffffff;
  text-shadow: none;
}

/* Gradient Text for Headings */
h1, h2 {
  background: linear-gradient(to right, #ff2a80, #a855f7, #3b82f6, #ff2a80);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerText 6s linear infinite;
  display: inline-block;
}

@keyframes shimmerText {
  to { background-position: 300% center; }
}
/* =========================================
   UNIQUE ENHANCEMENTS
========================================= */

/* ---- Custom Cursor (hide default, show custom) ---- */
* {
  cursor: none; /* Hide default cursor */
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: rgba(255, 42, 128, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #ff2a80;
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.05s ease;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px white;
}

/* ---- Magnetic 3D Tilt Cards ---- */
.tilt-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255,42,128,0.3);
}

/* ---- Ripple Effect for Buttons ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---- Text Scramble Effect ---- */
.scramble-text {
  display: inline-block;
  transition: color 0.2s;
}

/* ---- Spotlight Effect (mouse-following radial gradient) ---- */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 10%, rgba(0,0,0,0.7) 80%);
  opacity: 0.5;
  transition: background 0.05s;
}

/* ---- Grainy Noise Overlay ---- */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.05;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC40IiAvPjwvc3ZnPg==');
}

/* ---- Floating Particles ---- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9995;
}

/* ---- Smooth Page Transition (fade) ---- */
body {
  opacity: 1;
  transition: opacity 0.3s ease;
}
body.fade-out {
  opacity: 0;
}

/* ---- Parallax Background Blobs (already have, but enhance with scroll) ---- */
.blob {
  transition: transform 0.1s ease-out;
}
/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0d16;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
    opacity: 1;
    visibility: visible;
}
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
}
.preloader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255,42,128,0.2);
    border-top-color: #ff2a80;
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}
.preloader-text {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff2a80, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== HERO ENHANCEMENTS ===== */
.hero {
    position: relative;
    overflow: hidden;
}
.gradient-glitch {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff2a80, #a855f7, #3b82f6, #ff2a80);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glitch 3s infinite, gradientShift 6s ease infinite;
}
@keyframes glitch {
    0%, 100% { transform: skew(0deg, 0deg); opacity: 1; }
    95% { transform: skew(5deg, -2deg); opacity: 0.8; }
    96% { transform: skew(-5deg, 3deg); }
    97% { transform: skew(3deg, -1deg); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.member-count.glitch {
    animation: glitch-text 2s infinite;
}
@keyframes glitch-text {
    2%, 64% { transform: translate(2px,0) skew(0deg); }
    4%, 60% { transform: translate(-2px,0) skew(0deg); }
    62% { transform: translate(0,0) skew(5deg); }
}
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,42,128,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,42,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,42,128,0); }
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== STATS SECTION ===== */
.stats-section {
    margin: 60px auto;
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-card {
    padding: 30px 40px;
    text-align: center;
    min-width: 200px;
    backdrop-filter: blur(12px);
}
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #ff2a80;
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== CAROUSEL ===== */
.carousel-container {
    position: relative;
    margin: 40px 0;
}
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,42,128,0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: 0.3s;
}
.carousel-btn:hover {
    background: rgba(255,42,128,0.8);
}
.carousel-btn.prev {
    left: -25px;
}
.carousel-btn.next {
    right: -25px;
}
.carousel-track .card {
    flex: 0 0 280px;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-panel {
    text-align: center;
    padding: 60px 20px;
    margin: 60px 0;
}
.cta-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.cta-panel p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}
.discord-btn {
    background: #5865F2;
    color: white;
    font-size: 1.3rem;
    padding: 15px 40px;
    border-radius: 40px;
    box-shadow: 0 0 30px #5865F2;
}
.discord-btn:hover {
    background: #4752c4;
    transform: scale(1.05);
}

/* ===== HOME RESOURCES GRID ===== */
#home-resources .resource-item {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
}
#home-resources .resource-item:hover {
    transform: translateY(-5px);
    border-color: #ff2a80;
}
/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 50px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: #ff2a80;
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== RANDOM FLOWFRAME BUTTON ===== */
.random-flowframe-container {
    text-align: center;
    margin-bottom: 40px;
}
.random-btn {
    background: linear-gradient(135deg, #ff2a80, #a855f7);
    color: white;
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 40px;
    box-shadow: 0 0 20px #ff2a80;
    animation: float 3s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,42,128,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255,42,128,0.3);
    transition: 0.3s;
}
.back-to-top:hover {
    background: #ff2a80;
    transform: scale(1.1);
}
.back-to-top.visible {
    display: flex;
}

/* ===== QUICK VIEW MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 20px;
    animation: modalPop 0.3s ease;
}
@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-modal {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
}
.close-modal:hover {
    color: #ff2a80;
}
#modal-body {
    margin-top: 20px;
}
.modal-char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.modal-char-card {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--glass-border);
}
.modal-char-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
.modal-char-card h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.modal-char-card .btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
}
/* ===== CHARACTER VIEW ANIMATIONS ===== */
#character-view {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}
#character-view.visible {
    opacity: 1;
    transform: translateY(0);
}

#character-view .grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

#character-view .card {
    animation: cardFadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
#character-view .grid > *:nth-child(1) { animation-delay: 0.05s; }
#character-view .grid > *:nth-child(2) { animation-delay: 0.1s; }
#character-view .grid > *:nth-child(3) { animation-delay: 0.15s; }
#character-view .grid > *:nth-child(4) { animation-delay: 0.2s; }
#character-view .grid > *:nth-child(5) { animation-delay: 0.25s; }
#character-view .grid > *:nth-child(6) { animation-delay: 0.3s; }
#character-view .grid > *:nth-child(7) { animation-delay: 0.35s; }
#character-view .grid > *:nth-child(8) { animation-delay: 0.4s; }
#character-view .grid > *:nth-child(9) { animation-delay: 0.45s; }
#character-view .grid > *:nth-child(10) { animation-delay: 0.5s; }
/* Force resource grid to display as grid */
#resource-grid {
    display: grid !important;
}

/* Improve image fallback and prevent layout jumps */
.resource-card img {
    background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
    object-fit: cover;
    min-height: 180px;
    border: 1px solid rgba(255,255,255,0.1);
}
/* Ensure logo text has space and proper size */
.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-main {
    font-size: 1.4rem;  /* adjust as needed */
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}
.logo-sub {
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Keep nav items from growing too large */
.nav-pill li a {
    font-size: 0.9rem;  /* adjust */
    padding: 8px 16px;
}

/* If the whole nav is too wide, reduce padding */
.floating-nav {
    padding: 8px 20px;
}
/* ========== AUTH TABS ========== */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}
.auth-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}
.auth-tab.active {
    background: rgba(255,42,128,0.2);
    color: var(--accent);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}

/* ========== ADMIN PANEL ========== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.admin-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.admin-tab.active {
    background: var(--primary);
    color: #111;
    border-color: var(--primary);
}
.admin-tab-content {
    display: none;
    padding: 20px 0;
}
.admin-tab-content.active {
    display: block;
}
.admin-input {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 15px;
}
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.admin-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 20px;
}

/* ========== LOGOUT BUTTON ========== */
#logout-btn-nav {
    cursor: pointer;
}
/* Restore default cursor on admin pages */
body.admin-page,
body.admin-page * {
    cursor: auto !important;
}