/* ============================================================
   DarkWebDecoded Dark Glass Theme — Main Stylesheet
   ============================================================ */

/* ========== SELF-HOSTED FONTS ========== */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial');
  size-adjust: 127.1%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  font-weight: 500 700;
  font-display: swap;
  font-style: normal;
}

/* ========== CSS VARIABLES ========== */
:root {
  --bg-deep: #06060E;
  --bg-dark: #0B0B18;
  --bg-card: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --teal: #00D4AA;
  --teal-dim: rgba(0,212,170,0.15);
  --teal-glow: rgba(0,212,170,0.3);
  --purple: #7B2FBE;
  --purple-dim: rgba(123,47,190,0.15);
  --purple-glow: rgba(123,47,190,0.4);
  --red: #FF4757;
  --red-dim: rgba(255,71,87,0.12);
  --amber: #FFAB00;
  --amber-dim: rgba(255,171,0,0.12);
  --text: #E8E8F0;
  --text-dim: #8888A0;
  --text-muted: #6E6E88;
  --font: 'Outfit', 'Outfit Fallback', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal-dim), var(--purple-dim));
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0,212,170,0.35), rgba(123,47,190,0.35));
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,170,0.2) var(--bg-deep);
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 0;
}

a { color: inherit; text-decoration: none; }
img, video, iframe, embed, object { max-width: 100%; height: auto; display: block; }
/* Prevent grid children from overflowing */
.featured-duo > *, .sidebar-full > *, .scam-grid > *, .tools-grid > *,
.post-grid > *, .ai-myths-grid > *, .ai-grid-side > *, .stats-row > * {
  min-width: 0; overflow: hidden;
}
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ========== ACCESSIBILITY ========== */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  width: auto; height: auto; padding: 12px 24px;
  clip: auto; white-space: normal;
  background: var(--bg-dark); color: var(--teal);
  border: 2px solid var(--teal); border-radius: 8px;
  font-size: 14px; font-weight: 600;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.nav-links a:focus-visible {
  color: var(--text); background: var(--glass-hover);
  outline: 2px solid var(--teal); outline-offset: -2px;
}
.btn-primary:focus-visible,
.newsletter-form button:focus-visible,
.search-page-form button:focus-visible,
.comment-form .submit:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,212,170,0.4);
}
.share-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.back-to-top:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.mobile-nav-links a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

/* ========== MESH GRADIENT BACKGROUND ========== */
.mesh-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  width: 100%; max-width: 100vw;
}
.mesh-bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  will-change: transform;
}
.mesh-bg .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: var(--purple-glow);
  top: -10%; left: -5%;
}
.mesh-bg .orb:nth-child(2) {
  width: 500px; height: 500px;
  background: var(--teal-glow);
  top: 30%; right: -10%;
  animation-delay: -7s; animation-duration: 25s;
}
.mesh-bg .orb:nth-child(3) {
  width: 400px; height: 400px;
  background: rgba(100,40,180,0.25);
  bottom: 10%; left: 30%;
  animation-delay: -14s; animation-duration: 30s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== NOISE OVERLAY ========== */
.noise {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ========== WRAPPER ========== */
.wrapper {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  overflow-x: hidden;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}

/* ========== GLASS NAVBAR ========== */
.dwd-nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(11,11,24,0.7);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 16px; color: #fff;
}
.logo-text {
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.5px; color: var(--text);
}
.logo-text span { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.nav-links a, .nav-links li a {
  color: var(--text-dim); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 8px;
  transition: all 0.2s; letter-spacing: 0.2px;
}
.nav-links a:hover, .nav-links li a:hover {
  color: var(--text); background: var(--glass-hover);
}
.nav-links a.active, .nav-links .current-menu-item a,
.nav-links .current-cat a, .nav-links li a.active {
  color: var(--teal); background: var(--teal-dim);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 7px 14px;
  cursor: pointer; transition: border-color 0.2s;
  color: var(--text-muted);
}
.nav-search:hover { border-color: rgba(255,255,255,0.15); }
.nav-search svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.nav-search span { font-size: 12.5px; color: var(--text-muted); font-family: var(--mono); white-space: nowrap; }
.nav-search kbd {
  font-family: var(--mono); font-size: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 2px 6px;
  color: var(--text-muted); margin-left: 8px;
}

/* Hamburger */
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px; cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.hamburger-line {
  display: block; width: 22px; height: 2px;
  background: var(--text-dim); border-radius: 2px;
  transition: all 0.3s;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}
.mobile-menu.active { visibility: visible; opacity: 1; }
.mobile-menu-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,14,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0;
  width: 320px; max-width: 85vw; height: 100%;
  background: var(--bg-dark);
  border-left: 1px solid var(--glass-border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.active .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu-close {
  font-size: 28px; color: var(--text-dim);
  background: none; border: none; cursor: pointer;
  padding: 8px 12px; line-height: 1;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav-links {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-links a, .mobile-nav-links li a {
  display: block; padding: 12px 16px;
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  border-radius: 10px; transition: all 0.2s; text-decoration: none;
}
.mobile-nav-links a:hover, .mobile-nav-links li a:hover {
  color: var(--text); background: var(--glass-hover);
}
.mobile-menu-footer { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--glass-border); }
.mobile-search-btn { width: 100%; justify-content: center; }

/* ========== SEARCH MODAL ========== */
.search-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  visibility: hidden; opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}
.search-modal.active { visibility: visible; opacity: 1; }
.search-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,14,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.search-modal-content {
  position: relative; width: 560px; max-width: 90vw;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.2s ease;
}
.search-modal.active .search-modal-content {
  transform: scale(1) translateY(0);
}
.search-modal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}
.search-modal-icon { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-modal-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px; font-family: var(--font);
}
.search-modal-input::placeholder { color: var(--text-muted); }
.search-modal-kbd {
  font-family: var(--mono); font-size: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 3px 8px; color: var(--text-muted);
}
.search-modal-results {
  max-height: 360px; overflow-y: auto;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s; text-decoration: none; color: var(--text);
}
.search-result-item:hover { background: var(--glass-hover); }
.search-result-item .tag { flex-shrink: 0; }
.search-result-title { flex: 1; font-size: 14px; font-weight: 500; }
.search-result-date { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.search-loading, .search-no-results {
  padding: 24px 20px; text-align: center;
  color: var(--text-dim); font-size: 14px;
}
.search-modal-footer {
  display: flex; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--glass-border);
  font-size: 11px; color: var(--text-muted); font-family: var(--mono);
}

/* ========== READING PROGRESS BAR ========== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 200; background: rgba(255,255,255,0.03);
}
.reading-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  transition: width 0.1s linear;
}
body.admin-bar .reading-progress { top: 32px; }

/* ========== HERO ========== */
.hero { padding: 48px 0 48px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-dim); border: 1px solid rgba(255,71,87,0.2);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  font-size: 12.5px; font-weight: 600; color: var(--red);
  margin-bottom: 28px; animation: pulse-badge 2s ease-in-out infinite;
  text-decoration: none; transition: background 0.2s;
  max-width: 100%; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-sizing: border-box;
}
.hero-badge:hover { background: rgba(255,71,87,0.18); }
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900; letter-spacing: -2px;
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 .gradient, .gradient {
  background: linear-gradient(135deg, var(--teal), #6EE7B7, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px; color: var(--text-dim);
  max-width: 560px; margin: 0 auto 36px;
  line-height: 1.7; font-weight: 300;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 56px;
}
.stat-card {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 16px;
  padding: 24px; text-align: left;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted);
  font-weight: 600; margin-bottom: 8px;
}
.stat-value {
  font-size: 28px; font-weight: 800;
  letter-spacing: -1px; font-family: var(--mono);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-value.counted {
  opacity: 1; transform: translateY(0);
}
.stat-change {
  font-size: 12px; margin-top: 6px; font-weight: 500;
}
.stat-change.up { color: var(--teal); }
.stat-change.down { color: var(--red); }

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px;
}
.section-header h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px;
}
.section-header h2 .icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.section-header .view-all {
  font-size: 13px; color: var(--teal); text-decoration: none;
  font-weight: 500; display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.section-header .view-all:hover { gap: 8px; }

/* ========== NEWS SECTION ========== */
.news-section { margin-bottom: 56px; }
.news-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px;
}
.news-lead {
  display: block; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  transition: background 0.3s, transform 0.3s;
}
.news-lead:hover { background: var(--glass-hover); transform: translateY(-2px); }
.news-lead-img {
  height: 280px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
}
.news-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.news-lead-img .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(75,131,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,131,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.news-lead-img .dwd-placeholder-svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; opacity: 0.15; color: var(--text-dim); z-index: 1;
}
.news-lead-content { padding: 28px; }
.news-lead-content .tag { margin-bottom: 12px; display: inline-block; }
.news-lead-content h3 {
  font-size: 22px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.3px; margin-bottom: 10px;
  overflow-wrap: break-word; word-break: break-word;
}
.news-lead-content p {
  font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px;
}

