:root {
  --purple: #43268e;
  --pink: #00eafe;
  --teal: #00eafe;
  --teal-light: #00eafe;
  --navy: #0c1e35;
  --grad-logo: linear-gradient(100deg, #00eafe 0%, #43268e 100%);
  --grad-teal: linear-gradient(135deg, #00eafe 0%, #43268e 100%);
  --bg: #fff;
  --bg-2: #f8f9fc;
  --bg-3: #f0f2f8;
  --text-dark: #00040f;
  --text-mid: #444444;
  --text-light: #8890a4;
  --border: #e5e7ef;
  --article-width: 800px;
}

/* Local Reset/Scoping for RBVM template elements to avoid conflicts */
.rbvm-template-content {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.rbvm-template-content a {
  text-decoration: none;
  color: inherit;
}

.rbvm-template-content .grad-text {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BLOG HERO ── */
.blog-hero {
  padding: 48px 0 0;
  background: #fff;
}

.blog-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}

.hero-left {
  flex: 1;
  max-width: 760px;
}

.hero-right-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.blog-section-label {
  margin-bottom: 16px;
}

.hero-right-meta-inner {
  margin-top: 33px;
}

.hero-right-meta table {
  border-spacing: 0;
  border-collapse: collapse;
}

.hero-right-meta td {
  padding: 10px 0;
  font-size: 13px;
  vertical-align: middle;
}

.hero-right-meta tr:first-child td {
  padding-bottom: 12px;
}

.hero-right-meta tr:last-child td {
  padding-top: 12px;
}

.hero-right-meta tr+tr td {
  border-top: 1px solid var(--border);
}

.hero-right-meta .meta-label {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  padding-right: 40px;
  white-space: nowrap;
}

.hero-right-meta .meta-value {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 15px;
  text-align: right;
}

.blog-section-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.blog-section-label a {
  background: var(--grad-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.blog-hero h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.8px;
  color: var(--text-dark);
  margin: 0;
}

.breadcrumb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dark);
  background: transparent;
  border: 1.5px solid var(--text-dark);
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', monospace;
  text-decoration: none;
}

.breadcrumb-tag:hover {
  background: var(--text-dark);
  color: #fff;
  text-decoration: none;
}

/* ── HERO IMAGE ── */
.hero-image {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 15px 0;
}

.hero-img-dashboard {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--purple) 0%, var(--navy) 40%, var(--teal) 70%, var(--teal-light) 100%);
  padding: 24px 24px 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.dash-chrome {
  background: #1a1a2e;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chrome-dot.red {
  background: #ef4444;
}

.chrome-dot.yellow {
  background: #eab308;
}

.chrome-dot.green {
  background: #22c55e;
}

.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.dash-body {
  background: #1a1a2e;
  padding: 20px;
  display: flex;
  gap: 16px;
}

.dash-main {
  flex: 1;
}

.dash-side {
  width: 180px;
  flex-shrink: 0;
}

.dash-section-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.risk-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.risk-card {
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.rc-critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.rc-high {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.rc-low {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.risk-num {
  font-size: 20px;
  font-weight: 900;
}

.rc-critical .risk-num {
  color: #ef4444;
}

.rc-high .risk-num {
  color: #eab308;
}

.rc-low .risk-num {
  color: #22c55e;
}

.risk-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-top: 2px;
}

.dash-stats {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.dash-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px;
}

.dash-stat-label {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dash-stat-val {
  font-size: 14px;
  font-weight: 800;
}

.dash-stat-val.critical {
  color: #ef4444;
}

.dash-stat-val.high {
  color: #eab308;
}

.dash-stat-val.low {
  color: #22c55e;
}

.attack-path {
  border-radius: 0 4px 4px 0;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.ap-red {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
}

.ap-yellow {
  background: rgba(234, 179, 8, 0.08);
  border-left: 3px solid #eab308;
}

.ap-purple {
  background: rgba(124, 58, 237, 0.1);
  border-left: 3px solid #7c3aed;
}

.ap-cve {
  font-size: 9px;
  font-weight: 700;
}

.ap-red .ap-cve {
  color: #fca5a5;
}

.ap-yellow .ap-cve {
  color: #fde047;
}

.ap-purple .ap-cve {
  color: #c4b5fd;
}

.ap-desc {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

/* ── ARTICLE LAYOUT ── */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 15px 0;
  position: relative;
}

/* ── FLOATING TOC ── */
.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-right: 24px;
  z-index: 10;
}

.toc-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none !important;
  border-left: 2px solid var(--border);
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.toc-list li {
  margin-bottom: 0;
  padding-left: 0 !important;
}

.toc-list li::before {
  display: none !important;
}

.toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.45;
  transition: all .2s;
  border-left: 2px solid transparent;
  margin-left: -2px;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--purple);
  border-left-color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

/* ── ARTICLE BODY ── */
.article-body {
  max-width: var(--article-width);
}

.article-body .lead-quote {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 3px solid var(--purple);
  padding: 16px 20px 16px 24px;
  margin: 0 0 36px;
  background: rgba(67, 38, 142, 0.03);
  border-radius: 0 10px 10px 0;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-weight: 400;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.8px;
  margin: 48px 0 16px;
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-body ul li,
.article-body ol li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  padding: 5px 0 5px 24px;
  position: relative;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-logo);
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-logo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body strong {
  color: var(--text-dark);
  font-weight: 700;
}

.article-body a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--pink);
}

/* callout box */
.callout-box {
  background: linear-gradient(135deg, rgba(67, 38, 142, 0.04) 0%, rgba(0, 234, 254, 0.04) 100%);
  border: 1px solid rgba(67, 38, 142, 0.1);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-box i {
  color: var(--purple);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.callout-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* stat highlight */
.stat-highlight {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  border-left: 4px solid var(--purple);
}

.stat-highlight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* dimension card */
.dimension-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.dimension-card:hover {
  border-color: rgba(67, 38, 142, 0.25);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.dimension-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dim-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-logo);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.dimension-card p {
  margin-bottom: 0;
}

/* process step */
.process-steps {
  margin: 24px 0 32px;
}

.process-step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.process-step:last-child {
  border-bottom: none;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.step-icon.s1 {
  background: rgba(15, 168, 160, 0.1);
  color: var(--teal);
}

.step-icon.s2 {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
}

.step-icon.s3 {
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink);
}

.step-icon.s4 {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.step-icon.s5 {
  background: rgba(56, 189, 248, 0.1);
  color: #0284c7;
}

.process-step h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.process-step p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* platform features */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 32px;
}

.platform-card {
  background: var(--bg-2);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 18px;
  transition: all .2s;
}

.platform-card:hover {
  background: rgba(67, 38, 142, 0.03);
  border-color: rgba(67, 38, 142, 0.1);
}

.platform-card-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.platform-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.platform-card p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── SHARE BAR ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(67, 38, 142, 0.04);
  text-decoration: none;
}

/* ── FEEDBACK ── */
.feedback-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg-2);
  border-radius: 12px;
  margin: 24px 0 0;
}

