html {
  scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b090f;
    --surface-color: #1a1625;
    --primary-color: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.5);
    --text-main: #ffffff;
    --text-muted: #a09eb0;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ========== PREMIUM COOKIES POPUP (NO JS) ========== */

.cookies-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  animation: cookieSlideUp 0.5s cubic-bezier(0.21, 1.11, 0.35, 1.02);
}

@keyframes cookieSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookies-card {
  max-width: 480px;
  background: rgba(16, 18, 30, 0.98);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(157, 78, 221, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(157, 78, 221, 0.1), 0 0 20px rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
}

.cookies-card:hover {
  border-color: rgba(157, 78, 221, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(157, 78, 221, 0.3), 0 0 30px rgba(157, 78, 221, 0.3);
}

.cookies-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(124, 58, 237, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.cookies-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #ffffff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cookies-text p {
  font-size: 0.8rem;
  color: #a09eb0;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cookies-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookies-btn {
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  cursor: pointer;
}

.cookies-btn.accept {
  background: linear-gradient(135deg, #9d4edd, #7c3aed);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.cookies-btn.accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(157, 78, 221, 0.5);
}

.cookies-btn.learn {
  background: rgba(255, 255, 255, 0.05);
  color: #c4b5fd;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.cookies-btn.learn:hover {
  background: rgba(157, 78, 221, 0.15);
  border-color: rgba(157, 78, 221, 0.6);
}

/* Mobile Responsive */
@media (max-width: 550px) {
  .cookies-popup {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  
  .cookies-card {
    padding: 16px 18px;
  }
  
  .cookies-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  
  .cookies-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .cookies-text h3 {
    font-size: 0.95rem;
  }
  
  .cookies-text p {
    font-size: 0.7rem;
    margin-bottom: 14px;
  }
  
  .cookies-btn {
    padding: 7px 18px;
    font-size: 0.7rem;
  }
}

/* Desktop positioning */
@media (min-width: 768px) {
  .cookies-popup {
    left: auto;
    right: 25px;
    bottom: 25px;
  }
}

/* ========== FOOTER SECTION ========== */

.site-footer {
  background: linear-gradient(180deg, #0a0c15, #05060a);
  padding: 40px 20px 25px;
  margin-top: 60px;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.footer-brand h3 span {
  background: linear-gradient(120deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-links a {
  color: #a09eb0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #a78bfa;
  transform: translateY(-2px);
}

.footer-copyright p {
  color: #6b6a7a;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-links {
    gap: 15px;
  }
  .footer-links a {
    font-size: 0.75rem;
  }
  .footer-brand h3 {
    font-size: 1.2rem;
  }
}

/* ========== AYZMODS PREMIUM LOADING SCREEN (NO JS) ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #07060b;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeOut 0.6s ease forwards;
  animation-delay: 3s;
  animation-fill-mode: forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

.preloader-container {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  animation: fadeInUp 0.5s ease;
}

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

/* Main Circle Container */
.preloader-circle {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

/* Rotating Ring */
.preloader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #c084fc, #4f46e5);
  animation: ringRotate 1.2s linear infinite;
}

.preloader-ring::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background: #07060b;
  border-radius: 50%;
}

.preloader-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #a78bfa, #c084fc, #4f46e5);
  border-radius: 50%;
  z-index: -1;
  animation: ringGlow 1.2s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Logo inside circle */
.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 75px;
  background: linear-gradient(145deg, #1a1625, #0f0d15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  animation: logoPulse 1.5s ease-in-out infinite;
}

.preloader-logo img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.preloader-logo .logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(167, 139, 250, 0);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Site Name */
.preloader-site {
  margin-top: 20px;
}

.preloader-site h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #ffffff, #a78bfa, #c084fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textGradient 2.5s linear infinite;
}

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

.preloader-site p {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: #a09eb0;
  margin-top: 5px;
}

/* Status Text */
.preloader-status {
  margin: 25px 0 15px;
}

.status-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #c4b5fd;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.status-text .blink-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Progress Bar */
.progress-bar-container {
  width: 80%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  height: 4px;
  overflow: hidden;
}

.progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #c084fc, #4f46e5);
  border-radius: 20px;
  animation: fillProgress 3s ease forwards;
  box-shadow: 0 0 10px #a78bfa;
}

@keyframes fillProgress {
  0% { width: 0%; }
  20% { width: 15%; }
  40% { width: 35%; }
  60% { width: 65%; }
  80% { width: 85%; }
  100% { width: 100%; }
}

.progress-percent {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a78bfa;
  margin-top: 8px;
  display: inline-block;
  animation: percentCount 3s ease forwards;
  counter-reset: percent 0;
}

@keyframes percentCount {
  0% { opacity: 0; }
  20% { opacity: 1; content: "15%"; }
  40% { content: "35%"; }
  60% { content: "65%"; }
  80% { content: "85%"; }
  100% { content: "100%"; }
}

/* Particles (Floating dots) */
.preloader-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #a78bfa;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 4s ease-in-out infinite;
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .preloader-circle {
    width: 120px;
    height: 120px;
  }
  .preloader-logo {
    width: 55px;
    height: 55px;
  }
  .preloader-logo img {
    width: 40px;
    height: 40px;
  }
  .preloader-site h1 {
    font-size: 1.5rem;
  }
}

/* --- Top Header --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: rgba(11, 9, 15, 0.8);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 0; z-index: 100;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 0 10px var(--primary-glow); object-fit: cover; }
.brand-text h1 { font-size: 20px; color: #fff; }
.brand-text h1 span { color: var(--primary-color); }
.brand-text p { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.menu-btn { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }

/* --- Sidebar --- */
#sidebar {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #120e18; border-left: 1px solid rgba(255,255,255,0.05);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
    padding: 20px; display: flex; flex-direction: column; overflow-y: auto;
}
#sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-btn { background: #221c2e; border: none; color: #fff; width: 35px; height: 35px; border-radius: 10px; cursor: pointer; }
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }
.sidebar-menu li a {
    display: flex; align-items: center; gap: 15px; padding: 12px 15px;
    color: var(--text-muted); text-decoration: none; border-radius: 12px;
    transition: all 0.3s ease; font-weight: 600; font-size: 14px;
}
.sidebar-menu li a:hover, .sidebar-menu li.active a { background: #1e1829; color: #fff; }
.sidebar-menu li.active a i { color: var(--primary-color); }

/* --- User Profile Widget --- */
.user-widget { background: #1a1523; padding: 15px; border-radius: 15px; display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.user-avatar { background: #2a2336; width: 40px; height: 40px; border-radius: 10px; display: flex; justify-content: center; align-items: center; }
.user-info h4 { font-size: 14px; color: #fff; }
.user-info p { font-size: 11px; color: var(--text-muted); }

/* --- Overlay --- */
#overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 999; display: none; backdrop-filter: blur(3px); }
#overlay.active { display: block; }

/* --- Content Container & Cards --- */
main { padding: 20px; margin-bottom: 80px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--surface-color); border-radius: 16px; overflow: hidden; transition: transform 0.3s; border: 1px solid rgba(255,255,255,0.05); text-decoration: none; display: block; color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); border-color: var(--primary-color); }
.card-img { width: 100%; height: 150px; object-fit: cover; }
.card-info { padding: 15px; }
.tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag { font-size: 10px; background: rgba(157, 78, 221, 0.2); color: var(--primary-color); padding: 4px 8px; border-radius: 6px; font-weight: bold; }
.card h3 { font-size: 18px; margin-bottom: 5px; }
.card p { font-size: 12px; color: var(--text-muted); }

/* --- Floating Bottom Nav --- */
.bottom-nav {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(26, 22, 37, 0.9); backdrop-filter: blur(15px);
    display: flex; gap: 20px; padding: 10px 30px; border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 100; border: 1px solid rgba(255,255,255,0.1);
}
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 11px; transition: 0.3s; cursor: pointer; }
.nav-item i { font-size: 20px; margin-bottom: 4px; }
.nav-item:hover, .nav-item.active { color: var(--primary-color); }

/* --- Category Popup --- */
#category-popup {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) scale(0.9);
    background: var(--surface-color); padding: 20px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1); display: none; opacity: 0;
    transition: all 0.3s ease; box-shadow: 0 15px 40px rgba(0,0,0,0.6); z-index: 99;
    width: 90%; max-width: 400px;
}
#category-popup.show { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; opacity: 1; transform: translateX(-50%) scale(1); }
.cat-btn { background: #231d30; border: none; padding: 15px; border-radius: 12px; color: #fff; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; text-decoration: none;}
.cat-btn:hover { background: var(--primary-color); }

/* --- Post Inner Page Specifics --- */
.post-header { text-align: center; margin-bottom: 30px; margin-top: 20px; }
.post-logo { width: 100px; height: 100px; border-radius: 20px; box-shadow: 0 0 20px var(--primary-glow); margin-bottom: 15px; object-fit: cover; }
.post-details { background: var(--surface-color); padding: 20px; border-radius: 16px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }
.download-btn { display: block; width: 100%; text-align: center; background: var(--primary-color); color: #fff; padding: 15px; border-radius: 12px; text-decoration: none; font-weight: bold; font-size: 16px; transition: 0.3s; margin-top: 20px; }
.download-btn:hover { background: #b062eb; box-shadow: 0 5px 15px var(--primary-glow); }
.content-text { color: var(--text-muted); font-size: 14px; margin-top: 10px; line-height: 1.6; }