.news-sidebar {
  display: flex; flex-direction: column; gap: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
}
.news-sidebar-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; text-decoration: none; color: var(--text);
  transition: background 0.2s;
  border-bottom: 1px solid var(--glass-border);
}
.news-sidebar-item:last-child { border-bottom: none; }
.news-sidebar-item:hover { background: var(--glass-hover); }
.news-sidebar-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
}
.news-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-sidebar-text { flex: 1; min-width: 0; }
.news-sidebar-text h4 {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== MAIN GRID ========== */
.main-grid {
  display: block;
  margin-bottom: 56px;
}

/* ========== FEATURED DUO (Two Large Posts) ========== */
.featured-duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 32px;
}
.sidebar-full {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

/* ========== FEATURED ARTICLE ========== */
.featured {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  align-self: start;
}
.featured:hover {
  border-color: rgba(255,255,255,0.12); transform: translateY(-2px);
}
.featured-img {
  height: 260px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e, #0a1a2e);
  flex-shrink: 0;
}
.featured-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(6,6,14,0.95));
}
.featured-img .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-scroll 20s linear infinite;
}
@keyframes grid-scroll { to { background-position: 40px 40px; } }
.featured-img .globe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border: 1px solid rgba(0,212,170,0.15); border-radius: 50%;
  box-shadow: 0 0 60px rgba(0,212,170,0.1), inset 0 0 60px rgba(123,47,190,0.1);
}
.featured-img .globe::before {
  content: ''; position: absolute; inset: 20px;
  border: 1px solid rgba(123,47,190,0.15); border-radius: 50%;
}
.featured-img .globe::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; left: 50%; width: 1px;
  background: rgba(0,212,170,0.1);
}
.featured-content { padding: 28px; }
.featured-content h3 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.3; margin-bottom: 12px;
}
.featured-content p {
  font-size: 14.5px; color: var(--text-dim);
  line-height: 1.7; margin-bottom: 16px;
}

