/* =====================================================
   FSN MAIN – Public Site Styles
   ===================================================== */

/* ---------- APP WRAPPER ---------- */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  background: var(--green-900);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

html.dark .header {
  background: #060f07;
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--white);
  padding: 2px;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--white);
  letter-spacing: -0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.header-right .icon-btn {
  color: rgba(255,255,255,.75);
  width: 38px;
  height: 38px;
}
.header-right .icon-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger-menu {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  width: min(300px, 85vw);
  height: calc(100vh - var(--nav-h));
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow-y: auto;
  border-left: 3px solid var(--accent);
  animation: slideInRight .22s cubic-bezier(.4,0,.2,1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.hamburger-menu ul {
  padding: var(--sp-4) 0;
}

.hamburger-menu ul li { }

.hamburger-menu .nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}

.hamburger-menu .nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
  padding-left: var(--sp-8);
  text-decoration: none;
}

.hamburger-menu .admin-link .admin-nav {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 250;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(145deg, var(--green-900) 0%, var(--green-700) 60%, var(--green-800) 100%);
  color: var(--white);
  padding: var(--sp-16) var(--sp-5) var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* decorative circles */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .07;
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  background: var(--yellow-500);
  top: -160px; right: -120px;
}
.hero::after {
  width: 320px; height: 320px;
  background: var(--green-400);
  bottom: -100px; left: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.12);
  padding: var(--sp-2);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.hero-title {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--white);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.hero-title span {
  color: var(--yellow-500);
}

.hero-text {
  color: rgba(255,255,255,.82);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  line-height: 1.65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-primary {
  background: var(--yellow-500);
  color: var(--green-900);
  border-color: var(--yellow-500);
  font-size: var(--text-base);
  padding: .75rem 1.75rem;
}
.hero-buttons .btn-primary:hover {
  background: var(--yellow-400);
  border-color: var(--yellow-400);
  color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,200,0,.35);
}

/* ---------- SECTION WRAPPER ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-5);
  width: 100%;
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-6);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 40px; height: 3px;
  background: var(--highlight);
  border-radius: var(--r-full);
}

/* ---------- FEATURED SLIDER ---------- */
.featured-slider {
  background: var(--green-900);
  padding: var(--sp-8) var(--sp-5);
  position: relative;
}
html.dark .featured-slider { background: #060f07; }

.featured-slider .section-title { color: var(--white); }
.featured-slider .section-title::after { background: var(--yellow-500); }

.slider-container {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.slide {
  display: none;
  position: relative;
  min-height: 280px;
}
.slide.active { display: flex; flex-direction: column; }

@media (min-width: 600px) {
  .slide.active { flex-direction: row; }
}

.slide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .slide-image { width: 50%; height: 280px; }
}

.slide-content {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  flex: 1;
}

.slide-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
  line-height: 1.3;
}

.slide-read {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0 0;
}

.dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--yellow-500); width: 24px; }

/* ---------- SEARCH ---------- */
.search-section {
  padding: var(--sp-6) var(--sp-5);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.search-container {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: var(--sp-4);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: .75rem var(--sp-4) .75rem 2.75rem;
  border-radius: var(--r-full);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--text-base);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.search-results {
  max-width: 560px;
  margin: var(--sp-4) auto 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.search-results .post-card.compact {
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.search-results .post-card.compact:last-child { border-bottom: none; }

/* ---------- NEWSLETTER ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%);
  padding: var(--sp-10) var(--sp-5);
  text-align: center;
}

.newsletter-section h2 {
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.newsletter-section > p {
  color: rgba(255,255,255,.7);
  margin-bottom: var(--sp-5);
}

.subscribe-form {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  max-width: 480px;
  margin: var(--sp-5) auto 0;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 200px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-radius: var(--r-full);
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.55); }
.subscribe-form input:focus {
  border-color: var(--yellow-500);
  box-shadow: 0 0 0 3px rgba(245,200,0,.2);
}

.subscribe-form .btn-primary {
  background: var(--yellow-500);
  color: var(--green-900);
  border-color: var(--yellow-500);
  font-weight: 700;
}
.subscribe-form .btn-primary:hover {
  background: var(--yellow-400);
  border-color: var(--yellow-400);
}

#subscribe-message {
  margin-top: var(--sp-4);
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  margin-bottom: var(--sp-6);
}
.filter-bar select {
  max-width: 240px;
  background-color: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- POSTS GRID ---------- */
.posts-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---------- POST CARD ---------- */
.post-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-light);
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.post-card:hover .post-image { transform: scale(1.03); }

.image-badge {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-2);
  background: rgba(0,0,0,.65);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: .15em .55em;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.post-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.post-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-light);
  color: var(--accent);
  padding: .2em .7em;
  border-radius: var(--r-full);
}
html.dark .post-category {
  background: var(--accent-light);
  color: var(--green-300);
}

.post-title {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: var(--sp-1);
}

.post-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
  flex-wrap: wrap;
}

.post-author {
  font-weight: 600;
  color: var(--text-secondary);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: all var(--transition);
}
.action-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}
.action-btn.liked {
  color: var(--accent);
}
.action-btn.liked svg {
  fill: var(--accent);
}

