/* ============================================================
   ETHRAXTRADE - PREMIUM FINANCIAL EDUCATION DESIGN SYSTEM
   ============================================================ */

:root {
  /* Brand palette */
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --primary-soft: #eef2ff;
  --primary-lighter: #f5f7ff;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-soft: #fef3c7;
  --success: #10b981;
  --success-600: #059669;
  --success-soft: #ecfdf5;
  --danger: #ef4444;
  --danger-600: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --info: #3b82f6;
  --info-soft: #eff6ff;

  /* Surfaces */
  --dark: #0b1120;
  --dark-2: #111a2e;
  --dark-3: #1a2542;
  --dark-4: #243356;
  --navy: #0f1b3d;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --border-light: #f3f4f6;
  --bg: #f6f8fc;
  --bg-grad: linear-gradient(180deg, #f8faff 0%, #f3f5fb 100%);
  --bg-white: #ffffff;

  /* Effects */
  --radius: 18px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.06);
  --shadow: 0 6px 20px rgba(15,23,42,.07);
  --shadow-md: 0 10px 34px rgba(15,23,42,.1);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
  --shadow-primary: 0 8px 24px rgba(79,70,229,.25);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --grad-primary-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --grad-dark: linear-gradient(150deg, #0b1120 0%, #131c31 45%, #1b2a52 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #fafbff 100%);
  --grad-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-hero-glow: radial-gradient(circle at 75% 20%, rgba(139,92,246,.25), transparent 40%),
                    radial-gradient(circle at 15% 80%, rgba(79,70,229,.2), transparent 45%);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
}
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font);
  background: var(--bg-grad);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--primary); transition: color .2s, opacity .2s; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }
p { line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; }
.small { font-size: .85rem; line-height: 1.6; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.text-white { color: #fff !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }

/* ===== Layout ===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.row > [class*="col-"] { padding: 0 16px; box-sizing: border-box; }

.col-1  { width: 8.333333%; }
.col-2  { width: 16.666667%; }
.col-3  { width: 25%; }
.col-4  { width: 33.333333%; }
.col-5  { width: 41.666667%; }
.col-6  { width: 50%; }
.col-7  { width: 58.333333%; }
.col-8  { width: 66.666667%; }
.col-9  { width: 75%; }
.col-10 { width: 83.333333%; }
.col-11 { width: 91.666667%; }
.col-12 { width: 100%; }

@media (min-width: 576px) {
  .col-sm-1  { width: 8.333333%; }
  .col-sm-2  { width: 16.666667%; }
  .col-sm-3  { width: 25%; }
  .col-sm-4  { width: 33.333333%; }
  .col-sm-5  { width: 41.666667%; }
  .col-sm-6  { width: 50%; }
  .col-sm-7  { width: 58.333333%; }
  .col-sm-8  { width: 66.666667%; }
  .col-sm-9  { width: 75%; }
  .col-sm-10 { width: 83.333333%; }
  .col-sm-11 { width: 91.666667%; }
  .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1  { width: 8.333333%; }
  .col-md-2  { width: 16.666667%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.333333%; }
  .col-md-5  { width: 41.666667%; }
  .col-md-6  { width: 50%; }
  .col-md-7  { width: 58.333333%; }
  .col-md-8  { width: 66.666667%; }
  .col-md-9  { width: 75%; }
  .col-md-10 { width: 83.333333%; }
  .col-md-11 { width: 91.666667%; }
  .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1  { width: 8.333333%; }
  .col-lg-2  { width: 16.666667%; }
  .col-lg-3  { width: 25%; }
  .col-lg-4  { width: 33.333333%; }
  .col-lg-5  { width: 41.666667%; }
  .col-lg-6  { width: 50%; }
  .col-lg-7  { width: 58.333333%; }
  .col-lg-8  { width: 66.666667%; }
  .col-lg-9  { width: 75%; }
  .col-lg-10 { width: 83.333333%; }
  .col-lg-11 { width: 91.666667%; }
  .col-lg-12 { width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1  { width: 8.333333%; }
  .col-xl-2  { width: 16.666667%; }
  .col-xl-3  { width: 25%; }
  .col-xl-4  { width: 33.333333%; }
  .col-xl-5  { width: 41.666667%; }
  .col-xl-6  { width: 50%; }
  .col-xl-7  { width: 58.333333%; }
  .col-xl-8  { width: 66.666667%; }
  .col-xl-9  { width: 75%; }
  .col-xl-10 { width: 83.333333%; }
  .col-xl-11 { width: 91.666667%; }
  .col-xl-12 { width: 100%; }
}

/* ===== Spacing ===== */
.py-4 { padding: 3.5rem 0; }
.py-5 { padding: 5rem 0; }
.pt-4 { padding-top: 3.5rem; }
.pt-5 { padding-top: 5rem; }
.pb-4 { padding-bottom: 3.5rem; }
.pb-5 { padding-bottom: 5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .65rem; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.6rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .6rem; } .mb-3 { margin-bottom: 1.1rem; }
.mb-4 { margin-bottom: 1.7rem; } .mb-5 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.me-auto { margin-right: auto; }
.ms-auto { margin-left: auto; }

/* ===== Flex ===== */
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .35rem; } .gap-2 { gap: .6rem; } .gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; } .gap-5 { gap: 2rem; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }

