/* ============================================================
   Investment.wang — Modern Global Investment Platform
   Design: Glass morphism, gradient animations, data-driven
   ============================================================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --light: #f8fafc;
  --light-2: #f1f5f9;
  --light-3: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
}

body {
  font-family: var(--font);
  color: #f8fafc;
  background: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  /* Fix: actual HTML has no .nav-inner wrapper, so .nav itself must flex */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  box-sizing: border-box;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.brand-name .reg {
  color: var(--primary);
}

.nav-links {
  display: flex;
  flex: 1;
  gap: 32px;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(248, 250, 252, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
  background: var(--glass);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: transparent;
  color: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(248, 250, 252, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Hero Section */


.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  color: rgba(248, 250, 252, 0.9);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: rgba(248, 250, 252, 0.7);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.6);
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Market Ticker */
.market-ticker {
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  gap: 48px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: rgba(248, 250, 252, 0.8);
  font-size: 14px;
}

.ticker-name {
  font-weight: 600;
  color: white;
}

.ticker-value {
  font-family: 'Monaco', monospace;
  font-weight: 600;
}

.ticker-change.up { color: var(--success); }
.ticker-change.down { color: var(--danger); }

/* Section Styles */
.section {
  padding: 120px 0;
  position: relative;
}

.section > .container {
  max-width: 1400px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(248, 250, 252, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  justify-content: stretch;
  align-items: start;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.feature-desc {
  color: rgba(248, 250, 252, 0.6);
  font-size: 15px;
  line-height: 1.7;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-success { background: rgba(16, 185, 129, 0.2); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.tag-warning { background: rgba(245, 158, 11, 0.2); color: var(--accent); border-color: rgba(245, 158, 11, 0.3); }
.tag-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }

/* Tools Section */
.tools-showcase {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.tool-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.tool-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.tool-name {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.6);
  margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15));
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: white;
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 20px;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  backdrop-filter: blur(20px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(248, 250, 252, 0.6);
  font-size: 15px;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: rgba(248, 250, 252, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(248, 250, 252, 0.5);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(248, 250, 252, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

/* ============================================================
   Language Switcher Styles
   ============================================================ */
.header-lang {
  position: relative;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--light);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

.lang-toggle-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.lang-check {
  display: none;
}

.lang-check:checked ~ .lang-toggle .lang-toggle-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--dark-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(20px);
}

.lang-check:checked ~ .lang-dropdown {
  display: block;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--light);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--glass-border);
}

.lang-opt:last-child {
  border-bottom: none;
}

.lang-opt:hover {
  background: var(--glass);
  color: var(--primary);
}

.lang-opt.lang-current {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  font-weight: 600;
}

/* Scrollbar styling for dropdown */
.lang-dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
  background: var(--dark-3);
  border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

/* ============================================================
   Ticker Styles
   ============================================================ */
.ticker-wrap {
  overflow: hidden;
  background: var(--dark-2);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
}

.ticker {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 13px;
  color: var(--light-3);
}

.ticker-item .up {
  color: var(--success);
}

.ticker-item .down {
  color: var(--danger);
}

/* ============================================================
   Additional Utility Classes
   ============================================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

/* ============================================================
   Enhanced Responsive Design
   ============================================================ */
@media (max-width: 1024px) {
  .hero-stats { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .footer-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .lang-dropdown {
    right: -50px;
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; 
  }
  .hero h1 { 
    font-size: 32px; 
  }
  .hero-stats { 
    grid-template-columns: 1fr; 
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
  }
  .section { 
    padding: 60px 0; 
  }
  .container {
    padding: 0 16px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .lang-dropdown {
    min-width: 200px;
    right: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 0 60px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero-sub {
    font-size: 14px;
  }
  .section-title {
    font-size: 24px;
  }
}

/* ============================================================
   Animation Utilities
   ============================================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   Tool Page Specific Styles
   ============================================================ */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tool-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.tool-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tool-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--light-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.tool-input-group input,
.tool-input-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--dark-2);
  color: var(--light);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.tool-input-group input:focus,
.tool-input-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.result-box {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.result-label {
  color: var(--light-3);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================================
   Chart Container
   ============================================================ */
.chart-container {
  position: relative;
  height: 300px;
  margin: 1.5rem 0;
}

/* ============================================================
   Loading State
   ============================================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--light-3);
}

.loading::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--light-3);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   Missing Section Styles
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--light-3);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-risk-low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.tag-risk-medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
}

.tag-risk-high {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--glass);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
}

.tstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tstat strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.tstat span {
  font-size: 0.875rem;
  color: var(--light-3);
  margin-top: 0.25rem;
}

.cta {
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--light-3);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass);
  border-color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* ============================================================
   Footer Styles
   ============================================================ */
.site-footer {
  background: var(--dark-2);
  padding: 60px 0 20px;
  margin-top: 80px;
}

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

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(248, 250, 252, 0.6);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(248, 250, 252, 0.5);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-copy {
  color: rgba(248, 250, 252, 0.4);
  font-size: 12px;
}

/* ============================================================
   Hero Styles
   ============================================================ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
  background-image: 
    linear-gradient(0deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-size: 14px;
  color: var(--light-3);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-title .hl {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--light-3);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .trust-stats {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .footer-grid {
    gap: 30px;
  }
}

/* Categories grid (fallback) */
.categories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Force section titles to readable size; mobile only overrides below 480 */
.section-title {
  font-size: clamp(28px, 4.5vw, 56px) !important;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .section-title {
    font-size: 24px !important;
  }
}

/* Cap section-header content width and prevent overflow */
.section-header {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-subtitle {
  font-size: 17px;
  color: rgba(248, 250, 252, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero stats grid (4 cols desktop) */
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ===================================================================
   Sub-page generic styles — restored 2026-08-31
   Affects 254+ heroes, 750 breadcrumbs, 254 calc-panels, 124 sections.
   Without this, sub-pages fall back to browser defaults only.
   =================================================================== */

/* ----- compare-hero (sub-page hero: tools / compare / calculators / guides / instruments) ----- */
.compare-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(14,165,233,0.18), transparent 60%),
    radial-gradient(ellipse at 80% 0%, rgba(139,92,246,0.14), transparent 55%),
    linear-gradient(180deg, rgba(15,23,42,0.4), transparent 90%);
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.compare-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.compare-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.compare-hero > .container > p,
.compare-hero p.lead {
  color: rgba(248,250,252,0.72);
  font-size: 17px;
  max-width: 720px;
  line-height: 1.6;
}

/* ----- breadcrumb (used on 750 pages) ----- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(248,250,252,0.55);
  margin-bottom: 4px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .sep,
.breadcrumb > span:not(:empty):not(a) { opacity: 0.5; padding: 0 2px; }

/* ----- compare-section (124 pages) ----- */
.compare-section {
  padding: 48px 0;
  background: rgba(15,23,42,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.compare-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.compare-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.compare-section h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 24px 0 10px; }
.compare-section p, .compare-section li { color: rgba(248,250,252,0.78); line-height: 1.65; font-size: 15px; }
.compare-section ul, .compare-section ol { padding-left: 22px; margin: 0 0 12px; }
.compare-section table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.compare-section th, .compare-section td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(248,250,252,0.85);
  font-size: 14px;
}
.compare-section th { color: #fff; font-weight: 600; background: rgba(255,255,255,0.03); }

/* ----- calc-panel (254 calculator pages) ----- */
.calc-panel {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.6));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  margin: 0 auto 32px;
  max-width: 920px;
}
.calc-panel h2 {
  font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -0.3px;
}
.calc-panel .calc-intro { color: rgba(248,250,252,0.7); margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
.calc-panel h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 24px 0 12px; }
.calc-panel > .card {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

/* ----- calc-grid + form-group (192 / 378 pages) ----- */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; color: rgba(248,250,252,0.7);
  font-weight: 500; letter-spacing: 0.1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.25);
}

/* ----- result-box + result grid (14 / many pages) ----- */
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) { .calc-result-grid { grid-template-columns: 1fr; } }
.result-box {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 4px 20px rgba(14,165,233,0.25);
}
.result-box .label {
  font-size: 12px; opacity: 0.85;
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}
.result-box .value { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }

/* ----- chart-container (existing, extended) ----- */
.chart-container { position: relative; width: 100%; }
.chart-controls {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.chart-controls button {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(248,250,252,0.75);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.chart-controls button:hover { border-color: var(--primary); color: #fff; }
.chart-controls button.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-color: transparent;
}

/* ----- glossary / list tables (depth content) ----- */
.glossary-list { list-style: none; padding: 0; margin: 0; }
.glossary-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.glossary-list li:last-child { border-bottom: none; }
.glossary-list .term {
  font-weight: 700; color: var(--primary);
  min-width: 140px; flex-shrink: 0;
}
.glossary-list .def { color: rgba(248,250,252,0.78); line-height: 1.6; font-size: 14px; }

/* ----- FAQ (depth) ----- */
.faq-item {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq-item .q {
  font-weight: 700; color: #fff; margin-bottom: 6px; font-size: 15px;
}
.faq-item .a { color: rgba(248,250,252,0.75); font-size: 14px; line-height: 1.65; }

/* ----- "how to use" steps ----- */
.how-to { counter-reset: step; list-style: none; padding: 0; }
.how-to li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(248,250,252,0.85);
  font-size: 15px; line-height: 1.6;
}
.how-to li:last-child { border-bottom: none; }
.how-to li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}

/* ----- tool grid (used on /tools-page index) ----- */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.tool-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: #fff;
  display: flex; flex-direction: column; gap: 8px;
  transition: all .25s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(14,165,233,0.2);
}
.tool-card .icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin-bottom: 6px;
}
.tool-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.tool-card p { color: rgba(248,250,252,0.7); font-size: 13px; margin: 0; line-height: 1.5; }
.tool-card .tag {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: rgba(14,165,233,0.15); color: var(--primary);
  border-radius: 100px; margin-top: 4px; align-self: flex-start;
  text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600;
}

/* ============================================================
   Stock screener results + ticker fallback states
   Added with the runScreening() implementation in assets/screener.js and the
   resilient widgets in assets/tickers.js.
   ============================================================ */
#results-body .up { color: var(--success); font-weight: 600; }
#results-body .down { color: var(--danger); font-weight: 600; }
.screener-name { font-size: 12px; color: var(--light-3); }
.screener-empty { text-align: center; padding: 28px 12px; color: var(--light-3); }
.ticker-stale { opacity: 0.6; font-style: italic; }

/* Chinese-market colour convention: rising prices are red, falling are green.
   The rest of the site follows the western scheme, so invert only on zh pages. */
html[lang^="zh"] .ticker-item .up,
html[lang^="zh"] #results-body .up { color: var(--danger); }
html[lang^="zh"] .ticker-item .down,
html[lang^="zh"] #results-body .down { color: var(--success); }

/* ---------- RTL support (ar / he / fa / ur) ----------
   The layout is flex/grid based so almost nothing needs mirroring; these are the
   only physical-direction rules in the sheet plus list/table alignment. */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .compare-section ul,
[dir="rtl"] .compare-section ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .compare-section th,
[dir="rtl"] .compare-section td { text-align: right; }
[dir="rtl"] .loading-spinner { margin-right: 0; margin-left: 1rem; }
[dir="rtl"] .steps-list { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .ticker-item, [dir="rtl"] .ticker-track { direction: ltr; }
[dir="rtl"] table th, [dir="rtl"] table td { text-align: right; }
[dir="rtl"] .num, [dir="rtl"] .price, [dir="rtl"] input[type="number"] { direction: ltr; text-align: left; }

/* ---------- section hub pages (tools-page/ guides/ instruments/ market/) ---------- */
.hub-intro { color: rgba(248,250,252,0.72); font-size: 16px; line-height: 1.7; max-width: 780px; margin: 0 0 28px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 56px; }
.hub-card {
  background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(15,23,42,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 18px;
  text-decoration: none; color: #fff;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 12px 30px rgba(14,165,233,0.2); }
.hub-card h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.hub-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(248,250,252,0.66); }

/* ---------- "Related Tools" cards inside the depth blocks (previously unstyled) ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.related-card {
  display: block; padding: 14px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background .2s, border-color .2s, transform .2s;
}
.related-card:hover { background: rgba(14,165,233,0.12); border-color: var(--primary); transform: translateY(-2px); }
.steps-list { color: rgba(248,250,252,0.78); line-height: 1.75; padding-left: 22px; }
.steps-list li { margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 14px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #fff; }
.faq-item p { margin: 0; color: rgba(248,250,252,0.72); line-height: 1.7; font-size: 14.5px; }
.deepen-block { margin-bottom: 32px; }
.deepen-block > h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; color: #fff; }


/* ============================================================
   Ad Slots — injected 2026-09-19
   ============================================================ */
.ad-section {
  padding: 20px 0;
}

.ad-banner {
  display: block;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ad-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ad-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
}

.ad-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.ad-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

/* 横幅广告语（图下方一行小字，由 ad-i18n.js 本地化） */
.ad-copy {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted, #667);
  letter-spacing: 0.2px;
}

.ad-copy-text {
  opacity: 0.92;
}

/* 卡片广告语（图内底部渐变遮罩，由 ad-i18n.js 本地化） */
.ad-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(8, 12, 24, 0.9), rgba(8, 12, 24, 0));
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .ad-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ad-card {
    height: 170px;
  }
}

