	:root { 
  --primary: #0A8F3C;
  --primary-dark: #066B2C;
  --primary-light: #4CAF50;
  --primary-bg: #E8F5E9;
  --primary-gradient: linear-gradient(135deg, #0A8F3C 0%, #2E7D32 50%, #4CAF50 100%);
  
  --dark: #1B2A1B;
  --light: #F5FBF5;
  --gray: #5A6B5A;
  --gray-light: #9AAA9A;
  --border: #C8DBC8;
  
  --success: #0A8F3C;
  --error: #D32F2F;
  --warning: #FF8F00;
  --info: #0288D1;
  
  --shadow-sm: 0 2px 8px rgba(10, 143, 60, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 143, 60, 0.08);
  --shadow-lg: 0 8px 40px rgba(10, 143, 60, 0.12);
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --text: #1B2A1B;
  --navbar-bg: rgba(255,255,255,0.98);
  --shadow-xl: 0 12px 60px rgba(10, 143, 60, 0.16);
  
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  color: var(--dark); 
  background: var(--light); 
  line-height: 1.7; 
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar { 
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); 
  padding: 12px 0; 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  border-bottom: 1px solid rgba(200, 219, 200, 0.3);
}

.navbar .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 800; 
  font-size: 1.3rem; 
  color: var(--primary); 
  text-decoration: none; 
  letter-spacing: -0.5px;
}

.logo img { 
  height: 36px; 
  width: auto;
}

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu ul { 
  display: flex; 
  list-style: none; 
  gap: 8px; 
  align-items: center; 
}

.nav-menu a { 
  text-decoration: none; 
  color: var(--dark); 
  font-weight: 500; 
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease; 
  position: relative;
}

.nav-menu a i {
  margin-right: 6px;
  font-size: 0.85rem;
}

.nav-menu a:hover { 
  color: var(--primary); 
  background: var(--primary-bg);
}