/* ========== TAGS ========== */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px;
}
.tag-breaking, .tag-breach { background: var(--red-dim); color: var(--red); }
.tag-guide { background: var(--teal-dim); color: var(--teal); }
.tag-scam { background: var(--amber-dim); color: var(--amber); }
.tag-tools, .tag-news { background: var(--purple-dim); color: #B388FF; }
.tag-ai { background: rgba(75,131,255,0.12); color: #7BA8FF; }
.tag-monitoring { background: var(--teal-dim); color: var(--teal); }
.tag-myths { background: var(--amber-dim); color: var(--amber); }

/* ========== META ========== */
.meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.meta .dot {
  width: 3px; height: 3px;
  background: var(--text-muted); border-radius: 50%;
}

/* ========== SIDEBAR ========== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
  background: var(--glass);
  backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 20px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s; cursor: pointer;
  display: block; text-decoration: none; color: var(--text);
}
.sidebar-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.sidebar-card .tag { margin-bottom: 10px; }
.sidebar-card h4 {
  font-size: 15px; font-weight: 600;
  line-height: 1.4; margin-bottom: 10px; letter-spacing: -0.2px;
}
.sidebar-card p {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.6; margin-bottom: 10px;
}
.card-thumbnail {
  margin: -20px -20px 16px -20px; border-radius: 16px 16px 0 0;
  overflow: hidden; height: 160px;
}
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ========== SCAM CARD IMAGE ========== */
.scam-card-image {
  margin: -22px -22px 16px -22px;
  margin-left: calc(-22px + 3px); /* account for left severity border */
  height: 160px; overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.scam-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== TOOL CARD IMAGE ========== */
.tool-card-image {
  margin: -24px -24px 16px -24px;
  height: 140px; overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.tool-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* ========== SCAM ALERTS ========== */
.scam-section, .latest-section { margin-bottom: 56px; }
.scam-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.scam-card {
  background: var(--glass);
  backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 22px;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s; cursor: pointer;
  display: block; text-decoration: none; color: var(--text);
}
.scam-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
}
.scam-card.critical::before { background: var(--red); box-shadow: 0 0 12px rgba(255,71,87,0.4); }
.scam-card.high::before { background: var(--amber); box-shadow: 0 0 12px rgba(255,171,0,0.3); }
.scam-card.medium::before { background: var(--teal); box-shadow: 0 0 12px rgba(0,212,170,0.3); }
.scam-card:hover {
  background: var(--glass-hover); transform: translateY(-2px);
}
.scam-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.severity {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 5px;
}
.severity.critical { background: var(--red-dim); color: var(--red); }
.severity.high { background: var(--amber-dim); color: var(--amber); }
.severity.medium { background: var(--teal-dim); color: var(--teal); }
.scam-date { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.scam-card h4 { font-size: 14.5px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.scam-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.scam-status {
  margin-top: 12px; display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; font-family: var(--mono);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status-dot.active { background: var(--red); box-shadow: 0 0 6px var(--red); animation: blink 1.5s infinite; }
.status-dot.down { background: var(--teal); }

/* ========== TOOLS SECTION ========== */
.tools-section { margin-bottom: 56px; }
.tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tool-card {
  background: var(--glass);
  backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 24px; text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s; cursor: pointer;
  display: block; text-decoration: none; color: var(--text);
}
.tool-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.tool-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 22px;
}
.tool-icon.tor { background: linear-gradient(135deg, #7B2FBE22, #7B2FBE44); }
.tool-icon.vpn { background: linear-gradient(135deg, #00D4AA22, #00D4AA44); }
.tool-icon.tails { background: linear-gradient(135deg, #3366CC22, #3366CC44); }
.tool-icon.monitor { background: linear-gradient(135deg, #FF475722, #FF475744); }
.tool-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tool-card .rating, .rating {
  font-size: 12px; color: var(--teal); font-weight: 600; font-family: var(--mono);
}
.tool-card .tool-desc, .tool-desc {
  font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.5;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 48px; text-align: center;
  margin-bottom: 56px; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(123,47,190,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0,212,170,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.newsletter h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 10px; position: relative;
}
.newsletter p {
  color: var(--text-dim); font-size: 15px;
  margin-bottom: 28px; position: relative;
}
.newsletter-form {
  display: flex; gap: 10px; max-width: 480px;
  margin: 0 auto; position: relative;
}
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 14px 18px; color: var(--text);
  font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button {
  background: linear-gradient(135deg, var(--teal), #00B894);
  border: none; border-radius: 12px;
  padding: 14px 28px; color: #000;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.25);
}
.newsletter-message {
  margin-top: 16px; font-size: 14px;
  position: relative; min-height: 20px;
}
.newsletter-message.success { color: var(--teal); }
.newsletter-message.error { color: var(--red); }

/* ========== CONTACT PAGE ========== */
.contact-email-block {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 36px; margin: 32px 0;
  text-align: center;
}
.contact-email-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px;
}
.contact-email-svg {
  display: flex; justify-content: center; margin-bottom: 12px;
}
.contact-email-svg svg {
  max-width: 100%; height: auto;
}
.contact-email-note {
  font-size: 13px; color: var(--text-muted);
}

.contact-form-block {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 48px; margin: 40px 0 56px;
  position: relative; overflow: hidden;
}
.contact-form-block::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(123,47,190,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(0,212,170,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.contact-form-block h2 {
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 8px; position: relative;
}
.contact-form-subtitle {
  color: var(--text-dim); font-size: 15px;
  margin-bottom: 32px; position: relative;
}

.contact-form { position: relative; }
.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.contact-form-field {
  margin-bottom: 16px;
}
.contact-form-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 6px;
}
.contact-form-field label .required { color: var(--red); }
.contact-form-field input,
.contact-form-field textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 14px 18px; color: var(--text);
  font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder { color: var(--text-muted); }
.contact-form-field input:focus,
.contact-form-field textarea:focus { border-color: var(--teal); }
.contact-form-field textarea { resize: vertical; min-height: 140px; }

.contact-form-field input.field-error,
.contact-form-field textarea.field-error {
  border-color: var(--red);
}

.contact-form-captcha {
  margin-bottom: 24px;
}
.contact-form-captcha label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.contact-form-captcha label .required { color: var(--red); }
.captcha-icon {
  display: flex; color: var(--teal);
}
.contact-form-captcha input {
  max-width: 200px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 12px 18px; color: var(--text);
  font-size: 16px; font-weight: 600; font-family: var(--mono);
  outline: none; transition: border-color 0.2s;
}
.contact-form-captcha input::placeholder { color: var(--text-muted); font-weight: 400; font-family: var(--font); font-size: 14px; }
.contact-form-captcha input:focus { border-color: var(--teal); }
.contact-form-captcha input.field-error { border-color: var(--red); }

/* Honeypot — visually hidden */
.contact-hp {
  position: absolute; left: -9999px; height: 0; width: 0;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.contact-form-actions {
  margin-bottom: 16px;
}
.contact-submit {
  background: linear-gradient(135deg, var(--teal), #00B894);
  border: none; border-radius: 12px;
  padding: 16px 40px; color: #000;
  font-size: 15px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.25);
}
.contact-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
  box-shadow: none;
}

.contact-form-message {
  font-size: 14px; min-height: 20px;
}
.contact-form-message.success { color: var(--teal); }
.contact-form-message.error { color: var(--red); }

@media (max-width: 768px) {
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form-block { padding: 28px 20px; }
  .contact-email-block { padding: 28px 16px; }
  .contact-email-svg svg { width: 100%; }
}
@media (max-width: 480px) {
  .contact-submit { width: 100%; }
}

/* ========== FOOTER ========== */
.dwd-footer {
  border-top: 1px solid var(--glass-border);
  padding: 0 0 48px; margin-top: 20px;
  position: relative; z-index: 2;
}

/* Footer Newsletter Row */
.footer-newsletter {
  border-bottom: 1px solid var(--glass-border);
  padding: 40px 0; margin-bottom: 48px;
}
.footer-newsletter-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.footer-newsletter-text h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 4px;
}
.footer-newsletter-text p {
  font-size: 13px; color: var(--text-dim); margin: 0;
}
.footer-newsletter-form {
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted);
  font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: 13.5px; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1280px; margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-size: 12px; color: var(--text-muted); }
.footer-legal a {
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--teal); }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 50; width: 44px; height: 44px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: 20px 0; font-size: 13px;
  color: var(--text-muted); display: flex;
  align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { color: var(--text-muted); font-size: 11px; }
.breadcrumbs .current { color: var(--text); }

/* ========== SEARCH VOLUME BADGE ========== */
.search-vol {
  font-size: 11px; color: var(--teal);
  font-family: var(--mono); font-weight: 500;
}

/* ========== BTN PRIMARY ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #00B894);
  color: #000; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.25);
}

/* ========== GLASS CARD UTILITY ========== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* ============================================================
   ARCHIVE / INDEX PAGES
   ============================================================ */
.archive-header {
  padding: 48px 0 32px; text-align: center;
}
.archive-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1.5px; margin-bottom: 12px;
}
.archive-desc {
  font-size: 16px; color: var(--text-dim);
  max-width: 560px; margin: 0 auto 16px; line-height: 1.7;
}
.archive-desc strong { color: var(--teal); font-weight: 600; }
.archive-count {
  font-size: 13px; color: var(--text-muted);
  font-family: var(--mono); margin-top: 8px;
}

/* Post Grid */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 48px;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  text-decoration: none; color: var(--text);
}
.post-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.post-card-image {
  height: 180px; overflow: hidden;
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.post-card-placeholder .dwd-placeholder-svg {
  width: 64px; height: 64px; opacity: 0.25;
}
.post-card-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-tags {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.post-card-title {
  font-size: 16px; font-weight: 600;
  line-height: 1.4; margin-bottom: 8px;
  letter-spacing: -0.2px;
  overflow-wrap: break-word; word-break: break-word;
}
.post-card-excerpt {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.6; margin-bottom: 12px; flex: 1;
}
.post-card .meta { margin-top: auto; }
.card-rating { color: var(--teal); }

/* Pagination */
.pagination { text-align: center; margin-bottom: 48px; }
.pagination .nav-links {
  display: inline-flex; gap: 8px;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text-dim);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: all 0.2s;
}
.pagination a:hover {
  background: var(--glass-hover); color: var(--text);
  border-color: rgba(255,255,255,0.15);
}
.pagination .current {
  background: var(--teal-dim); color: var(--teal);
  border-color: rgba(0,212,170,0.3);
}

/* Search Page Form */
.search-page-form {
  display: flex; gap: 10px; max-width: 480px;
  margin: 20px auto 0;
}
.search-page-form input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 14px 18px; color: var(--text);
  font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.search-page-form input::placeholder { color: var(--text-muted); }
.search-page-form input:focus { border-color: var(--teal); }
.search-page-form button {
  background: linear-gradient(135deg, var(--teal), #00B894);
  border: none; border-radius: 12px;
  padding: 14px 24px; color: #000;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: all 0.2s;
}
.search-page-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.25);
}

/* No Results */
.no-results {
  text-align: center; padding: 80px 24px;
}
.no-results h2 {
  font-size: 24px; font-weight: 700; margin-bottom: 12px;
}
.no-results p {
  color: var(--text-dim); font-size: 15px; margin-bottom: 24px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-article {
  max-width: 100%; padding-bottom: 48px;
}
.article-header {
  max-width: 780px; margin: 0 auto; padding: 40px 0 32px;
}
.article-header .tag { margin-bottom: 16px; }
.article-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.2; margin-bottom: 20px;
  overflow-wrap: break-word; word-break: break-word;
}
.article-meta {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.author-info {
  display: flex; align-items: center; gap: 12px;
}
.author-name {
  display: block; font-size: 14px;
  font-weight: 600; color: var(--text);
}
.article-date {
  display: block; font-size: 12px;
  color: var(--text-muted); font-family: var(--mono);
}

/* Share Buttons */
.share-buttons {
  display: flex; align-items: center; gap: 8px;
}
.share-label {
  font-size: 12px; color: var(--text-muted);
  font-weight: 600; margin-right: 4px;
}
.share-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-dim);
  transition: all 0.2s; text-decoration: none;
  cursor: pointer;
}
.share-btn:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

/* Featured Image */
.article-featured-image {
  max-width: 780px; margin: 0 auto 32px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
}
.article-featured-image img {
  width: 100%; height: auto; display: block;
}
.article-featured-placeholder {
  height: 320px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
}
.article-featured-placeholder .dwd-placeholder-svg {
  width: 96px; height: 96px; opacity: 0.2; color: var(--text-dim);
}
.card-thumbnail-placeholder {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
}
.card-thumbnail-placeholder .dwd-placeholder-svg {
  width: 48px; height: 48px; opacity: 0.2; color: var(--text-dim);
}
.scam-card-image.post-card-placeholder {
  height: 160px;
}
.featured-img .dwd-placeholder-svg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; opacity: 0.15; color: var(--text-dim); z-index: 1;
}

/* Article Layout with TOC */
.article-layout {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 48px; max-width: 1080px; margin: 0 auto;
}
.page-layout {
  display: block; max-width: 780px;
}
.page-layout .page-content { max-width: 100%; }

/* Table of Contents */
.article-toc { position: relative; }
.toc-card {
  position: sticky; top: 88px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px;
}
.toc-title {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  font-weight: 600; margin-bottom: 12px;
}
.toc-link {
  display: block; padding: 6px 10px;
  font-size: 12px; color: var(--text-muted);
  text-decoration: none; border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s; line-height: 1.4;
}
.toc-link:hover { color: var(--text); background: var(--glass-hover); }
.toc-link.active {
  color: var(--teal); border-left-color: var(--teal);
  background: var(--teal-dim);
}
.toc-link.toc-sub { padding-left: 20px; font-size: 11px; }

/* Article Content */
.article-content {
  max-width: 780px; font-size: 16px; line-height: 1.8;
  overflow-wrap: break-word; word-break: break-word;
}
.article-content h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.5px; margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}
.article-content h3 {
  font-size: 20px; font-weight: 600;
  margin: 32px 0 12px; letter-spacing: -0.3px;
}
.article-content h4 {
  font-size: 17px; font-weight: 600; margin: 24px 0 10px;
}
.article-content p {
  color: var(--text-dim); margin-bottom: 20px;
}
.article-content a {
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid rgba(0,212,170,0.3);
  transition: border-color 0.2s;
}
.article-content a:hover { border-bottom-color: var(--teal); }
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px; color: var(--text-dim);
}
.article-content li {
  margin-bottom: 8px; line-height: 1.7;
}
.article-content ul li::marker { color: var(--teal); }
.article-content ol li::marker { color: var(--teal); font-weight: 600; }
.article-content blockquote {
  background: var(--glass); border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 20px 24px;
  margin: 24px 0; font-style: italic; color: var(--text-dim);
}
.article-content pre {
  background: var(--bg-dark); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 20px; overflow-x: auto;
  margin: 24px 0; font-family: var(--mono); font-size: 13px;
  line-height: 1.6; color: var(--text);
  max-width: 100%; white-space: pre-wrap; word-wrap: break-word;
}
.article-content code {
  background: rgba(255,255,255,0.06);
  padding: 2px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 0.9em;
  color: var(--teal);
}
.article-content pre code {
  background: none; padding: 0; color: var(--text);
}
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 14px;
}
.article-content th, .article-content td {
  padding: 12px 16px; text-align: left;
  border: 1px solid var(--glass-border);
}
.article-content th {
  background: var(--glass); font-weight: 600;
  color: var(--text); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.article-content td { color: var(--text-dim); }
.article-content tr:hover td { background: var(--glass); }
.article-content img {
  border-radius: 12px; border: 1px solid var(--glass-border);
  margin: 16px 0;
}
.article-content figure { margin: 24px 0; }
.article-content figcaption {
  text-align: center; font-size: 13px;
  color: var(--text-muted); margin-top: 8px;
  font-style: italic;
}

/* WordPress Block Alignments */
.article-content .alignwide {
  margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px);
}
.article-content .alignfull {
  margin-left: -24px; margin-right: -24px;
  max-width: calc(100% + 48px); width: calc(100% + 48px);
}
.article-content .aligncenter { text-align: center; }
.article-content .alignleft { float: left; margin: 0 24px 16px 0; }
.article-content .alignright { float: right; margin: 0 0 16px 24px; }
.article-content .wp-block-image { margin: 24px 0; }
.article-content .wp-caption-text {
  text-align: center; font-size: 13px;
  color: var(--text-muted); margin-top: 8px;
}
.article-content .wp-block-embed { margin: 24px 0; max-width: 100%; overflow: hidden; }
.article-content .wp-block-embed__wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.article-content .wp-block-embed__wrapper iframe,
.article-content .wp-block-embed__wrapper video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.article-content .wp-block-gallery {
  display: grid; gap: 8px; margin: 24px 0;
}

/* Author Box */
.author-box {
  display: flex; align-items: center; gap: 20px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 24px;
  max-width: 780px; margin: 40px auto;
}
.author-avatar {
  flex-shrink: 0;
  width: 72px; height: 72px;
}
.author-avatar img {
  width: 72px !important; height: 72px !important;
  min-width: 72px; min-height: 72px;
  border-radius: 50% !important;
  border: 2px solid var(--glass-border);
  object-fit: cover;
}
.author-info img {
  width: 36px !important; height: 36px !important;
  min-width: 36px; min-height: 36px;
  border-radius: 50% !important;
  border: 2px solid var(--glass-border);
  object-fit: cover;
}
.author-details h4 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.author-details p {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
}

/* Related Posts */
.related-posts {
  max-width: 100%; margin: 40px 0;
}

/* Comments */
.comments-section {
  max-width: 780px; margin: 24px auto;
}
.comments-title {
  font-size: 20px; font-weight: 700;
  margin-bottom: 24px; letter-spacing: -0.5px;
}
.comment-list {
  list-style: none; margin: 0; padding: 0;
}
.comment-list .comment {
  padding: 20px; margin-bottom: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.comment-list .comment .avatar {
  border-radius: 50%; float: left; margin-right: 12px;
}
.comment-form {
  padding: 24px; margin-top: 24px;
}
.comment-form label {
  display: block; font-size: 13px;
  color: var(--text-dim); margin-bottom: 6px; font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 12px 16px; color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color 0.2s; margin-bottom: 16px;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--teal);
}
.comment-form .submit {
  background: linear-gradient(135deg, var(--teal), #00B894);
  border: none; border-radius: 10px;
  padding: 12px 24px; color: #000;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.comment-form .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,170,0.25);
}

/* ============================================================
   SIDEBAR WIDGET AREA (sidebar.php)
   ============================================================ */
.sidebar-widget-area {
  display: flex; flex-direction: column; gap: 24px;
}
.sidebar-section {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 18px;
}
.sidebar-heading {
  font-size: 14px; font-weight: 600;
  margin-bottom: 14px; display: flex;
  align-items: center; gap: 6px;
}
.sidebar-post {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; text-decoration: none; color: var(--text);
  transition: opacity 0.2s;
}
.sidebar-post:hover { opacity: 0.8; }
.sidebar-post + .sidebar-post { border-top: 1px solid rgba(255,255,255,0.04); }
.sidebar-post-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title {
  display: block; font-size: 13px; font-weight: 500;
  line-height: 1.3; margin-bottom: 2px;
}
.sidebar-post-date {
  display: block; font-size: 11px; color: var(--text-muted);
  font-family: var(--mono);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .featured-duo { grid-template-columns: 1fr 1fr; }
  .sidebar-full { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .scam-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-content .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
  .news-layout { grid-template-columns: 1.4fr 1fr; }
  .news-lead-img { height: 220px; }
  .breach-table-header, .breach-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .ai-myths-grid { grid-template-columns: 1fr; }
  .tools-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wrapper { padding: 0 16px; }
  .featured-duo { grid-template-columns: 1fr; }
  .sidebar-full { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-search span, .nav-search kbd { display: none; }
  .nav-search { padding: 7px 10px; }
  .mobile-menu-toggle { display: flex; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 28px; letter-spacing: -1px; }
  .hero p { font-size: 14px; margin-bottom: 24px; }
  .newsletter { padding: 28px 16px; }
  .newsletter h2 { font-size: 22px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .search-page-form { flex-direction: column; }
  .search-page-form button { width: 100%; }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .article-featured-placeholder { height: 220px; }
  .article-featured-placeholder .dwd-placeholder-svg { width: 72px; height: 72px; }
  .share-buttons { width: 100%; }
  .author-box { flex-direction: column; text-align: center; }
  .reading-progress { top: 0; }
  body.admin-bar .reading-progress { top: 46px; }
  .search-modal { padding-top: 8vh; }
  .article-content .alignfull {
    margin-left: -16px; margin-right: -16px;
    max-width: calc(100% + 32px); width: calc(100% + 32px);
  }
  .article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .section-header { flex-wrap: wrap; gap: 8px; }
  .section-header h2 { font-size: 18px; }
  .stats-row { gap: 10px; margin-bottom: 36px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }
  .featured-content h3 { font-size: 18px; }
  .featured-content p { font-size: 13px; }
  .breach-table-header, .breach-row { grid-template-columns: 2fr 1fr 1fr; }
  .breach-status span:last-child { display: none; }
  .breach-row { padding: 12px 16px; gap: 10px; }
  .breach-table-header { padding: 10px 16px; gap: 10px; }
  .scam-card { padding: 16px; }
  .scam-card h4 { font-size: 13.5px; }
  .scam-card p { font-size: 12px; }
  .tool-card { padding: 16px; }
  .category-nav { margin-bottom: 28px; }
  .trending-ticker { margin-bottom: 32px; }
  .nav-inner { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }
  .footer-bottom { padding: 24px 16px 0; }
  .news-layout { grid-template-columns: 1fr; }
  .news-lead-img { height: 200px; }
  .news-lead-content h3 { font-size: 19px; }
  .news-section { margin-bottom: 40px; }
  .footer-newsletter-inner { flex-direction: column; text-align: center; }
  .footer-newsletter-form { width: 100%; max-width: 400px; }
  .scam-section, .latest-section, .tools-section, .ai-myths-section, .latest-all-section { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .wrapper { padding: 0 12px; }
  .featured-duo { grid-template-columns: 1fr; gap: 16px; }
  .sidebar-full { grid-template-columns: 1fr; gap: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sidebar { grid-template-columns: 1fr; }
  .scam-grid { grid-template-columns: 1fr; gap: 12px; }
  .tools-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 12px; }
  .post-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 24px 12px 0; }
  .featured-content { padding: 16px; }
  .featured-content h3 { font-size: 17px; }
  .featured-content p { font-size: 12.5px; margin-bottom: 10px; }
  .featured-img { height: 160px; }
  .breach-table-header { display: none; }
  .breach-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px; padding: 12px;
  }
  .breach-name { grid-column: 1 / -1; font-size: 13px; }
  .breach-date { font-size: 11px; }
  .trending-ticker { padding: 10px 12px; margin-bottom: 24px; gap: 10px; }
  .trending-label { font-size: 10px; letter-spacing: 0.5px; }
  .category-nav { gap: 6px; margin-bottom: 20px; }
  .category-nav-item { padding: 7px 10px; font-size: 11px; gap: 6px; }
  .category-nav-icon { font-size: 14px; }
  .category-nav-count { padding: 1px 6px; font-size: 10px; }
  .tools-grid-3 { grid-template-columns: 1fr; }
  .ai-grid-side { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .ai-featured-img { height: 160px; }
  .ai-featured-content { padding: 16px; }
  .ai-featured-content h3 { font-size: 17px; }
  .news-lead-img { height: 180px; }
  .news-lead-content { padding: 20px; }
  .news-lead-content h3 { font-size: 17px; }
  .news-sidebar-item { padding: 14px 16px; gap: 10px; }
  .news-sidebar-thumb { width: 48px; height: 48px; }
  .news-sidebar-text h4 { font-size: 13px; }
  .news-section { margin-bottom: 32px; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 12px; }
  .hero p { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
  .hero-badge { font-size: 11px; padding: 5px 12px 5px 8px; gap: 6px; }
  .hero-badge .dot { width: 6px; height: 6px; }
  .section-header { margin-bottom: 16px; }
  .section-header h2 { font-size: 16px; gap: 8px; }
  .section-header h2 .icon { width: 24px; height: 24px; font-size: 12px; }
  .section-header .view-all { font-size: 12px; }
  .nav-inner { padding: 0 12px; height: 56px; }
  .logo-text { font-size: 16px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .newsletter h2 { font-size: 20px; }
  .newsletter p { font-size: 13px; margin-bottom: 20px; }
  .post-card-image { height: 150px; }
  .post-card-content { padding: 14px; }
  .post-card-title { font-size: 14.5px; }
  .post-card-excerpt { font-size: 12.5px; margin-bottom: 8px; }
  .sidebar-card { padding: 14px; }
  .sidebar-card h4 { font-size: 14px; margin-bottom: 6px; }
  .sidebar-card p { font-size: 12px; margin-bottom: 6px; }
  .card-thumbnail { margin: -14px -14px 12px -14px; height: 130px; }
  .scam-card-image { margin: -16px -16px 12px -16px; margin-left: calc(-16px + 3px); height: 130px; }
  .tool-card-image { margin: -16px -16px 12px -16px; height: 110px; }
  .stat-card { padding: 12px; border-radius: 12px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 10px; letter-spacing: 0.8px; margin-bottom: 4px; }
  .stat-change { font-size: 11px; margin-top: 4px; }
  .scam-section, .latest-section, .tools-section, .ai-myths-section, .latest-all-section { margin-bottom: 32px; }
  .featured-duo { margin-bottom: 24px; }
  .main-grid { margin-bottom: 32px; }
  .cookie-banner-inner { padding: 14px; gap: 12px; }
  .cookie-banner-icon { width: 32px; height: 32px; font-size: 18px; }
  .cookie-banner-text p { font-size: 12px; }
  .cookie-btn { padding: 8px 14px; font-size: 12px; }
  .mobile-menu-panel { width: 280px; padding: 18px; }
  .reading-progress { top: 0; }
  body.admin-bar .reading-progress { top: 46px; }
}

/* ========== SMALL PHONE FIXES (375px and below) ========== */
@media (max-width: 375px) {
  .wrapper { padding: 0 10px; }

  /* Hero */
  .hero { padding: 28px 0 24px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 12.5px; margin-bottom: 16px; }
  .hero-badge { font-size: 10px; padding: 4px 10px 4px 7px; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-card { padding: 10px; border-radius: 10px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 9px; }
  .stat-change { font-size: 10px; }

  /* News section */
  .news-lead-img { height: 160px; }
  .news-lead-content { padding: 14px; }
  .news-lead-content h3 { font-size: 16px; }
  .news-lead-content p { font-size: 12.5px; }
  .news-sidebar-item { padding: 12px 14px; }
  .news-sidebar-thumb { width: 44px; height: 44px; border-radius: 8px; }
  .news-sidebar-text h4 { font-size: 12.5px; }

  /* Featured */
  .featured-img { height: 140px; }
  .featured-content { padding: 14px; }
  .featured-content h3 { font-size: 16px; }
  .featured-content p { font-size: 12px; }

  /* Breach table */
  .breach-row {
    grid-template-columns: 1fr;
    gap: 4px; padding: 10px 12px;
  }
  .breach-name { font-size: 12.5px; }
  .breach-date { font-size: 10px; }
  .breach-status { font-size: 10px; }

  /* Cards */
  .post-card-image { height: 130px; }
  .post-card-content { padding: 12px; }
  .post-card-title { font-size: 13.5px; }
  .post-card-excerpt { font-size: 12px; }
  .sidebar-card { padding: 12px; }
  .sidebar-card h4 { font-size: 13px; }
  .scam-card { padding: 14px; }
  .scam-card h4 { font-size: 13px; }
  .tool-card { padding: 14px; }

  /* Section headers */
  .section-header h2 { font-size: 15px; gap: 6px; }
  .section-header h2 .icon { width: 22px; height: 22px; font-size: 11px; }
  .section-header .view-all { font-size: 11px; }

  /* Newsletter */
  .newsletter { padding: 24px 14px; border-radius: 14px; }
  .newsletter h2 { font-size: 18px; }
  .newsletter p { font-size: 12px; margin-bottom: 16px; }

  /* Article */
  .article-header { padding: 24px 0 20px; }
  .article-featured-placeholder { height: 180px; }
  .article-featured-placeholder .dwd-placeholder-svg { width: 56px; height: 56px; }
  .article-content { font-size: 15px; }
  .article-content h2 { font-size: 20px; margin: 28px 0 12px; padding-left: 12px; }
  .article-content h3 { font-size: 17px; margin: 24px 0 10px; }
  .article-content h4 { font-size: 15px; }
  .article-content blockquote { padding: 14px 16px; margin: 16px 0; }
  .article-content pre { padding: 14px; font-size: 12px; }
  .article-content .alignfull {
    margin-left: -10px; margin-right: -10px;
    max-width: calc(100% + 20px); width: calc(100% + 20px);
  }
  .article-content .alignleft,
  .article-content .alignright {
    float: none; margin: 16px 0;
  }

  /* Footer */
  .footer-inner { gap: 20px; padding: 0 10px; }
  .footer-bottom { padding: 20px 10px 0; }
  .footer-newsletter { padding: 28px 0; }
  .footer-newsletter-inner { padding: 0 10px; }
  .footer-newsletter-text h3 { font-size: 17px; }

  /* Contact form */
  .contact-form-block { padding: 20px 14px; }
  .contact-form-block h2 { font-size: 20px; }
  .contact-form-captcha input { max-width: 100%; }
  .contact-email-block { padding: 24px 12px; }

  /* Cookie banner */
  .cookie-banner-icon { width: 28px; height: 28px; font-size: 16px; }
  .cookie-banner-text p { font-size: 11px; }
  .cookie-btn { padding: 7px 12px; font-size: 11px; }

  /* Nav */
  .nav-inner { padding: 0 10px; height: 52px; }
  .logo-text { font-size: 15px; }
  .logo-icon { width: 28px; height: 28px; font-size: 13px; }
  .mobile-menu-panel { width: 85vw; max-width: 280px; padding: 16px; }

  /* Category nav */
  .category-nav { gap: 4px; }
  .category-nav-item { padding: 6px 8px; font-size: 10px; }
  .category-nav-icon { font-size: 12px; }
  .category-nav-count { padding: 1px 5px; font-size: 9px; }

  /* Reading progress */
  .reading-progress { top: 0; }
  body.admin-bar .reading-progress { top: 46px; }

  /* Trending ticker */
  .trending-ticker { padding: 8px 10px; margin-bottom: 20px; }
  .trending-label { font-size: 9px; padding: 3px 8px; }
  .ticker-item { font-size: 12px; }
}

/* ============================================================
   wpDiscuz DARK GLASS OVERRIDES
   ============================================================ */

/* Main wrapper */
#wpdcom {
  background: transparent !important;
  color: var(--text) !important;
}
#wpdcom .wc-comment-right {
  background: transparent !important;
}

/* Comment form area */
#wpdcom .wc-form-wrapper {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Textareas and inputs */
#wpdcom .wc-form-wrapper textarea,
#wpdcom .wc-form-wrapper input[type="text"],
#wpdcom .wc-form-wrapper input[type="email"],
#wpdcom .wc-form-wrapper input[type="url"],
#wpdcom textarea,
#wpdcom input[type="text"],
#wpdcom input[type="email"] {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  transition: border-color 0.2s !important;
}
#wpdcom textarea:focus,
#wpdcom input[type="text"]:focus,
#wpdcom input[type="email"]:focus {
  border-color: var(--teal) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0,212,170,0.15) !important;
}
#wpdcom textarea::placeholder,
#wpdcom input::placeholder {
  color: var(--text-muted) !important;
}

/* Fix label/icon overlap on comment form inputs */
#wpdcom .wc-field-wrapper,
#wpdcom .wpd-field-wrapper {
  position: relative !important;
}
#wpdcom .wc-field-wrapper label,
#wpdcom .wpd-field-wrapper label,
#wpdcom .wc-form-wrapper label {
  color: var(--text-dim) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: var(--font) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  pointer-events: none;
  z-index: 1 !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
#wpdcom .wc-field-wrapper label i,
#wpdcom .wc-field-wrapper label svg,
#wpdcom .wc-field-wrapper label .wc-field-icon,
#wpdcom .wpd-field-wrapper label i,
#wpdcom .wpd-field-wrapper label svg,
#wpdcom .wc-form-wrapper label i,
#wpdcom .wc-form-wrapper label svg {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
/* Ensure inputs don't have extra left padding for overlapping icons */
#wpdcom .wc-field-wrapper input,
#wpdcom .wc-field-wrapper textarea,
#wpdcom .wpd-field-wrapper input,
#wpdcom .wpd-field-wrapper textarea {
  padding-left: 16px !important;
}
/* wpDiscuz floating label style override — force static labels */
#wpdcom .wc-form-wrapper .wc-field-wrapper.wc-label-visible label,
#wpdcom .wc-form-wrapper .wc-field-wrapper label.wc-label-visible {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  font-size: 13px !important;
  opacity: 1 !important;
}

/* Submit button */
#wpdcom .wc-form-wrapper .wc-form-footer .wc-form-submit,
#wpdcom button.wc-btn.wc-btn-submit,
#wpdcom .wc-form-submit {
  background: linear-gradient(135deg, var(--teal), #00B894) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
#wpdcom .wc-form-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0,212,170,0.25) !important;
}

/* Individual comments */
#wpdcom .wc-comment,
#wpdcom .wc-comment .wc-comment-right {
  background: transparent !important;
  border: none !important;
}
#wpdcom .wc-comment-wrap {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 12px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}
#wpdcom .wc-comment-wrap:hover {
  border-color: rgba(255,255,255,0.12) !important;
}

/* Comment text */
#wpdcom .wc-comment-text,
#wpdcom .wc-comment .wc-comment-text p {
  color: var(--text-dim) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  font-family: var(--font) !important;
}

