/* ==========================================================================
   chungkhoantienao.com - Main Stylesheet
   Design Language: Modern Financial Light Theme
   Primary Palette:
     - Canvas Background: #F6F8FB
     - Card Background: #FFFFFF
     - Border Subdued: #E3E8F0 / #CBD5E1
     - Text Primary: #0F1A2E
     - Text Muted: #4A5870 / #5E6B82
     - Primary Accent (CTA Buttons/Highlights): #3DDC97 (Mint Emerald)
     - Accent Dark (Text / Links): #047857 (Forest Green)
     - Hover Accent: #065F46
   ========================================================================== */

/* 1. Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0F1A2E;
  background-color: #F6F8FB;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #047857;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #065F46;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 2. Top Affiliate Disclaimer */
.top-disclaimer {
  background: #EAF7F1;
  border-bottom: 1px solid #E3E8F0;
  padding: 10px 24px;
  font-size: 13px;
  color: #4A5870;
  text-align: center;
  line-height: 1.5;
}

.top-disclaimer strong {
  color: #047857;
}

/* 3. Site Header */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #F6F8FB;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0F1A2E;
}

.logo-box {
  width: 38px;
  height: 38px;
  background: #3DDC97;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(61, 220, 151, 0.35);
}

.logo-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0F1A2E;
}

.logo-accent {
  color: #047857;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: #0F1A2E;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  background-color: #E8EEF5;
  color: #047857;
}

.header-action .btn-primary {
  background: #3DDC97;
  color: #0B1220;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(61, 220, 151, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.header-action .btn-primary:hover {
  background: #34c787;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 220, 151, 0.4);
}

/* 4. Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.hero-content {
  flex: 1 1 520px;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F0FF;
  border: 1px solid #C9DAF8;
  color: #1D4ED8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #2563EB;
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  margin: 20px 0 16px;
  font-size: 50px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #0F1A2E;
}

.highlight-text {
  color: #047857;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #4A5870;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-primary {
  background: #3DDC97;
  color: #0B1220;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(61, 220, 151, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-hero-primary:hover {
  background: #34c787;
  transform: translateY(-2px);
  color: #0B1220;
}

.btn-hero-secondary {
  background: transparent;
  color: #0F1A2E;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 26px;
  border-radius: 12px;
  font-size: 16px;
  border: 1px solid #CBD5E1;
  display: inline-block;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-hero-secondary:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
  color: #0F1A2E;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  color: #4A5870;
  font-size: 14px;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-check {
  color: #047857;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 5. Featured Platform Card */
