/* ==========================================================
   TECH MANÍACOS - DUAL THEME (LIGHT DEFAULT & DARK CYBER)
   ========================================================== */

/* 1. CSS VARIABLES FOR DUAL THEME */
:root, html[data-theme="light"] {
  --tm-bg: #f8fafc;
  --tm-bg-secondary: #f1f5f9;
  --tm-bg-card: #ffffff;
  --tm-bg-card-subtle: #f8fafc;
  --tm-bg-card-hover: #ffffff;
  --tm-header-bg: rgba(255, 255, 255, 0.94);
  --tm-topbar-bg: #0f172a;
  --tm-topbar-text: #94a3b8;
  --tm-text: #334155;
  --tm-text-heading: #0f172a;
  --tm-text-muted: #64748b;
  --tm-border: #e2e8f0;
  --tm-border-card: #e2e8f0;
  --tm-border-hover: rgba(2, 132, 199, 0.4);
  --tm-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --tm-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(2, 132, 199, 0.12);
  --tm-primary: #0284c7;
  --tm-primary-light: #0ea5e9;
  --tm-primary-gradient: linear-gradient(135deg, #0284c7, #0ea5e9);
  --tm-primary-btn-text: #ffffff;
  --tm-badge-bg: rgba(2, 132, 199, 0.08);
  --tm-badge-text: #0284c7;
  --tm-badge-border: rgba(2, 132, 199, 0.25);
  --tm-cta-bg: linear-gradient(145deg, #ffffff, #f8fafc);
  --tm-table-th-bg: #f1f5f9;
  --tm-table-th-color: #0284c7;
  --tm-table-td-border: #e2e8f0;
  --tm-nav-link: #334155;
  --tm-nav-link-hover: #0284c7;
  --tm-logo-tech-fill: #0f172a;
  --tm-duel-bg: #ffffff;
  --tm-duel-subcard: #f8fafc;
  --tm-bg-mesh: radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.04) 0%, transparent 40%), radial-gradient(circle at 85% 65%, rgba(147, 51, 234, 0.04) 0%, transparent 45%);
}

html[data-theme="dark"] {
  --tm-bg: #070a13;
  --tm-bg-secondary: #0b0f19;
  --tm-bg-card: rgba(15, 23, 42, 0.85);
  --tm-bg-card-subtle: rgba(15, 23, 42, 0.95);
  --tm-bg-card-hover: rgba(30, 41, 59, 0.95);
  --tm-header-bg: rgba(7, 10, 19, 0.94);
  --tm-topbar-bg: #04060b;
  --tm-topbar-text: #94a3b8;
  --tm-text: #cbd5e1;
  --tm-text-heading: #ffffff;
  --tm-text-muted: #94a3b8;
  --tm-border: rgba(51, 65, 85, 0.6);
  --tm-border-card: rgba(51, 65, 85, 0.6);
  --tm-border-hover: rgba(0, 242, 254, 0.5);
  --tm-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --tm-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.15);
  --tm-primary: #00f2fe;
  --tm-primary-light: #38bdf8;
  --tm-primary-gradient: linear-gradient(135deg, #00f2fe, #4facfe);
  --tm-primary-btn-text: #030712;
  --tm-badge-bg: rgba(0, 242, 254, 0.15);
  --tm-badge-text: #00f2fe;
  --tm-badge-border: rgba(0, 242, 254, 0.4);
  --tm-cta-bg: linear-gradient(145deg, #111827, #0f172a);
  --tm-table-th-bg: #1e293b;
  --tm-table-th-color: #00f2fe;
  --tm-table-td-border: rgba(51, 65, 85, 0.4);
  --tm-nav-link: #cbd5e1;
  --tm-nav-link-hover: #00f2fe;
  --tm-logo-tech-fill: #ffffff;
  --tm-duel-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 10, 19, 0.9));
  --tm-duel-subcard: rgba(15, 23, 42, 0.85);
  --tm-bg-mesh: radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%), radial-gradient(circle at 85% 65%, rgba(147, 51, 234, 0.05) 0%, transparent 45%);
}

