/* ==========================================================================
   NOSTRMAG - Purple Theme CSS
   Version: 3.0 - Mobile First & Responsive
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables & Reset
   ========================================================================== */

:root {
  /* Color Palette - Purple Theme */
  --purple: #9068F5;
  --purple-light: #c084fc;
  --purple-dark: #5d4bcc;
  --purple-gradient: linear-gradient(135deg, #9068F5, #c084fc);

  /* Background Colors */
  --bg-dark: #0d0b1c;
  --bg-card: #1a1638;
  --bg-light: #f8f5ff;
  --bg-card-light: #e0d8ff;

  /* Text Colors */
  --text-light: #e0d8ff;
  --text-dark: #2d1b69;
  --text-muted: rgba(224, 216, 255, 0.8);
  --text-muted-light: rgba(45, 27, 105, 0.8);

  /* UI Elements */
  --shadow: 0 4px 20px rgba(144, 104, 245, 0.4);
  --shadow-hover: 0 10px 30px rgba(144, 104, 245, 0.6);
  --border-radius: 10px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --border-color: rgba(144, 104, 245, 0.2);
  --icon-color: #666;
  --text-primary: var(--text-light);
  --text-secondary: var(--text-muted);
  --bg-primary: var(--bg-card);

  @media (prefers-color-scheme: light) {
  :root {
    --text-primary: var(--text-dark);
    --text-secondary: var(--text-muted-light);
    --bg-primary: var(--bg-card-light);
  }
}

[data-theme="light"] {
  --bg-primary: var(--bg-light);
  --bg-secondary: var(--bg-card-light);
  --bg-card: var(--bg-card-light);  /* ← ADD THIS LINE */
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-muted-light);
  --border-color: rgba(144, 104, 245, 0.1);
  --icon-color: #999;

}

[data-theme="dark"] {
  --bg-primary: var(--bg-dark);
  --bg-secondary: var(--bg-card);
  --text-primary: var(--text-light);
  --text-secondary: var(--text-muted);
  --border-color: rgba(144, 104, 245, 0.2);
  --icon-color: #666;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1638 100%);
  color: var(--text-light);
  transition: background 0.3s, color 0.3s;
}

body[data-theme="light"] {
  background: linear-gradient(135deg, #f8f5ff 0%, #e0d8ff 100%);
  color: var(--text-dark);
}

body[data-theme="dark"] {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1638 100%);
  color: var(--text-light);
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--purple-light);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--purple);
}


/* ==========================================================================
   3. Layout & Containers
   ========================================================================== */

.login-title {
 width: 90%;
 max-width: 90%;
 max-width: 500px;
 margin: 140px auto;
 margin-bottom: 40px;
 padding: 0 var(--space-sm);
}


.container-login {
  width: 100%;
  max-width: 100%;
  padding-top: 190px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.main-content {
  padding-top: 70px;
  min-height: calc(100vh - 200px);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   4. Navigation -
   ========================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(13, 11, 28, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 70px;
  transition: var(--transition);
}

[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1001;
}

.logo-image {
  max-width: 120%; /* Adjust as needed */
  height: auto;
  max-height: 60px; /* Adjust to fit your design */
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1002;
  padding: 5px;
  border-radius: 5px;
  transition: var(--transition);
  color: var(--text-primary);
}

.hamburger:hover {
  background: rgba(144, 104, 245, 0.1);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition);
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  color: white;
  background: rgba(144, 104, 245, 0.1);
}

[data-theme="light"] .nav-link {
  color: var(--text-dark);
}

[data-theme="light"] .nav-link:hover {
  color: var(--purple);
  background: rgba(144, 104, 245, 0.1);
}

/* User Area  */
.user-area {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--purple-light);
}

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple);
}

/* Button spacing in user area */
.user-area > *:not(#themeToggle) {
  flex-shrink: 0;
}

/* Mobile User Info */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-right: auto;
  margin-left: var(--space-md);
}

.mobile-user-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.mobile-user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple);
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
}

.mobile-user-name {
  font-weight: 600;
  color: var(--purple-light);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mobile-user-status {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.premium-star {
  color: gold;
  font-size: 0.8rem;
}

.admin-link {
  color: var(--purple-light) !important;
  font-weight: bold;
}

.theme-toggle {
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(144, 104, 245, 0.1);
  border: 2px solid rgba(144, 104, 245, 0.3);
  color: var(--purple-light);
}

/* Position theme toggle */
#themeToggle {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  margin: 0;
  z-index: 1001;
  width: 40px;
  height: 40px;
}

#themeToggle i {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.logout-btn {
  border-radius: 20px;
  padding: 8px 15px;
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.premium-btn {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));

  /* Flexible sizing */
  width: var(--btn-width, auto);  /* Custom width with fallback */
  height: var(--btn-height, 40px);  /* Custom height with fallback */

  /* Typography control */
  font-size: var(--btn-font-size, 1rem);  /* Adjustable font size */
  line-height: var(--btn-line-height, 1.5);  /* Adjustable line height */

  /* Additional recommended properties */
  padding: var(--btn-padding, 0.5rem 1rem);  /* Flexible internal spacing */
  border-radius: var(--btn-radius, 8px);  /* Rounded corners */

  /* Improve readability and interaction */
  color: var(--btn-text-color, white);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.premium-btn:hover {
  color: var(--btn-text-color, white);
}


/* Hide mobile user info on desktop */
@media (min-width: 769px) {
  .mobile-user-info {
    display: none !important;
  }
}

