:root {
  --bg-color: #0b0b0e;
  --text-primary: #f5f5f7;
  --text-secondary: #c4c4cc;
  --text-tertiary: #9a9aa4;
  --text-light: #6e6e78;
  --accent-color: #e50914;
  --accent-hover: #ff2531;
  --border-color: #24242b;
  --bg-white: #141418;
  --bg-gray: #1b1b21;
  --bg-dark: #e50914;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 64px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: bold;
  font-size: 20px;
}
.logo-text {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.logo-accent {
  color: var(--accent-color);
}
.desktop-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}
.nav-list {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  height: 64px;
}
.nav-item {
  display: flex;
  align-items: center;
}
.nav-link {
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.nav-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  padding: 8px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.icon-btn:hover {
  background-color: var(--bg-gray);
  color: var(--text-primary);
}
.subscribe-btn {
  background-color: var(--bg-dark);
  color: var(--bg-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.subscribe-btn:hover {
  background-color: var(--accent-hover);
}
.mobile-menu-btn {
  display: none;
}

.mobile-nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}
.mobile-nav-link:hover {
  color: var(--accent-color);
  background-color: var(--bg-gray);
}
.main-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-top-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 16px 32px;
  display: flex;
  justify-content: center;
}
.ad-placeholder {
  width: 100%;
  background-color: var(--border-color);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-placeholder.h-90 {
  height: 90px;
}
.ad-placeholder.h-250 {
  height: 250px;
}
.content-container {
  width: 100%;
  max-width: 1200px;
  padding: 8px 32px;
  display: flex;
  gap: 32px;
}
.main-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.featured-section {
  width: 100%;
}
.featured-card {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-dark);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: block;
  cursor: pointer;
}
.featured-card-link {
  position: absolute;
  inset: 0;
  z-index: 30;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  z-index: 10;
}
.featured-bg {
  position: absolute;
  inset: 0;
  background-color: #1b1b21;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s;
}
.featured-card:hover .featured-bg {
  transform: scale(1.05);
}
.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px;
  z-index: 20;
  max-width: 42rem;
  pointer-events: none;
}
.category-pill {
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: inline-block;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.featured-title {
  font-size: 30px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-excerpt {
  color: #e2e8f0;
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--text-light);
}
.latest-posts-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
}
.section-link:hover {
  text-decoration: underline;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.post-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: box-shadow 0.2s;
}
.post-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.post-card-img {
  width: 100%;
  height: 100%;
  background-color: var(--bg-gray);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}