.nav-menu a.active { 
  color: var(--primary); 
  background: var(--primary-bg);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.search-btn { 
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  padding: 8px 12px;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.search-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.hamburger { 
  display: none; 
  background: none; 
  border: none; 
  font-size: 1.5rem; 
  cursor: pointer; 
  color: var(--dark);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.3s;
}

.hamburger:hover {
  background: var(--primary-bg);
}

/* ===== SEARCH MODAL ===== */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.search-modal.active {
  display: flex;
}

.search-modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.search-modal-close:hover {
  color: var(--dark);
}

.search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== HERO ===== */
.blog-hero {
  padding: 80px 0 60px;
  background: var(--primary-gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}

.blog-hero h1 .highlight {
  color: #FFD700;
}

.blog-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 10px;
  background: var(--primary-bg);
  padding: 4px 16px;
  border-radius: 50px;
}

.section-tag i {
  margin-right: 6px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-title h2 .highlight {
  color: var(--primary);
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== POST CARDS ===== */
.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card .post-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-card .post-image .post-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-card .post-image .post-type-badge.article {
  background: var(--primary);
  color: white;
}

.post-card .post-image .post-type-badge.tutorial {
  background: var(--info);
  color: white;
}

.post-card .post-image .post-type-badge.news {
  background: var(--warning);
  color: white;
}

.post-card .post-content {
  padding: 25px;
}

.post-card .post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 10px;
}

.post-card .post-meta i {
  margin-right: 4px;
}

.post-card .post-meta .category-link {
  color: var(--primary);
  font-weight: 500;
}

.post-card .post-meta .category-link:hover {
  text-decoration: underline;
}

.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-card h3 a {
  color: var(--dark);
  transition: color 0.3s;
}

.post-card h3 a:hover {
  color: var(--primary);
}

.post-card .post-excerpt {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.post-card .post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-card .post-footer .read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}

.post-card .post-footer .read-more:hover {
  gap: 8px;
}

.post-card .post-footer .post-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray);
}

.post-card .post-footer .post-stats i {
  margin-right: 4px;
}

/* ===== GRIDS ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.featured-grid .featured-main .post-card .post-image {
  height: 320px;
}

.featured-grid .featured-side .post-card .post-image {
  height: 150px;
}

/* ===== CATEGORIES ===== */
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: white;
  border: 1px solid var(--border);
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-chip .count {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 0px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ===== SINGLE POST ===== */
.single-post {
  padding: 40px 0;
}

.single-post .post-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.single-post .post-header .post-type-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.single-post .post-header .post-type-badge.article {
  background: var(--primary);
  color: white;
}

.single-post .post-header .post-type-badge.tutorial {
  background: var(--info);
  color: white;
}

.single-post .post-header .post-type-badge.news {
  background: var(--warning);
  color: white;
}

.single-post .post-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-post .post-header .post-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 0.95rem;
}

.single-post .post-header .post-meta a {
  color: var(--primary);
}

.single-post .post-featured-image {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post .post-featured-image img {
  width: 100%;
  height: auto;
}

.single-post .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.single-post .post-tags .tag {
  background: var(--light);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ===== REACTIONS ===== */
.reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 30px 0;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.reaction-btn.active {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.reaction-btn .count {
  background: var(--light);
  padding: 0px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.reaction-btn.active .count {
  background: var(--primary);
  color: white;
}

/* ===== COMMENTS ===== */
.comments-section {
  max-width: 800px;
  margin: 40px auto 0;
}

.comments-section h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.comment .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.comment .comment-body .comment-author {
  font-weight: 600;
}

.comment .comment-body .comment-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.comment .comment-body .comment-content {
  margin-top: 8px;
}

.comment .comment-body .reply-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 8px;
}

.comment .comment-body .reply-btn:hover {
  text-decoration: underline;
}

.comment.reply {
  margin-left: 64px;
}

/* ===== COMMENT FORM ===== */
.comment-form {
  margin-top: 30px;
  padding: 30px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-form .form-group {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: grid;
  gap: 30px;
}

.sidebar-widget {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-widget .popular-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget .popular-post:last-child {
  border-bottom: none;
}

.sidebar-widget .popular-post .thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-widget .popular-post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-widget .popular-post .info h4 {
  font-size: 0.9rem;
  line-height: 1.3;
}

.sidebar-widget .popular-post .info h4 a {
  color: var(--dark);
  transition: color 0.3s;
}

.sidebar-widget .popular-post .info h4 a:hover {
  color: var(--primary);
}

.sidebar-widget .popular-post .info .date {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3, .footer h4 {
  margin-bottom: 16px;
  color: white;
  font-weight: 700;
}

.footer h3 i, .footer h4 i {
  margin-right: 8px;
  color: var(--primary-light);
}

.footer p {
  color: #D1D5DB;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a i {
  margin-right: 6px;
  font-size: 0.8rem;
  color: var(--gray-light);
}

.footer a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 25px;
  text-align: center;
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: white;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s;
}

.pagination .page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== ALERT ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.alert.success {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.alert.error {
  background: #FFEBEE;
  color: var(--error);
  border: 1px solid var(--error);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .blog-hero h1 {
    font-size: 2.8rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid .featured-main .post-card .post-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    display: block;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 4px;
  }
  
  .nav-menu ul li {
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 10px 16px;
  }
  
  .hamburger {
    display: block;
  }
  
  .blog-hero {
    padding: 60px 0 40px;
  }
  
  .blog-hero h1 {
    font-size: 2.2rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .single-post .post-header h1 {
    font-size: 2rem;
  }
  
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .comment.reply {
    margin-left: 32px;
  }
  
  .search-modal-content {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .post-card .post-image {
    height: 180px;
  }
  
  .featured-grid .featured-main .post-card .post-image {
    height: 200px;
  }
  
  .reactions {
    gap: 4px;
  }
  
  .reaction-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ===== DARK MODE (complete) ===== */
[data-theme="dark"] {
  color-scheme: dark;
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #81C784;
  --primary-bg: #1A2E1A;
  --primary-gradient: linear-gradient(135deg, #0A8F3C 0%, #2E7D32 50%, #4CAF50 100%);
  --dark: #E8F5E9;
  --light: #0B140B;
  --gray: #A8B8A8;
  --gray-light: #6B7B6B;
  --border: #2A3A2A;
  --surface: #121C12;
  --surface-2: #0B140B;
  --surface-3: #1A2E1A;
  --text: #E8F5E9;
  --text-muted: #A8B8A8;
  --input-bg: #152015;
  --card-bg: #152015;
  --navbar-bg: rgba(11, 20, 11, 0.94);
  --footer-bg: #060A06;
  --warning: #FFB300;
  --warning-bg: #2A2208;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.65);
}

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

[data-theme="dark"] .navbar {
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
}

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

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #0B140B 0%, #152015 45%, #0B140B 100%);
}

[data-theme="dark"] .hero-description,
[data-theme="dark"] .section-title p,
[data-theme="dark"] .ecosystem-card p,
[data-theme="dark"] .platform-featured p,
[data-theme="dark"] .card p {
  color: var(--text-muted);
}

[data-theme="dark"] .footer {
  background: var(--footer-bg);
  color: #C8D5C8;
}

[data-theme="dark"] .footer a {
  color: #C8D5C8;
}

[data-theme="dark"] .footer a:hover {
  color: #fff;
}

[data-theme="dark"] .ecosystem-card,
[data-theme="dark"] .platform-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .card,
[data-theme="dark"] .platform-featured,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .chat-panel,
[data-theme="dark"] .newsletter-form input,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .newsletter-section {
  background: var(--primary-bg);
}

[data-theme="dark"] .chat-bot-msg {
  background: var(--primary-bg);
  color: var(--text);
}

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

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--light);
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .section-tag {
  color: var(--primary-light);
}

[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--primary-bg);
}

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

[data-theme="dark"] .nav-menu {
  background: var(--navbar-bg);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 998;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Newsletter */
.newsletter-section {
  background: var(--primary-bg);
  padding: 60px 0;
}

.newsletter-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--dark);
}

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

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
}

.chat-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.chat-launcher:hover {
  transform: scale(1.06);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-header {
  background: var(--primary-gradient);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-body {
  padding: 16px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chat-bot-msg {
  background: var(--primary-bg);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--dark);
}

.chat-form {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.chat-form input,
.chat-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--dark);
}

.chat-form .btn-block {
  width: 100%;
}

.chat-status {
  font-size: 0.85rem;
  margin: 0;
}

.chat-status.ok {
  color: var(--success, #0A8F3C);
}

.chat-status.err {
  color: var(--error, #D32F2F);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-item summary i {
  transition: transform 0.25s ease;
}

@media (max-width: 768px) {
  .nav-actions {
    margin-left: auto;
    margin-right: 12px;
  }
  .chat-widget {
    left: 16px;
    bottom: 16px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}


/* ===== Responsive safety + theme tokens (added in review) ===== */
:root { --warning-text: #856404; }
[data-theme="dark"] { --warning-text: #FFD54F; }
img, video, svg { max-width: 100%; }
img { height: auto; }
main, section, .container { min-width: 0; }
p, li, td, th, h1, h2, h3, h4, a { overflow-wrap: anywhere; }
table { max-width: 100%; }

/* ===== Buttons (public site; dashboard.css refines these for the admin area) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(10, 143, 60, .22); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10, 143, 60, .3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 10px; }
