:root {
  --primary-orange: #F89B28;
  --primary-orange-hover: #E0891A;
  --primary-purple: #7B1FA2;
  --primary-purple-hover: #6A1B9A;
  --header-dark: #232323;
  --sidebar-dark: #333333;
  --sidebar-item-dark: #2A2A2A;
  --page-bg: #F4F4F4;
  --card-bg: #FFFFFF;
  --card-border: #F6C27C;
  --text-main: #333333;
  --text-muted: #777777;
  --link-blue: #337AB7;
  --link-blue-hover: #23527C;
  --status-green: #47B14B;
  --escrow-green: #2F8F4F;
  --badge-orange: #FF9B1A;
  --danger-red: #E55454;
  --btn-orange-bg: #FFF4E0;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--page-bg);
}

main, article, aside, div, section, p, span, h1, h2, h3, h4, h5, h6 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

header.site-header {
  background-color: var(--header-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo span.highlight {
  color: var(--primary-orange);
  background: rgba(248, 155, 40, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.nav-links a {
  color: #E0E0E0;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-orange);
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(71, 177, 75, 0.15);
  border: 1px solid var(--status-green);
  color: var(--status-green);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--status-green);
}

.hero-onion-banner {
  background: linear-gradient(135deg, #1C1C1C 0%, #2A2A2A 100%);
  border-bottom: 3px solid var(--primary-orange);
  color: #FFFFFF;
  padding: 25px 20px;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onion-box {
  background: #111111;
  border: 2px dashed var(--primary-orange);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}

.onion-url-text {
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 15px;
  color: #00FF66;
  word-break: break-all;
  font-weight: 700;
}

.btn-copy {
  background-color: var(--primary-orange);
  color: #111111;
  font-weight: 800;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-copy:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-1px);
}

.btn-open-link {
  background-color: var(--primary-purple);
  color: #FFFFFF;
  font-weight: 800;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-open-link:hover {
  background-color: var(--primary-purple-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  text-decoration: none;
}

/* SEO / UX homepage helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-orange);
  color: #111;
  padding: 8px 14px;
  z-index: 2000;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}
.visually-hidden-seo {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-kicker {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}
.hero-status-line {
  font-size: 12px;
  color: #88FF88;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.direct-answer {
  background: #FFF8EE;
  border-left: 4px solid var(--primary-orange);
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 0 6px 6px 0;
}
.direct-answer p {
  margin: 0 0 8px;
}
.direct-answer p:last-child {
  margin-bottom: 0;
}
.meta-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.pillar-card {
  background: #FAFAFA;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: 14px;
}
.pillar-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.pillar-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.faq-block details {
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.faq-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}
.faq-block details p {
  margin: 10px 0 4px;
}
.img-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 18px;
}
.updated-badge {
  display: inline-block;
  background: #EEF6EE;
  color: var(--escrow-green);
  border: 1px solid #B7D9B9;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}
.sidebar-mono {
  background: #222;
  color: #00FF66;
  padding: 10px;
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 11px;
  word-break: break-all;
  border-radius: 4px;
}
.btn-full {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

/* Recent News / Announcements styling for index.php */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 14px 0 8px;
}
.news-item {
  background: #FAFAFA;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  padding: 12px 14px;
}
.news-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 3px;
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
}
.news-title {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.3;
}
.news-title a {
  color: var(--text-main);
}
.news-title a:hover {
  color: var(--link-blue-hover);
}
.news-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
.news-excerpt strong {
  color: #333;
}

.btn-copy.copied {
  background-color: var(--status-green);
  color: #FFFFFF;
}

.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 25px auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  header.site-header {
    padding: 10px 15px;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-logo {
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 10px;
    border-top: 1px solid #333333;
    padding-top: 8px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
  }

  .status-badge {
    align-self: flex-start;
    font-size: 11px;
    padding: 3px 8px;
  }

  .onion-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 12px;
  }

  .onion-url-text {
    font-size: 11px;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .btn-copy, .btn-open-link {
    width: 100%;
    justify-content: center;
    flex: 1 1 100%;
  }

  .content-card {
    padding: 16px;
  }

  .chat-icon {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 24px;
    z-index: 99999;
  }

  .chat-panel {
    bottom: 74px;
    right: 14px;
    width: calc(100vw - 28px);
    height: min(380px, calc(100vh - 110px));
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .content-card {
    padding: 12px;
  }

  h1 {
    font-size: 19px;
  }

  h2 {
    font-size: 16px;
  }

  .toc-box, .key-takeaways {
    padding: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chat-icon {
    position: fixed;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: max(14px, env(safe-area-inset-right, 14px));
    width: 50px;
    height: 50px;
    font-size: 23px;
    z-index: 999999;
  }

  .chat-panel {
    bottom: max(70px, calc(env(safe-area-inset-bottom, 0px) + 70px));
    right: 12px;
    width: calc(100vw - 24px);
    height: min(360px, calc(100vh - 100px));
  }
}

.content-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

h1 {
  font-size: clamp(20px, 4.5vw, 28px);
  color: var(--header-dark);
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-orange);
  padding-bottom: 10px;
  line-height: 1.3;
}

h2 {
  font-size: clamp(17px, 3.5vw, 22px);
  color: var(--header-dark);
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.3;
}

h3 {
  font-size: clamp(15px, 3vw, 18px);
  color: #444444;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.breadcrumb li+li::before {
  content: "›";
  margin-right: 8px;
  color: var(--text-muted);
}

.toc-box {
  background-color: var(--btn-orange-bg);
  border-left: 4px solid var(--primary-orange);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 20px 0;
}

.toc-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--header-dark);
}

.toc-list {
  margin: 0;
  padding-left: 20px;
}

.toc-list li {
  margin-bottom: 5px;
}

.key-takeaways {
  background-color: #EBF3FB;
  border: 1px solid #BCE0FD;
  border-left: 4px solid var(--link-blue);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 25px 0;
}

.key-takeaways h4 {
  margin: 0 0 10px 0;
  color: #1A5380;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
  table-layout: auto;
}

@media (max-width: 768px) {
  table.data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
    white-space: normal;
  }

  table.data-table th, table.data-table td {
    padding: 8px 10px;
    min-width: 120px;
  }
}

table.data-table th, table.data-table td {
  padding: 12px 15px;
  border: 1px solid #E0E0E0;
  text-align: left;
}

table.data-table th {
  background-color: var(--header-dark);
  color: #FFFFFF;
  font-weight: 600;
}

table.data-table tr:nth-child(even) {
  background-color: #F8F8F8;
}

.pgp-block {
  background-color: #1E1E1E;
  color: #00FF66;
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
  margin: 20px 0;
}

.sidebar-card {
  background-color: var(--card-bg);
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--header-dark);
  border-bottom: 2px solid var(--primary-orange);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #EEEEEE;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

footer.site-footer {
  background-color: var(--header-dark);
  color: #BBBBBB;
  padding: 40px 20px 20px 20px;
  margin-top: 50px;
  font-size: 13px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 15px;
}

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

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

.footer-col ul li a {
  color: #BBBBBB;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333333;
  padding-top: 20px;
  text-align: center;
  color: #888888;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #E0E0E0;
  margin: 15px 0;
}

/* Flashy bottom-right chat widget */
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #F89B28 0%, #E0891A 100%);
  color: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(248, 155, 40, 0.5), 0 0 0 0 rgba(248, 155, 40, 0.4);
  border: 2px solid rgba(255,255,255,0.85);
  cursor: pointer;
  z-index: 99999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: chat-pulse 2s infinite ease-in-out;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.chat-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(248, 155, 40, 0.65);
}

@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(248, 155, 40, 0.5), 0 0 0 0 rgba(248, 155, 40, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(248, 155, 40, 0.5), 0 0 0 12px rgba(248, 155, 40, 0); }
}