.post-card:hover .post-card-img {
  transform: scale(1.05);
}
.post-card-img-wrapper {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.post-card-content {
  padding: 12px;
  background-color: var(--bg-white);
  position: relative;
  z-index: 10;
}
.post-card-category {
  font-size: 9px;
  font-weight: bold;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.post-card-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.375;
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.group:hover .group-hover-color {
  color: var(--accent-color);
}
.post-card-date {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.sidebar-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.widget-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 2px solid var(--accent-color);
  padding-left: 12px;
}
.search-form {
  position: relative;
}
.search-input {
  width: 100%;
  padding: 8px 40px 8px 16px;
  font-size: 14px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}
.search-btn {
  position: absolute;
  right: 12px;
  top: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
}
.search-btn:hover {
  color: var(--accent-color);
}
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.popular-card {
  display: flex;
  gap: 12px;
  cursor: pointer;
}
.popular-card-img {
  width: 64px;
  height: 64px;
  background-color: var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.popular-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.popular-card-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-card-meta {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-tag {
  padding: 4px 12px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.category-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
.newsletter-widget {
  background-color: var(--accent-color);
  padding: 24px;
  border-radius: 16px;
  color: var(--bg-white);
  text-align: center;
}
.newsletter-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}
.newsletter-desc {
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--bg-white);
  outline: none;
  transition: background-color 0.2s;
}
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter-input:focus {
  background-color: rgba(255, 255, 255, 0.2);
}
.newsletter-btn {
  width: 100%;
  background-color: var(--bg-white);
  color: var(--accent-color);
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.newsletter-btn:hover {
  background-color: var(--bg-color);
}
.social-links {
  display: flex;
  gap: 12px;
  color: var(--text-light);
}
.social-link {
  cursor: pointer;
  transition: color 0.2s;
}
.social-link:hover {
  color: var(--accent-color);
}
.footer {
  height: 56px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  color: var(--text-tertiary);
  font-size: 11px;
  flex-shrink: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-link:hover {
  color: var(--accent-color);
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social-title {
  font-weight: bold;
  color: var(--text-primary);
}
.footer-social-links {
  display: flex;
  gap: 12px;
  color: var(--text-light);
}
.page-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}
.page-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 16px;
}
.page-desc {
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.page-subdesc {
  font-size: 14px;
  color: var(--text-light);
}

html { scroll-behavior: smooth; }
.ad-container { width: 100%; background-color: var(--border-color); border: 1px dashed #94a3b8; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 12px; font-weight: bold; letter-spacing: 0.05em; text-transform: uppercase; overflow: hidden; text-align: center; line-height: 1.4; padding: 10px; box-sizing: border-box; }
.ad-top { max-width: 728px; height: 90px; margin: 0 auto; }
.ad-sidebar { max-width: 300px; height: 250px; margin: 0 auto; }
.ad-in-content { max-width: 728px; height: 90px; width: 100%; margin: 0 auto; }
.ad-in-content-wrapper { grid-column: 1 / -1; display: flex; justify-content: center; width: 100%; margin: 16px 0; }
.ad-article { max-width: 728px; height: 90px; margin: 24px auto; }
.search-panel { display: none; position: absolute; top: 64px; left: 0; width: 100%; background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); z-index: 40; }
.search-panel.open { display: block; }
.search-panel-container { max-width: 1200px; margin: 0 auto; padding: 16px 32px; display: flex; gap: 16px; align-items: center; }
.search-panel-input { flex: 1; border: none; font-size: 18px; outline: none; color: var(--text-primary); background: transparent; }
.search-results-container { max-width: 1200px; margin: 0 auto; padding: 0 32px 16px 32px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.search-result-item { display: flex; gap: 12px; padding: 12px; border-radius: 8px; transition: background-color 0.2s; text-decoration: none; border: 1px solid transparent; }
.search-result-item:hover { background-color: var(--bg-gray); border-color: var(--border-color); }
.search-result-img { width: 60px; height: 60px; border-radius: 4px; background-size: cover; background-position: center; flex-shrink: 0; }
.search-result-content h4 { font-size: 14px; font-weight: bold; margin-bottom: 4px; color: var(--text-primary); }
.search-result-content p { font-size: 12px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-white); z-index: 100; display: none; flex-direction: column; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
.mobile-nav-list { padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-link { display: block; padding: 12px; border-radius: 8px; font-size: 18px; font-weight: 600; color: var(--text-primary); transition: background-color 0.2s; }
.mobile-nav-link:hover { background-color: var(--bg-gray); color: var(--accent-color); }

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.6;
}
.article-body p {
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
}

/* ========================================= */
/* NEW FOOTER STYLES                         */
.site-footer {
  background-color: #212529;
  color: #94a3b8;
  font-family: inherit;
  margin-top: 60px;
}

.footer-main {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-heading {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #e50914;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #94a3b8;
}

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

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #f8fafc;
}

.footer-social-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f8fafc;
  color: #334155;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-circle:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.footer-newsletter-form {
  margin-top: 16px;
}

.newsletter-input-wrap {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-newsletter-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border-radius: 24px;
  border: 1px solid #475569;
  background-color: transparent;
  color: #cbd5e1;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.footer-newsletter-input::placeholder {
  color: #64748b;
}

.footer-newsletter-input:focus {
  border-color: #94a3b8;
}

.newsletter-icon-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.newsletter-icon-btn:hover {
  color: #f8fafc;
}

.footer-bottom {
  background-color: #08090B;
  padding: 16px 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-visitor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #111315;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  color: #94a3b8;
  border: 1px solid #1f2937;
}

.footer-copyright {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.footer-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f8fafc;
  color: #334155;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-back-to-top:hover {
  background-color: #e2e8f0;
}

/* ========================================= */
/* DARK MODE                                 */
/* ========================================= */
body.dark-mode {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #c4c4cc;
  --text-tertiary: #9a9aa4;
  --text-light: #6e6e78;
  --border-color: #2a2a31;
  --bg-white: #101013;
  --bg-gray: #17171b;
  --bg-dark: #e50914;
}

body.dark-mode .ad-container {
  border-color: #475569;
  background-color: #1e293b;
}

body.dark-mode .category-pill {
  background-color: var(--accent-color);
  color: #ffffff;
}

body.dark-mode .post-card-category {
  color: #ff5a66;
}

body.dark-mode .header-actions .icon-btn {
  color: var(--text-secondary);
}

body.dark-mode .header-actions .icon-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-color);
}

body.dark-mode .featured-card {
  background-color: #0a0a0c;
}

body.dark-mode .search-panel-input::placeholder {
  color: var(--text-tertiary);
}

body.dark-mode .search-result-item {
  color: var(--text-primary);
}

body.dark-mode .search-result-content p {
  color: var(--text-secondary);
}


.contact-wrapper {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
  .contact-wrapper {
    padding: 16px;
  }
}

/* ========================================= */
/* PREMIUM RED & BLACK ACCENTS               */
/* ========================================= */
.header {
  border-bottom-color: rgba(229, 9, 20, 0.28);
  box-shadow: 0 1px 0 rgba(229, 9, 20, 0.12);
}
.logo-text {
  background: linear-gradient(90deg, #ffffff 0%, #e50914 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.category-pill {
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.45);
}
.featured-card {
  border: 1px solid rgba(229, 9, 20, 0.22);
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(229, 9, 20, 0.08);
}
.post-card {
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 12px 28px -10px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}
.category-tag:hover {
  background-color: rgba(229, 9, 20, 0.12);
}

/* ========================================= */
/* UNLOCK ACCESS BOX (on post pages)         */
/* ========================================= */
.unlock-box {
  margin: 36px 0 8px;
  padding: 24px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(229, 9, 20, 0.14), transparent 60%),
    var(--bg-white);
  border: 1px solid rgba(229, 9, 20, 0.35);
  box-shadow: 0 14px 34px -16px rgba(229, 9, 20, 0.5);
}
.unlock-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.unlock-box-lock {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(229, 9, 20, 0.14);
  color: var(--accent-color);
}
.unlock-box-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.unlock-box-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 3px;
}
.unlock-box-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.unlock-btn {
  flex: 1 1 200px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid transparent;
  transition: background-color 0.2s, transform 0.05s, box-shadow 0.2s;
}
.unlock-btn:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 20px -8px rgba(229, 9, 20, 0.7);
}
.unlock-btn:active { transform: translateY(1px); }
.unlock-btn-alt {
  background-color: transparent;
  color: var(--text-primary);
  border-color: rgba(229, 9, 20, 0.5);
}
.unlock-btn-alt:hover {
  background-color: rgba(229, 9, 20, 0.12);
  color: var(--text-primary);
  box-shadow: none;
}
.unlock-box-note {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 16px;
}
@media (max-width: 480px) {
  .unlock-box { padding: 18px; }
  .unlock-btn { flex-basis: 100%; }
}