.hero-featured-card {
  flex: 1 1 400px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(15, 26, 46, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-featured-card:hover {
  box-shadow: 0 14px 40px rgba(15, 26, 46, 0.09);
  transform: translateY(-3px);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.featured-badge {
  font-size: 13px;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.featured-rank {
  font-size: 12px;
  font-weight: 600;
  color: #5E6B82;
  background: #F1F4F8;
  padding: 4px 10px;
  border-radius: 6px;
}

.featured-platform {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #17181E;
}

.platform-name {
  font-size: 22px;
  font-weight: 800;
  color: #0F1A2E;
}

.platform-sub {
  font-size: 14px;
  color: #4A5870;
}

.featured-stats-grid {
  background: #F3F6FA;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-size: 12px;
  color: #5E6B82;
  font-weight: 500;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #0F1A2E;
}

.stat-value.text-accent {
  font-size: 20px;
  color: #047857;
}

.stat-value.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  color: #1D4ED8;
}

.btn-card-action {
  background: #3DDC97;
  color: #0B1220;
  text-decoration: none;
  font-weight: 700;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(61, 220, 151, 0.3);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-card-action:hover {
  background: #34c787;
  color: #0B1220;
  transform: translateY(-1px);
}

.btn-card-copy {
  background: transparent;
  color: #0F1A2E;
  border: 1px solid #CBD5E1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-card-copy:hover {
  background: #F1F4F8;
  border-color: #94A3B8;
}

/* 6. Ranking Section & Table */
.ranking-section {
  background: #FFFFFF;
  border-top: 1px solid #E3E8F0;
  border-bottom: 1px solid #E3E8F0;
  padding: 64px 0;
}

.ranking-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0F1A2E;
}

.section-desc {
  margin: 0;
  color: #4A5870;
  font-size: 16px;
  max-width: 650px;
}

.tab-pill-group {
  display: flex;
  gap: 6px;
  background: #F1F4F8;
  padding: 6px;
  border-radius: 12px;
}

.tab-btn {
  background: transparent;
  color: #33415A;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #0F1A2E;
}

.tab-btn.active {
  background: #3DDC97;
  color: #0B1220;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(61, 220, 151, 0.25);
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid #E3E8F0;
  border-radius: 16px;
  background: #FFFFFF;
}

.ranking-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 15px;
}

.ranking-table thead tr {
  background: #F1F4F8;
  color: #5E6B82;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-table th {
  padding: 16px 20px;
  font-weight: 600;
}

.ranking-table tbody tr {
  border-top: 1px solid #E3E8F0;
  transition: background-color 0.15s ease;
}

.ranking-table tbody tr:hover {
  background-color: #F8FAFD;
}

.ranking-table td {
  padding: 18px 20px;
  vertical-align: middle;
}

.rank-num {
  font-weight: 800;
  font-size: 18px;
  color: #5E6B82;
  width: 50px;
}

.platform-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cell-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0F1A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cell-logo-text {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.cell-name {
  font-weight: 700;
  font-size: 16px;
  color: #0F1A2E;
}

.cell-type {
  font-size: 13px;
  color: #5E6B82;
  margin-top: 2px;
}

.fee-text {
  font-weight: 600;
  color: #0F1A2E;
  font-size: 14px;
}

.fee-sub {
  font-size: 13px;
  color: #5E6B82;
  margin-top: 2px;
}

.badge-discount {
  background: #DDF6EA;
  color: #047857;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  line-height: 1.4;
}

.score-badge {
  font-size: 15px;
  color: #0F1A2E;
}

.score-badge strong {
  font-size: 18px;
  font-weight: 800;
  color: #047857;
}

.action-cell {
  text-align: right;
  white-space: nowrap;
}

.btn-review-link {
  color: #33415A;
  font-size: 14px;
  font-weight: 600;
  margin-right: 14px;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-review-link:hover {
  color: #0F1A2E;
  background: #EEF2F7;
}

.btn-table-cta {
  background: #3DDC97;
  color: #0B1220;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(61, 220, 151, 0.25);
  transition: all 0.15s ease;
}

.btn-table-cta:hover {
  background: #34c787;
  color: #0B1220;
  transform: translateY(-1px);
}

.ranking-footnote {
  margin: 14px 0 0;
  font-size: 13px;
  color: #5E6B82;
}

/* 7. Category Cards Section */
.category-section {
  padding: 72px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cat-card {
  text-decoration: none;
  color: #0F1A2E;
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(15, 26, 46, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 26, 46, 0.07);
  border-color: #CBD5E1;
}

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.icon-emerald { background: #EAF7F1; }
.icon-blue { background: #EEF4FF; }
.icon-amber { background: #FEF3C7; }

.cat-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F1A2E;
}

.cat-desc {
  color: #4A5870;
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}

.cat-link {
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
}

.text-emerald { color: #047857; }
.text-blue { color: #1D4ED8; }
.text-amber { color: #B45309; }

/* 8. 3 Steps Section */
.steps-section {
  padding: 0 0 72px;
}

.steps-box {
  background: linear-gradient(180deg, #EAF7F1 0%, #EEF4FF 100%);
  border: 1px solid #E3E8F0;
  border-radius: 24px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}

.steps-intro {
  flex: 1 1 320px;
  min-width: 0;
}

.steps-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: #0F1A2E;
  letter-spacing: -0.5px;
}

.steps-desc {
  margin: 0;
  color: #4A5870;
  font-size: 16px;
  line-height: 1.6;
}

.steps-grid {
  flex: 2 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.step-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(227, 232, 240, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #3DDC97;
  color: #0B1220;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card-title {
  font-weight: 700;
  font-size: 16px;
  margin: 14px 0 6px;
  color: #0F1A2E;
}

.step-card-desc {
  color: #4A5870;
  font-size: 14px;
  line-height: 1.5;
}

/* 9. Articles Section */
.articles-section {
  padding: 0 0 72px;
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.see-all-link {
  font-weight: 700;
  font-size: 15px;
  color: #047857;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.article-card {
  text-decoration: none;
  color: #0F1A2E;
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 26, 46, 0.08);
}

.article-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-crypto { background: #EAF7F1; }
.thumb-stocks { background: #EEF4FF; }
.thumb-compare { background: #FEF3C7; }

.article-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B1220;
  border-bottom: 1px solid #E3E8F0;
  flex-shrink: 0;
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease;
}

.article-card:hover .article-card-cover img {
  transform: scale(1.03);
}

.article-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.article-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tag-emerald { color: #047857; }
.tag-blue { color: #1D4ED8; }
.tag-amber { color: #B45309; }

.article-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: #0F1A2E;
  margin: 0;
}

.article-meta {
  font-size: 13px;
  color: #5E6B82;
  margin-top: auto;
}

/* 10. CTA Banner Section (Telegram Support) */
.cta-banner-section {
  padding: 0 0 72px;
}

.cta-banner-box {
  background: #3DDC97;
  color: #0B1220;
  border-radius: 24px;
  padding: 40px 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 30px rgba(61, 220, 151, 0.25);
}

.cta-content {
  flex: 1 1 420px;
  min-width: 0;
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}

.cta-sub {
  font-size: 16px;
  font-weight: 500;
  color: #0B1220;
  opacity: 0.9;
}

.btn-cta-dark {
  background: #0B1220;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-cta-dark:hover {
  background: #17243B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* 11. Site Footer */
.site-footer {
  border-top: 1px solid #E3E8F0;
  background: #EEF2F7;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col-brand {
  flex: 2 1 340px;
  min-width: 0;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0F1A2E;
}

.footer-warning {
  margin: 0;
  color: #5E6B82;
  font-size: 14px;
  line-height: 1.65;
  max-width: 480px;
}

.footer-warning strong {
  color: #33415A;
}

.footer-col-nav {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-heading {
  font-weight: 700;
  color: #0F1A2E;
  margin-bottom: 4px;
}

.footer-col-nav a {
  color: #4A5870;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col-nav a:hover {
  color: #047857;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid #DCE3EC;
  font-size: 13px;
  color: #6A7690;
}

/* 12. Modal Overlay & Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalScaleUp 0.2s ease;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #E3E8F0;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F1A2E;
}

.modal-close-btn {
  background: #F1F4F8;
  color: #4A5870;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F1A2E;
}

.modal-ref-card {
  margin: 20px 0;
  background: #F8FAFD;
  border: 1px solid #E3E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #047857;
  letter-spacing: 1px;
}

.modal-copy-btn {
  background: #3DDC97;
  color: #0B1220;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.modal-copy-btn:hover {
  background: #34c787;
}

.modal-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.modal-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #33415A;
  line-height: 1.5;
}

.modal-step-num {
  width: 24px;
  height: 24px;
  background: #EAF7F1;
  color: #047857;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-action-row {
  display: flex;
  gap: 12px;
}

.modal-btn-open {
  flex: 1;
  background: #3DDC97;
  color: #0B1220;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(61, 220, 151, 0.3);
}

.modal-btn-open:hover {
  background: #34c787;
  color: #0B1220;
}

.modal-btn-cancel {
  background: #F1F4F8;
  color: #4A5870;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
}

.modal-btn-cancel:hover {
  background: #E2E8F0;
  color: #0F1A2E;
}

/* 13. Toast Notification */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: #0F1A2E;
  color: #FFFFFF;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #3DDC97;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-box.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 14. Single Article & Archive Pages */
.article-page-main {
  padding: 36px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5E6B82;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #4A5870;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #047857;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.article-main-col {
  min-width: 0;
}

.article-single {
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-radius: 20px;
  padding: 40px 44px;
  margin: 0 0 40px;
  box-shadow: 0 6px 24px rgba(15, 26, 46, 0.04);
}

.article-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E3E8F0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 26, 46, 0.03);
}

.sidebar-card-highlight {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FBF8 100%);
  border: 1px solid #BBEAD4;
}

.sidebar-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 800;
  color: #0F1A2E;
  margin: 0 0 12px;
}

.sidebar-broker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-broker-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-broker-perks {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #F3F6FA;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #33415A;
}

.sidebar-broker-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  background: #3DDC97;
  color: #0B1220;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(61, 220, 151, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.sidebar-cta-btn:hover {
  background: #34c787;
  color: #0B1220;
  transform: translateY(-1px);
}

.sidebar-cta-secondary {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #FFFFFF;
  color: #0F1A2E;
  border: 1px solid #CBD5E1;
  text-align: center;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
}

.sidebar-cta-secondary:hover {
  background: #F1F4F8;
  color: #0F1A2E;
}

.sidebar-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-post-list li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #1E293B;
}

.sidebar-post-list li a:hover {
  color: #047857;
}

.sidebar-post-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #EAF7F1;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-telegram-card {
  background: #0F1A2E;
  color: #FFFFFF;
  border-radius: 18px;
  padding: 22px;
}

.sidebar-telegram-card .sidebar-title {
  color: #FFFFFF;
  margin-bottom: 6px;
}

.sidebar-telegram-card p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.55;
  margin-bottom: 14px;
}

.sidebar-telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #3DDC97;
  color: #0B1220;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
}

.sidebar-telegram-btn:hover {
  background: #34c787;
  color: #0B1220;
}

.article-single-header {
  margin-bottom: 28px;
}

.article-cat-pill {
  display: inline-block;
  background: #EAF7F1;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-single-title {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  color: #0F1A2E;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.article-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #5E6B82;
}

.article-featured-img {
  margin-bottom: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E3E8F0;
}

.article-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.article-prose {
  font-size: 16px;
  line-height: 1.75;
  color: #273449;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0F1A2E;
  margin: 32px 0 14px;
  line-height: 1.3;
}

.article-prose h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0F1A2E;
  margin: 24px 0 10px;
}

.article-prose p {
  margin-bottom: 16px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin: 18px auto;
  border: 1px solid #E3E8F0;
  display: block;
}

.article-prose figure,
.article-prose .wp-caption,
.article-prose .wp-block-image {
  max-width: 100% !important;
  width: auto !important;
  margin: 22px auto;
}

.article-prose iframe,
.article-prose video,
.article-prose svg {
  max-width: 100%;
}

.article-prose figcaption {
  font-size: 13px;
  color: #5E6B82;
  text-align: center;
  margin-top: 8px;
}

.article-prose blockquote {
  background: #F3F6FA;
  border-left: 4px solid #3DDC97;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  color: #33415A;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.article-prose th,
.article-prose td {
  border: 1px solid #E3E8F0;
  padding: 10px 14px;
  text-align: left;
}

.article-prose th {
  background: #F1F4F8;
  font-weight: 700;
}

.article-cta-box {
  margin-top: 36px;
  background: linear-gradient(180deg, #EAF7F1 0%, #EEF4FF 100%);
  border: 1px solid #C9E8D9;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F1A2E;
  margin-bottom: 6px;
}

.article-cta-desc {
  font-size: 15px;
  color: #4A5870;
  margin: 0;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-section {
  margin: 0;
}

/* 15. Responsive Breakpoints */
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
@media (max-width: 900px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-section {
    padding: 40px 20px 56px;
    gap: 36px;
  }
  .steps-box {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 30px;
  }
  .site-header {
    padding: 14px 16px;
  }
  .main-nav {
    display: none; /* Hide default nav on very small mobile for clean view */
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    text-align: center;
  }
  .cta-banner-box {
    padding: 28px 20px;
  }
  .cta-title {
    font-size: 22px;
  }
  .article-single {
    padding: 24px 18px;
  }
  .article-single-title {
    font-size: 26px;
  }
}