.chat-panel {
  position: fixed;
  bottom: 86px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  height: 420px;
  max-height: calc(100vh - 120px);
  background: #1F1F1F;
  color: #EDEDED;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  border: 1px solid #3A3A3A;
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
  animation: chat-slide 0.18s ease-out;
}

@keyframes chat-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-header {
  background: #2A2A2A;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3A3A3A;
}

.chat-header .chat-title {
  font-weight: 700;
  color: #F89B28;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header .chat-close {
  background: transparent;
  border: none;
  color: #999;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.chat-header .chat-close:hover {
  color: #F89B28;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg.bot {
  background: #2F2F2F;
  color: #EDEDED;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg.user {
  background: #F89B28;
  color: #111;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  font-weight: 600;
}

.chat-typing {
  font-size: 12px;
  color: #888;
  padding: 2px 12px;
  align-self: flex-start;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #3A3A3A;
  background: #1A1A1A;
}

.chat-quick button {
  background: #333;
  color: #F89B28;
  border: 1px solid #4A4A4A;
  border-radius: 16px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.chat-quick button:hover {
  background: #F89B28;
  color: #111;
  border-color: #F89B28;
}

.chat-quick button:disabled {
  opacity: 0.5;
  cursor: default;
}

.chat-footer {
  padding: 6px 10px;
  font-size: 10px;
  color: #666;
  text-align: center;
  background: #181818;
  border-top: 1px solid #2A2A2A;
}

/* Extra-strong mobile overrides (after base chat rules) - force visibility */
@media (max-width: 768px) {
  .chat-icon {
    position: fixed !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 28px !important;
    bottom: 18px !important;
    right: 18px !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483647 !important;
    box-shadow: 0 10px 32px rgba(248, 155, 40, 0.9), 0 0 0 8px rgba(255,255,255,0.55) !important;
    border: 6px solid #fff !important;
    opacity: 1 !important;
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
  }
  .chat-panel {
    bottom: 86px !important;
    right: 16px !important;
    width: calc(100vw - 32px) !important;
    height: min(420px, calc(100vh - 120px)) !important;
    z-index: 2147483646 !important;
  }
}

@media (max-width: 480px) {
  .chat-icon {
    position: fixed !important;
    width: 58px !important;
    height: 58px !important;
    font-size: 27px !important;
    bottom: max(18px, env(safe-area-inset-bottom, 18px)) !important;
    right: max(18px, env(safe-area-inset-right, 18px)) !important;
    left: auto !important;
    top: auto !important;
    z-index: 2147483647 !important;
    box-shadow: 0 12px 36px rgba(248, 155, 40, 0.95), 0 0 0 9px rgba(255,255,255,0.6) !important;
    border: 6px solid #fff !important;
    opacity: 1 !important;
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
  }
  .chat-panel {
    bottom: max(84px, calc(env(safe-area-inset-bottom, 0px) + 84px)) !important;
    right: 16px !important;
    width: calc(100vw - 32px) !important;
    height: min(400px, calc(100vh - 110px)) !important;
    z-index: 2147483646 !important;
  }
  .chat-quick {
    gap: 4px;
    padding: 6px 6px;
  }
  .chat-quick button {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   Umami Stats Dashboard & Telemetry Styles
   ========================================================================== */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}

.stats-kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary-orange);
}

