:root {
  --primary: #9a5af4;
  --secondary: #2f354c;
  --bg: #151e23;
  --disabled: #202e36;
  --border: #2e3852;
  --text: #f5f5f5;
  --hint-text: #b3b5b7;
  --success: #15803d;
  --warning: #ffc107;
  --error: #b91c1c;

  /* Game colors */
  --game-red: #b91c1c;
  --game-purple: #9c27b0;
  --game-yellow: #ffc107;
  --game-blue: #2563eb;
  --game-green: #15803d;
  --game-orange: #ea580c;
  --game-pink: #f472b6;
  --game-gray: #9ca3af;
  --game-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  font-size: 16px;
  text-size-adjust: 100%;
  overscroll-behavior: contain;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(154, 90, 244, 0.5), 0 0 0 5px var(--border);
  border-radius: 6px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(21, 30, 35, 0.95);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  box-sizing: border-box;
  padding-top: 4px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 70px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  text-decoration: none;
}

/* Ensure clickable logo never shows underline or color changes */
.logo-link,
.logo-link:link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
  text-decoration: none !important;
  color: inherit;
}

.logo .logo-link h1 {
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit !important;
}

/* Logo link - keep image and text side by side */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit !important;
  padding: 4px 8px;
  border-radius: 8px;
  flex-wrap: nowrap;
}

.logo-link:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.04);
}

.logo-link .logo-img {
  display: inline-block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.logo-link h1 {
  display: inline;
  flex-shrink: 0;
  margin: 0;
  white-space: nowrap;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

.hamburger {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  z-index: -1;
}

.nav-link:hover {
  color: white;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 1;
}

section {
  padding: 100px 50px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

section:not(.hero):not(.demo-section) {
  max-width: 1200px;
  margin: 0 auto;
}

/* Enhanced Content Sections */
.content-section {
  padding: 120px 50px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 90, 244, 0.15);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--hint-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section Styles */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.lead-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
  font-weight: 400;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: rgba(32, 46, 54, 0.6);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(154, 90, 244, 0.1);
  border-color: var(--primary);
  transform: translateX(5px);
}

.highlight-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
}

.highlight-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.highlight-content p {
  font-size: 0.95rem;
  color: var(--hint-text);
  line-height: 1.5;
  margin: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 200px;
}

.visual-item {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.visual-item.primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  grid-column: 1 / -1;
  animation-delay: 0s;
}

.visual-item.secondary {
  background: linear-gradient(135deg, var(--success), #16a34a);
  animation-delay: -1s;
}

.visual-item.accent {
  background: linear-gradient(135deg, var(--warning), #f59e0b);
  animation-delay: -2s;
}

/* Centered About Section */
.about-content-centered {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
}

.lead-text-centered {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 40px;
}

.feature-highlights-centered {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(32, 46, 54, 0.8), rgba(32, 46, 54, 0.6));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.highlight-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(154, 90, 244, 0.2);
}

.highlight-box:hover::before {
  opacity: 1;
}

.highlight-icon {
  width: 90px;
  height: 90px;
  min-width: 90px;
  background: linear-gradient(135deg, #9a5af4, #7c3aed);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 10px 30px rgba(154, 90, 244, 0.3);
  transition: all 0.3s ease;
}

.highlight-box:hover .highlight-icon {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 15px 40px rgba(154, 90, 244, 0.5);
}

.highlight-content {
  flex: 1;
}

.highlight-box h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.highlight-box h4::before {
  content: none;
}

.highlight-box p {
  font-size: 1.1rem;
  color: var(--hint-text);
  line-height: 1.6;
  margin: 0;
}

.visual-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.visual-item-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.visual-item-circle.primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.visual-item-circle.secondary {
  background: linear-gradient(135deg, var(--success), #16a34a);
}

.visual-item-circle.accent {
  background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.visual-item-circle:hover {
  transform: translateY(-5px) scale(1.05);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Steps Section Styles */
.steps-container {
  margin-top: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px 35px 35px 35px;
  padding-top: 45px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: visible;
}



.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(154, 90, 244, 0.4);
  z-index: 10;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 15px;
}

.step-description {
  color: var(--hint-text);
  line-height: 1.6;
  margin-bottom: 25px;
}

.highlight-text {
  color: var(--primary);
  font-weight: 600;
}

.stroop-text {
  color: var(--game-red);
}

.step-visual {
  margin-top: 20px;
}

.color-demo {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.color-demo.forbidden {
  background: rgba(185, 28, 28, 0.2);
  border: 2px solid var(--error);
  color: var(--error);
}

.color-demo.stroop-demo {
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid #2563eb;
  color: #2563eb;
  position: relative;
  animation: stroopPulse 2s ease-in-out infinite;
}

.color-demo.stroop-demo::after {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--hint-text);
  white-space: nowrap;
  font-weight: 400;
  opacity: 0.7;
}

@keyframes stroopPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  }
}

.colors-grid-demo {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.color-demo.safe {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid rgba(21, 128, 61, 0.5);
}

.color-demo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-demo-circle.safe-green {
  background: var(--game-green);
}

.color-demo-circle.safe-blue {
  background: var(--game-blue);
}

.color-demo-circle.forbidden-red {
  background: var(--game-red);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.score-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
}

.score-label {
  font-size: 0.8rem;
  color: var(--hint-text);
  letter-spacing: 1px;
}

/* Game Modes Section */
.game-modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.mode-card {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.mode-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(154, 90, 244, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(154, 90, 244, 0.25);
  border-color: var(--primary);
}

.mode-card:hover::after {
  opacity: 1;
}

.mode-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
}

.mode-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.mode-description {
  color: var(--hint-text);
  line-height: 1.6;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.mode-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mode-feature {
  background: rgba(21, 30, 35, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(32, 46, 54, 0.8);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.feature-card.primary:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(154, 90, 244, 0.4);
}

.feature-card.secondary:hover {
  border-color: var(--success);
  box-shadow: 0 20px 50px rgba(21, 128, 61, 0.4);
}

.feature-card.accent:hover {
  border-color: var(--warning);
  box-shadow: 0 20px 50px rgba(255, 193, 7, 0.4);
}

.feature-card.highlight:hover {
  border-color: #f59e0b;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 15px;
}

.feature-description {
  color: var(--hint-text);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 1rem;
}

.feature-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-point {
  background: rgba(21, 30, 35, 0.9);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  position: relative;
}

.stat-point::before {
  content: '✓';
  margin-right: 6px;
  color: var(--success);
}
/* Hero Section Enhanced */
.hero {
  text-align: center;
  margin-top: 70px;
  position: relative;
  padding: 120px 50px 100px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(21, 30, 35, 0.95), rgba(32, 46, 54, 0.9));
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(154, 90, 244, 0.3), transparent);
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent);
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.2), transparent);
  bottom: 20%;
  left: 60%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  25% { transform: translateY(-20px) translateX(10px) scale(1.05); }
  50% { transform: translateY(-10px) translateX(-15px) scale(0.95); }
  75% { transform: translateY(15px) translateX(5px) scale(1.02); }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 90, 244, 0.15);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 1.1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.title-line {
  display: block;
  background: linear-gradient(135deg, var(--text), rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-highlight {
  background: linear-gradient(135deg, var(--primary), #7c3aed, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero-subtitle {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--hint-text);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  opacity: 0.8;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

.hero-stats .stat-text {
  font-size: 0.85rem;
  color: var(--hint-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  font-size: 1.1rem;
  padding: 18px 40px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(154, 90, 244, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px rgba(154, 90, 244, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary .btn-icon,
.btn-primary .btn-text {
  position: relative;
  z-index: 1;
}

.btn-primary .btn-icon {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-2px); }
}

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(154, 90, 244, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(154, 90, 244, 0.6); }
  100% { box-shadow: 0 4px 15px rgba(154, 90, 244, 0.3); }
}

.download-section {
  text-align: center;
}

.download-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.3);
  border-radius: 25px;
  padding: 10px 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.label-icon {
  font-size: 1.1rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.store-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  position: relative;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge img {
  height: 55px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.store-badge:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(154, 90, 244, 0.3));
}

/* Download section at bottom */
.store-link {
  display: inline-block;
  margin: 10px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.store-link:hover {
  transform: translateY(-3px);
}

.store-link img {
  height: 60px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.store-link:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(154, 90, 244, 0.3));
}

.download-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#download {
  text-align: center;
}

.stat-highlight {
  text-align: center;
  padding: 20px;
  background: rgba(32, 46, 54, 0.6);
  border: 1px solid var(--border);
  border-radius: 15px;
  min-width: 120px;
  transition: transform 0.3s ease;
}

.stat-highlight:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
  font-family: "JetBrains Mono", monospace;
}

.stat-text {
  font-size: 0.9rem;
  color: var(--hint-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Demo Section */
.demo-section {
  position: relative;
  padding: 100px 50px;
  min-height: 600px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow: hidden;
}

.demo-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(32, 46, 54, 0.9), rgba(21, 30, 35, 0.95));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 75%, rgba(154, 90, 244, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
  animation: patternShift 10s ease-in-out infinite;
}

@keyframes patternShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 10px) scale(1.05); }
}

.demo-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.demo-header {
  margin-bottom: 40px;
}

.demo-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.demo-icon {
  font-size: 2rem;
  animation: gameIconBounce 2s ease-in-out infinite;
}

@keyframes gameIconBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.demo-subtitle {
  font-size: 1.1rem;
  color: var(--hint-text);
  margin: 0;
}

.demo-game {
  background: rgba(47, 53, 76, 0.4);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 40px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.demo-instruction {
  margin-bottom: 35px;
}

.forbidden-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.forbidden-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.forbidden-color {
  color: var(--error);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 8px 20px;
  background: rgba(185, 28, 28, 0.2);
  border-radius: 20px;
  border: 2px solid var(--error);
  animation: forbiddenPulse 2s ease-in-out infinite;
}

@keyframes forbiddenPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(185, 28, 28, 0); }
}