/* Author name */
#wpdcom .wc-comment-author,
#wpdcom .wc-comment .wc-comment-author a,
#wpdcom .wc-comment-header .wc-comment-author {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
#wpdcom .wc-comment-author a:hover {
  color: var(--teal) !important;
}

/* Admin/author badge */
#wpdcom .wc-comment-label {
  background: var(--teal-dim) !important;
  color: var(--teal) !important;
  border: none !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 2px 8px !important;
}

/* Date */
#wpdcom .wc-comment-date,
#wpdcom .wc-comment-header .wc-comment-date {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-family: var(--mono) !important;
}

/* Avatar */
#wpdcom .wc-comment-img-link img,
#wpdcom .wc-comment-left .avatar {
  border-radius: 50% !important;
  border: 2px solid var(--glass-border) !important;
}

/* Reply button, vote buttons, and action links */
#wpdcom .wc-reply-button,
#wpdcom .wc-comment-footer a,
#wpdcom .wc-comment-footer span,
#wpdcom .wc-cta-button {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: color 0.2s !important;
}
#wpdcom .wc-reply-button:hover,
#wpdcom .wc-comment-footer a:hover {
  color: var(--teal) !important;
}

/* Vote buttons */
#wpdcom .wc-vote-link,
#wpdcom .wc-vote-result {
  color: var(--text-muted) !important;
}
#wpdcom .wc-vote-link:hover {
  color: var(--teal) !important;
}
#wpdcom .wc-vote-result.wc-positive {
  color: var(--teal) !important;
}
#wpdcom .wc-vote-result.wc-negative {
  color: var(--red) !important;
}