/* Responsive display utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
@media (min-width: 768px) {
  .d-md-flex { display: flex !important; }
  .d-md-none { display: none !important; }
  .d-md-block { display: block !important; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; text-align: center; padding: .7rem 1.55rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; font-size: .9rem; line-height: 1.4;
  font-family: inherit; white-space: nowrap; position: relative; text-decoration: none;
}
.btn svg, .btn img { width: 16px; height: 16px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(79,70,229,.45);
  transform: translateY(-2px); color: #fff;
}
.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.btn-accent:hover { box-shadow: 0 8px 24px rgba(245,158,11,.4); transform: translateY(-2px); color: #fff; }
.btn-outline-primary {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn-light {
  background: #fff; color: var(--dark); border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-light:hover { background: var(--primary-lighter); color: var(--primary); border-color: #c7d2fe; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-600); color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: var(--success-600); color: #fff; transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; transform: translateY(-1px); }
.btn-sm { padding: .42rem .9rem; font-size: .8rem; border-radius: var(--radius-xs); }
.btn-lg { padding: .9rem 2.1rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--border-light); color: var(--dark); }

/* ===== Alerts ===== */
.alert {
  padding: 1.05rem 1.35rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  font-size: .9rem; display: flex; gap: .7rem; align-items: flex-start; line-height: 1.65;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-soft); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-soft); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-soft); color: #1e40af; border-color: #bfdbfe; }