.feedback-bar span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.feedback-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
}

.feedback-btn:hover {
  border-color: var(--purple);
  background: rgba(67, 38, 142, 0.05);
}

.feedback-btn.up:hover {
  color: #16a34a;
  border-color: #16a34a;
}

.feedback-btn.down:hover {
  color: #dc2626;
  border-color: #dc2626;
}

/* ── RIGHT SIDEBAR ── */
.right-sidebar {
  padding-left: 40px;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* ── AUTHOR BIO ── */
.author-bio {
  max-width: var(--article-width);
  margin: 48px auto 0;
  padding: 32px;
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.author-bio h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-bio .author-bio-role {
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-bio p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

.author-bio-socials {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.author-bio-socials a {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(67, 38, 142, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 11px;
  text-decoration: none;
  transition: all .2s;
}

.author-bio-socials a:hover {
  background: var(--purple);
  color: #fff;
}

/* ── RELATED POSTS ── */
.related-section {
  max-width: 960px;
  margin: 56px auto 0;
  padding: 0 15px;
}

.related-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-title::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .3s;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  box-shadow: 0 8px 28px rgba(67, 38, 142, 0.1);
  border-color: rgba(67, 38, 142, 0.15);
  transform: translateY(-3px);
  text-decoration: none;
}

.related-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(67, 38, 142, 0.08), rgba(0, 234, 254, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-card-img i {
  font-size: 36px;
  color: rgba(124, 58, 237, 0.25);
}

.related-card-body {
  padding: 18px;
}

.related-card-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.related-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-card-body p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

.related-card-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.related-card-meta i {
  font-size: 10px;
}

/* ── RESPONSIVE ── */
@media(max-width: 1100px) {
  .article-layout {
    display: block;
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 32px 15px 0;
  }

  .toc-sidebar {
    display: none;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 900px) {
  .article-layout {
    display: block;
  }

  .right-sidebar {
    display: none;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .related-section {
    padding: 0 15px;
  }
}

@media(max-width: 768px) {
  .blog-hero {
    padding: 28px 15px 0;
  }

  .blog-hero h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .hero-top-row {
    flex-direction: column;
    gap: 16px;
  }

  .hero-right-meta {
    align-self: flex-start;
  }

  .hero-image {
    padding: 24px 15px 0;
  }

  /* Dashboard layout stacking */
  .hero-img-dashboard {
    padding: 16px 16px 0;
  }

  .dash-body {
    flex-direction: column;
    padding: 12px;
    gap: 16px;
  }

  .dash-side {
    width: 100%;
  }

  .article-layout {
    padding: 24px 15px 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .callout-box {
    padding: 16px 20px;
    margin: 20px 0;
  }

  .stat-highlight {
    padding: 16px 20px;
    margin: 20px 0;
  }

  .dimension-card {
    padding: 16px;
    margin: 16px 0;
  }

  .article-body h2 {
    font-size: 22px;
    margin: 32px 0 12px;
  }

  .article-body h3 {
    font-size: 18px;
    margin: 24px 0 8px;
  }

  .article-body .lead-quote {
    font-size: 16px;
    padding: 12px 16px 12px 20px;
    margin-bottom: 24px;
  }
}

@media(max-width: 640px) {
  .blog-hero h1 {
    font-size: 24px;
    letter-spacing: -0.8px;
  }

  .breadcrumb-tag {
    font-size: 10px;
    padding: 4px 10px;
  }
}

@media(max-width: 480px) {
  .risk-cards {
    gap: 4px;
  }

  .risk-card {
    padding: 8px 4px;
  }

  .risk-num {
    font-size: 16px;
  }

  .risk-label {
    font-size: 7px;
  }

  .dash-stats {
    flex-direction: column;
    gap: 8px;
  }

  .dash-stat {
    padding: 8px 12px;
  }

  .dash-stat-label {
    font-size: 8px;
  }

  .dash-stat-val {
    font-size: 13px;
  }
}

/* smooth scroll */
html {
  scroll-behavior: smooth;
}