/* Show on mobile */
@media (max-width: 768px) {
  .mobile-user-info {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--purple-gradient);
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple-light);
}

.btn-outline:hover {
  background: rgba(144, 104, 245, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.btn-warning {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

/* ==========================================================================
   6. Carousel
   ========================================================================== */

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  /* Remove fixed height - let content determine height */
  height: auto;
  padding-bottom: 0px;
  width: 100%; /* Ensure full width */
}

.carousel-card {
  flex: 0 0 33.333%;
  padding: 0 10px; /* Increased padding for better spacing */
  transition: all 0.5s ease;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Make card a flex column */
}

/* This ensures all cards in a row have the same height */
.carousel-track {
  align-items: stretch; /* Make all cards stretch to same height */
}

.carousel-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  flex-shrink: 0; /* Prevent image from shrinking */
}

.carousel-card-content {
  flex: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  padding: 15px 5px;
}

.carousel-card-overlay {
  flex: 1; /* Allow overlay to take available space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(
    rgba(20, 20, 20, 0.1),
    rgba(10, 10, 10, 0.2)
  );
  padding: 15px;
  border-radius: 0 0 15px 15px;
}

.carousel-card-overlay h3 {
  color: var(--purple-dark);
  margin: 0 0 10px 0;
  margin-bottom: auto; /* Pushes everything below it down */
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
}

.carousel-card-overlay p {
  color: var(--purple-dark);
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines for consistency */
  -webkit-box-orient: vertical;
}

/* Hide extra dots in desktop mode */
@media (min-width: 768px) {
  .carousel-dot:nth-child(n+3) {
    display: none !important;
  }

  /* Ensure only 2 dots are visible */
  .carousel-dots {
    max-width: 50px; /* Limit width to show only 2 dots */
    margin-left: auto;
    margin-right: auto;
  }
}

.carousel-arrow {
  position: absolute;
  top: 40%; /* Adjusted for better vertical centering */
  transform: translateY(-50%);
  background: rgba(144, 104, 245, 0.9);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(144, 104, 245, 0.3);
}

.carousel-arrow:hover {
  background: rgba(144, 104, 245, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(144, 104, 245, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: rgba(144, 104, 245, 1);
  transform: scale(1.1);
}

.member-info {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: rgba(144, 104, 245, 0.1);
  border-radius: 15px;
  border-left: 5px solid var(--purple);
}

.about-title {
  font-family: 'GeoBrandBold', 'CenturyGothic', 'AppleGothic', 'Gill Sans', 'Gill Sans MT', 'sans-serif';
  width: 100%;
  max-width: 100%;
  text-align: center;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  line-height: 1.19;
  font-size: 2.0rem;
  margin: 40px auto;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--purple), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 600;
}

/* Articles List Styles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 10px;
  margin: 40px 55px;
  width: 60%;
}

.article-card {
  background: rgba(26, 22, 56, 0.5);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(144, 104, 245, 0.1);
}

[data-theme="light"] .article-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(144, 104, 245, 0.5);
  box-shadow: 0 10px 30px rgba(144, 104, 245, 0.2);
}

.article-page {
  padding: 140px 20px 50px;
  max-width: 900px;
  margin: 0 auto;
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content h3 {
  margin: 10px 10px 10px;
  font-size: 1.3rem;
  color: var(--purple-dark);
}

[data-theme="light"] .article-content h3 {
  color: var(--purple-dark);
}

[data-theme="light"] .article-content .teaser {
  color: var(--text-muted-light) !important;
}

.article-content .teaser {
  margin: 10px 10px 10px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Ensure ad article content is fully visible */
.ad-article {
  position: relative;
  border: 1px solid #FF6B6B !important;
  z-index: 1;
  opacity: 1 !important;
  visibility: visible !important;
}

.article-meta {
  margin: 10px 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--purple-light);
}

.article-hero-image {
  width: 100%;
  height: 375px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0px;
}

.ad-badge {
  margin: 10px 10px 10px;
  display: inline-block;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-badge {
  margin: 10px 10px 10px;
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 15px;
}

.ad-article:hover {
  animation: none;
}

/* Badge styles */
.badge-container {
  margin-bottom: 0px;
}

.ad-badge {
  margin: 10px 10px 10px;
  display: inline-block;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.premium-badge {
  margin: 10px 10px 10px;
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.normie-badge {
  margin: 10px 10px 10px;
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Article meta styles */
.article-meta-mobile,
.article-meta-desktop {
  margin: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.article-author {
  font-size: 0.9rem;
  margin: 5px 0px 10px;
  color: var(--purple-light);
}

.article-date {
  font-size: 0.8rem;
  margin: 5px 0px 10px;
  color: var(--purple-light);
  opacity: 0.8;
}

.author-badge-container {
   position: absolute;
   bottom: -5px;
   left: 30px;
   right: 20px;
   padding: 500px 5px -5px;
 }

 /* Comment Payment Styles */
 .comment-payment-options {
   max-width: 100%;
   width: 35%;
   background: rgba(144, 104, 245, 0.1);
   padding: 20px;
   border-radius: var(--border-radius-md);
   margin-bottom: 20px;
   margin-left: auto;
   margin-right: auto;
 }
/*
.desktop-ad-article::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 107, 107, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 2;
}
*/
/* ---------------------------------------- */
/* --------------- MOBILE ----------------- */
/* ---------------------------------------- */

@media (max-width: 768px) {

/* --------------- Carousel ----------------*/
  .carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 10px;
    overflow: hidden;
    padding: 10px 0px 20px;
    margin-top: 0px;
  }

  .carousel-arrow {
    position: absolute;
    top: 30%;
    transform: translateY(0%);
    background: rgba(144, 104, 245, 0.9);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(144, 104, 245, 0.3);
  }

  .carousel-arrow:hover {
    background: rgba(144, 104, 245, 1);
    transform: translateY(0%) scale(1.1);
  }

  .carousel-card {
    flex: 0 0 100%;
    padding: 0px 2px 50px;
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
  }

  .carousel-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0);
  }

  .carousel-track {
    height: 300px;
  }

  .carousel-card-overlay {
     position: relative !important;
     bottom: auto !important;
     background: var(--bg-card) !important;
     padding: 15px !important;
     border-radius: 0 0 15px 15px !important;
     margin-top: -5px; /* Connect with image */
   }

   .carousel-card-overlay h3 {
     color: var(--purple-light);
     padding-left: 0 !important;
     margin: 0 0 10px 0 !important;
     margin-bottom: auto; /* Pushes everything below it down */
     font-size: 1.1rem;
     font-weight: 600;
   }

   .author-badge-container {
      position: absolute;
      bottom: 5px;
      left: 20px;
      right: 20px;
      padding: 5px 5px -5px;
    }

    .author-badge-container p {
      margin: 0;
      display: flex;
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.9);
    }

    .author-text {
      display: flex;
      align-items: center;
      justify-content: auto;
      width: 100%;
    }


   .carousel-card-overlay p {
     color: var(--text-secondary);
     padding-left: 0 !important;
     margin: 0 !important;
     font-size: 0.9rem;
     opacity: 0.9;
   }

   [data-theme="light"] .carousel-card-overlay h3,
   [data-theme="light"] .carousel-card-overlay p {
     color: var(--text-dark) !important;
   }

/* ---------------- Artciles ------------------- */

  .article-page {
    width: 100%;
    max-width: 100%;
    padding: 40px 20px 20px;
  }

  .article-header {
    width: 100%;
    max-width: 100%;
    margin-left: 0px;
    margin: 15px 0px 10px;
  }

  .article-author {
    margin: 10px -10px 0px;
  }

  .article-date {
    margin: 0px -10px 10px;
  }

  .article-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .article-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--purple-light);
    margin: 0px -10px -20px;
  }

  .desktop-articles-grid {
    display: none !important;
  }

  .mobile-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px auto;
    padding: 0 5%;
    width: 100%;
  }

  .mobile-ad-article {
    width: 100% !important;
    margin: 0 auto !important;
    position: relative;
  }

  .article-image {
    height: 180px;
  }

  .article-header-mobile {
    margin: 10px 10px 10px;
    display: flex;
    flex-direction: column;
  }

  .article-content h3 {
    font-size: 1.6rem;
    margin: 8px 0;
  }

  .teaser {
    font-size: 0.9rem;
    margin-top: 12px;
  }

  .premium-badge {
    margin: -0px 0px 10px;
    padding: 3px 8px;
    margin-left: 8px;
  }

  .normie-badge {
    margin: -0px 0px 10px;
    margin-left: 8px;
  }

  .no-ads-placeholder {
    display: none;
  }

  /* Comment Payment Styles */
  .comment-payment-options {
    max-width: 100%;
    width: 100%;
    background: rgba(144, 104, 245, 0.1);
    padding: 25px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .payment-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
  }