/* ===== Cards ===== */
.card {
  background: var(--grad-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { border-color: #c7d2fe; }
.card-body { padding: 1.6rem; }
.card-body.p-4 { padding: 2rem; }
.border-0 { border: 0 !important; }
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.rounded-lg { border-radius: var(--radius) !important; }

/* ===== Navbar ===== */
.navbar {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 68px;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(7, 12, 24, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  height: 62px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.navbar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.navbar-brand .brand-mark::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%); animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* Center Search Box */
.nav-search-center {
  flex: 1;
  max-width: 380px;
  margin: 0 1rem;
}
.nav-search-box {
  position: relative;
  width: 100%;
}
.nav-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: #94a3b8;
  pointer-events: none;
}
.nav-search-box .nav-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  outline: none;
}
.nav-search-box .nav-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.nav-search-box .nav-search-input::placeholder {
  color: #94a3b8;
}

/* Navbar Right Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.navbar-links a {
  color: #9ca3af;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.navbar-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.navbar-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.navbar-links a.nav-cta {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.navbar-links a.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  padding: 8px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 3px; transition: all 0.3s; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 150;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-overlay.active { display: block; }

@media (max-width: 991px) {
  .nav-search-center { display: none; }
  .mobile-menu-toggle { display: flex; }
  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 199;
    background: #0b1120;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 2.5rem 1.4rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .navbar-links.open {
    display: flex;
    transform: translateX(0);
  }
  .navbar-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    border-radius: 8px;
  }
  .navbar-links a.nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    font-size: 0.92rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .navbar-links a:hover, .navbar-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--grad-dark);
  color: #fff; padding: 6rem 0 6.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-hero-glow);
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -.04em; line-height: 1.1; max-width: 760px; margin-bottom: 1.4rem;
}
.hero h1 .grad-text {
  background: linear-gradient(120deg, #a5b4fc, #c4b5fd 40%, #f0abfc);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead {
  color: #9ca3af; max-width: 640px; font-size: 1.18rem; line-height: 1.85;
  margin-bottom: 2.2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); color: #e5e7eb; font-size: .76rem; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  text-transform: uppercase; letter-spacing: .1em; display: inline-flex;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { opacity: .6; box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
.hero .btn-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero .stats-row {
  display: flex; gap: 3.5rem; flex-wrap: wrap;
  padding-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.1);
}
.hero .stat-big { color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.hero .stat-label { color: #6b7280; font-size: .82rem; font-weight: 500; margin-top: .4rem; }

/* Floating decorative cards */
.hero-float { display: none; }
@media (min-width: 992px) {
  .hero-float {
    display: block; position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
    z-index: 2; width: 360px;
  }
  .hero-float .float-card {
    background: rgba(255,255,255,.08); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    padding: 1.5rem; position: relative; overflow: hidden;
  }
  .hero-float .float-card::before {
    content: ''; position: absolute; top: -30%; right: -30%;
    width: 200px; height: 200px; background: radial-gradient(circle, rgba(139,92,246,.25), transparent 60%);
  }
  .hero-float .float-title { color: #e5e7eb; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .hero-float .float-value { color: #fff; font-size: 2.2rem; font-weight: 900; margin: .3rem 0; }
  .hero-float .float-meta { color: #9ca3af; font-size: .82rem; }
  .hero-float .float-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem;
  }
}

/* ===== Page Hero (sub-pages) ===== */
.page-hero {
  background: var(--grad-dark); color: #fff; padding: 4rem 0 4.2rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-hero-glow);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -.03em; margin-bottom: .75rem; }
.page-hero .lead { color: #9ca3af; max-width: 620px; font-size: 1.05rem; }
.page-hero .breadcrumb { color: #6b7280; }
.page-hero .breadcrumb a { color: #6b7280; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,.2); }

/* ===== Section Headers ===== */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.2rem; margin: 0 0 2.2rem; flex-wrap: wrap;
}
.section-header h2 { margin: 0; }
.section-header .subtitle { color: var(--text-muted); font-size: .95rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--primary); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: .6rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2.5px;
  background: var(--grad-primary); border-radius: 4px;
}

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: .82rem; color: var(--text-muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--primary); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border-strong); opacity: .5; }

/* ===== Post Cards ===== */
.post-card {
  display: flex; flex-direction: column;
  background: var(--grad-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.post-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #c7d2fe;
}
.post-card .thumb {
  height: 210px; background: var(--grad-primary-soft);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.post-card:hover .thumb img { transform: scale(1.07); }
.post-card .thumb .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary-soft); color: var(--primary);
  font-size: 3rem; font-weight: 900;
}
.post-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.post-meta {
  font-size: .75rem; color: var(--text-muted);
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
}
.post-meta .meta-item { display: inline-flex; align-items: center; gap: .3rem; }
.post-title { font-size: 1.12rem; font-weight: 700; margin: .7rem 0 .55rem; line-height: 1.35; letter-spacing: -.01em; }
.post-title a { color: var(--dark); text-decoration: none; transition: color .2s; }
.post-title a:hover { color: var(--primary); }
.badge-cat {
  background: var(--grad-primary-soft); color: var(--primary-700);
  font-size: .68rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
  display: inline-block; text-transform: uppercase; letter-spacing: .06em;
  transition: all .2s; border: 1px solid #e0e7ff;
}
.badge-cat:hover { background: var(--grad-primary); color: #fff; }
.badge-status {
  font-size: .72rem; font-weight: 700; padding: .28rem .7rem;
  border-radius: 999px; display: inline-block;
}
.badge-status.published, .badge-status.approved { background: var(--success-soft); color: #065f46; }
.badge-status.draft, .badge-status.pending { background: var(--warning-soft); color: #92400e; }
.badge-status.spam { background: var(--danger-soft); color: #991b1b; }
.card-excerpt { color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg); border: 1px solid var(--border);
  padding: .32rem .75rem; border-radius: 999px; font-size: .75rem;
  color: var(--text-secondary); font-weight: 600;
}

/* ===== Featured Post ===== */
.hero-featured .card {
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--grad-card);
}
.featured { display: flex; flex-wrap: wrap; }
.featured .thumb { width: 100%; height: auto; position: relative; min-height: 240px; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured .info { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured .info .post-title { font-size: 1.7rem; line-height: 1.3; }
@media (min-width: 768px) {
  .featured .thumb { width: 55%; }
  .featured .info { width: 45%; padding: 2.5rem; }
}

/* ===== Article Content ===== */
.article-content { font-size: 1.06rem; color: var(--text); line-height: 1.9; }
.article-content h2 { margin: 2.4rem 0 1.1rem; font-size: 1.6rem; }
.article-content h3 { margin: 2rem 0 .9rem; font-size: 1.3rem; }
.article-content p { margin-bottom: 1.4rem; }
.article-content ul, .article-content ol { margin: 0 0 1.4rem 1.5rem; }
.article-content ul li { list-style: disc; margin-bottom: .45rem; }
.article-content ol li { list-style: decimal; margin-bottom: .45rem; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 1.5rem 0; }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 1.2rem 1.6rem;
  background: var(--primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6rem 0; font-style: italic; color: var(--dark-2);
}
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content pre, .article-content code {
  background: var(--dark); color: #e5e7eb; border-radius: 8px;
}
.article-content pre { padding: 1.3rem; overflow-x: auto; margin: 1.5rem 0; }
.article-content code { padding: .15rem .45rem; font-size: .88em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: .75rem 1rem; text-align: left; }
.article-content th { background: var(--primary-soft); font-weight: 700; font-size: .88rem; }

/* ===== Author Box ===== */
.author-box {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--grad-card); border: 1px solid var(--border);
  padding: 1.35rem 1.6rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}

/* ===== Sidebar Widgets ===== */
.widget { margin-bottom: 2.4rem; }
.widget-title {
  font-size: .86rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1.1rem; color: var(--dark);
  padding-bottom: .8rem; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: .55rem; position: relative;
}
.widget-title::before {
  content: ''; width: 5px; height: 18px;
  background: var(--grad-primary); border-radius: 3px;
  flex-shrink: 0;
}
.category-list li {
  padding: .72rem 0; border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  transition: padding-left .2s;
}
.category-list li:first-child { padding-top: 0; }
.category-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.category-list li:hover { padding-left: .3rem; }
.category-list a { color: var(--text-secondary); font-weight: 600; font-size: .9rem; }
.category-list a:hover { color: var(--primary); }
.category-list .count {
  background: var(--grad-primary-soft); color: var(--primary-700);
  font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 700; flex-shrink: 0;
}
.trend-item {
  display: flex; gap: .9rem; align-items: center; padding: .78rem 0;
  border-bottom: 1px solid var(--border-light);
}
.trend-item:first-child { padding-top: 0; }
.trend-item:last-child { border-bottom: 0; padding-bottom: 0; }
.trend-item .rank {
  font-size: 1.35rem; font-weight: 900; color: var(--border-strong);
  min-width: 1.7rem; text-align: center;
}
.trend-item a { color: var(--text-secondary); font-weight: 600; font-size: .88rem; line-height: 1.45; display: block; }
.trend-item a:hover { color: var(--primary); }
.widget-card {
  background: linear-gradient(150deg, #eef2ff 0%, #f5f3ff 60%, #faf5ff 100%);
  border: 1px solid #e0e7ff;
  position: relative; overflow: hidden;
}
.widget-card::before {
  content: ''; position: absolute; top: -40%; right: -40%;
  width: 200px; height: 200px; background: radial-gradient(circle, rgba(139,92,246,.18), transparent 60%);
}

/* ===== Comments ===== */
.comment-item {
  padding: 1.15rem 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 1rem;
}
.comment-item:last-child { border-bottom: 0; }
.comment-item .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; font-size: 1rem;
}
.comment-item .comment-name { font-weight: 700; color: var(--dark); font-size: .92rem; }
.comment-item .comment-time { color: var(--text-muted); font-size: .78rem; }

/* ===== Forms ===== */
.form-control {
  width: 100%; padding: .75rem 1.05rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .92rem; font-family: inherit;
  background: #fff; transition: border-color .2s, box-shadow .2s; color: var(--text);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.form-control::placeholder { color: #9ca3af; }
.form-label { display: block; margin-bottom: .45rem; font-weight: 600; font-size: .88rem; color: var(--dark); }
textarea.form-control { resize: vertical; min-height: 130px; line-height: 1.7; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: center; gap: .55rem; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: .45rem; justify-content: center; margin-top: 2.8rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .6rem 1.05rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: .88rem; font-weight: 600; background: #fff;
  transition: all .2s; text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.pagination .active {
  background: var(--grad-primary); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}

/* ===== Category Strip ===== */
.cat-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 1.7rem 0; }
.strip-inner { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }
.strip-item {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .85rem 1.5rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); min-width: 150px;
  transition: all .25s ease; background: var(--bg);
  text-decoration: none;
}
.strip-item:hover {
  background: var(--grad-primary-soft); border-color: var(--primary);
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.strip-name { font-weight: 700; color: var(--dark); font-size: .9rem; }
.strip-count { font-size: .72rem; color: var(--text-muted); font-weight: 500; }

/* ===== Newsletter Section ===== */
.newsletter-wrap {
  margin-top: 5rem;
}
.newsletter-card {
  background: linear-gradient(145deg, #111a2e 0%, #0b1120 50%, #151030 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.22), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.2), transparent 50%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.newsletter-info h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.newsletter-info p {
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.newsletter-features {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #a5b4fc;
  font-weight: 600;
}
.newsletter-form-box {
  max-width: 440px;
  width: 100%;
}
.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  transition: all 0.25s ease;
}
.newsletter-input-group:focus-within {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}
.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-input::placeholder {
  color: #94a3b8;
}
.newsletter-submit-btn {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.newsletter-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.newsletter-success-msg {
  display: none;
  font-size: 0.82rem;
  color: #34d399;
  margin-top: 0.6rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: #070c18;
  color: #94a3b8;
  padding: 5rem 0 0;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 2;
}
.footer h5 {
  color: #fff;
  margin-bottom: 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer h5::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 0.5rem;
}
.footer a { color: #94a3b8; transition: all 0.2s ease; }
.footer a:hover { color: #fff; }
.footer .footer-col { margin-bottom: 2.5rem; }
.footer .f-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0;
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer .f-link span.arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: #818cf8;
  font-size: 0.78rem;
}
.footer .f-link:hover {
  color: #cbd5e1;
  padding-left: 3px;
}
.footer .f-link:hover span.arrow {
  opacity: 1;
  transform: translateX(0);
}

.footer-trust-chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.trust-chip {
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Footer Financial Disclaimer Box */
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.7;
}
.footer-disclaimer-box strong {
  color: #94a3b8;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #64748b;
}
.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #cbd5e1; }
.footer-bottom a:hover { color: #cbd5e1; }

/* ===== Install page ===== */
.install-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--grad-dark); }
.install-card { max-width: 560px; width: 100%; }




/* ===== Magazine Editorial Hero ===== */
.magazine-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.magazine-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
}
.featured-lead-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.featured-lead-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.25);
}
.featured-lead-card .lead-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-lead-card:hover .lead-img {
  transform: scale(1.04);
}
.featured-lead-card .lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.15) 0%, rgba(11, 17, 32, 0.65) 45%, rgba(11, 17, 32, 0.96) 85%, #0b1120 100%);
  z-index: 1;
}
.featured-lead-card .lead-body {
  position: relative;
  z-index: 2;
  padding: 2.2rem 2.4rem;
}
.lead-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.lead-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}
.read-time-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}
.lead-title {
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.lead-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.lead-title a:hover {
  color: #a5b4fc;
}
.lead-excerpt {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 650px;
  margin-bottom: 1.3rem;
}
.lead-author-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Trending Radar Card */
.trend-radar-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}
.trend-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
}
.trend-radar-header h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.trend-radar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.22s ease;
}
.trend-radar-item:last-child {
  border-bottom: none;
}
.trend-radar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}
.radar-rank {
  font-size: 1.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
  width: 26px;
  padding-top: 2px;
}
.radar-content {
  flex: 1;
  min-width: 0;
}
.radar-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}
.radar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 0.35rem;
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}
.radar-title:hover {
  color: #a5b4fc;
}
.radar-meta {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Search and Quick Topic Strip */
.search-tag-bar {
  margin-top: 1.8rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.search-input-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}
.search-input-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}
.search-input-box input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.search-input-box .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #94a3b8;
}
.quick-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.quick-tag-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Topic Hub Cards ===== */
.topic-hub-section {
  padding: 3.5rem 0 2rem;
}
.topic-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
@media (min-width: 1200px) {
  .topic-hub-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.topic-hub-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.topic-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--topic-grad, var(--grad-primary));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.topic-hub-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.topic-hub-card:hover::before {
  opacity: 1;
}
.topic-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.topic-hub-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.topic-hub-card:hover .topic-hub-icon-wrap {
  transform: scale(1.08);
}
.topic-hub-count-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}
.topic-hub-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.topic-hub-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.topic-hub-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: gap 0.2s ease;
}
.topic-hub-card:hover .topic-hub-action {
  gap: 0.55rem;
  color: var(--primary-600);
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Post Magazine Card */
.post-card-magazine {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}
.post-card-magazine:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}
.post-card-magazine .card-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0f172a;
}
.post-card-magazine .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card-magazine:hover .card-thumb img {
  transform: scale(1.05);
}
.card-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.card-thumb-readtime {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.post-card-magazine .card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.post-card-magazine .post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.post-card-magazine .post-title a {
  color: var(--dark);
  text-decoration: none;
}
.post-card-magazine .post-title a:hover {
  color: var(--primary);
}
.post-card-magazine .post-excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 0.9rem;
  margin-top: auto;
  font-size: 0.8rem;
}