/* Star rating */
#wpdcom .wc-field-stars .wc-star,
#wpdcom .wpd-star-rating .wpd-star {
  color: var(--text-muted) !important;
}
#wpdcom .wc-field-stars .wc-star.wc-star-active,
#wpdcom .wc-field-stars .wc-star:hover,
#wpdcom .wpd-star-rating .wpd-star.wpd-active {
  color: var(--amber) !important;
}

/* Comment sorting/filtering tabs */
#wpdcom .wpdcom-sorting-wrapper,
#wpdcom .wc-comments-tab {
  background: transparent !important;
  border-bottom: 1px solid var(--glass-border) !important;
}
#wpdcom .wc-comments-tab .wc-tab,
#wpdcom .wpd-filter a {
  color: var(--text-dim) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
}
#wpdcom .wc-comments-tab .wc-tab:hover,
#wpdcom .wpd-filter a:hover {
  color: var(--text) !important;
  background: var(--glass-hover) !important;
}
#wpdcom .wc-comments-tab .wc-tab.wc-active,
#wpdcom .wpd-filter a.wpd-active {
  color: var(--teal) !important;
  background: var(--teal-dim) !important;
}

/* Load more button */
#wpdcom .wc-load-more-wrapper .wc-load-more-btn,
#wpdcom .wc-load-more-submit {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--text-dim) !important;
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 12px 28px !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
}
#wpdcom .wc-load-more-wrapper .wc-load-more-btn:hover,
#wpdcom .wc-load-more-submit:hover {
  background: var(--glass-hover) !important;
  color: var(--teal) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Reply nested indent */