/* ========================================= */
/* LIVE BANNER IFRAME (banner-frame.html)    */
/* ========================================= */
.ad-frame {
  display: block;
  border: 0;
  width: 728px;
  max-width: 100%;
  height: 90px;
  margin: 0 auto;
}
/* When a real banner iframe is present, drop the dashed placeholder chrome
   and its padding so the 728x90 banner is not clipped. */
.ad-container:has(.ad-frame) {
  padding: 0;
  border: none;
  background: transparent;
  height: auto;
}

/* ========================================= */
/* OUR APPS PAGE                             */
/* ========================================= */
.apps-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 32px 56px;
}
.apps-head {
  text-align: center;
  margin-bottom: 32px;
}
.apps-head h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.apps-head p {
  color: var(--text-tertiary);
  font-size: 15px;
  margin-top: 8px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.app-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 12px 28px -10px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}
.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background-color: var(--bg-gray);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.app-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.app-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.app-download-btn:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 20px -8px rgba(229, 9, 20, 0.7);
}
.app-download-btn.disabled {
  background-color: var(--bg-gray);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}
@media (max-width: 768px) {
  .apps-section { padding: 8px 16px 40px; }
  .apps-head h1 { font-size: 24px; }
}

/* ========================================= */
/* GLOBAL POLISH (theme-consistent, additive) */
/* ========================================= */

/* Brand-colored text selection */
::selection {
  background-color: var(--accent-color);
  color: #fff;
}

/* Keyboard focus rings for accessibility (does not affect mouse users) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.unlock-btn:focus-visible,
.app-download-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Slim dark scrollbar that matches the theme */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}

/* Consistent tactile press feedback on primary buttons */
.subscribe-btn:active,
.newsletter-btn:active,
.app-download-btn:active {
  transform: translateY(1px);
}

/* Icon buttons get the same smooth motion as their color change */
.icon-btn {
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}
.icon-btn:active {
  transform: scale(0.92);
}

/* Slightly smoother, consistent link underlines on section links */
.section-link,
.footer-link {
  transition: color 0.2s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .featured-card:hover .featured-bg,
  .post-card:hover .post-card-img,
  .post-card:hover,
  .app-card:hover {
    transform: none !important;
  }
}