/* ---------------- Login ------------------- */

  .login-title {
    width: 90%;
    max-width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
  }

  .container-login {
    width: 90%;
    max-width: 90%;
    max-width: 500px;
    margin: 40px auto;
    padding: 0 var(--space-sm);
  }

  .user-area {
    display: flex;
    flex-direction: column;  /* Stack vertically */
    gap: 10px;  /* Space between buttons */
    align-items: stretch;  /* Full width buttons */
  }

  .user-area .btn-small,
  .user-area .premium-btn {
    width: 100%;  /* Full width on mobile */
    text-align: center;
    margin: 5px 0;  /* Vertical spacing */
  }

  .user-area .premium-btn {
    order: -1;  /* Place premium button first */
  }

/* --------------- PREMIUM ------------------ */
  .compare-plans-container {
    max-width: 320px;
    margin: 40px auto;
    text-align: center;
  }

  .compare-plans-container h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    color: transparent;
  }

  .compare-plans-container p {
    font-size: 1.8rem;
    margin: 40px 0;
  }

  .plans-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 80px;
  }

  .plan-card {
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    border: 2px solid #444;
    background: #111;
  }

  .plan-card h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #888;
  }

  .plan-card h3 {
    font-size: 2.5rem;
    color: #888;
  }

  .plan-card ul {
    text-align: left;
    margin: 40px 0;
    font-size: 1.2rem;
    line-height: 2;
    color: #aaa;
    list-style: none;
    padding-left: 0;
  }

  .premium-plan {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    padding: 50px;
    margin-top: 25px;
    border-radius: 20px;
    width: 320px;
    transform: scale(1.0);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.5);
  }

  .premium-plan h2 {
    margin: 0;
    font-size: 2.5rem;
    color: lightGrey;
  }

  .premium-plan h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: lightGrey;
  }

  .premium-plan ul {
    text-align: left;
    margin: 30px 0;
    font-size: 1.2rem;
    line-height: 2;
    list-style: none;
    padding-left: 0;
    color: white;
  }

  .premium-plan .btn {
    width: 100%;
    padding: 25px;
    font-size: 1.3rem;
    font-weight: bold;
  }

  .premium-plan .discount-info {
    font-size: 1.5rem;
    color: #fff8;
  }

  .premium-plan .discount-info .original-price {
    text-decoration: line-through;
  }

  .premium-plan .discount-info .discount-amount {
    color: #0f0;
  }

  .premium-plan .remaining-days {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #fff8;
  }

  /* ------ Artcile Pay Wall ------- */

  .unlock-options-container {
    display: grid;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
  }
  .unlock-option-card {
    padding: 25px;
    border-radius: 15px;
  }

  .unlock-option-card.tip-to-unlock {
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(69,160,73,0.1));
    border: 2px solid rgba(76,175,80,0.3);
  }

  .unlock-option-card.upgrade-to-premium {
    background: linear-gradient(135deg, rgba(144,104,245,0.1), rgba(192,132,252,0.1));
    border: 2px solid rgba(144,104,245,0.3);
  }

  .unlock-option-card h4 {
    margin-bottom: 10px;
    font-size: 1rem; /* keeps consistency */
  }

  .unlock-option-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  /* Ensure buttons keep original style */
  .unlock-option-card .btn {
    width: 100%;
    font-weight: bold; /* assuming .btn already has font, just ensuring full-width */
  }

}

