/*
Theme Name: DhimanHub
Version: 3.0 - Futuristic Gamified Premium
*/

/* ================= ROOT SYSTEM ================= */
:root {
  --bg: #050816;
  --bg-2: #070b1f;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.92);
  --card-dark: rgba(12, 18, 48, 0.92);

  --text: #111827;
  --text-light: #ffffff;
  --muted: #6b7280;
  --muted-light: #cfd8ff;

  --neon-blue: #00e5ff;
  --neon-purple: #7c3aed;
  --neon-pink: #ff2bd6;
  --orange: #ff8a1d;
  --orange-2: #ff6a00;
  --gold: #ffb020;
  --green: #22c55e;

  --line: rgba(255, 255, 255, 0.12);
  --dark-line: rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 28px rgba(0, 229, 255, 0.22);
  --shadow-purple: 0 0 34px rgba(124, 58, 237, 0.28);
  --shadow-orange: 0 12px 28px rgba(255, 106, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(124, 58, 237, 0.16), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(0, 229, 255, 0.12), transparent 24%),
    #f6f7fb;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: 0.28s ease;
}

button,
.card,
.topic-card,
.tool-card,
.latest-card,
.deal-card,
.btn,
.subscribe-btn,
.icon-btn {
  transition: 0.28s ease;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ================= HEADER ================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.header-flex {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--orange), var(--neon-pink));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: white;
  font-weight: 900;
  box-shadow:
    0 0 18px rgba(255, 106, 0, 0.5),
    0 0 26px rgba(255, 43, 214, 0.25);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  opacity: 0.85;
}

.brand-d,
.brand-h {
  color: white;
  font-size: 18px;
  line-height: 1;
}

.brand-name {
  font-size: 32px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.9px;
  white-space: nowrap;
}

.brand-name span {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.menu-list li a {
  position: relative;
  color: #dce4ff;
  font-size: 14px;
  font-weight: 600;
}

.menu-list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  border-radius: 999px;
  transition: 0.28s ease;
}

.menu-list li a:hover,
.menu-list li.current-menu-item > a {
  color: white;
}

.menu-list li a:hover::after,
.menu-list li.current-menu-item > a::after {
  width: 100%;
}

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

.icon-btn,
#darkToggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.075);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 16px rgba(255,255,255,0.04);
}

.icon-btn:hover,
#darkToggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.subscribe-btn {
  padding: 11px 19px;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  background:
    linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: var(--shadow-orange);
}

.subscribe-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.search-form {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 21px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 48px;
  color: white;
  background:
    radial-gradient(circle at 78% 36%, rgba(124, 58, 237, 0.62), transparent 27%),
    radial-gradient(circle at 92% 78%, rgba(0, 229, 255, 0.16), transparent 24%),
    radial-gradient(circle at 28% 88%, rgba(255, 43, 214, 0.14), transparent 28%),
    linear-gradient(135deg, #050816 0%, #070d2a 45%, #180a3d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 65%);
  filter: blur(4px);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.hero-left {
  width: 48%;
}

.hero-right {
  width: 52%;
  display: flex;
  justify-content: flex-end;
}

.hero-right img {
  width: 100%;
  max-width: 620px;
  filter:
    drop-shadow(0 25px 60px rgba(124, 58, 237, 0.42))
    drop-shadow(0 0 24px rgba(0, 229, 255, 0.14));
  transform: translateY(4px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: #eff6ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.04);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--orange), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  color: #d8e0ff;
  font-size: 18px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: var(--shadow-orange);
}

.btn.secondary {
  color: white;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.04);
}

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

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #dce4ff;
  font-size: 13px;
  font-weight: 600;
}

.hero-features span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ================= COMMON SECTIONS ================= */
.section-block {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2,
.section-title-center {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.section-head a {
  color: var(--neon-purple);
  font-size: 14px;
  font-weight: 800;
}

.section-head a:hover {
  color: var(--neon-pink);
}

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

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow-soft);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0,229,255,0.10), transparent 35%, rgba(255,43,214,0.08));
  opacity: 0;
  transition: 0.28s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.card:hover::before {
  opacity: 1;
}

.card-img {
  position: relative;
  height: 188px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: white;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28);
}

.card-content {
  padding: 15px 16px 17px;
}

.card-content h3 {
  font-size: 16px;
  line-height: 1.38;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-content p {
  color: var(--muted);
  font-size: 12px;
}

/* ================= TOPICS / GAMIFIED QUEST CARDS ================= */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 17px;
}