/* Base & Typography */
html {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background-color: var(--tm-bg) !important;
  color: var(--tm-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
  background-image: var(--tm-bg-mesh);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--tm-text-heading) !important;
  letter-spacing: -0.5px;
  font-weight: 800;
  transition: color 0.3s ease;
}

a {
  color: var(--tm-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--tm-primary-light);
}

/* Container */
.tm-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Top Breaking Ticker */
.tm-topbar {
  background: var(--tm-topbar-bg);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  padding: 8px 0;
  font-size: 13px;
  color: var(--tm-topbar-text);
}

.tm-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tm-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.tm-ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tm-mobile-radar-item,
.tm-nav-links li.tm-mobile-radar-item {
  display: none !important;
}

.tm-ticker-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.tm-ticker-pulse {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================
   HEADER & NAVBAR (100% PRECISE DESKTOP ALIGNMENT & NO-WRAP)
   ========================================================== */
.tm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--tm-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tm-border);
  transition: all 0.3s ease;
  width: 100%;
}

.tm-header .tm-container {
  max-width: 1380px;
  padding: 0 24px;
}

.tm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 20px;
}

/* Logo: Perfectly Centered & Aligned */
.tm-brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.tm-brand-logo svg {
  height: 42px;
  width: auto;
  display: block;
}

.tm-logo-text-tech {
  fill: var(--tm-logo-tech-fill) !important;
  transition: fill 0.3s ease;
}

/* Navigation Container */
.tm-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.tm-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.tm-nav-links li {
  white-space: nowrap !important;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.tm-nav-links li a {
  white-space: nowrap !important;
  color: var(--tm-nav-link) !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  position: relative;
  padding: 8px 4px !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  transition: color 0.2s ease !important;
}

.tm-nav-links li a:hover, 
.tm-nav-links li.current-menu-item a {
  color: var(--tm-primary) !important;
}

.tm-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--tm-primary);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--tm-primary);
}

.tm-nav-links li a:hover::after {
  width: 100%;
}

/* Actions: Theme Toggle & Radar CTA */
.tm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.tm-theme-toggle {
  background: var(--tm-bg-card) !important;
  color: var(--tm-text-heading) !important;
  border: 1px solid var(--tm-border) !important;
  padding: 8px 15px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: var(--tm-shadow) !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  font-family: inherit !important;
  height: 38px !important;
  box-sizing: border-box !important;
}

.tm-theme-toggle:hover {
  border-color: var(--tm-primary) !important;
  color: var(--tm-primary) !important;
  background: var(--tm-bg-card-subtle) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--tm-shadow-hover) !important;
}

/* Radar de Ofertas Button */
.tm-btn-radar {
  background: var(--tm-badge-bg) !important;
  color: var(--tm-primary) !important;
  border: 1px solid var(--tm-badge-border) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 38px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.tm-btn-radar:hover {
  background: var(--tm-primary) !important;
  color: var(--tm-primary-btn-text) !important;
  border-color: var(--tm-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
}

/* Mobile Menu Toggle */
.tm-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tm-text-heading);
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================
   HERO SECTION & SWIPER CAROUSEL
   ========================================================== */
.tm-hero-section {
  padding: 24px 0 30px;
}

.swiper-hero {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  box-shadow: var(--tm-shadow);
  position: relative;
}

.tm-hero-slide {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.tm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 10, 19, 0.95) 0%, rgba(7, 10, 19, 0.65) 45%, rgba(7, 10, 19, 0.15) 100%);
  z-index: 1;
}

.tm-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
}

.tm-badge {
  display: inline-block;
  background: var(--tm-badge-bg);
  color: var(--tm-badge-text);
  border: 1px solid var(--tm-badge-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tm-hero-title {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px 0;
  color: #ffffff !important;
}

.tm-hero-title a {
  color: #ffffff;
}

.tm-hero-title a:hover {
  color: #38bdf8;
}

.tm-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.tm-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Swiper Controls Navigation */
.swiper-button-next, .swiper-button-prev {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--tm-primary);
  color: var(--tm-primary-btn-text) !important;
  border-color: var(--tm-primary);
}

.swiper-pagination-bullet-active {
  background: var(--tm-primary) !important;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Quick Category Pills Bar */
.tm-category-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0 25px;
  scrollbar-width: none;
}

.tm-category-bar::-webkit-scrollbar {
  display: none;
}

.tm-cat-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--tm-text-heading);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--tm-shadow);
}