.stats-kpi-card.highlight {
  border-left-color: var(--status-green);
  background: #FAFCFA;
}

.stats-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stats-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--header-dark);
  line-height: 1.1;
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}

.stats-kpi-card.highlight .stats-kpi-value {
  color: var(--status-green);
}

.stats-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-green {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(71, 177, 75, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(71, 177, 75, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(71, 177, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(71, 177, 75, 0); }
}

.stats-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.stats-box {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 18px 20px;
}

.stats-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--header-dark);
  border-bottom: 2px solid var(--primary-orange);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list-item {
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-list-item:last-child {
  border-bottom: none;
}

.stats-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.stats-list-name {
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
  color: var(--text-main);
  font-weight: 600;
  word-break: break-all;
}

.stats-list-count {
  font-weight: 700;
  color: var(--header-dark);
}

.stats-bar-track {
  width: 100%;
  height: 6px;
  background: #EFEFEF;
  border-radius: 3px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-orange) 0%, #E0891A 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.stats-api-box {
  background: #1E1E1E;
  color: #00FF66;
  padding: 16px 20px;
  border-radius: 6px;
  font-family: SFMono-Regular, Consolas, "Courier New", monospace;
  font-size: 13px;
  margin: 15px 0;
  overflow-x: auto;
}

.stats-api-box code {
  color: #00FF66;
  background: transparent;
}
