/* ============================================
   FINANZAS INTELIGENTES - Main Stylesheet
   ============================================ */

:root {
  --primary: #0a1628;
  --primary-light: #132642;
  --secondary: #1a3a5c;
  --accent: #d4a843;
  --accent-light: #f0d080;
  --accent-dark: #b8922e;
  --gold: #c9a84c;
  --gold-gradient: linear-gradient(135deg, #d4a843, #f0d080, #d4a843);
  --dark: #0a0a0a;
  --text: #2d2d2d;
  --text-light: #6b7280;
  --bg: #fafafa;
  --bg-alt: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
}

/* —— Reset —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Top Bar —— */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(212,168,67,0.2);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span { display: flex; align-items: center; gap: 6px; }
.top-bar .social-links a {
  color: rgba(255,255,255,0.7);
  margin-left: 12px;
  font-size: 0.85rem;
}
.top-bar .social-links a:hover { color: var(--accent); }

/* —— Header / Nav —— */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.1); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.logo small {
  font-size: 0.5rem;
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: -2px;
}

/* —— Navigation —— */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  position: relative;
  letter-spacing: 0.2px;
}
.nav a:hover, .nav a.active { color: var(--accent); background: rgba(212,168,67,0.08); }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* —— Dropdown —— */
.nav-item { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--bg-alt); }

/* —— Hamburger —— */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* —— Mobile Menu —— */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  padding: 100px 30px 30px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  transition: var(--transition);
  z-index: 999;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* —— Hero Section —— */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0d2137 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold-gradient);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(212,168,67,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,168,67,0.4);
  color: var(--primary);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-stat { text-align: center; }
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.hero-stat .label {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* —— Section Styles —— */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* —— Category Cards —— */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.category-card h4 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
.category-card .count {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* —— Blog Cards —— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.blog-card-image .category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.blog-card-meta i { margin-right: 4px; }
.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body h3 a { color: var(--primary); }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-card-footer .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.blog-card-footer .read-more:hover { gap: 8px; }

/* —— Featured Post —— */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.featured-post-image {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.featured-post-content { padding: 40px 40px 40px 0; }
.featured-post-content .featured-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.featured-post-content h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.featured-post-content p { color: var(--text-light); margin-bottom: 20px; }

/* —— Newsletter —— */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,168,67,0.1) 0%, transparent 70%);
}
.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-content h2 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.newsletter-content p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); }

/* —— Sports Section —— */
.sports-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.sports-filters button {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  color: var(--text);
}
.sports-filters button:hover, .sports-filters button.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.match-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: var(--transition);
}
.match-card:hover { border-color: var(--accent); }
.match-teams { display: flex; align-items: center; gap: 16px; }
.match-teams .team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.match-teams .vs {
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
}
.match-score {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.match-status {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.match-status.live { background: rgba(239,68,68,0.1); color: #ef4444; }
.match-status.soon { background: rgba(212,168,67,0.1); color: var(--accent); }
.match-status.finished { background: rgba(107,114,128,0.1); color: var(--text-light); }
.match-odds {
  display: flex;
  gap: 8px;
}
.match-odds .odd {
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* —— Footer —— */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* —— Cookie Consent —— */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: var(--transition);
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-consent p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  flex: 1;
}
.cookie-consent p a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons .btn { padding: 10px 24px; font-size: 0.8rem; }
.btn-accept {
  background: var(--gold-gradient);
  color: var(--primary);
}
.btn-decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* —— Page Header —— */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

/* —— Blog Single —— */
.blog-single { padding: 60px 0; }
.blog-single .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
}
article h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-meta i { margin-right: 6px; }
.article-body h2 {
  font-size: 1.6rem;
  margin: 36px 0 16px;
}
.article-body h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.article-body p {
  margin-bottom: 18px;
  line-height: 1.9;
  color: var(--text);
}
.article-body ul, .article-body ol {
  margin: 16px 0 20px;
  padding-left: 24px;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 10px;
  line-height: 1.7;
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}
.article-body .highlight-box {
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.02));
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.article-body .highlight-box h4 { color: var(--accent); margin-bottom: 8px; }
.article-tags {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.article-tags a {
  padding: 6px 16px;
  background: var(--bg-alt);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.article-tags a:hover { background: var(--accent); color: var(--primary); }

/* —— Sidebar —— */
.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--primary);
}
.sidebar-widget ul li { margin-bottom: 10px; }
.sidebar-widget ul li a {
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}
.sidebar-widget ul li a:hover { color: var(--accent); }
.sidebar-widget ul li a span { color: var(--text-light); font-size: 0.8rem; }

/* —— Contact Form —— */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: var(--font-body);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* —— Legal Pages —— */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 16px;
}
.legal-content p { margin-bottom: 16px; line-height: 1.8; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; margin-bottom: 8px; }