/* Trader's Roadmap Section */
.roadmap-section {
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.roadmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero-glow);
  pointer-events: none;
}
.roadmap-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}
.roadmap-header h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.roadmap-header p {
  color: #94a3b8;
  font-size: 1rem;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.roadmap-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  transition: all 0.25s ease;
  position: relative;
}
.roadmap-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}
.roadmap-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}
.roadmap-card h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}
.roadmap-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}
.roadmap-card a {
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.roadmap-card a:hover {
  color: #fff;
  gap: 0.55rem;
}

/* Sidebar Widgets: Sentiment Barometer & Calculator */
.sentiment-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-xs);
}
.sentiment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.sentiment-head h4 {
  font-size: 0.95rem;
  margin: 0;
}
.sentiment-val-tag {
  background: var(--success-soft);
  color: var(--success-600);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.sentiment-bar-track {
  height: 10px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  border-radius: 999px;
  position: relative;
  margin: 1.2rem 0 0.6rem;
}
.sentiment-pin {
  position: absolute;
  top: -4px;
  left: 68%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--dark);
  box-shadow: var(--shadow-sm);
}
.sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* SIP Compound Calculator Widget */
.sip-widget {
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: #fff;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-md);
}
.sip-widget h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.sip-widget p.sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1.2rem;
}
.sip-field {
  margin-bottom: 1rem;
}
.sip-field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.sip-field label span.val {
  color: #a5b4fc;
  font-weight: 700;
}
.sip-field input[type="range"] {
  width: 100%;
  accent-color: #818cf8;
  cursor: pointer;
}
.sip-result-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sip-res-label {
  font-size: 0.75rem;
  color: #94a3b8;
}
.sip-res-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: #34d399;
}