/* ==========================================================================
   7. Cards & Articles - SIMPLIFIED
   ========================================================================== */

/* ==========================================================================
   8. Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--purple-light);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(144, 104, 245, 0.3);
  border-radius: var(--border-radius);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

select {
  appearance: none; /* Removes default styling */
  -webkit-appearance: none; /* For webkit browsers */
  -moz-appearance: none; /* For Firefox */
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(144, 104, 245, 0.3);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  width: 100%;
}

[data-theme="dark"] select {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light); /* This will make the selected text and dropdown text dark */
}

select option {
  background-color: white; /* Ensures options are readable */
  color: black; /* Makes option text dark */
}

[data-theme="light"] .form-control {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border-color: rgba(144, 104, 245, 0.2);
}

[data-theme="dark"] .form-control {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  border-color: rgba(144, 104, 245, 0.2);
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(144, 104, 245, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  margin-bottom: var(--space-xs);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

/* ==========================================================================
   9. Tables
   ========================================================================== */

.table-responsive {
  overflow-x: auto;
  border: 2px solid rgba(144,104,245,0.2);
  border-radius: 10px;
  margin-bottom: var(--space-lg);
}

.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(144,104,245,0.1);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(144,104,245,0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(144,104,245,0.7);
}

.admin-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.admin-table th {
padding: 15px;
text-align: center;
font-weight: 600;
border-bottom: 2px solid rgba(144,104,245,0.3);
}

.admin-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(144,104,245,0.1);
}

.admin-table tr:hover {
  background: rgba(144,104,245,0.05);
}

.admin-section {
  border: 1px solid rgba(144,104,245,0.2);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-light);
}

[data-theme="light"] .data-table {
  color: var(--text-dark);
}

.data-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--purple-light);
  border-bottom: 2px solid rgba(144, 104, 245, 0.3);
  background: rgba(144, 104, 245, 0.1);
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(144, 104, 245, 0.1);
}

.data-table tbody tr:hover {
  background: rgba(144, 104, 245, 0.05);
}

/* ==========================================================================
   10. Modal & Overlays
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

[data-theme="light"] .modal-content {
  background: var(--bg-card-light);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--purple-light);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  text-align: center;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.8);
  margin-top: 100px;
  color: #777;
}

[data-theme="light"] .site-footer {
  background: rgba(144, 104, 245, 0.05);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 100px;
}

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

  .footer-section h3 {
  color: var(--purple-light);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-section a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin: 8px 0;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--purple-light);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--purple-light);
}

/* ==========================================================================
   12. Utility Classes
   ========================================================================== */

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

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(144, 104, 245, 0.2);
  color: var(--purple-light);
}