.topic-card {
  position: relative;
  min-height: 160px;
  padding: 24px 15px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.topic-card::after {
  content: "+ XP";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #4c1d95;
  font-size: 10px;
  font-weight: 900;
}

.topic-card:hover {
  transform: translateY(-5px) scale(1.015);
}

.topic-icon {
  font-size: 34px;
  margin-bottom: 11px;
}

.topic-card h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.topic-card p {
  font-size: 12px;
  color: #4b5563;
}

.topic-purple { background: linear-gradient(135deg, #f4f0ff, #eee7ff); }
.topic-green { background: linear-gradient(135deg, #ecfbf1, #def9e8); }
.topic-blue { background: linear-gradient(135deg, #edf7ff, #e3efff); }
.topic-yellow { background: linear-gradient(135deg, #fff8e8, #fff0c2); }
.topic-pink { background: linear-gradient(135deg, #fff0f8, #ffe2f2); }
.topic-cyan { background: linear-gradient(135deg, #eefdff, #dffbff); }

/* ================= TOOLS PANEL ================= */
.tools-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 26px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at right, rgba(0, 229, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #f6f0ff, #eef7ff);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tools-panel::before {
  content: "POWER TOOLS";
  position: absolute;
  right: 26px;
  top: 18px;
  color: rgba(124, 58, 237, 0.10);
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1px;
}

.tools-content {
  position: relative;
  z-index: 2;
}

.tools-content h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 5px;
}

.tools-subline {
  color: #4b5563;
  font-weight: 600;
  margin-bottom: 22px;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tool-card {
  min-height: 126px;
  padding: 18px 14px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.14);
}

.tool-emoji {
  font-size: 26px;
  margin-bottom: 8px;
}

.tool-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.tool-card span {
  color: var(--muted);
  font-size: 12px;
}

.tools-preview {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tools-preview img {
  width: 100%;
  max-width: 370px;
  margin-bottom: 14px;
  filter: drop-shadow(0 20px 34px rgba(124, 58, 237, 0.20));
}

.tools-btn {
  margin-bottom: 7px;
}

.tools-preview small {
  color: #4b5563;
  font-weight: 600;
}

/* ================= WHY + NEWSLETTER ================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.why-box,
.newsletter-box {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,23,42,0.06);
}

.why-box h2,
.newsletter-box h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.why-item {
  display: flex;
  gap: 13px;
  margin-bottom: 15px;
}

.why-item span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  border-radius: 50%;
}

.why-item strong {
  display: block;
  font-size: 14px;
}

.why-item p {
  color: var(--muted);
  font-size: 12px;
}

.why-illustration,
.newsletter-illustration {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18), transparent 70%);
}

.newsletter-box {
  background:
    radial-gradient(circle at 92% 12%, rgba(0,229,255,0.12), transparent 28%),
    white;
}

.newsletter-box p {
  color: #4b5563;
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 14px;
}

.newsletter-form input {
  flex: 1;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 12px 0 0 12px;
  outline: none;
}

.newsletter-form button {
  height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 0 12px 12px 0;
  color: white;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
}

.newsletter-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

/* ================= LATEST ARTICLES ================= */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.latest-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.05);
}

.latest-card:hover {
  background: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.latest-card img {
  width: 104px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.latest-card-content h4 {
  font-size: 13px;
  line-height: 1.36;
  margin-bottom: 6px;
  font-weight: 800;
}

.latest-card-content p {
  color: var(--muted);
  font-size: 11px;
}

/* ================= DEALS ================= */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.deal-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,23,42,0.06);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
}

.deal-card img {
  width: 100%;
  height: 125px;
  object-fit: contain;
  margin-bottom: 12px;
}

.deal-card h4 {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.deal-card p {
  font-size: 24px;
  font-weight: 900;
  color: #111827;
  margin: 7px 0 2px;
}

.deal-card span {
  color: var(--neon-purple);
  font-size: 13px;
  font-weight: 800;
}

/* ================= SINGLE POST FIX ================= */
.single-post {
  width: min(920px, 92%);
  margin: 0 auto;
  padding: 46px 0;
}

.single-post article {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.single-post h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.22;
  font-weight: 900;
  margin-bottom: 10px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.single-post article > img,
.single-post .wp-post-image {
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  width: 100%;
}

.content {
  margin: 26px 0;
  font-size: 17px;
  line-height: 1.9;
}

.content p {
  margin-bottom: 18px;
}

.content h2,
.content h3 {
  margin: 30px 0 14px;
  line-height: 1.3;
}

.content a {
  color: var(--neon-purple);
  font-weight: 700;
}

.author-box {
  background:
    radial-gradient(circle at right, rgba(124,58,237,0.13), transparent 36%),
    #eef2ff;
  padding: 22px;
  border-radius: var(--radius-md);
  margin: 28px 0;
}

.ad-box {
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #eef1f6;
  border: 1px dashed #cbd5e1;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

/* Related cards inside single post */
.single-post .cards {
  grid-template-columns: repeat(3, 1fr);
}

/* ================= ARCHIVE / INDEX ================= */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 18px rgba(15,23,42,0.04);
}

/* ================= FOOTER FIX + PREMIUM ================= */
.footer {
  width: 100%;
  display: block;
  margin-top: 50px;
  padding: 54px 0 18px;
  color: white;
  background:
    radial-gradient(circle at 85% 18%, rgba(0,229,255,0.10), transparent 24%),
    linear-gradient(135deg, #050816, #07102a 68%, #0c1638);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer .container {
  width: min(1200px, 92%);
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr 1.25fr;
  gap: 30px;
  align-items: start;
}

.footer-brand p,
.footer-subscribe p {
  color: #cfd8ff;
  font-size: 14px;
  margin: 14px 0 16px;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  color: #cfd8ff;
  font-size: 14px;
  margin-bottom: 9px;
}

.footer a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-brand-logo .brand-name {
  font-size: 28px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.footer-subscribe-form {
  display: flex;
  align-items: center;
}

.footer-subscribe-form input {
  flex: 1;
  height: 46px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.10);
  color: white;
  padding: 0 14px;
  border-radius: 12px 0 0 12px;
}

.footer-subscribe-form input::placeholder {
  color: #d7defa;
}

.footer-subscribe-form button {
  width: 48px;
  height: 46px;
  border: none;
  border-radius: 0 12px 12px 0;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  cursor: pointer;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  color: #cfd8ff;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ================= DARK MODE ================= */
body.dark {
  background:
    radial-gradient(circle at 15% 8%, rgba(124, 58, 237, 0.14), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(0, 229, 255, 0.10), transparent 24%),
    #050816;
  color: white;
}

body.dark .card,
body.dark .topic-card,
body.dark .tool-card,
body.dark .why-box,
body.dark .newsletter-box,
body.dark .deal-card,
body.dark .latest-card,
body.dark .single-post article,
body.dark .pagination a,
body.dark .pagination span {
  background: rgba(13, 20, 52, 0.92);
  color: white;
  border-color: rgba(255,255,255,0.08);
}

body.dark .tools-panel {
  background:
    radial-gradient(circle at right, rgba(0, 229, 255, 0.11), transparent 30%),
    linear-gradient(135deg, #0d1434, #111a43);
}

body.dark .card-content p,
body.dark .topic-card p,
body.dark .why-item p,
body.dark .newsletter-box p,
body.dark .latest-card-content p,
body.dark .newsletter-points,
body.dark .tool-card span {
  color: #cfd8ff;
}

body.dark .newsletter-form input,
body.dark .footer-subscribe-form input {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.12);
}

body.dark .author-box {
  background: #101733;
}

body.dark .ad-box {
  background: #0f1633;
  color: #cfd8ff;
  border-color: rgba(255,255,255,0.13);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1120px) {
  .cards,
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .menu-list {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .header-flex {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    display: none;
    width: 100%;
    order: 4;
    background: rgba(8, 16, 41, 0.96);
    border-radius: 16px;
    padding: 18px 14px;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .menu.active {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .header-right {
    margin-left: auto;
  }

  .subscribe-btn {
    display: none;
  }

  .hero {
    padding: 46px 0 30px;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero p {
    max-width: none;
  }

  .hero-buttons,
  .hero-features {
    justify-content: center;
  }

  .cards,
  .topic-grid,
  .latest-grid,
  .deals-grid {
    grid-template-columns: 1fr;
  }

  .tools-panel,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form,
  .footer-subscribe-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button,
  .footer-subscribe-form input,
  .footer-subscribe-form button {
    width: 100%;
    border-radius: 12px;
  }

  .single-post article {
    padding: 20px;
  }

  .single-post .cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .tools-list {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: auto;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }
}