/* Docs-specific styles */
.docs-container {
    max-width: 850px;
    text-align: left;
}

.docs-title {
    font-size: 2.2rem; font-weight: 900;
    text-align: center; margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #ffb3c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.docs-subtitle {
    font-size: 0.95rem; color: var(--text-muted);
    text-align: center; margin-bottom: 2rem;
    font-weight: 300; line-height: 1.5;
}

/* Table of Contents */
.docs-toc {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px; padding: 1.2rem 1.5rem;
    margin-bottom: 2.5rem;
}

.docs-toc h3 {
    font-size: 0.8rem; color: var(--text-muted);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 0.8rem; font-weight: 700;
}

.docs-toc a {
    display: block; font-size: 0.88rem;
    color: var(--primary); text-decoration: none;
    padding: 0.35rem 0; font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}

.docs-toc a:hover {
    color: #fff; padding-left: 6px;
}

/* Sections */
.docs-section {
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.docs-section h2 {
    font-size: 1.3rem; font-weight: 900;
    color: #fff; margin-bottom: 0.6rem;
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}

.section-desc {
    font-size: 0.88rem; color: var(--text-muted);
    margin-bottom: 1.5rem; line-height: 1.6;
    font-weight: 300;
}

.section-desc code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px; border-radius: 5px;
    font-size: 0.82rem; color: #ffb3c1;
}

.inline-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 26, 64, 0.3);
    transition: border-color 0.2s;
}

.inline-link:hover {
    border-color: var(--primary);
}

/* Badges */
.badge-auth {
    font-size: 0.65rem; font-weight: 700;
    background: rgba(255, 26, 64, 0.15);
    border: 1px solid rgba(255, 26, 64, 0.3);
    color: var(--primary);
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
}

.badge-public {
    font-size: 0.65rem; font-weight: 700;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: 1px; text-transform: uppercase;
}

/* Endpoints */
.api-endpoint {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px; padding: 1.2rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.3s;
}

.api-endpoint:hover {
    border-color: rgba(110, 27, 189, 0.4);
}

.endpoint-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 0.6rem;
}

.method {
    font-size: 0.7rem; font-weight: 900;
    padding: 3px 10px; border-radius: 6px;
    letter-spacing: 1px; font-family: monospace;
}

.method.get {
    background: rgba(0, 200, 120, 0.15);
    color: #00c878;
    border: 1px solid rgba(0, 200, 120, 0.3);
}

.method.post {
    background: rgba(60, 140, 255, 0.15);
    color: #3c8cff;
    border: 1px solid rgba(60, 140, 255, 0.3);
}

.endpoint-url {
    font-size: 0.85rem; color: #fff;
    font-family: monospace; font-weight: 500;
}

.endpoint-desc {
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 0.7rem; font-weight: 300;
}

.api-endpoint pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.7rem 1rem; border-radius: 8px;
    overflow-x: auto; margin-bottom: 0.6rem;
    font-size: 0.76rem; color: #ffb3c1;
    font-family: monospace; border: 1px solid rgba(255,255,255,0.04);
    white-space: pre-wrap; word-break: break-all;
    line-height: 1.6;
}

.response-block { margin-top: 0.4rem; }

.response-label {
    font-size: 0.72rem; color: var(--secondary);
    font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 0.3rem;
}

.response-block pre {
    color: rgba(255, 210, 30, 0.8);
}

/* Notes */
.api-notes {
    background: rgba(110, 27, 189, 0.08);
    border: 1px solid rgba(110, 27, 189, 0.2);
    border-radius: 12px; padding: 1.2rem;
    margin-top: 0.8rem;
}

.api-notes h3 {
    font-size: 0.82rem; color: var(--secondary);
    font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 0.6rem;
}

.api-notes pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1rem; border-radius: 8px;
    overflow-x: auto; font-size: 0.76rem;
    color: #ffb3c1; font-family: monospace;
    border: 1px solid rgba(255,255,255,0.04);
    white-space: pre-wrap; line-height: 1.6;
}

.api-notes ul {
    list-style: none; padding: 0;
}

.api-notes li {
    font-size: 0.8rem; color: var(--text-muted);
    padding: 0.3rem 0; padding-left: 1rem;
    position: relative; line-height: 1.5;
}

.api-notes li::before {
    content: "\203A";
    position: absolute; left: 0;
    color: var(--secondary); font-weight: 700;
}

.api-notes code {
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 6px; border-radius: 4px;
    font-size: 0.75rem; color: #ffb3c1;
}

/* Active nav link */
.nav-link.active {
    color: #fff;
}

@media (max-width: 600px) {
    .docs-container { padding: 2rem 1.2rem; }
    .docs-title { font-size: 1.6rem; }
    .docs-section h2 { font-size: 1.1rem; flex-direction: column; align-items: flex-start; }
}
/* --- Docs modernization add-ons --- */

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: grid;
  gap: 0.75rem;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  font-size: 0.95rem;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255, 26, 64, 0.18);
  color: #ffb3ac;
  border: 1px solid rgba(255, 26, 64, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.pricing-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 20px 40px -24px rgba(255, 26, 64, 0.45);
}
.pricing-featured {
  border-color: rgba(255, 26, 64, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 26, 64, 0.1), rgba(255,255,255,0.02) 60%);
  box-shadow: 0 0 0 1px rgba(255, 26, 64, 0.25);
}
.pricing-badge {
  position: absolute;
  top: -10px; left: 1rem;
  background: #ff1a40;
  color: #05060a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.pricing-name {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #c7ccd6;
}
.pricing-price {
  margin-top: 0.35rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f6f7fb;
}
.pricing-credits {
  font-size: 0.85rem;
  color: #c7ccd6;
  margin-bottom: 0.75rem;
}
.pricing-note {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.7rem;
  color: #ff6a5e;
  font-weight: 600;
}
.pricing-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #c7ccd6;
}
.pricing-bullets li {
  position: relative;
  padding-left: 1rem;
}
.pricing-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: #ff1a40;
}