.badge-success {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.badge-warning {
  background: rgba(255, 152, 0, 0.2);
  color: #FF9800;
}

.badge-danger {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.badge.premium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.badge.free {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.badge.ad {
  background: rgba(33, 150, 243, 0.2);
  color: #2196F3;
}

.badge.current {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.badge.outdated {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

/* ==========================================================================
   13. Charts & Data Visualization
   ========================================================================== */

/* Chart Container Base Styles */
.chart-container {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(144, 104, 245, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  width: 100%;
}

[data-theme="light"] .chart-container {
  background: var(--bg-card-light);
  border-color: rgba(144, 104, 245, 0.1);
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 400px;
}

/* Specific chart containers */
#countriesChart-container {
  min-height: 400px;
  height: 400px;
  width: 100%;
}

/* Grid layout for charts */
.grid-3-tablet {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Pie chart cards */
.pie-chart-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(144, 104, 245, 0.2);
}

[data-theme="light"] .pie-chart-card {
  background: var(--bg-card-light);
  border-color: rgba(144, 104, 245, 0.1);
}

.pie-chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.lock-icon {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 20px;
}

/* Paywall Section */
.paywall-section {
  background: linear-gradient(135deg, rgba(144, 104, 245, 0.05), rgba(76, 175, 80, 0.05));
  border-radius: var(--border-radius-lg);
  padding: 0px 30px 30px;
  box-shadow: var(--shadow);
}

.paywall-header {
  text-align: center;
  margin-bottom: 30px;
}

.paywall-container {
  max-width: 1200px;
  margin: -50px auto;
  padding: 0 20px;
}

/* ==========================================================================
   14. Media Queries - Mobile Responsive
   ========================================================================== */

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }

  /* Show theme toggle in mobile */
  #themeToggle {
    display: flex !important;
    position: absolute !important;
    right: 60px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1001 !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  .desktop-tablet-only {
    display: none !important;
  }

  /* Mobile navigation layout */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 15px;
    position: fixed;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    margin: 0;
    width: 90%; /* Scales the logo down to 90% of its original size */
    max-width: 300px; /* Optional: adds a maximum width to prevent over-scaling */
  }

  .logo-image {
    max-width: 90%; /* Adjust as needed */
    height: auto;
    max-height: 40px; /* Adjust to fit your design */
  }

  .desktop-logo {
    display: none !important;
    max-width: 90%; /* Adjust as needed */
    height: auto;
    max-height: 40px; /* Adjust to fit your design */
  }

  .mobile-logo {
    max-width: 90%; /* Adjust as needed */
    height: auto;
    max-height: 50px; /* Adjust to fit your design */
  }

  .mobile-title {
    font-family: 'GeoBrandBold', 'CenturyGothic', 'AppleGothic', 'Gill Sans', 'Gill Sans MT', 'sans-serif';
    width: 100%;
    max-width: 100%;
    text-align: center;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    line-height: 1.19;
    font-size: 1.5rem;
    margin: 0px auto;
    padding: 90px 0px 0px;
    background: linear-gradient(135deg, var(--purple), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 600;
  }

  .mobile-user-info {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 1001;
  }

  .mobile-user-name {
    max-width: 100%;
  }

  .hamburger {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    display: block !important;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    z-index: 1002 !important;
  }

  .user-info.desktop-only {
    display: none !important;
  }
  /* Mobile */
  .nav-links {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    z-index: 999;
    border-bottom: 1px solid rgba(144, 104, 245, 0.2);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .admin-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px !important;
    margin: 5px 0 !important;
    background: rgba(144, 104, 245, 0.1);
    border: 2px solid rgba(144, 104, 245, 0.3);
    border-radius: var(--border-radius);
    color: var(--purple-light) !important;
    font-weight: 600;
    text-align: center;
  }

  .admin-link i {
    color: gold !important;
  }

  .main-content {
    padding-top: 60px;
  }

  /* Table styling for mobile */
  .countries-table .data-table {
    font-size: 0.9rem;
  }

  .countries-table .data-table th,
  .countries-table .data-table td {
    padding: 8px 6px;
  }

  /* Mobile chart container */
  .chart-container-mobile {
    overflow-x: auto;
    padding-bottom: 15px;
  }

  .chart-container-mobile canvas {
    min-width: 600px;
  }

  .footer-content {
    max-width: 400px;
    margin: 0 auto;
  }

  .author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }

  .author-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
  }

  .author-info .date-info {
    color: var(--text-muted);
  }

  .article-content {
    max-width: 95%;
    margin: var(--space-md) auto;
    padding: 0 var(--space-xm);
  }

  /* Paywall Layout Styles */
  .paywall-container {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 20px;
  }

  .paywall-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  @media (min-width: 992px) {
    .paywall-grid {
      grid-template-columns: 7fr 5fr;
      gap: 60px;
    }
  }

  /* Article Preview Card */
  .article-preview-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .article-preview-header {
    padding: 25px;
  }

  .article-preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
  }

  .article-preview-meta h2 {
    /*color: var(--text-muted);*/
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--purple-light);
    font-size: 0.9rem;
  }

  .meta-info .author,
  .meta-info .date {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .teaser {
    color: var(--text-grey);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
  }

  /* Paywall Section */
  .paywall-section {
    background: linear-gradient(135deg, rgba(144, 104, 245, 0.05), rgba(76, 175, 80, 0.05));
    border-radius: var(--border-radius-lg);
    padding: 0px 30px 30px;
    box-shadow: var(--shadow);
  }

  .paywall-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .lock-icon {
    font-size: 4rem;
    color: var(--purple);
    margin-bottom: 20px;
  }

  .paywall-header h1 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 2.2rem;
  }

  .paywall-subtitle {
    color: var(--dark-green);
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* Unlock Options */
  .unlock-options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .font-controls {
    display: inline-flex;
    align-items: center;
    gap: 50px;
    margin: 120px 120px 100px;
    background: rgba(144, 104, 245, 0.1);
    padding: 5px 5px;
    border-radius: 20px;
  }

}