.instruction-text {
  font-size: 1.1rem;
  color: var(--hint-text);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.instruction-icon {
  font-size: 1.2rem;
}

.demo-grid-container {
  margin: 30px auto;
  display: inline-block;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 30px;
  background: rgba(21, 30, 35, 0.8);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-color {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 4px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.demo-color::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(10px);
  transition: all 0.3s ease;
}

.demo-color:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.demo-color:hover::before {
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
}

.demo-color:active {
  transform: scale(0.95);
}

.demo-color.correct {
  animation: correctPulse 0.8s ease;
}

.demo-color.wrong {
  animation: wrongShake 0.8s ease;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { 
    transform: scale(1.4);
  }
  100% { transform: scale(1); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.demo-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 35px;
  padding: 25px 35px;
  background: rgba(21, 30, 35, 0.9);
  border-radius: 20px;
  border: 1px solid var(--border);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--hint-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.demo-controls {
  margin-top: 30px;
}

.demo-reset-btn {
  background: rgba(47, 53, 76, 0.8);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 12px 24px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-reset-btn:hover {
  background: rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.demo-hint {
  margin-top: 40px;
}

.hint-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 25px;
  color: var(--warning);
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hint-icon {
  font-size: 1.2rem;
  animation: hintGlow 2s ease-in-out infinite;
}

@keyframes hintGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Difficulty Cards Enhancement */
#difficulty h2 {
  text-align: center;
}

.difficulty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.difficulty-card {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.difficulty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(154, 90, 244, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.difficulty-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
}

.difficulty-card:hover::after {
  opacity: 1;
}

.difficulty-card.easy:hover {
  box-shadow: 0 15px 40px rgba(21, 128, 61, 0.2);
  border-color: var(--success);
}

.difficulty-card.medium:hover {
  box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
  border-color: var(--warning);
}

.difficulty-card.hard:hover {
  box-shadow: 0 15px 40px rgba(185, 28, 28, 0.2);
  border-color: var(--error);
}

/* Centered header with title and badge */
.diff-header-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
  gap: 6px;
}

.diff-title {
  font-size: 1.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
  color: white;
}

.diff-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.easy .diff-badge {
  background: rgba(21, 128, 61, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
}

.medium .diff-badge {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.hard .diff-badge {
  background: rgba(185, 28, 28, 0.2);
  color: var(--error);
  border: 1px solid var(--error);
}

/* Color dots - left aligned */
.diff-colors {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
  flex-wrap: wrap;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.difficulty-card:hover .color-dot {
  transform: scale(1.2);
}

/* Description text - left aligned */
.diff-desc {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  padding: 0;
  color: var(--hint-text);
  position: relative;
  z-index: 1;
  line-height: 1.3;
  text-align: left;
}

/* Stats container - left aligned with tight spacing */
.diff-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.diff-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  text-align: left;
}

.diff-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Define color dot styles to avoid inline CSS */
.color-dot.red {
  background: var(--game-red);
}
.color-dot.purple {
  background: var(--game-purple);
}
.color-dot.yellow {
  background: var(--game-yellow);
}
.color-dot.blue {
  background: var(--game-blue);
}
.color-dot.green {
  background: var(--game-green);
}
.color-dot.orange {
  background: var(--game-orange);
}
.color-dot.pink {
  background: var(--game-pink);
}
.color-dot.gray {
  background: var(--game-gray);
}
.color-dot.white {
  background: var(--game-white);
  border-color: var(--border);
}

/* Legacy class support for backwards compatibility */
.difficulty-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.difficulty-header h3 { font-size: 1.5rem; margin: 0; position: relative; z-index: 1; }
.difficulty-badge { padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.easy .difficulty-badge { background: rgba(21, 128, 61, 0.2); color: var(--success); border: 1px solid var(--success); }
.medium .difficulty-badge { background: rgba(255, 193, 7, 0.2); color: var(--warning); border: 1px solid var(--warning); }
.hard .difficulty-badge { background: rgba(185, 28, 28, 0.2); color: var(--error); border: 1px solid var(--error); }
.color-preview { display: flex; justify-content: flex-start; gap: 8px; margin: 0 0 8px 0; flex-wrap: wrap; }
.difficulty-description { font-size: 1.1rem; margin: 0 0 8px 0; padding: 0; color: var(--hint-text); position: relative; z-index: 1; line-height: 1.3; text-align: left; }
.difficulty-stats { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; color: var(--text); position: relative; z-index: 1; margin: 0; padding: 0; line-height: 1.2; }
.stat-icon { font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; margin: 0; padding: 0; }

.stroop-effect {
  margin-top: 8px;
  padding: 10px;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.3);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.stroop-badge {
  background: var(--error);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.stroop-effect p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.features,
.steps,
.testimonials {
  display: grid;
  gap: 25px;
  margin-top: 40px;
}
.features {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.feature,
.step,
.testimonial {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s;
}
.feature:hover,
.step:hover,
.testimonial:hover {
  transform: translateY(-5px);
}
.steps {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  gap: 30px;
}
.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.testimonial span {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
}

.btn {
  background: var(--primary);
  color: var(--bg);
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials-section {
  background: rgba(32, 46, 54, 0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.testimonial-card {
  background: rgba(21, 30, 35, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card.featured {
  background: rgba(154, 90, 244, 0.1);
  border-color: rgba(154, 90, 244, 0.3);
  transform: scale(1.02);
}

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
}

.testimonial-card.featured:hover {
  transform: translateY(-5px) scale(1.05);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--hint-text);
}

.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.testimonial-stat {
  text-align: center;
}

.testimonial-stat .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.testimonial-stat .stat-label {
  font-size: 0.9rem;
  color: var(--hint-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Footer */
.main-footer {
  background: rgba(21, 30, 35, 0.95);
  border-top: 1px solid var(--border);
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 50px 40px;
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  align-items: flex-start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section:first-child {
  flex: 0 0 280px;
  min-width: 200px;
}

.footer-section:not(:first-child) {
  flex: 1;
  min-width: 120px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

.main-footer .footer-logo h3 {
  font-size: 20.8px !important;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.main-footer .footer-description {
  color: var(--hint-text);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 14.4px !important;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(47, 53, 76, 0.6);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.main-footer .footer-title {
  font-size: 16.8px !important;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-footer .footer-links a {
  color: var(--hint-text);
  text-decoration: none;
  font-size: 14.4px !important;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.8);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-footer .copyright {
  color: var(--hint-text);
  font-size: 13.6px !important;
  margin: 0;
  text-align: center;
}

.footer-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(47, 53, 76, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

/* Enhanced Game Mode Cards */
.features .feature {
  position: relative;
  overflow: hidden;
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
}

.features .feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(154, 90, 244, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.features .feature:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(154, 90, 244, 0.25);
  border-color: var(--primary);
}

.features .feature:hover::after {
  opacity: 1;
}

.features .feature h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.features .feature p {
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Optimized Floating Circles */
.circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: auto;
  z-index: 0;
  filter: blur(0.5px);
  will-change: transform;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: gentleFloat 8s infinite ease-in-out;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.4;
  }
}

.circle:nth-child(odd) {
  animation-duration: 10s;
  animation-delay: -2s;
}

.circle:nth-child(even) {
  animation-duration: 12s;
  animation-delay: -4s;
}

/* Privacy Policy Styles */
.privacy-content {
  margin-top: 70px;
  padding: 80px 50px;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(32, 46, 54, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.privacy-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(154, 90, 244, 0.05),
    transparent 60%
  );
  opacity: 1;
}

.privacy-container > * {
  position: relative;
  z-index: 1;
}

.privacy-container h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.privacy-intro {
  background: rgba(154, 90, 244, 0.1);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 40px;
}

.privacy-intro p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.privacy-intro p:last-child {
  margin-bottom: 0;
}

.last-updated {
  font-size: 0.95rem !important;
  color: var(--hint-text) !important;
  font-style: italic;
}

.privacy-section {
  margin-bottom: 35px;
  padding: 25px;
  background: rgba(21, 30, 35, 0.4);
  border-radius: 15px;
  border-left: 4px solid var(--primary);
}

.privacy-section h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.privacy-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text);
}

.privacy-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.privacy-section li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-info {
  background: rgba(154, 90, 244, 0.1);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animate elements on scroll */
.content-section {
  animation: fadeInUp 0.8s ease-out;
}

.step:nth-child(1) {
  animation: fadeInLeft 0.8s ease-out 0.1s both;
}

.step:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.step:nth-child(3) {
  animation: fadeInRight 0.8s ease-out 0.3s both;
}

.mode-card:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.mode-card:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.mode-card:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mode-card:nth-child(4) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-card:nth-child(1) {
  animation: fadeInLeft 0.8s ease-out 0.1s both;
}

.feature-card:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.feature-card:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.feature-card:nth-child(4) {
  animation: fadeInRight 0.8s ease-out 0.4s both;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Smooth focus transitions */
*:focus {
  transition: all 0.2s ease;
}

/* Enhanced button interactions */
button, .btn, .nav-link, .store-badge {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on interactive elements */
.demo-color, .difficulty-card, .feature-card, .mode-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
  .nav-link, .btn, .demo-color, .demo-reset-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .circle {
    animation: none;
  }

  .hero::before {
    filter: none;
  }

  .btn-primary:hover {
    transform: none;
  }

  .difficulty-card:hover {
    transform: translateY(-3px);
  }

  .gradient-orb {
    animation: none;
  }

  .title-highlight {
    animation: none;
  }
}

/* Tablet Design */
@media (max-width: 1024px) {
  .header-content {
    padding: 15px 40px;
  }

  .nav {
    gap: 15px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  section {
    padding: 80px 40px;
  }

  .hero {
    padding: 100px 40px 80px;
    min-height: calc(100vh - 70px);
  }

  .hero h2 {
    font-size: 2.8rem;
  }

  .difficulty-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .download-stats {
    gap: 30px;
  }

  /* Privacy Policy Tablet */
  .privacy-content {
    padding: 70px 40px;
  }

  .privacy-container {
    padding: 40px;
  }
}

/* Mobile Design */
@media (max-width: 768px) {
  body {
    position: relative;
    overflow-x: hidden;
  }

  .header-content {
    padding: 10px 20px;
    min-height: 60px;
  }

  .logo-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .logo h1 {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(21, 30, 35, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav.active {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 15px 20px;
    margin: 5px 0;
    border-radius: 12px;
    background: rgba(32, 46, 54, 0.5);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: rgba(154, 90, 244, 0.2);
    border-color: var(--primary);
    transform: translateX(5px);
  }

  section {
    padding: 60px 20px;
  }

  .content-section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  /* About section mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .lead-text {
    font-size: 1.2rem;
  }

  .highlight-item {
    padding: 15px;
  }

  .highlight-item:hover {
    transform: translateY(-3px);
  }

  .visual-grid {
    max-width: 160px;
  }

  .visual-item {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Steps section mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .step {
    padding: 25px;
  }

  .step-title {
    font-size: 1.2rem;
  }

  /* Game modes mobile */
  .game-modes {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mode-card {
    padding: 25px;
  }

  .mode-icon {
    font-size: 2.5rem;
  }

  .mode-title {
    font-size: 1.2rem;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  /* Testimonials mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .testimonials-stats {
    gap: 30px;
  }

  .testimonial-stat .stat-number {
    font-size: 1.6rem;
  }

  /* Footer mobile */
  .footer-content {
    padding: 40px 20px 30px;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-section:first-child,
  .footer-section:not(:first-child) {
    flex: 1;
    width: 100%;
  }

  .footer-bottom-content {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .hero {
    margin-top: 100px;
    padding: 60px 20px 60px;
    min-height: calc(100vh - 100px);
  }

  .orb-1 {
    width: 250px;
    height: 250px;
    top: 5%;
    left: 10%;
  }

  .orb-2 {
    width: 200px;
    height: 200px;
    top: 65%;
    right: 5%;
  }

  .orb-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 50%;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    flex-direction: column;
    gap: 10px;
  }

  .feature-tag {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .hero-actions {
    gap: 25px;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 16px 32px;
  }

  .hero-stats {
    gap: 25px;
  }

  .hero-stats .stat-number {
    font-size: 1.5rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .store-badge img {
    height: 45px;
  }

  .download-stats {
    gap: 15px;
  }

  .stat-highlight {
    min-width: 80px;
    padding: 10px;
  }
}

/* Ensure full width on all screen sizes */
@media (min-width: 769px) {
  .hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  
  .demo-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* Prevent horizontal scroll issues */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Additional fixes for viewport issues */
.hero, .demo-section {
  position: relative;
  left: 0;
  right: 0;
}  .stat-number {
    font-size: 1.4rem;
  }

  .demo-section {
    padding: 60px 20px;
    min-height: 500px;
  }

  .demo-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

  .demo-game {
    padding: 25px;
  }

  .forbidden-display {
    flex-direction: column;
    gap: 10px;
  }

  .forbidden-color {
    font-size: 1.1rem;
    padding: 6px 16px;
  }

  .demo-grid {
    gap: 15px;
    padding: 20px;
  }

  .demo-color {
    width: 70px;
    height: 70px;
  }

  .demo-stats {
    gap: 20px;
    padding: 20px 25px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-divider {
    height: 50px;
  }

  .difficulty-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .difficulty-card {
    padding: 25px 20px;
  }

  .color-preview {
    gap: 6px;
  }

  .color-dot {
    width: 16px;
    height: 16px;
  }

  .difficulty-stats {
    flex-direction: column;
    gap: 10px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-highlights-centered {
    gap: 20px;
    margin-bottom: 40px;
  }

  .highlight-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .highlight-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 2.5rem;
  }

  .highlight-box h4 {
    font-size: 1.4rem;
  }

  .highlight-box p {
    font-size: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  /* Privacy Policy Mobile */
  .privacy-content {
    padding: 50px 20px;
  }

  .privacy-container {
    padding: 25px;
  }

  .privacy-container h2 {
    font-size: 2.2rem;
  }

  .privacy-intro {
    padding: 20px;
  }

  .privacy-intro p {
    font-size: 1rem;
  }

  .privacy-section {
    padding: 20px;
    margin-bottom: 25px;
  }

  .privacy-section h3 {
    font-size: 1.3rem;
  }

  .contact-info {
    padding: 15px;
  }
}

/* Small Mobile Design */
@media (max-width: 480px) {
  .header-content {
    padding: 8px 15px;
  }

  .logo-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 12px 18px;
  }

  section {
    padding: 50px 15px;
  }

  .content-section {
    padding: 70px 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Mobile optimizations */
  .lead-text {
    font-size: 1.1rem;
  }

  .highlight-item {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .highlight-icon {
    min-width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .step {
    padding: 20px;
  }

  .step-icon {
    font-size: 2rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .mode-card,
  .feature-card {
    padding: 20px;
  }

  .mode-icon,
  .feature-icon {
    font-size: 2rem;
  }

  /* Small mobile testimonials */
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonials-stats {
    gap: 20px;
  }

  .testimonial-stat .stat-number {
    font-size: 1.4rem;
  }

  /* Small mobile footer */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    padding: 35px 15px 25px;
  }  .footer-bottom-content {
    padding: 15px;
  }

  .footer-badges {
    justify-content: center;
  }

  .hero {
    padding: 70px 15px 50px;
  }

  .orb-1 {
    width: 200px;
    height: 200px;
  }

  .orb-2 {
    width: 150px;
    height: 150px;
  }

  .orb-3 {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .feature-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 14px 28px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats .stat-number {
    font-size: 1.3rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 12px 25px;
  }

  .demo-section {
    padding: 50px 15px;
  }

  .demo-title {
    font-size: 1.8rem;
  }

  .demo-game {
    padding: 20px;
  }

  .forbidden-label {
    font-size: 1rem;
  }

  .forbidden-color {
    font-size: 1rem;
    padding: 5px 14px;
  }

  .demo-grid {
    gap: 12px;
    padding: 15px;
  }

  .demo-color {
    width: 60px;
    height: 60px;
  }

  .demo-stats {
    gap: 15px;
    padding: 15px 20px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stat-divider {
    height: 45px;
  }

  .stat-highlight {
    min-width: 80px;
    padding: 10px;
  }

  .difficulty-card {
    padding: 20px 15px;
  }

  /* Privacy Policy Mobile */
  .privacy-content {
    padding: 60px 15px;
  }

  .privacy-container {
    padding: 30px 20px;
  }

  .privacy-container h2 {
    font-size: 2rem;
  }

  .privacy-intro {
    padding: 20px;
  }

  .privacy-section {
    padding: 20px;
  }

  .privacy-section h3 {
    font-size: 1.2rem;
  }

  .contact-info {
    padding: 15px;
  }
}

/* Tablet layout - steps in 2 columns */
@media (min-width: 769px) and (max-width: 1023px) {
  .steps {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    max-width: 900px;
  }
}

/* Desktop UI Enhancements */
@media (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .game-modes {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .footer-content {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
}

@media (min-width: 1024px) {
  /* Enhance demo for desktop */
  .demo-container {
    max-width: 900px;
  }
  
  .demo-grid {
    max-width: 400px;
    gap: 25px;
    padding: 30px;
  }
  
  .demo-color {
    width: 100px;
    height: 100px;
  }
  
  /* Steps layout for desktop */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
  }
  
  .demo-stats {
    gap: 60px;
    padding: 30px;
    max-width: 500px;
  }
  
  /* Improve card layouts for desktop */
  .difficulty-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
  }
  
  .features {
    gap: 35px;
    max-width: 1100px;
  }
  
  .steps {
    max-width: 1000px;
  }
  
  /* Enhanced hero actions for desktop */
  .hero-actions {
    gap: 40px;
  }
  
  .btn-primary {
    font-size: 1.2rem;
    padding: 18px 40px;
  }
  
  .store-badges {
    gap: 20px;
  }
  
  .download-stats {
    gap: 40px;
    max-width: 700px;
  }
}

/* Ensure full width on all screen sizes */
@media (min-width: 769px) {
  .hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
  
  .demo-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }
}

/* Prevent horizontal scroll issues */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Additional fixes for viewport issues */
.hero, .demo-section {
  position: relative;
  left: 0;
  right: 0;
}

/* --- Utilities for blog/admin pages (avoid inline styles) --- */
.hidden { display: none !important; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.max-w-1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-left { text-align: left; }
.one-col-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cover-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-bottom: 16px; }

/* Markdown preview styles */
#markdown-preview { display:none; padding:15px; border:1px solid var(--border); border-radius:12px; background:rgba(21,30,35,0.4); }
#markdown-preview.show { display:block; }
#markdown-preview strong.preview-title { display:block; margin-bottom:8px; }
#markdown-preview-content { font-size:0.95rem; line-height:1.5; color:var(--text-secondary); }

/* Privacy Page Specific Styles */
.privacy-hero {
  padding: 120px 20px 80px;
  min-height: 60vh;
}

.privacy-hero .hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.privacy-hero .hero-description {
  font-size: 1.3rem;
}

/* Blog Page Specific Styles */
.blog-hero {
  min-height: auto;
  padding-bottom: 80px;
}

.blog-hero .hero-content {
  max-width: 1200px;
}

.blog-posts-section {
  margin-top: 60px;
  width: 100%;
}

.blog-posts-title {
  text-align: left;
  margin-bottom: 40px;
  font-size: 2rem;
  color: white;
}

.last-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 90, 244, 0.1);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--primary);
}

.privacy-content {
  padding: 80px 20px;
  background: var(--bg-primary);
}

.privacy-intro {
  text-align: center;
  margin-bottom: 60px;
}

.privacy-intro .section-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.privacy-sections {
  display: grid;
  gap: 30px;
}

.privacy-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.privacy-card {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.privacy-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(154, 90, 244, 0.1);
}

.privacy-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--border);
}

.privacy-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(154, 90, 244, 0.5));
}

.privacy-card-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.privacy-card-content {
  padding: 30px;
}

.privacy-card:has(.contact-single) .privacy-card-content {
  text-align: center;
}

.privacy-card-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.privacy-subsection {
  margin-bottom: 30px;
}

.privacy-subsection:last-child {
  margin-bottom: 0;
}

.privacy-subsection h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.list-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-single {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-types p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.contact-email {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  background: rgba(154, 90, 244, 0.1);
  border: 1px solid var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(154, 90, 244, 0.2);
  transform: translateY(-2px);
}

.contact-response {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.contact-response p {
  margin: 0;
  color: var(--hint-text);
  font-size: 0.9rem;
}

.contact-response p:first-child {
  color: var(--text);
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(21, 30, 35, 0.6);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary);
  background: rgba(154, 90, 244, 0.05);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-details span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Privacy page responsive design */
@media (max-width: 768px) {
  .privacy-hero {
    padding: 100px 20px 60px;
    min-height: 50vh;
  }
  
  .privacy-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .privacy-hero .hero-description {
    font-size: 1.1rem;
  }
  
  .privacy-content {
    padding: 60px 20px;
  }
  
  .privacy-card-header,
  .privacy-card-content {
    padding: 25px 20px;
  }
  
  .privacy-card-header h3 {
    font-size: 1.3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Admin Login Mobile */
  .auth-container {
    padding: 40px 15px;
  }

  .icon-circle-80 {
    width: 75px;
    height: 75px;
  }

  .icon-xxl {
    font-size: 2.3rem;
  }

  .auth-card {
    border-radius: 20px;
  }

  .auth-card-header {
    padding: 30px 25px 20px;
  }

  .auth-card-header h3 {
    font-size: 1.5rem;
  }

  .login-form {
    padding: 30px 25px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .btn-login {
    padding: 14px;
    font-size: 1rem;
  }
}

/* ====================================
   BLOG STYLES
   ==================================== */

/* Blog Cards Grid */
.features.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: rgba(32, 46, 54, 0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(154, 90, 244, 0.25);
  border-color: var(--primary);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: rgba(21, 30, 35, 0.8);
  position: relative;
}

.blog-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 53, 76, 0.6), rgba(32, 46, 54, 0.8));
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--hint-text);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.blog-tag {
  background: rgba(154, 90, 244, 0.15);
  border: 1px solid rgba(154, 90, 244, 0.3);
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hint-text);
  font-size: 0.85rem;
}

.blog-card-meta i {
  font-size: 0.9rem;
}

.btn-blog-read {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-blog-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 90, 244, 0.4);
  color: white;
}

.btn-blog-read i {
  transition: transform 0.3s ease;
}

.btn-blog-read:hover i {
  transform: translateX(3px);
}

/* Blog Post Page */
.blog-post-article {
  background: rgba(32, 46, 54, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-cover {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-color: rgba(21, 30, 35, 0.8);
}

.blog-post-header {
  padding: 40px 50px 30px;
  border-bottom: 1px solid var(--border);
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-post-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hint-text);
  font-size: 0.95rem;
}

.blog-post-date i {
  font-size: 1rem;
}

.blog-post-content {
  padding: 40px 50px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  color: var(--text);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.blog-post-content h1 { font-size: 2rem; }
.blog-post-content h2 { font-size: 1.6rem; }
.blog-post-content h3 { font-size: 1.3rem; }
.blog-post-content h4 { font-size: 1.1rem; }

.blog-post-content p {
  margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 20px;
  margin-left: 25px;
}

.blog-post-content li {
  margin-bottom: 10px;
}

.blog-post-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.blog-post-content a:hover {
  border-bottom-color: var(--primary);
}

.blog-post-content code {
  background: rgba(21, 30, 35, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

.blog-post-content pre {
  background: rgba(21, 30, 35, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.blog-post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--hint-text);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.btn-back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 53, 76, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.btn-back-to-blog:hover {
  background: rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-3px);
}

.btn-back-to-blog i {
  transition: transform 0.3s ease;
}

.btn-back-to-blog:hover i {
  transform: translateX(-3px);
}

/* Error Messages */
.error-message {
  text-align: center;
  padding: 60px 30px;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.3);
  border-radius: 20px;
  max-width: 500px;
  margin: 40px auto;
}

.error-message i {
  font-size: 4rem;
  color: var(--error);
  margin-bottom: 20px;
  display: block;
}

.error-message h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 15px;
}

.error-message p {
  color: var(--hint-text);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.error-message .btn-primary {
  margin-top: 20px;
}

/* Blog Post Container Max Width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile Responsive Blog */
@media (max-width: 768px) {
  .blog-card-title {
    font-size: 1.2rem;
  }
  
  .blog-post-cover {
    height: 250px;
  }
  
  .blog-post-header {
    padding: 30px 25px 20px;
  }
  
  .blog-post-title {
    font-size: 1.8rem;
  }
  
  .blog-post-content {
    padding: 30px 25px;
    font-size: 1rem;
  }
  
  .blog-post-content h1 { font-size: 1.6rem; }
  .blog-post-content h2 { font-size: 1.4rem; }
  .blog-post-content h3 { font-size: 1.2rem; }
  
  .error-message {
    padding: 40px 20px;
  }
  
  .error-message i {
    font-size: 3rem;
  }
  
  .error-message h3 {
    font-size: 1.4rem;
  }
}

/* ====================================
   ADMIN PANEL STYLES
   ==================================== */

/* Bootstrap Dark Theme Overrides - Enhanced */
.card {
  background: linear-gradient(135deg, rgba(47, 53, 76, 0.6), rgba(32, 46, 54, 0.5));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed) !important;
  border-bottom: none;
}

.card-header.bg-success {
  background: linear-gradient(135deg, var(--success), #16a34a) !important;
  border-bottom: none;
}

.card-header {
  border-bottom: 1px solid var(--border);
}

.form-control,
.form-select {
  background: rgba(21, 30, 35, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(32, 46, 54, 0.7);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 0.25rem rgba(154, 90, 244, 0.25);
}

.form-control::placeholder {
  color: var(--hint-text);
  opacity: 0.7;
}

.input-group-text {
  background: rgba(47, 53, 76, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
}

.table {
  color: var(--text);
}

.table-light {
  background: rgba(47, 53, 76, 0.3);
  color: var(--text);
}

.table-light th {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.table-hover tbody tr:hover {
  background: rgba(154, 90, 244, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(154, 90, 244, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8b4be3, #6d2ec9);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(154, 90, 244, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(21, 128, 61, 0.5);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-outline-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(47, 53, 76, 0.3);
}

.btn-outline-secondary:hover {
  background: rgba(154, 90, 244, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-success:hover {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.btn-outline-danger {
  color: var(--error);
  border-color: var(--error);
  background: rgba(185, 28, 28, 0.1);
}

.btn-outline-danger:hover {
  background: var(--error);
  border-color: var(--error);
  color: white;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-muted {
  color: var(--hint-text) !important;
}

.badge {
  font-weight: 600;
  padding: 6px 12px;
}

.badge.bg-success {
  background: linear-gradient(135deg, var(--success), #16a34a) !important;
}

.badge.bg-secondary {
  background: rgba(107, 114, 128, 0.6) !important;
  color: var(--text) !important;
}

/* Auth Container - Centered Login */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(154, 90, 244, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-header-animate {
  animation: fadeInDown 0.6s ease-out;
}

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

.auth-card {
  background: linear-gradient(135deg, rgba(47, 53, 76, 0.8), rgba(32, 46, 54, 0.7));
  border: 1px solid rgba(154, 90, 244, 0.2);
  border-radius: 24px;
  padding: 0;
  max-width: 480px;
  width: 100%;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(154, 90, 244, 0.1) inset;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  position: relative;
}

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

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9a5af4, #7c3aed, #9a5af4);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.auth-card-header {
  padding: 40px 40px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(154, 90, 244, 0.1);
}

.auth-card-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-card-header p {
  color: var(--hint-text);
  font-size: 0.95rem;
  margin: 0;
}

.login-form {
  padding: 40px 40px 50px;
}

/* Admin Login helpers */
.narrow-container {
  max-width: 500px;
  margin: 0 auto;
}

.icon-circle-80 {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a5af4, #7c3aed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(154, 90, 244, 0.4);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(154, 90, 244, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(154, 90, 244, 0.6);
  }
}

.icon-circle-80 i { 
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.icon-xxl { font-size: 2.8rem; }

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.form-label i {
  font-size: 1rem;
  color: var(--primary);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(21, 30, 35, 0.6);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--hint-text);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(21, 30, 35, 0.8);
  box-shadow: 0 0 0 4px rgba(154, 90, 244, 0.1);
}

.input-focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9a5af4, #7c3aed);
  transition: width 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.form-input:focus ~ .input-focus-border {
  width: 100%;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(154, 90, 244, 0.1);
  border: none;
  color: var(--hint-text);
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary);
  background: rgba(154, 90, 244, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
  font-size: 1.1rem;
  line-height: 1;
}

.password-wrapper .form-input {
  padding-right: 50px;
}

.btn-login {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: scale(0.98);
}

.btn-content,
.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-login.loading .btn-content {
  opacity: 0;
}

.btn-login.loading .btn-loader {
  display: flex;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.auth-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.google-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Admin Header */
.admin-header {
  background: linear-gradient(135deg, rgba(47, 53, 76, 0.6), rgba(32, 46, 54, 0.5));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 10px rgba(154, 90, 244, 0.4);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-details strong {
  font-size: 0.85rem;
  color: var(--hint-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#user-email {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.user-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* Form Rows */
.form-row {
  margin-bottom: 20px;
}

/* Generic alerts (non-admin pages) */
.alert {
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
}
.alert-danger {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.alert-warning {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

/* 404 Page */
.error-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.error-wrapper .icon-circle-80 { margin: 0 auto 16px; }
.error-code {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.error-subtitle {
  color: var(--hint-text);
  margin-bottom: 24px;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-secondary-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-secondary-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select,
.form-file {
  width: 100%;
  padding: 12px 16px;
  background: rgba(21, 30, 35, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(32, 46, 54, 0.7);
  box-shadow: 0 0 0 3px rgba(154, 90, 244, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  font-family: 'Monaco', 'Courier New', monospace;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-file {
  cursor: pointer;
  padding: 10px 16px;
}

.form-file::file-selector-button {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.form-file::file-selector-button:hover {
  background: #8b4be3;
  transform: translateY(-1px);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 0;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.form-check-input {
  background-color: rgba(47, 53, 76, 0.5);
  border: 1px solid var(--border);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(154, 90, 244, 0.25);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Admin Sections */
.admin-section {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Spinner */
.spinner-border {
  border-color: var(--primary);
  border-right-color: transparent;
}

.text-center {
  text-align: center;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .auth-card {
    padding: 30px 25px;
  }
}

/* Markdown Preview Styling */
.markdown-preview-box {
  background: rgba(32, 46, 54, 0.3) !important;
  border: 1px solid var(--border) !important;
  min-height: 200px;
}

.markdown-preview-box .markdown-body {
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 15px;
  max-height: 600px;
  overflow-y: auto;
}

.markdown-preview-box .markdown-body h1,
.markdown-preview-box .markdown-body h2,
.markdown-preview-box .markdown-body h3,
.markdown-preview-box .markdown-body h4,
.markdown-preview-box .markdown-body h5,
.markdown-preview-box .markdown-body h6 {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
  margin-top: 24px;
  margin-bottom: 16px;
}

.markdown-preview-box .markdown-body h1 { font-size: 2em; }
.markdown-preview-box .markdown-body h2 { font-size: 1.5em; }
.markdown-preview-box .markdown-body h3 { font-size: 1.25em; }

.markdown-preview-box .markdown-body p {
  margin-bottom: 16px;
}

.markdown-preview-box .markdown-body a {
  color: var(--primary);
  text-decoration: none;
}

.markdown-preview-box .markdown-body a:hover {
  text-decoration: underline;
}

.markdown-preview-box .markdown-body code {
  background: rgba(21, 30, 35, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

.markdown-preview-box .markdown-body pre {
  background: rgba(21, 30, 35, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.markdown-preview-box .markdown-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.markdown-preview-box .markdown-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--hint-text);
}

.markdown-preview-box .markdown-body ul,
.markdown-preview-box .markdown-body ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.markdown-preview-box .markdown-body li {
  margin-bottom: 4px;
}

.markdown-preview-box .markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
}

.markdown-preview-box .markdown-body table th,
.markdown-preview-box .markdown-body table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.markdown-preview-box .markdown-body table th {
  background: rgba(47, 53, 76, 0.5);
  font-weight: 600;
}

.markdown-preview-box .markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-details strong {
  font-size: 0.85rem;
  color: var(--hint-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#user-email {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.user-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* Form Rows */
.form-row {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select,
.form-file {
  width: 100%;
  padding: 12px 16px;
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(47, 53, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(154, 90, 244, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
  font-family: 'Monaco', 'Courier New', monospace;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-file {
  cursor: pointer;
  padding: 10px 16px;
}

.form-file::file-selector-button {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.form-file::file-selector-button:hover {
  background: #8b4be3;
  transform: translateY(-1px);
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 0;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox span {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Admin Sections */
.admin-section {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* New Admin Panel Styles */
.admin-header-card {
  background: rgba(47, 53, 76, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9a5af4, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.admin-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hint-text);
  letter-spacing: 1px;
}

.admin-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.btn-logout {
  background: transparent;
  border: 2px solid #ef4444;
  color: #ef4444;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.admin-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-title i {
  color: var(--primary);
}

.admin-subtitle {
  color: var(--hint-text);
  font-size: 1.1rem;
}

.admin-card {
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-card-header {
  background: linear-gradient(135deg, #9a5af4, #7c3aed);
  padding: 20px 30px;
  border-bottom: 1px solid var(--border);
}

.admin-card-header-success {
  background: linear-gradient(135deg, #15803d, #16a34a);
}

.admin-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-body {
  padding: 30px;
}

.preview-label {
  display: block;
  margin-bottom: 12px;
  color: var(--hint-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-save, .btn-new {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-save {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: white;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
}

.btn-new {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-new:hover {
  background: rgba(47, 53, 76, 0.5);
  border-color: var(--primary);
  color: var(--primary);
}

/* Override Bootstrap form colors for dark theme */
.admin-section .form-control,
.admin-section .form-select {
  background: rgba(32, 46, 54, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
}

.admin-section .form-control:focus,
.admin-section .form-select:focus {
  background: rgba(32, 46, 54, 0.7);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(154, 90, 244, 0.2);
}

.admin-section .form-control::placeholder {
  color: var(--hint-text);
}

.admin-section .form-label {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-section .form-check-input {
  background-color: rgba(32, 46, 54, 0.5);
  border-color: var(--border);
}

.admin-section .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.admin-section .form-check-label {
  color: var(--text);
  margin-left: 8px;
}

.admin-section .input-group-text {
  background: rgba(32, 46, 54, 0.5);
  border: 1px solid var(--border);
  color: var(--hint-text);
}

/* Table styling for dark theme */
.admin-section .table {
  color: var(--text);
  margin-bottom: 0;
}

.admin-section .table-light {
  background: rgba(47, 53, 76, 0.3);
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.admin-section .table-light th {
  font-weight: 600;
  color: var(--text);
  border: none;
  padding: 16px;
}

.admin-section .table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.admin-section .table tbody tr:hover {
  background: rgba(47, 53, 76, 0.2);
}

.admin-section .table td {
  padding: 16px;
  vertical-align: middle;
  border: none;
}

.admin-section .badge {
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-section .btn-group .btn {
  padding: 6px 12px;
}

.admin-section .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-section .btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.admin-section .btn-outline-success {
  border-color: #16a34a;
  color: #16a34a;
}

.admin-section .btn-outline-success:hover {
  background: #16a34a;
  color: white;
}

.admin-section .btn-outline-danger {
  border-color: #ef4444;
  color: #ef4444;
}

.admin-section .btn-outline-danger:hover {
  background: #ef4444;
  color: white;
}

.admin-section .alert {
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 16px;
}

.admin-section .alert-info {
  border-left: 4px solid #3b82f6;
}

.admin-section .alert-danger {
  border-left: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
  }
  
  .admin-header-card {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .btn-logout {
    width: 100%;
    justify-content: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
  }
  
  .btn-save, .btn-new {
    width: 100%;
    justify-content: center;
  }
}

/* Posts Table Enhanced Styles */
.posts-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--hint-text);
  font-weight: 500;
}

.posts-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.posts-filters {
  display: flex;
  gap: 12px;
}

.filter-btn {
  background: rgba(47, 53, 76, 0.3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(47, 53, 76, 0.5);
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-color: var(--primary);
  color: white;
}

.posts-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.posts-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hint-text);
  font-size: 1.1rem;
}

.posts-search input {
  width: 100%;
  background: rgba(32, 46, 54, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px 12px 45px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.posts-search input:focus {
  outline: none;
  background: rgba(32, 46, 54, 0.7);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(154, 90, 244, 0.2);
}

.posts-search input::placeholder {
  color: var(--hint-text);
}

.posts-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.posts-table-wrapper {
  background: rgba(47, 53, 76, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
}

.posts-table thead {
  background: rgba(47, 53, 76, 0.4);
  border-bottom: 2px solid var(--border);
}

.posts-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.posts-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.posts-table tbody tr:hover {
  background: rgba(47, 53, 76, 0.3);
}

.posts-table tbody tr:last-child {
  border-bottom: none;
}

.posts-table tbody td {
  padding: 16px 20px;
  vertical-align: middle;
}

.post-title strong {
  color: var(--text);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.post-excerpt {
  color: var(--hint-text);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.4;
}

.post-slug {
  background: rgba(21, 30, 35, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  border: 1px solid var(--border);
}

.post-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.status-published {
  background: rgba(21, 128, 61, 0.2);
  color: #16a34a;
  border: 1px solid rgba(21, 128, 61, 0.3);
}

.status-draft {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.post-date {
  color: var(--hint-text);
  font-size: 0.9rem;
}

.post-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(32, 46, 54, 0.3);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-edit:hover {
  background: var(--primary);
  color: white;
}

.btn-toggle-publish {
  border-color: #16a34a;
  color: #16a34a;
}

.btn-toggle-publish:hover {
  background: #16a34a;
  color: white;
}

.btn-toggle-draft {
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-toggle-draft:hover {
  background: #f59e0b;
  color: white;
}

.btn-delete {
  border-color: #ef4444;
  color: #ef4444;
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
}

.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
}

.success-notification.show {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .posts-stats {
    grid-template-columns: 1fr;
  }
  
  .posts-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .posts-filters {
    flex-wrap: wrap;
  }
  
  .posts-search {
    max-width: 100%;
  }
  
  .posts-table-wrapper {
    overflow-x: auto;
  }
  
  .posts-table {
    min-width: 800px;
  }
  
  .success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }
  
  .success-notification.show {
    transform: translateY(0);
  }
}