.tm-cat-pill:hover, .tm-cat-pill.active {
  background: var(--tm-badge-bg);
  border-color: var(--tm-primary);
  color: var(--tm-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

/* Section Header */
.tm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tm-border);
  padding-bottom: 12px;
}

.tm-section-title {
  font-size: 24px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-text-heading) !important;
}

.tm-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--tm-primary-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--tm-primary);
}

.tm-view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tm-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Featured Duelo Card (Interactive Banner) */
.tm-duel-card {
  background: var(--tm-duel-bg);
  border: 1px solid var(--tm-border-hover);
  border-radius: 18px;
  padding: 28px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tm-shadow);
}

.tm-duel-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.tm-duel-box {
  background: var(--tm-duel-subcard);
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  padding: 20px;
}

.tm-duel-vs {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #9333ea);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.5);
}

/* Post Cards Grid */
.tm-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tm-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border-card);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--tm-shadow);
}

.tm-card:hover {
  transform: translateY(-5px);
  border-color: var(--tm-border-hover);
  box-shadow: var(--tm-shadow-hover);
}

.tm-card-thumb {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}

.tm-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tm-card:hover .tm-card-thumb img {
  transform: scale(1.05);
}

.tm-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tm-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--tm-text-muted);
  margin-bottom: 10px;
}

.tm-card-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.tm-card-title a {
  color: var(--tm-text-heading);
}

.tm-card-title a:hover {
  color: var(--tm-primary);
}

.tm-card-excerpt {
  font-size: 14px;
  color: var(--tm-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.tm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--tm-border);
}

.tm-read-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tm-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Secondary Reviews Carousel */
.swiper-reviews {
  padding-bottom: 40px !important;
}

/* Telegram / Community VIP Callout */
.tm-telegram-card {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border-hover);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--tm-shadow);
}

.tm-telegram-info h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: var(--tm-text-heading) !important;
}

.tm-telegram-info p {
  margin: 0;
  color: var(--tm-text-muted);
  font-size: 15px;
}

/* Buttons */
.tm-btn-primary {
  background: var(--tm-primary-gradient) !important;
  color: var(--tm-primary-btn-text) !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  padding: 12px 22px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.tm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.5);
  color: var(--tm-primary-btn-text) !important;
}

.tm-btn-secondary {
  background: var(--tm-bg-card) !important;
  color: var(--tm-text-heading) !important;
  border: 1px solid var(--tm-border) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 12px 22px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tm-btn-secondary:hover {
  border-color: var(--tm-primary) !important;
  color: var(--tm-primary) !important;
}

/* Single Post Specific Styles */
.tm-single-article {
  max-width: 860px;
  margin: 30px auto;
}

.tm-single-header {
  margin-bottom: 25px;
}

.tm-single-title {
  font-size: 38px;
  line-height: 1.25;
  margin: 14px 0;
  color: var(--tm-text-heading) !important;
}

.tm-single-thumb {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--tm-border);
  box-shadow: var(--tm-shadow);
}

.tm-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.tm-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--tm-text);
}

.tm-article-content p {
  margin-bottom: 22px;
}

.tm-article-content h2 {
  font-size: 26px;
  margin: 40px 0 18px 0;
  border-left: 4px solid var(--tm-primary);
  padding-left: 14px;
  color: var(--tm-text-heading) !important;
}

.tm-article-content h3 {
  font-size: 21px;
  margin: 28px 0 14px 0;
  color: var(--tm-text-heading) !important;
}

/* Callout Box / Ads Box */
.tm-cta-box {
  background: var(--tm-cta-bg);
  border: 1px solid var(--tm-border-hover);
  border-radius: 14px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--tm-shadow);
}

.tm-cta-box h3 {
  color: var(--tm-text-heading) !important;
}