/* Desktop & large tablets */
@media (min-width: 768px) {
  .about-title {
    font-family: 'GeoBrandBold', 'CenturyGothic', 'AppleGothic', 'Gill Sans', 'Gill Sans MT', 'sans-serif';
    width: 100%;
    max-width: 100%;
    text-align: center;
    letter-spacing: 6.0px;
    text-transform: uppercase;
    line-height: 1.19;
    font-size: 3.5rem;
    margin: 100px 0 10px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--purple), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 600;
  }

  .mobile-title {
    display: none !important;
  }

  /* Hide hamburger on desktop */
  .hamburger {
    display: none !important;
  }

  /* Navigation layout for desktop */
  .nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    /*margin-right: 10px; */
  }

  #themeToggle {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 0 0 var(--space-sm) !important;
    order: 2;
  }

  .author-info {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .author-info > div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    }

  .author-info .date-info {
      color: var(--text-muted);
      border-left: 1px solid var(--border-color);
      padding-left: 20px;
    }

    /* Icon Styling */
  .author-info i {
    margin-right: 5px;
    color: var(--icon-color, #666);
    }

/*      artciles       */
  .mobile-articles-grid {
    display: none !important;
  }

  .article-title {
    font-size: 1.7rem;
    margin-bottom: var(--space-sm);
    color: var(--purple-light);
  }

  .desktop-articles-grid {
    display: flex;
    gap: 30px;
    margin: 40px 55px;
    width: calc(100% - 110px);
  }

  .left-column {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .right-column {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
  }

  /* Custom scrollbar for right column */
  .right-column::-webkit-scrollbar {
    width: 6px;
  }

  .right-column::-webkit-scrollbar-track {
    background: rgba(144, 104, 245, 0.1);
    border-radius: 3px;
  }

  .right-column::-webkit-scrollbar-thumb {
    background: rgba(144, 104, 245, 0.5);
    border-radius: 3px;
  }

  .right-column::-webkit-scrollbar-thumb:hover {
    background: rgba(144, 104, 245, 0.7);
  }

  /* Adjust article card sizes for columns */
  .left-column .article-card {
    min-height: 250px;
  }

  .right-column .article-card {
    min-height: 180px;
  }

  .left-column .article-image {
    height: 200px;
  }

  .right-column .article-image {
    height: 140px;
  }

  .right-column .article-content h3 {
    font-size: 1.1rem;
  }

  .right-column .teaser {
    font-size: 0.85rem;
  }

  .article-header-desktop {
    display: flex;
    flex-direction: column;
    opacity: 1 !important; /* Force full opacity */
    visibility: visible !important; /* Force visibility */
  }

  /* Ensure ad article content is fully visible */
  /* Reset box-sizing for all elements to prevent sizing issues */
  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
  }

  .ad-article {
    position: relative;
    border: 2px solid #FF6B6B !important;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    /* Critical: Prevent flex items from shrinking too much */
    flex-shrink: 0 !important;
    /* Ensure proper sizing */
    width: 100% !important;
    max-width: 100% !important;
    /* Fix for border-box issues */
    box-sizing: border-box !important;
  }

  .ad-article .article-content {
    max-width: 100% !important;
    margin: var(--space-xm) auto !important;
    padding: 0 var(--space-xm) !important;
    /* Prevent text overflow */
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
  }

  .ad-article:hover {
    animation: none;
  }

  .no-ads-placeholder {
    background: rgba(26, 22, 56, 0.3);
    border: 2px dashed rgba(144, 104, 245, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    color: var(--purple-light);
    font-style: italic;
  }

  [data-theme="light"] .no-ads-placeholder {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(144, 104, 245, 0.2);
  }

  /* Paywall section - articles */
  .unlock-options-container {
    grid-template-columns: 1fr 1fr;
  }

  .article-preview-header {
    padding: 25px;
  }

  .article-preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
  }

    .unlock-option-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
  }

  .tip-to-unlock {
    border-color: rgba(76, 175, 80, 0.3);
  }

  .upgrade-to-premium {
    border-color: rgba(144, 104, 245, 0.3);
  }

  .unlock-option-card h4 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.3rem;
  }

  .unlock-option-card h4 i {
    margin-right: 8px;
  }

  .option-description {
    color: var(--dark-green);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .refresh-link {
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 20px;
  }

  .refresh-link a {
    color: var(--purple);
    text-decoration: none;
  }

  .premium-benefits {
    background: rgba(255, 193, 7, 0.1);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
  }

  .premium-benefits p {
    color: var(--dark-green);
    margin: 0;
    font-size: 0.95rem;
  }

  .premium-benefits i {
    color: #FFC107;
    margin-right: 8px;
  }

  /* Login Required */
  .login-required {
    text-align: center;
  }

  .login-btn {
    background: linear-gradient(135deg, var(--purple), #c084fc);
    color: white;
    padding: 15px 40px;
    border-radius: var(--border-radius-md);
    font-size: 1.2rem;
    width: 100%;
    margin-bottom: 15px;
    display: block;
    text-decoration: none;
  }

  .signup-link {
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .signup-link a {
    color: var(--purple);
    text-decoration: none;
  }

  .mobile-logo {
    display: none !important;
    max-width: 90%; /* Adjust as needed */
    height: auto;
    max-height: 40px; /* Adjust to fit your design */
  }

  .grid-2-tablet {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3-tablet {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4-tablet {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 10px;
    overflow: hidden;
    padding: 20px 0;
    margin-top: 40px;
  }

  /* -- PREMIUM -- */

  .compare-plans-container {
    max-width: 900px;
    margin: 100px auto;
    text-align: center;
  }

  .compare-plans-container h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    color: transparent;
  }

  .compare-plans-container p {
    font-size: 1.8rem;
    margin: 40px 0;
  }

  .plans-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 80px;
  }

  .plan-card {
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    border: 2px solid #444;
    background: #111;
  }

  .plan-card h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #888;
  }

  .plan-card h3 {
    font-size: 2.5rem;
    color: #888;
    margin-top: 30px;
  }

  .plan-card ul {
    text-align: left;
    margin: 40px 0;
    font-size: 1.2rem;
    line-height: 2;
    color: #aaa;
    list-style: none;
    padding-left: 0;
  }

  .premium-plan {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    transform: scale(1.0);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.5);
  }

  .premium-plan h2 {
    margin: 0;
    font-size: 2.5rem;
    color: lightGrey;
  }

  .premium-plan h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: lightGrey;
  }

  .premium-plan ul {
    text-align: left;
    margin: 40px 0;
    font-size: 1.2rem;
    line-height: 2;
    list-style: none;
    padding-left: 0;
    color: white;
  }

  .premium-plan .btn {
    width: 100%;
    padding: 25px;
    font-size: 1.3rem;
    font-weight: bold;
  }

  .premium-plan .discount-info {
    font-size: 1.5rem;
    color: #fff8;
  }

  .premium-plan .discount-info .original-price {
    text-decoration: line-through;
  }

  .premium-plan .discount-info .discount-amount {
    color: #0f0;
  }

  .premium-plan .remaining-days {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #fff8;
  }

  .unlock-options-container {
    grid-template-columns: 1fr 1fr;
  }

  .unlock-options-container {
    display: grid;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
  }

  .unlock-option-card {
    padding: 25px;
    border-radius: 15px;
  }

  .unlock-option-card.tip-to-unlock {
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(69,160,73,0.1));
    border: 2px solid rgba(76,175,80,0.3);
  }

  .unlock-option-card.upgrade-to-premium {
    background: linear-gradient(135deg, rgba(144,104,245,0.1), rgba(192,132,252,0.1));
    border: 2px solid rgba(144,104,245,0.3);
  }

  .unlock-option-card h4 {
    margin-bottom: 10px;
    font-size: 1rem; /* keeps consistency */
  }

  .unlock-option-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .unlock-option-card .btn {
    width: 100%;
    font-weight: bold; /* assuming .btn already has font, just ensuring full-width */
  }

  .article-content {
    max-width: 98%;
    margin: var(--space-md) auto;
    padding: 0 var(--space-xm);
  }

}

