@media (min-width: 992px) {
  .logo-center-desktop { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar .container { position: relative; }
}

body { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; }

.skeleton-nav { display: flex; gap: 8px; align-items: center; }
.skeleton-nav .sk-btn {
  height: 36px; border-radius: 8px;
  background: linear-gradient(90deg, #d4d4d4 25%, #ebebeb 50%, #d4d4d4 75%);
  background-size: 200% 100%; animation: sk-shimmer 1.2s infinite;
}
.skeleton-nav .sk-btn:first-child { width: 130px; }
.skeleton-nav .sk-btn:last-child  { width: 90px; }
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Hero ---------- */
.docs-hero {
  background: linear-gradient(160deg, #063601 0%, #0d5c07 55%, #16a34a 100%);
  padding: 9rem 0 4.5rem;
  color: #fff;
}
.docs-hero h1 { color: #fff; font-weight: 700; }
.docs-hero p  { color: rgba(255,255,255,.82); }

.docs-search {
  position: relative;
  max-width: 560px;
  margin: 1.75rem auto 0;
}
.docs-search input {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px 14px 48px;
  font-size: .95rem;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  outline: none;
}
.docs-search input::placeholder { color: #9aa0a6; }
.docs-search .docs-search-icon {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.docs-wrap { padding: 3rem 0 4rem; }

.docs-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: .5rem;
}
.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: #d7dbd8; border-radius: 5px; }

.docs-sidebar .docs-side-title {
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8a938c;
  font-weight: 700;
  margin: 0 0 .75rem .9rem;
}
.docs-sidebar a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 9px 14px;
  border-radius: 10px;
  color: #495b4f;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.docs-sidebar a i { font-size: 1rem; opacity: .7; width: 18px; text-align: center; }
.docs-sidebar a:hover { background-color: #eef7f1; color: #16a34a; }
.docs-sidebar a.active {
  background-color: #16a34a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,163,74,.28);
}
.docs-sidebar a.active i { opacity: 1; }

/* ---------- Sections ---------- */
.docs-section { scroll-margin-top: 110px; margin-bottom: 3.25rem; }
.docs-section > h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #10281a;
  margin-bottom: .35rem;
}
.docs-section > .docs-lead {
  color: #66756c;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.docs-card {
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
}
.docs-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #10281a;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.docs-card h3 i { color: #16a34a; }
.docs-card p, .docs-card li { font-size: .9rem; color: #4c5a52; line-height: 1.65; }
.docs-card p:last-child, .docs-card ul:last-child { margin-bottom: 0; }
.docs-card ul { padding-left: 1.15rem; margin-bottom: .75rem; }
.docs-card ul li { margin-bottom: .35rem; }
.docs-card a { color: #16a34a; font-weight: 600; text-decoration: none; }
.docs-card a:hover { text-decoration: underline; }
.docs-card code {
  background: #eef7f1;
  color: #12703c;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
}

/* ---------- Steps ---------- */
.docs-steps { list-style: none; padding: 0; margin: 0; counter-reset: docstep; }
.docs-steps > li {
  position: relative;
  padding-left: 3.1rem;
  padding-bottom: 1.5rem;
  counter-increment: docstep;
}
.docs-steps > li::before {
  content: counter(docstep);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.docs-steps > li::after {
  content: '';
  position: absolute;
  left: 15.5px; top: 36px; bottom: 4px;
  width: 2px;
  background: #dfeee6;
}
.docs-steps > li:last-child { padding-bottom: 0; }
.docs-steps > li:last-child::after { display: none; }
.docs-steps h4 {
  font-size: .98rem;
  font-weight: 700;
  color: #10281a;
  margin-bottom: .3rem;
}
.docs-steps p, .docs-steps li { font-size: .89rem; color: #4c5a52; line-height: 1.6; }

/* ---------- Callouts ---------- */
.docs-note {
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: flex;
  gap: .75rem;
}
.docs-note i { font-size: 1.05rem; margin-top: 2px; }
.docs-note.info    { background: #eef7f1; color: #17563a; border-left: 4px solid #16a34a; }
.docs-note.warn    { background: #fff8e6; color: #6b4e00; border-left: 4px solid #f0ad00; }
.docs-note.danger  { background: #fdeeee; color: #7a2020; border-left: 4px solid #dc3545; }

/* ---------- Table ---------- */
.docs-table-wrap { overflow-x: auto; }
.docs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; min-width: 460px; }
.docs-table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a938c;
  font-weight: 700;
  padding: 0 .9rem .6rem;
  border-bottom: 1px solid #e6ebe8;
}
.docs-table td {
  padding: .8rem .9rem;
  color: #4c5a52;
  border-bottom: 1px solid #f0f3f1;
  vertical-align: top;
}
.docs-table tr:last-child td { border-bottom: none; }

.docs-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.docs-pill.green  { background: #e3f5ea; color: #12703c; }
.docs-pill.amber  { background: #fdf2d8; color: #7a5a00; }
.docs-pill.red    { background: #fbe3e3; color: #8c2323; }
.docs-pill.grey   { background: #edf0ee; color: #5b665f; }

/* ---------- Price ---------- */
.docs-price {
  background: linear-gradient(135deg, #063601 0%, #16a34a 100%);
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(6,54,1,.22);
}
.docs-price .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.docs-price .period { font-size: 1rem; opacity: .85; font-weight: 600; }
.docs-price .caption { font-size: .85rem; opacity: .8; margin-top: .35rem; margin-bottom: 0; }

/* ---------- Help footer card ---------- */
.docs-help {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 2rem;
  text-align: center;
}
.docs-help h3 { font-size: 1.2rem; font-weight: 700; color: #10281a; }
.docs-help p  { font-size: .9rem; color: #66756c; }

.docs-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: #8a938c;
}
.docs-empty i { font-size: 2.2rem; display: block; margin-bottom: .75rem; opacity: .5; }

@media (max-width: 991.98px) {
  .docs-hero { padding: 7.5rem 0 3rem; }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 2rem;
    padding-right: 0;
  }
  .docs-sidebar-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: 1rem;
  }
}