.tm-badge-pulse {
  display: inline-block;
  background: var(--tm-badge-bg);
  color: var(--tm-badge-text);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Pros and Cons Component */
.tm-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.tm-card-pro {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 20px;
}

.tm-card-con {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 20px;
}

.tm-card-pro h4 {
  color: #10b981 !important;
  margin-top: 0;
}

.tm-card-con h4 {
  color: #ef4444 !important;
  margin-top: 0;
}

.tm-card-pro ul, .tm-card-con ul {
  padding-left: 18px;
  margin: 0;
  font-size: 15px;
}

/* Tables */
.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  width: 100%;
  margin: 24px 0;
  background: var(--tm-bg-card);
}

.wp-block-table th {
  background: var(--tm-table-th-bg);
  color: var(--tm-table-th-color);
  padding: 14px 16px;
  font-weight: 700;
  border-bottom: 2px solid var(--tm-border);
  text-align: left;
}

.wp-block-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--tm-table-td-border);
  color: var(--tm-text);
}

/* Post Ratings Box */
.tm-ratings-wrapper {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--tm-shadow);
}

.tm-ratings-wrapper h4 {
  color: var(--tm-text-heading) !important;
}

/* Social Share Bar */
.tm-share-wrapper {
  margin: 30px 0;
  padding: 18px 0;
  border-top: 1px solid var(--tm-border);
  border-bottom: 1px solid var(--tm-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.tm-share-wa { background: #25d366; }
.tm-share-tg { background: #0088cc; }
.tm-share-x  { background: #000000; border: 1px solid #334155; }
.tm-share-fb { background: #1877f2; }

/* Author Box */
.tm-author-box {
  background: var(--tm-bg-card);
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 24px;
  margin: 35px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: var(--tm-shadow);
}

.tm-author-box h4 {
  color: var(--tm-text-heading) !important;
}

.tm-author-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--tm-primary);
}

/* Footer (Always sleek dark tone for tech authority) */
.tm-footer {
  background: #04060b !important;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding: 50px 0 25px;
  margin-top: 60px;
  font-size: 14px;
  color: #94a3b8 !important;
}

.tm-footer h1,
.tm-footer h2,
.tm-footer h3,
.tm-footer h4,
.tm-footer h5,
.tm-footer h6 {
  color: #ffffff !important;
}

.tm-footer-logo-title {
  color: #ffffff !important;
  font-size: 22px !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 1px;
}

.tm-footer-logo-title .tm-cyan-text {
  color: #00f2fe !important;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.tm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.tm-footer-col h4 {
  color: #ffffff !important;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.tm-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tm-footer-col ul li {
  margin-bottom: 10px;
}

.tm-footer-col ul li a {
  color: #94a3b8;
}

.tm-footer-col ul li a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.tm-footer-bottom {
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  padding-top: 25px;
  text-align: center;
  font-size: 13px;
}

/* ==========================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================== */

/* Laptop / Mid-size screens (1080px to 1280px) - Guaranteed Zero Collision */
@media (max-width: 1280px) {
  .tm-header-inner {
    gap: 14px;
  }

  .tm-brand-logo svg {
    height: 38px;
  }

  .tm-nav-links {
    gap: clamp(8px, 1.1vw, 14px);
  }

  .tm-nav-links li a {
    font-size: 13px !important;
    padding: 6px 2px !important;
  }

  /* Switch theme toggle to sleek circular icon button to free 100px for menu */
  .tm-theme-toggle {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  .tm-theme-toggle .tm-toggle-label {
    display: none !important;
  }

  .tm-theme-toggle .tm-toggle-icon {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .tm-btn-radar {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
  }
}

/* Compact screens (861px to 1140px) */
@media (max-width: 1140px) {
  .tm-header-inner {
    gap: 10px;
  }

  .tm-nav-links {
    gap: 8px;
  }

  .tm-nav-links li a {
    font-size: 12.5px !important;
    padding: 6px 2px !important;
  }

  .tm-theme-toggle .tm-toggle-label {
    display: none !important;
  }

  .tm-theme-toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }

  .tm-btn-radar {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }
}

/* Tight Desktop (861px to 960px) */
@media (max-width: 960px) {
  .tm-btn-radar .tm-radar-label {
    display: none !important;
  }

  .tm-btn-radar {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
}

/* Mobile Breakpoint (below 860px) */
@media (max-width: 860px) {
  .tm-container {
    padding: 0 16px !important;
  }

  /* --- TOPBAR --- */
  .tm-topbar {
    padding: 6px 0 !important;
  }

  .tm-topbar-inner {
    justify-content: flex-start !important;
  }

  .tm-topbar-date {
    display: none !important;
  }

  .tm-ticker {
    width: 100% !important;
    font-size: 11.5px !important;
    gap: 8px !important;
  }

  .tm-ticker-badge {
    font-size: 9px !important;
    padding: 2px 6px !important;
  }

  /* --- HEADER & NAVBAR --- */
  .tm-header-inner {
    height: 58px !important;
    gap: 8px !important;
  }

  .tm-brand-logo {
    line-height: 1;
    max-width: calc(100% - 95px);
  }

  .tm-brand-logo svg {
    height: 32px !important;
    width: auto !important;
    max-width: 155px !important;
  }

  .tm-header-actions {
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .tm-theme-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .tm-theme-toggle .tm-toggle-label {
    display: none !important;
  }

  .tm-theme-toggle .tm-toggle-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  /* Hide the 140px desktop button on mobile header to eliminate overflow */
  .tm-header-actions .tm-btn-radar {
    display: none !important;
  }

  .tm-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
    background: var(--tm-bg-card) !important;
    border: 1px solid var(--tm-border) !important;
    color: var(--tm-text-heading) !important;
    font-size: 20px !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: var(--tm-shadow) !important;
    transition: all 0.2s ease !important;
  }

  /* --- MOBILE NAVIGATION DRAWER --- */
  .tm-nav-links {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    background: var(--tm-bg-card) !important;
    flex-direction: column;
    padding: 16px 16px 24px !important;
    border-bottom: 2px solid var(--tm-border);
    gap: 10px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
  }

  .tm-nav-links.active {
    display: flex !important;
    animation: tmSlideDown 0.25s ease-out forwards;
  }

  @keyframes tmSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tm-mobile-radar-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  .tm-btn-radar-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14.5px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  .tm-nav-links li:not(.tm-mobile-radar-item) {
    width: 100% !important;
  }

  .tm-nav-links li:not(.tm-mobile-radar-item) a {
    display: block !important;
    width: 100% !important;
    font-size: 15px !important;
    padding: 11px 16px !important;
    border-radius: 8px !important;
    color: var(--tm-text-heading) !important;
    background: var(--tm-bg) !important;
    border: 1px solid var(--tm-border) !important;
    box-sizing: border-box !important;
    font-weight: 600 !important;
    text-align: left !important;
  }

  .tm-nav-links li:not(.tm-mobile-radar-item) a:hover {
    border-color: var(--tm-primary) !important;
    color: var(--tm-primary) !important;
    background: var(--tm-badge-bg) !important;
  }

  /* --- HERO SECTION --- */
  .tm-hero-slide {
    min-height: 400px !important;
  }

  .tm-hero-content {
    padding: 20px 16px !important;
  }

  .tm-hero-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .tm-hero-meta {
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    font-size: 12px !important;
    margin-bottom: 16px !important;
  }

  .tm-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .tm-hero-actions a {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .swiper-hero-next, .swiper-hero-prev {
    display: none !important;
  }

  /* --- CATEGORY PILLS BAR --- */
  .tm-category-bar {
    padding: 8px 0 20px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .tm-cat-pill {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
  }

  /* --- DUELO DA SEMANA --- */
  .tm-duel-card {
    padding: 20px 14px !important;
    border-radius: 14px !important;
    margin: 20px 0 !important;
  }

  .tm-duel-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .tm-duel-box {
    padding: 16px !important;
  }

  .tm-duel-vs {
    margin: 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
  }

  /* --- POSTS GRID --- */
  .tm-posts-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .tm-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* --- TELEGRAM VIP CARD --- */
  .tm-telegram-card {
    padding: 22px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .tm-telegram-info h3 {
    font-size: 18px !important;
  }

  .tm-telegram-card .tm-btn-primary {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* --- SINGLE POST --- */
  .tm-single-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .tm-ratings-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .tm-share-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .wp-block-table {
    overflow-x: auto !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* --- FOOTER --- */
  .tm-footer {
    padding: 35px 0 20px !important;
    margin-top: 35px !important;
  }

  .tm-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
}