#wpdcom .wc-reply .wc-comment-wrap {
  background: rgba(255,255,255,0.02) !important;
  border-left: 2px solid var(--teal-dim) !important;
}

/* Comment header section title */
#wpdcom .wc-header-text,
#wpdcom .wc-comment-header h5,
#wpdcom #wc-comment-header {
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
}

/* Notification checkbox */
#wpdcom .wc-field-submit .wc-toggle-wrapper label,
#wpdcom .wpd-follow label {
  color: var(--text-dim) !important;
  font-size: 13px !important;
}

/* Social login buttons */
#wpdcom .wc-social-login-buttons a,
#wpdcom .wpd-social-login a {
  border-radius: 8px !important;
  transition: transform 0.2s !important;
}
#wpdcom .wc-social-login-buttons a:hover,
#wpdcom .wpd-social-login a:hover {
  transform: translateY(-1px) !important;
}

/* File upload area */
#wpdcom .wc-attach-link {
  color: var(--text-muted) !important;
  transition: color 0.2s !important;
}
#wpdcom .wc-attach-link:hover {
  color: var(--teal) !important;
}

/* Inline reply form */
#wpdcom .wc-secondary-form-wrapper {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  margin-top: 12px !important;
}

/* Scrollbars inside wpdcom */
#wpdcom ::-webkit-scrollbar { width: 6px; }
#wpdcom ::-webkit-scrollbar-track { background: transparent; }
#wpdcom ::-webkit-scrollbar-thumb {
  background: var(--glass-border); border-radius: 3px;
}
#wpdcom ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* Remove any white/light backgrounds wpDiscuz injects */
#wpdcom *:not(.wc-star):not(.wpd-star) {
  background-color: transparent;
}
#wpdcom .wc-form-wrapper,
#wpdcom .wc-comment-wrap,
#wpdcom .wc-secondary-form-wrapper,
#wpdcom .wc-load-more-wrapper .wc-load-more-btn,
#wpdcom .wc-reply .wc-comment-wrap {
  /* Re-apply our glass backgrounds after the reset above */
  background: var(--glass) !important;
}