/* —— Back to Top —— */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); color: var(--primary); }

/* —— Pagination —— */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.pagination a:hover, .pagination a.active { background: var(--accent); color: var(--primary); border-color: var(--accent); }

/* —— Responsive —— */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { text-align: center; }
  .hero-content p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-single .container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .hero { padding: 60px 0 50px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); padding: 20px; }
  .hero-stat .number { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-content { padding: 24px; }
  .featured-post-image { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .cookie-consent .container { flex-direction: column; text-align: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 2rem; }
  .match-card { flex-direction: column; gap: 12px; text-align: center; }
  .top-bar .social-links { display: none; }
  .top-bar .container { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* —— Animations —— */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Live Ticker Bar —— */
.ticker-bar {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,168,67,0.15);
  font-size: 0.82rem;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
  width: max-content;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ticker-item .ticker-symbol {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.ticker-item .ticker-price {
  font-weight: 600;
  font-family: 'JetBrains Mono', var(--font-mono);
  letter-spacing: 0.5px;
}
.ticker-item .ticker-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 4px;
}
.ticker-item .ticker-change.up { background: rgba(34,197,94,0.15); color: #22c55e; }
.ticker-item .ticker-change.down { background: rgba(239,68,68,0.15); color: #ef4444; }
.ticker-item .ticker-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
}

/* —— News Section —— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
}
.news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.news-card .news-source {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}
.news-card h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.5;
}
.news-card h4 a { color: var(--primary); }
.news-card h4 a:hover { color: var(--accent); }
.news-card .news-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
}
.news-card .news-meta .news-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* —— Strategy Cards —— */
.strategy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.strategy-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.strategy-card .strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.strategy-card .strategy-header h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.strategy-card .strategy-tag {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.strategy-tag.beginner { background: rgba(34,197,94,0.1); color: #22c55e; }
.strategy-tag.intermediate { background: rgba(212,168,67,0.1); color: var(--accent); }
.strategy-tag.advanced { background: rgba(239,68,68,0.1); color: #ef4444; }
.strategy-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }
.strategy-card .strategy-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.strategy-card .strategy-stats span {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.strategy-card .strategy-stats strong { color: var(--text); }

/* —— Broker Cards —— */
.broker-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
  align-items: center;
}
.broker-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.broker-card .broker-logo {
  width: 60px;
  height: 60px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.broker-card .broker-info { flex: 1; }
.broker-card .broker-info h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.broker-card .broker-info .broker-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.broker-card .broker-info .broker-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.broker-card .broker-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
.broker-card .broker-rating {
  text-align: center;
  flex-shrink: 0;
}
.broker-card .broker-rating .stars {
  color: var(--accent);
  font-size: 0.9rem;
}
.broker-card .broker-rating .rating-text {
  font-size: 0.7rem;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* —— Auto Trading Section —— */
.bot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}
.bot-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bot-card .bot-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.bot-card h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; }
.bot-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.7; }
.bot-card .bot-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.bot-card .bot-features span {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  color: var(--text-light);
}

/* —— Code blocks —— */
.article-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 20px 0;
}
.article-body pre .comment { color: #6c7086; }
.article-body pre .keyword { color: #cba6f7; }
.article-body pre .string { color: #a6e3a1; }
.article-body pre .function { color: #89b4fa; }
.article-body pre .number { color: #fab387; }

/* —— Image styles —— */
.article-body .article-image {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.article-body .image-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}

/* —— Table styles —— */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.article-body table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.article-body table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.article-body table tr:hover td { background: var(--bg-alt); }

/* —— Comparison box —— */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.comparison-col {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.comparison-col.pros { background: rgba(34,197,94,0.03); border-color: rgba(34,197,94,0.2); }
.comparison-col.cons { background: rgba(239,68,68,0.03); border-color: rgba(239,68,68,0.2); }
.comparison-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.comparison-col ul li {
  font-size: 0.85rem;
  margin-bottom: 6px;
  list-style: none;
  padding-left: 0;
}
.comparison-col.pros ul li::before { content: '✓ '; color: #22c55e; }
.comparison-col.cons ul li::before { content: '✗ '; color: #ef4444; }

/* —— Live indicator pulse —— */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* —— Loading spinner —— */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* —— Author box —— */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.author-info h4 { font-size: 1rem; margin-bottom: 4px; }
.author-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* —— Share buttons —— */
.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.share-btn {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* —— Live Scores Embed —— */
.livescore-embed {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}
.livescore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--primary);
}
.livescore-header span {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.livescore-header a {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}
.livescore-iframe {
  width: 100%;
  height: 550px;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .livescore-iframe { height: 400px; }
}
@media (max-width: 480px) {
  .livescore-iframe { height: 350px; }
}
