/*
Theme Name: Traffic Rider Pro
Theme URI: https://trafficridermod-apk.com
Author: Traffic Rider Lab
Author URI: https://trafficridermod-apk.com
Description: Pure Competitor-Grade, Water Wave Header UI, Pro Gamer Aesthetic, Zero Emojis, Auto Legal Pages, Backlinks Module & High-Speed SEO Theme.
Version: 2.4.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: traffic-rider-theme
*/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #1e293b;
  background-color: #0b0f19;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #22c55e;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #4ade80;
  text-decoration: underline;
}

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

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafc;
}

/* ==========================================================================
   SITE HEADER WITH FLUID WATER WAVE EFFECT
   ========================================================================== */
.site-header {
  background: #090d16;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 25px rgba(0,0,0,0.35);
  padding-bottom: 28px; /* Room for water wave */
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  z-index: 20;
}

/* Logo with Image - Non-shrinking, non-wrapping */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-right: 15px;
}

.header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
  border: 1.5px solid rgba(34, 197, 94, 0.65);
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-badge {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(34, 197, 94, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Water Wave SVG Transition */
.header-wave-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 10;
}

.header-wave-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 38px;
}

.wave-layer-1 {
  fill: rgba(34, 197, 94, 0.25);
  animation: waveMotion1 6s ease-in-out infinite alternate;
}

.wave-layer-2 {
  fill: rgba(16, 185, 129, 0.45);
  animation: waveMotion2 4s ease-in-out infinite alternate;
}

.wave-layer-3 {
  fill: #f8fafc; /* Matches site-wrapper background */
}

@keyframes waveMotion1 {
  0% { transform: translateX(0); }
  100% { transform: translateX(-15px); }
}

@keyframes waveMotion2 {
  0% { transform: translateX(0); }
  100% { transform: translateX(15px); }
}

/* ==========================================================================
   NAVIGATION (Smooth, Non-Stuck)
   ========================================================================== */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li a {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 11px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: block;
  white-space: nowrap;
}

.site-nav li a:hover {
  color: #ffffff !important;
  background: rgba(34, 197, 94, 0.15);
}

.nav-download-btn {
  background: #22c55e !important;
  color: #090d16 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
  transition: all 0.2s ease !important;
  margin-left: 6px;
}

.nav-download-btn:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 30;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .bar-2 {
  opacity: 0;
}

.mobile-menu-toggle.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MAIN CONTENT & ARTICLE CARD
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 1040px;
  margin: 25px auto 40px auto;
  padding: 0 20px;
  width: 100%;
}

.article-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

/* Anchor Jump Margins (Prevents Getting Stuck Under Sticky Header) */
[id] {
  scroll-margin-top: 110px;
}

/* Breadcrumb */
.tr-breadcrumb {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
  font-weight: 500;
}

.tr-breadcrumb a {
  color: #334155;
  font-weight: 600;
}

.tr-breadcrumb a:hover {
  color: #22c55e;
}

.tr-sep {
  margin: 0 8px;
  color: #94a3b8;
}