/* Large desktop screens */
@media (min-width: 1200px) {
  .desktop-articles-grid {
    max-width: 1400px;
    margin: 40px auto;
  }

  .left-column {
    flex: 0 0 65%;
  }

  .right-column {
    flex: 0 0 32%;
  }

  /* Ensure ad article content is fully visible */
  .ad-article {
    position: relative;
    border: 1px solid #FF6B6B !important;
    z-index: 1; /* Ensure proper stacking */
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ad-article .article-content {
    max-width: 97%;
    margin: var(--space-xm) auto;
    padding: 0 var(--space-xm);
  }

  .article-header-desktop {
    display: flex;
    flex-direction: column;
    opacity: 1 !important; /* Force full opacity */
    visibility: visible !important; /* Force visibility */
  }

  .ad-article:hover {
    animation: none;
  }

  .unlock-options-container {
    display: grid;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 30px;
  }

  .article-preview-header {
    padding: 25px;
  }

  .article-preview-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
  }


}

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

.desktop-user-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
    width: 90%; /* Scales the logo down to 90% of its original size */
    max-width: 300px; /* Optional: adds a maximum width to prevent over-scaling */
  }

  .mobile-user-name {
    max-width: 80px;
  }

  .carousel-card {
    width: 90vw;
    height: 45vh;
  }

}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  .btn {
    display: none !important;
  }
}

/* === LOADING OVERLAY === */
#nostr-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#nostr-loading-overlay .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(30, 30, 46, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

#nostr-loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(139, 92, 246, 0.2);
  border-top: 4px solid #8B5CF6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

#nostr-loading-message {
  color: white;
  font-size: 16px;
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
  margin-top: 15px;
  font-weight: 500;
}

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

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

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

/* QR Codes */
#qrCodeContainer {
    display: none;
    text-align: center;
    margin: 20px auto;
    max-width: 300px;
}

#qrCode {
    margin: 0 auto;
    display: block;
    width: 200px;
    height: 200px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(144,104,245,0.2);
}

.page-info {
  color: #aaa;
  font-size: 0.95rem;
}

/* Markdown Styles */
.markdown-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  word-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--purple-light);
}

.markdown-body h1 { font-size: 2em; }
.markdown-body h2 { font-size: 1.5em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1em; }
.markdown-body h5 { font-size: 0.875em; }
.markdown-body h6 { font-size: 0.85em; color: var(--text-muted); }

.markdown-body p {
  margin-top: 0;
  margin-bottom: 16px;
}

.markdown-body blockquote {
  padding: 0 1em;
  color: var(--text-muted);
  border-left: 0.25em solid var(--purple);
  margin: 0 0 16px 0;
}

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

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body code {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(144,104,245,0.1);
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: rgba(26,22,56,0.5);
  border-radius: 6px;
  margin-bottom: 16px;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 0;
  margin: 0;
  font-size: 100%;
}

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

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

.markdown-body table th,
.markdown-body table td {
  padding: 6px 13px;
  border: 1px solid rgba(144,104,245,0.3);
}

.markdown-body table tr {
  background-color: transparent;
  border-top: 1px solid rgba(144,104,245,0.2);
}

.markdown-body table tr:nth-child(2n) {
  background-color: rgba(144,104,245,0.05);
}

.markdown-body hr {
  height: 1px;
  background-color: rgba(144,104,245,0.2);
  border: none;
  margin: 24px 0;
}

/* Bold comments */
.comment.bold {
  border-left: 4px solid #FFD700;
  background: linear-gradient(90deg, rgba(255,215,0,0.1), transparent);
  font-weight: 600;
}

.comment-textarea {
  width: 100%;
  min-width: 300px;
  max-width: 900px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(144,104,245,0.1);
  border: 1px solid rgba(144,104,245,0.3);
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 15px;
  resize: vertical; /* Optional: allows vertical resizing only */
}

.comment.bold .comment-author {
  color: #FFD700;
  font-weight: bold;
  font-size: 1rem;
}

.comment.bold .comment-content {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.15rem;
}

.comment-premium {
  border-left: 4px solid var(--purple);
  background: linear-gradient(90deg, rgba(144,104,245,0.1), transparent);
}