/* wpDiscuz mobile overrides */
@media (max-width: 640px) {
  #wpdcom .wc-form-wrapper { padding: 16px !important; border-radius: 12px !important; }
  #wpdcom .wc-comment-wrap { padding: 12px !important; }
  #wpdcom .wc-secondary-form-wrapper { padding: 12px !important; border-radius: 10px !important; }
  #wpdcom .wc-reply .wc-comment-wrap { margin-left: 12px !important; }
}
@media (max-width: 375px) {
  #wpdcom .wc-form-wrapper { padding: 12px !important; }
  #wpdcom .wc-form-wrapper textarea,
  #wpdcom .wc-form-wrapper input[type="text"],
  #wpdcom .wc-form-wrapper input[type="email"] { padding: 10px 12px !important; font-size: 13px !important; }
  #wpdcom .wc-reply .wc-comment-wrap { margin-left: 8px !important; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 500; padding: 16px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 720px; margin: 0 auto;
  background: rgba(11,11,24,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex; align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.3), 0 0 80px rgba(123,47,190,0.06);
}
.cookie-banner-content {
  display: flex; align-items: flex-start; gap: 14px; flex: 1;
}
.cookie-banner-icon {
  font-size: 24px; flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cookie-banner-text p {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.6; margin: 0;
}
.cookie-learn-more {
  font-size: 12px; color: var(--teal);
  text-decoration: none; font-weight: 500;
  display: inline-block; margin-top: 4px;
  transition: opacity 0.2s;
}
.cookie-learn-more:hover { opacity: 0.8; }
.cookie-banner-actions {
  display: flex; gap: 8px; flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: all 0.2s; border: none;
  white-space: nowrap;
}
.cookie-btn-decline {
  background: var(--glass);
  border: 1px solid var(--glass-border) !important;
  color: var(--text-dim);
}
.cookie-btn-decline:hover {
  background: var(--glass-hover); color: var(--text);
  border-color: rgba(255,255,255,0.15) !important;
}
.cookie-btn-accept {
  background: linear-gradient(135deg, var(--teal), #00B894);
  color: #000;
}
.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,212,170,0.25);
}
.cookie-btn:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-banner { padding: 8px; }
  .cookie-banner-inner {
    flex-direction: column; align-items: stretch;
    padding: 14px;
  }
  .cookie-banner-content { gap: 10px; }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ========== CATEGORY NAVIGATION ========== */