.action-btn svg { width: 16px; height: 16px; }

.read-more-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: .45rem 1rem;
  font-size: var(--text-xs);
}

/* ---------- COMMENTS ---------- */
.comments-container {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
}

.comment-author {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}
.comment-email {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
}
.comment-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}

.add-comment-btn { font-size: var(--text-sm); }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: var(--sp-12) var(--sp-5);
  font-size: var(--text-base);
  grid-column: 1 / -1;
}

/* ---------- SINGLE POST ---------- */
#single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5);
  width: 100%;
}

.back-btn {
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
}

.single-post { }

.single-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  line-height: 1.2;
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.single-author { font-weight: 600; color: var(--text-secondary); }

.single-gallery {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.single-gallery img:only-child { width: 100%; }
.single-gallery:has(img:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}

.single-image {
  width: 100%;
  object-fit: cover;
  max-height: 420px;
  border-radius: var(--r-lg);
}

.single-content {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
}
.single-content p { margin-bottom: var(--sp-4); }
.single-content h2, .single-content h3 {
  color: var(--text-primary);
  margin: var(--sp-6) 0 var(--sp-3);
}
.single-content a { color: var(--accent); }
.single-content ul, .single-content ol {
  list-style: disc;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}
.single-content img {
  border-radius: var(--r-lg);
  margin: var(--sp-5) 0;
  max-width: 100%;
}

.single-actions {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

.single-video-btn,
.single-readmore-btn {
  margin-top: var(--sp-4);
  margin-right: var(--sp-3);
}

/* ---------- WHAT WE COVER ---------- */
#what-we-cover h2 { margin-bottom: var(--sp-8); }

.cover-cards {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.cover-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cover-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}
.cover-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.cover-icon {
  display: block;
  margin: 0 auto var(--sp-4);
  color: var(--accent);
  width: 40px;
  height: 40px;
}

.cover-card h3 { font-size: var(--text-base); margin-bottom: var(--sp-2); }
.cover-card p { font-size: var(--text-sm); }

/* ---------- ABOUT ---------- */
#about h2 { margin-bottom: var(--sp-8); }

.about-mission, .about-vision {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-5);
  position: relative;
  padding-left: calc(var(--sp-8) + 4px);
}
.about-mission::before, .about-vision::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.about-mission::before { background: var(--accent); }
.about-vision::before  { background: var(--highlight); }

.about-mission h3, .about-vision h3 {
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

/* ---------- FOUNDERS ---------- */
#founders h2 { margin-bottom: var(--sp-8); }

.founders-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--transition);
}
.founder-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.founder-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--sp-4);
  border: 3px solid var(--accent);
  cursor: pointer;
  transition: transform var(--transition);
}
.founder-img:hover { transform: scale(1.06); }

.founder-name {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}
.founder-role {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}
.founder-info {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #25D366;
  margin-bottom: var(--sp-3);
  text-decoration: none;
}
.whatsapp-link:hover { color: #1da851; text-decoration: underline; }

.founder-about-btn {
  font-size: var(--text-xs);
  padding: .3rem .9rem;
}

.founder-about {
  margin-top: var(--sp-3);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-align: left;
}
.founder-about p { font-size: var(--text-sm); }

.founder-projects {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.project-link {
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: .25em .8em;
  border-radius: var(--r-full);
  transition: all var(--transition);
  text-decoration: none;
}
.project-link:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* Founder photo modal */
#founder-photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

#founder-photo-full {
  max-width: 480px;
  max-height: 80vh;
  border-radius: var(--r-xl);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.close-modal-btn {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  transition: background var(--transition);
}
.close-modal-btn:hover { background: rgba(255,255,255,.25); }

/* ---------- STATIC TEXT (Privacy / Terms) ---------- */
.static-text p, .static-text li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}
.static-text ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.static-text li {
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--accent);
  margin-bottom: 0;
}
.static-text strong { color: var(--text-primary); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.7);
  padding: var(--sp-8) var(--sp-5) var(--sp-10);
  text-align: center;
  margin-top: auto;
}
html.dark .footer {
  background: #060f07;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--yellow-500); text-decoration: none; }

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--sp-4));
  right: var(--sp-5);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: all var(--transition);
}
.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}

html.dark .bottom-nav {
  background: #0d1710;
  border-top-color: var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.3);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-lg);
  transition: all var(--transition);
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover, .nav-item.active {
  color: var(--accent);
  text-decoration: none;
}
.nav-item.active svg { stroke: var(--accent); }

.channel-nav { color: #25D366; }
.channel-nav:hover { color: #1da851; }

/* ---------- SUBSCRIPTION MODAL ---------- */
.modal .modal-content {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: scaleIn .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes scaleIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}
.modal-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
}
.modal-content input {
  margin-bottom: var(--sp-4);
}

.modal-actions {
  display: flex;
  gap: var(--sp-3);
}
.modal-actions .btn { flex: 1; justify-content: center; }

#modal-message { margin-top: var(--sp-3); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .site-title { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-12) var(--sp-4) var(--sp-10); }
  .single-content { font-size: var(--text-base); }
}