.payment-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.payment-option:hover {
  border-color: var(--purple);
}

.payment-option input[type="radio"] {
  margin: 0;
}

.comment-options {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.modern-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 10px;
  }

.modern-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.modern-checkbox .checkbox-custom {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #f4f4f4;
  border: 2px solid #888;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.modern-checkbox:hover .checkbox-custom {
  background-color: #e0e0e0;
  border-color: #555;
}

.modern-checkbox input:checked + .checkbox-custom {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

.modern-checkbox input:checked + .checkbox-custom::after {
  content: '✔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.modern-checkbox:focus-within .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.total-amount {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--purple);
  margin-bottom: 15px;
}

.total-amount span {
  color: #4CAF50;
}

.pay-comment-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
}

.comment-restricted {
  text-align: center;
  padding: 40px 20px;
  background: rgba(144, 104, 245, 0.1);
  border-radius: var(--border-radius-lg);
  margin-bottom: 30px;
}

.restricted-message i {
  font-size: 3rem;
  color: var(--purple);
  margin-bottom: 20px;
}

.restricted-message h3 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.restricted-message p {
  color: var(--dark-green);
  margin-bottom: 25px;
}

.restricted-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  margin: 0 auto;
}

.unlock-article-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.upgrade-premium-btn {
  background: linear-gradient(135deg, var(--purple), #c084fc);
  color: white;
}

.articleland-container {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px;
}

.articleland-card {
  min-width: 325px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.articleland-header {
  background: var(--purple);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.site-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.site-tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

.article-preview {
  padding: 40px;
}


 /* ARTICLE LAND */

.articleland-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
}

.articleland-meta h2 {
  color: #333;
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.articleland-meta .meta-info {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}

.articleland-meta .teaser {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.login-prompt {
  background: var(--bg-secondary);
  padding: 40px;
  text-align: center;
  border-top: 3px solid var(--purple);
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.login-prompt h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.login-prompt p {
  color: #666;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.login-actions {
  margin-bottom: 40px;
}

.login-btn {
  background: linear-gradient(135deg, var(--purple), #764ba2);
  color: white;
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: var(--border-radius-md);
  display: inline-block;
  text-decoration: none;
  margin-bottom: 20px;
}

.signup-link {
  color: #666;
}

.signup-link a {
  color: var(--purple);
  text-decoration: none;
  font-weight: bold;
}

.membership-info {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: var(--border-radius-md);
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.membership-info h4 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.membership-info ul {
  list-style: none;
  padding: 0;
}

.membership-info li {
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.membership-info i {
  color: var(--purple);
}

/* SHARE BUTTON AND FONT CONTROLS */
.font-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -175px 5px 10px;
  background: rgba(144, 104, 245, 0.1);
  padding: 5px 0px;
  border-radius: 20px;
}

.font-btn {
  background: none;
  border: 1px solid var(--purple);
  color: var(--purple);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.font-btn:hover {
  background: var(--purple);
  color: white;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(144, 104, 245, 0.1);
  border: 1px solid var(--purple);
  color: var(--purple);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 5px;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--purple);
  color: white;
}

.article-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 10px;
}

.article-badge.premium {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
}

.article-badge.ads {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
}

/* Syntax highlighting */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: rgba(26, 22, 56, 0.7);
  color: #abb2bf;
  border-radius: 6px;
}

.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #c678dd;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e06c75;
}

.hljs-literal {
  color: #56b6c2;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
  color: #98c379;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #e6c07b;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #d19a66;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #61aeee;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

/* Additional markdown styling */
.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.markdown-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  border: 1px solid rgba(144,104,245,0.3);
}

.markdown-body table th {
  background: rgba(144,104,245,0.1);
  font-weight: 600;
  text-align: left;
}

.markdown-body table th,
.markdown-body table td {
  padding: 12px 15px;
  border: 1px solid rgba(144,104,245,0.2);
}

.markdown-body table tr:nth-child(even) {
  background: rgba(144,104,245,0.05);
}

.markdown-body blockquote {
  border-left: 4px solid var(--purple);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
  background: rgba(144,104,245,0.05);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}

.markdown-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin: 40px 0;
}

.markdown-body a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px dotted var(--purple);
  transition: all 0.3s ease;
}

.markdown-body a:hover {
  color: #c084fc;
  border-bottom: 1px solid #c084fc;
}

.markdown-body ul,
.markdown-body ol {
  margin: 20px 0;
  padding-left: 25px;
}

.markdown-body li {
  margin: 8px 0;
}

.markdown-body li > ul,
.markdown-body li > ol {
  margin: 8px 0;
}

/* ---------------------------------
--------- contact.ejs --------------
-----------------------------------*/

.contact-container {
    max-width: 800px;
    margin: auto;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: 1px 2px 200px rgba(0, 0, 0, 0);
    overflow: hidden;
    padding: 0; /* Remove vertical padding */
}

.contact-content {
    margin-top: 10px;
    padding: 20px 20px;
    margin-bottom: 0px;
}

.contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    margin-bottom: 0;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}


.contact-section {
    margin-bottom: 30px;
}

.contact-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-section p {
    margin-bottom: 15px;
}

.contact-highlight {
    border-left: 2px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.contact-error-message {
    background: #fee;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.contact-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.contact-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.contact-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .contact-container {
        margin: auto;
        max-width: 97%;
    }

    .contact-header, .contact-content {
        padding: 20px;
    }

    .contact-header h1 {
        font-size: 1.7rem;
    }
}


/* ---- end contact.ejs -------- */