.tr-current {
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   HERO APP BOX (With Official App Icon)
   ========================================================================== */
.tr-hero-app-box {
  background: linear-gradient(135deg, #090d16 0%, #111827 100%);
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 25px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.tr-hero-icon-wrapper {
  width: 94px;
  height: 94px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  flex-shrink: 0;
  border: 2px solid rgba(34, 197, 94, 0.5);
}

.tr-hero-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-hero-info {
  flex: 1;
}

.tr-hero-title {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.tr-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tr-pill {
  background: #1e293b;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #334155;
}

.tr-rating-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tr-hero-features-line {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 15px;
}

.tr-hero-cta {
  display: inline-block;
  background: #22c55e;
  color: #090d16 !important;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
}

.tr-hero-cta:hover {
  background: #16a34a;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Editorial Bar */
.tr-editorial-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  background: #f1f5f9;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}

.tr-text-green {
  color: #16a34a;
  font-weight: 700;
}

.tr-text-blue {
  color: #2563eb;
  font-weight: 700;
}

.tr-lead-text {
  font-size: 17px;
  color: #1e293b;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 25px;
}

/* Figure & Captions */
.tr-figure {
  margin: 32px 0;
  text-align: center;
}

.tr-responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.tr-figcaption {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* Table of Contents */
.tr-toc {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
}

.tr-toc-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  color: #0f172a;
}

.tr-toc-toggle {
  font-size: 13px;
  color: #22c55e;
  font-weight: 700;
}

.tr-toc-list {
  margin: 14px 0 0 0;
  padding-left: 20px;
  line-height: 1.9;
}

.tr-toc-list a {
  color: #334155;
  font-size: 14.5px;
  font-weight: 500;
}

.tr-toc-list a:hover {
  color: #22c55e;
}

/* Specs Card */
.tr-specs-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
}

.tr-specs-header {
  border-bottom: 1.5px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.tr-specs-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.tr-package-name {
  font-size: 13px;
  color: #64748b;
  font-family: monospace;
}

.tr-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.tr-spec-item {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.tr-spec-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tr-spec-value {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 3px;
}

/* ==========================================================================
   DOWNLOAD WRAPPER (With Red Superbike Poster)
   ========================================================================== */
.tr-download-wrapper {
  margin: 35px 0;
  background: #090d16;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #1e293b;
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.tr-download-poster-wrapper {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: #090d16;
}

.tr-download-poster-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.tr-download-content-box {
  padding: 30px 24px;
  text-align: center;
  color: #ffffff;
}

.tr-dl-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 8px;
}

.tr-dl-subtitle {
  color: #94a3b8;
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto 24px auto;
}

.tr-btn-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tr-download-btn {
  background: #22c55e;
  color: #090d16 !important;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.tr-download-btn:hover {
  background: #16a34a;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.55);
}

.tr-btn-mirror {
  background: #1e293b;
  color: #e2e8f0 !important;
  border: 1px solid #334155;
  box-shadow: none;
}

.tr-btn-mirror:hover {
  background: #334155;
  color: #ffffff !important;
}

.tr-download-meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
}

.tr-official-link {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 14px;
}

.tr-official-link a {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   DYNAMIC ENVIRONMENTS GALLERY (3-Column Sized Cards)
   ========================================================================== */
.tr-environments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.tr-env-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.tr-env-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: #22c55e;
}

.tr-env-img-wrap {
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: #090d16;
}

.tr-env-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tr-env-card:hover .tr-env-img {
  transform: scale(1.05);
}

.tr-env-body {
  padding: 18px;
}

.tr-env-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.tr-env-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Trust Box */
.tr-trust-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 22px;
  margin: 25px 0;
}

.tr-trust-content h4 {
  margin: 0 0 6px 0;
  color: #166534;
  font-size: 17px;
  font-weight: 800;
}

.tr-trust-content p {
  margin: 0;
  font-size: 14.5px;
  color: #15803d;
  line-height: 1.6;
}

.tr-checksum-row {
  margin-top: 10px;
  font-size: 12.5px;
  color: #166534;
}

.tr-code {
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Feature Grid */
.tr-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.tr-feature-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  border-top: 4px solid #22c55e;
  transition: all 0.2s ease;
}

.tr-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border-color: #22c55e;
}

.tr-feature-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.tr-feature-desc {
  font-size: 14px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Tables */
.tr-table-responsive {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.tr-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.tr-table th {
  background: #090d16;
  color: #ffffff;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tr-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
}

.tr-table tr:nth-child(even) {
  background: #f8fafc;
}

.tr-table-btn {
  background: #1e293b;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  display: inline-block;
  text-decoration: none !important;
}

.tr-btn-green {
  background: #16a34a;
}

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

@media (max-width: 768px) {
  .tr-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.tr-pros-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 20px;
}

.tr-pros-box h4 {
  color: #166534;
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 800;
}

.tr-cons-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 20px;
}

.tr-cons-box h4 {
  color: #991b1b;
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 800;
}

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

.tr-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.tr-pros-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 900;
}

.tr-cons-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 900;
}

/* Steps */
.tr-step-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.tr-step-number {
  background: #090d16;
  color: #22c55e;
  border: 2px solid #22c55e;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.tr-step-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #0f172a;
  font-weight: 800;
}

.tr-step-content p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

/* Lists */
.tr-ordered-list,
.tr-bullet-list {
  line-height: 1.8;
  color: #334155;
  padding-left: 20px;
}

/* Error Troubleshooting Card */
.tr-error-card {
  background: #ffffff;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
}

.tr-error-title {
  color: #b91c1c;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.tr-error-card p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

/* FAQ Accordion */
.tr-faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.tr-faq-q {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  transition: background 0.2s;
}

.tr-faq-q:hover {
  background: #f8fafc;
}

.tr-faq-q::after {
  content: "+";
  font-size: 18px;
  color: #22c55e;
  font-weight: 900;
}

.tr-faq-item.active .tr-faq-q::after {
  content: "−";
}

.tr-faq-a {
  padding: 0 20px 16px 20px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* Author Box */
.tr-author-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 22px;
  margin: 35px 0 20px 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.tr-author-badge {
  background: #090d16;
  color: #22c55e;
  border: 2px solid #22c55e;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.tr-author-info h4 {
  margin: 0 0 2px 0;
  font-size: 17px;
  color: #0f172a;
  font-weight: 800;
}

.tr-author-role {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.tr-author-bio {
  font-size: 13.5px;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

/* Disclaimer */
.tr-disclaimer-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

/* Sticky Mobile Bar */
.tr-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #090d16;
  border-top: 2px solid #22c55e;
  padding: 10px 16px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: space-between;
}

.tr-sticky-text {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.tr-sticky-btn {
  background: #22c55e;
  color: #090d16 !important;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 18px;
  text-decoration: none !important;
}

/* Mobile Responsive Header & Drawer (Prevents Menu Collision) */
@media (max-width: 1140px) {
  .site-nav {
    display: none;
  }
  .nav-menu-wrapper.open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #090d16;
    padding: 20px 24px 28px 24px;
    border-bottom: 2px solid #22c55e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
    gap: 6px;
  }
  .nav-menu-wrapper.open .site-nav li a {
    padding: 10px 14px;
    font-size: 14.5px;
  }
  .nav-menu-wrapper.open .nav-download-btn {
    margin-left: 0;
    text-align: center;
    margin-top: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .article-card {
    padding: 24px 18px;
  }
  .tr-hero-app-box {
    flex-direction: column;
    text-align: center;
  }
  .tr-sticky-bar {
    display: flex;
  }
}

/* ==========================================================================
   USEFUL LINKS SECTION (BACKLINKS MODULE)
   ========================================================================== */
.tr-useful-links-section {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
}

.tr-useful-links-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 10px;
}

.tr-useful-links-section p {
  color: #475569;
  font-size: 14.5px;
  margin-bottom: 22px;
}

.tr-useful-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.tr-useful-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tr-useful-card:hover {
  transform: translateY(-3px);
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12);
}

.tr-useful-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.tr-useful-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 800;
}

.tr-useful-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.tr-useful-title a:hover {
  color: #16a34a !important;
  text-decoration: underline !important;
}

.tr-useful-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.tr-useful-url a {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #16a34a !important;
  text-decoration: none !important;
  word-break: break-all;
}

.tr-useful-url a:hover {
  color: #15803d !important;
  text-decoration: underline !important;
}

/* Legal Pages Typography & Form */
.tr-legal-page {
  padding: 10px 0;
}

/* 5-Column Pro Footer */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 45px 20px 25px 20px;
  margin-top: 50px;
  border-top: 2px solid #22c55e;
  font-size: 13.5px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px 0;
  position: relative;
  padding-bottom: 6px;
  letter-spacing: 0.3px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #22c55e;
}

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

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

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #22c55e;
}

.footer-bottom {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid #1e293b;
  font-size: 12.5px;
  color: #64748b;
}