.category-nav {
  display: flex; gap: 10px; margin-bottom: 40px;
  overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  text-decoration: none; white-space: nowrap;
  transition: all 0.2s; flex-shrink: 0;
}
.category-nav-item:hover {
  background: var(--glass-hover); color: var(--text);
  border-color: rgba(255,255,255,0.12); transform: translateY(-1px);
}
.category-nav-icon { font-size: 16px; }
.category-nav-name { font-weight: 600; }
.category-nav-count {
  background: rgba(255,255,255,0.06); border-radius: 6px;
  padding: 2px 8px; font-size: 11px; font-family: var(--mono);
  color: var(--text-muted);
}

/* ========== TRENDING TICKER ========== */
.trending-ticker {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 12px 20px;
  margin-bottom: 48px; overflow: hidden;
}
.trending-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap; flex-shrink: 0;
}
.trending-dot {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; animation: blink 1.5s ease-in-out infinite;
}
.ticker-track {
  flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-content {
  display: flex; gap: 32px; animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
  font-size: 13px; color: var(--text-dim);
  transition: color 0.2s;
}
.ticker-item:hover { color: var(--text); }
.ticker-cat {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  color: var(--teal); letter-spacing: 0.5px;
}
.ticker-title { font-weight: 500; }
.ticker-vol {
  font-size: 11px; font-family: var(--mono);
  color: var(--teal); opacity: 0.7;
}

/* ========== BREACH TRACKER TABLE ========== */
.breach-tracker { margin-bottom: 56px; }
.breach-table {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.breach-table-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px; padding: 14px 24px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.breach-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px; padding: 16px 24px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-decoration: none; color: var(--text);
  transition: background 0.2s;
}
.breach-row:last-child { border-bottom: none; }
.breach-row:hover { background: var(--glass-hover); }
.breach-name { font-size: 14px; font-weight: 500; }
.breach-date {
  font-size: 12px; color: var(--text-muted); font-family: var(--mono);
}
.breach-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
}

/* ========== LATEST ALL SECTION ========== */
.latest-all-section { margin-bottom: 56px; }
.blog-category-section { margin-bottom: 48px; }

/* ========== AI & MYTHS SECTION ========== */
.ai-myths-section { margin-bottom: 56px; }
.ai-myths-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 24px; align-items: start;
}
.ai-featured-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.ai-featured-card:hover {
  border-color: rgba(255,255,255,0.12); transform: translateY(-2px);
}
.ai-featured-img {
  height: 220px; overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a, #1a0a2e);
}
.ai-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-featured-placeholder { position: relative; }
.ai-featured-content { padding: 24px; }
.ai-featured-content .tag { margin-bottom: 12px; }
.ai-featured-content h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
  line-height: 1.3; margin-bottom: 10px;
}
.ai-featured-content p {
  font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px;
}
.ai-grid-side {
  display: flex; flex-direction: column; gap: 16px;
}

/* ========== TOOLS GRID 3-COL VARIANT ========== */
.tools-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mesh-bg .orb { animation: none; }
  .hero-badge { animation: none; }
  .hero-badge .dot { animation: none; }
  .status-dot.active { animation: none; }
  .featured-img .grid-lines { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ========== PRINT ========== */
@media print {
  .mesh-bg, .noise, .dwd-nav, .search-modal, .mobile-menu,
  .reading-progress, .back-to-top, .share-buttons,
  .newsletter, .related-posts, .dwd-footer { display: none !important; }
  body { background: #fff; color: #000; }
  .wrapper { max-width: 100%; }
  .article-content a { color: #000; border-bottom: 1px solid #666; }
  .article-content a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}