/* Jargon Buster Card */
.jargon-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-xs);
}
.jargon-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: inline-block;
}
.jargon-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.jargon-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* Section Header Bar */
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.6rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}
.section-header-bar .eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2rem;
}
.section-header-bar h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark);
}

/* ===== Responsive Optimization across All Breakpoints ===== */
@media (max-width: 991px) {
  .magazine-hero { padding: 2rem 0 1.2rem; }
  .featured-lead-card { min-height: 400px; }
  .featured-lead-card .lead-body { padding: 2rem 1.6rem; }
  .lead-title { font-size: 1.6rem; }
  .trend-radar-card { margin-top: 1rem; }
}

@media (max-width: 768px) {
  .py-4, .py-5 { padding: 2.5rem 0; }
  .pt-4, .pt-5 { padding-top: 2.5rem; }
  .pb-4, .pb-5 { padding-bottom: 2.5rem; }
  .section-header-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .section-header-bar h2 { font-size: 1.3rem; }
  .search-tag-bar { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; }
  .search-input-box { min-width: 100%; }
  .quick-tags { justify-content: flex-start; }
  .roadmap-section { padding: 2.5rem 1.5rem; margin: 2.5rem 0; }
  .roadmap-header { margin-bottom: 2rem; }
  .roadmap-header h2 { font-size: 1.6rem; }
  .roadmap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .container, .container-narrow { padding: 0 14px; }
  
  /* Navbar */
  .navbar { height: 60px; padding: 0; }
  .navbar-brand { font-size: 1.15rem; gap: 0.5rem; }
  .navbar-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 0.9rem; }
  
  /* Magazine Hero */
  .magazine-hero { padding: 1rem 0 0.8rem; }
  .featured-lead-card { min-height: 380px; border-radius: var(--radius-md); }
  .featured-lead-card .lead-body { padding: 1.35rem 1.1rem; }
  .lead-badge-row { gap: 0.4rem; margin-bottom: 0.65rem; }
  .lead-badge { font-size: 0.68rem; padding: 0.25rem 0.65rem; }
  .read-time-pill { font-size: 0.68rem; padding: 0.25rem 0.6rem; }
  .lead-title { font-size: 1.25rem; line-height: 1.32; margin-bottom: 0.55rem; }
  .lead-excerpt { font-size: 0.84rem; line-height: 1.55; margin-bottom: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lead-author-row { font-size: 0.72rem; gap: 0.35rem; flex-wrap: wrap; }
  
  /* Trending Radar */
  .trend-radar-card { padding: 1.2rem 1rem; border-radius: var(--radius-md); margin-top: 1rem; }
  .trend-radar-item { padding: 0.75rem 0.25rem; gap: 0.75rem; }
  .radar-rank { font-size: 1.05rem; width: 22px; }
  .radar-title { font-size: 0.85rem; }
  .radar-meta { font-size: 0.7rem; }
  
  /* Search & Topic Bar */
  .search-tag-bar { padding: 0.85rem 0.75rem; border-radius: var(--radius-sm); }
  .search-input-box input { font-size: 0.82rem; padding: 0.55rem 0.75rem 0.55rem 2.2rem; }
  .quick-tags {
    gap: 0.35rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    width: 100%;
  }
  .quick-tags::-webkit-scrollbar { display: none; }
  .tag-chip { font-size: 0.72rem; padding: 0.25rem 0.6rem; flex-shrink: 0; }
  .quick-tag-label { font-size: 0.72rem; flex-shrink: 0; }
  
  /* Topic Hub Grid */
  .topic-hub-section { padding: 2rem 0 1rem; }
  .topic-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .topic-hub-card { padding: 0.85rem 0.7rem; gap: 0.5rem; border-radius: var(--radius-sm); }
  .topic-hub-icon-wrap { width: 36px; height: 36px; border-radius: 9px; }
  .topic-hub-name { font-size: 0.82rem; }
  .topic-hub-desc { display: none; }
  .topic-hub-count-tag { font-size: 0.65rem; padding: 0.15rem 0.45rem; }
  .topic-hub-action { font-size: 0.72rem; }
  
  /* Articles Grid */
  .post-card-magazine { border-radius: var(--radius-sm); }
  .post-card-magazine .card-thumb { height: 175px; }
  .post-card-magazine .card-body { padding: 1.15rem 1rem; }
  .post-card-magazine .post-title { font-size: 1rem; }
  .post-card-magazine .post-excerpt { font-size: 0.82rem; line-height: 1.55; }
  
  /* Roadmap Section */
  .roadmap-section { padding: 2rem 1rem; margin: 2rem 0; border-radius: var(--radius-md); }
  .roadmap-header h2 { font-size: 1.35rem; }
  .roadmap-header p { font-size: 0.85rem; }
  .roadmap-card { padding: 1.25rem 1rem; border-radius: var(--radius-sm); }
  .roadmap-card h4 { font-size: 1.05rem; }
  .roadmap-card p { font-size: 0.8rem; }
  
  /* Sidebar Widgets */
  .sentiment-box, .sip-widget, .jargon-box { padding: 1.2rem 1rem; border-radius: var(--radius-md); margin-bottom: 1.2rem; }
  .sip-result-box { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .sip-res-amount { font-size: 1.15rem; }
  
  /* Newsletter & Footer */
  .newsletter-wrap { margin-top: 2rem; }
  .newsletter-card { padding: 1.8rem 1.1rem; border-radius: var(--radius-md); }
  .newsletter-card h3 { font-size: 1.25rem; }
  .newsletter-card p { font-size: 0.85rem; }
  .footer { padding: 3rem 0 0; margin-top: 3rem; }
  .footer .footer-col { margin-bottom: 1.8rem; }
  .footer-bottom { padding: 1.2rem 0; margin-top: 1.5rem; flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media (max-width: 360px) {
  .topic-hub-grid { grid-template-columns: 1fr; }
  .featured-lead-card .lead-body { padding: 1.1rem 0.85rem; }
  .lead-title { font-size: 1.12rem; }
}

/* ===== Print ===== */
@media print {
  .navbar, .footer, .mobile-menu-toggle, .mobile-menu-overlay { display: none !important; }
  .hero, .magazine-hero { padding: 2rem 0; }
}
