/* ============================================================================
   API clients & keys — Page styles (v2.8)
   SECTION 1: CENTERED OVERLAY FLOW HERO (Clean, fixed)
   - Strict orthogonal routing; faded wires beneath centered text
   - Light tooltip message boxes; no overlap on desktop or mobile
   - No interactive wire features
   ============================================================================ */

/* Shell */
.qc-api-main {
    background: radial-gradient(1200px 900px at 90% -20%, rgba(34,211,238,.10), transparent 60%), radial-gradient(1000px 700px at 15% -20%, rgba(167,139,250,.10), transparent 60%), #0b1022;
    color: #e7eaf3;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Hero shells */
.qc-hero-shell {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 16px 24px;
}

/* Overlay text centered above flow */
.qc-hero-overlay {
    position: relative;
    z-index: 3; /* above wires and nodes */
    text-align: center;
    padding-top: 24px;
}

.qc-hero-kicker {
    color: #9fb2c7;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: .82rem;
    margin-bottom: 8px;
}

.qc-hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 6.6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qc-hero-sub {
    max-width: 880px;
    margin: 14px auto 0;
    color: #c0cedd;
    font-size: 1.08rem;
}

.qc-hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.qc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.32);
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

    .qc-btn.primary {
        background: linear-gradient(135deg, #A78BFA, #22D3EE);
        color: #0b1022;
        border: 0;
        box-shadow: 0 16px 34px rgba(99,102,241,.35);
    }

    .qc-btn.ghost {
        background: rgba(255,255,255,.06);
        color: #eaf1ff;
    }

    .qc-btn:hover {
        transform: translateY(-1px);
    }

/* Flow area below overlay (wires under text) */
.qc-flow-wrap {
    position: relative;
    margin-top: 10px;
}

.qc-flow-bg {
    position: relative;
    min-height: 840px;
}

.qc-flow-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), repeating-linear-gradient(to right, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 64px);
    opacity: .07;
    pointer-events: none;
}

/* Wires (SVG) beneath overlay */
.qc-flow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.28));
    z-index: 1; /* under text and nodes */
}

.qc-wire {
    fill: none;
    stroke: rgba(207,227,255,.22);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 16;
    animation: qcDash 8s linear infinite;
}

.qc-wire-strong {
    fill: none;
    stroke: rgba(207,227,255,.28);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 10 18;
    animation: qcDash 9s linear infinite;
}

.qc-bus {
    fill: none;
    stroke: rgba(207,227,255,.26);
    stroke-width: 2.6;
    stroke-linecap: round;
    opacity: .70;
}

@keyframes qcDash {
    from {
        stroke-dashoffset: 0
    }

    to {
        stroke-dashoffset: -180
    }
}

.qc-junction {
    fill: #EF4444;
    stroke: rgba(255,255,255,.5);
    stroke-width: 1;
    opacity: .95;
}

.qc-hub-circle {
    fill: rgba(255,255,255,.08);
    stroke: rgba(148,163,184,.38);
    stroke-width: 2;
}

.qc-hub-text {
    font-weight: 900;
    font-size: 16px;
    fill: #cfe3ff;
}

/* Nodes above wires */
.qc-flow-layer {
    position: absolute;
    inset: 0;
    z-index: 2; /* above wires, under overlay text */
    pointer-events: none;
}

/* Avatar + light tooltip message box (GitHub-like) */
.qc-partner {
    position: absolute;
    transform: translate(-50%, -50%);
    display: grid;
    gap: 8px;
    align-items: start;
}

.qc-flow-avatar {
    justify-self: center;
    display: grid;
    place-items: center;
}

    .qc-flow-avatar img {
        width: 78px;
        height: 78px;
        border-radius: 999px;
        object-fit: cover;
        box-shadow: 0 12px 24px rgba(0,0,0,.40);
        outline: 4px solid rgba(255,255,255,.10);
    }

.qc-msg-box {
    pointer-events: auto;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(148,163,184,.28);
    box-shadow: 0 10px 22px rgba(0,0,0,.26);
    padding: 10px 12px;
    min-width: 320px;
    max-width: 420px;
}

.qc-msg-title {
    font-weight: 800;
    color: #f0f6ff;
}

.qc-msg-meta {
    margin-top: 4px;
    font-size: .85rem;
    color: #9fb2c7;
}

/* ---------- Mobile layout ---------- */
.qc-api-hero--mobile {
    display: none;
}

.qc-hero-overlay--mobile {
    padding-top: 14px;
}

.qc-mobile-block {
    position: relative;
    z-index: 2;
    padding: 8px 8px 16px;
}

.qc-mobile-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 8px;
}

.qc-mobile-partner {
    display: grid;
    gap: 8px;
    align-items: start;
    max-width: 320px;
}

.qc-mobile-hub {
    display: grid;
    place-items: center;
    padding: 6px 0 10px;
}

.qc-mobile-hub-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(148,163,184,.40);
    color: #cfe3ff;
    font-weight: 900;
    font-size: .9rem;
}

.qc-mobile-wires {
    display: grid;
    gap: 6px;
    place-items: center;
    margin-top: 6px;
}

    .qc-mobile-wires .wire {
        width: 2px;
        height: 58px;
        background: rgba(207,227,255,.22);
    }

        .qc-mobile-wires .wire.tl, .qc-mobile-wires .wire.tr,
        .qc-mobile-wires .wire.bl, .qc-mobile-wires .wire.br {
        }

/* Mobile CTA */
.qc-hero-cta--mobile {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width:1280px) {
    .qc-hero-shell {
        max-width: 1200px;
    }

    .qc-msg-box {
        min-width: 300px;
    }
}

@media (max-width:980px) {
    .qc-hero-shell {
        max-width: 960px;
        padding: 20px 12px;
    }

    .qc-flow-bg {
        min-height: 900px;
    }

    .qc-flow-avatar img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width:640px) {
    .qc-api-hero--desktop {
        display: none;
    }

    .qc-api-hero--mobile {
        display: block;
    }

    .qc-hero-shell {
        max-width: 460px;
        padding: 18px 10px;
    }

    .qc-msg-box {
        min-width: unset;
        max-width: 100%;
    }

    .qc-flow-avatar img {
        width: 66px;
        height: 66px;
    }
}






















/* ============================================================================
   SECTION 2 — API usage and sample requests (v2.9)
   Fixes + Enhancements:
   - Mobile overflow fixed: all rows/cols are fully contained; no sideways scroll.
   - Code blocks wrap gently with soft scroll when needed.
   - Glowing purple scrollbars (horizontal + vertical) for section and code.
   - Elegant/fantasy accents: subtle aurora gradient, dotted dividers, card halos.
   - Strict responsive grid: never spills outside container.
   ============================================================================ */

/* --- Container & header --- */
.qc-api-sec2 {
    margin: 36px auto 42px;
    padding: 0 16px;
    /* Soft aurora glow behind the section */
    background: radial-gradient(500px 360px at 20% 0%, rgba(167,139,250,.08), transparent 60%), radial-gradient(500px 360px at 80% 0%, rgba(34,211,238,.08), transparent 60%);
}

.qc-sec2-shell {
    max-width: 1180px; /* tightened to avoid edge overflow on mobile */
    margin: 0 auto;
    /* Ensure children never exceed shell width */
    overflow: hidden;
}

/* --- Header --- */
.qc-sec2-head {
    text-align: center;
    margin-bottom: 18px;
}

.qc-sec2-title {
    margin: 0;
    font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qc-sec2-sub {
    max-width: 860px;
    margin: 10px auto 0;
    color: #93a4b5;
}

/* --- Fantasy dotted divider after header --- */
.qc-api-sec2 .qc-sec2-head::after {
    content: "";
    display: block;
    width: 140px;
    height: 8px;
    margin: 12px auto 0;
    background: repeating-linear-gradient(90deg, rgba(167,139,250,.6) 0 10px, transparent 10px 18px);
    border-radius: 999px;
    opacity: .65;
}

/* --- Two-card intro grid (never overflow) --- */
.qc-sec2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0 10px;
}

.qc-sec2-card {
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(17,26,47,.78);
    box-shadow: 0 16px 42px rgba(0,0,0,.45), 0 0 0 6px rgba(167,139,250,.06); /* halo */
    padding: 14px;
    min-width: 0; /* allow internal wrapping */
}

.qc-sec2-h3 {
    margin: 0 0 8px;
    font-weight: 900;
}

.qc-sec2-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.qc-sec2-note {
    margin-top: 8px;
    color: #9fb2c7;
    font-size: .95rem;
}

/* --- Blocks --- */
.qc-sec2-block {
    margin-top: 28px;
}

/* --- Rows & Cols (containment + no overflow) --- */
.qc-sec2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
    margin-top: 14px;
    /* Prevent any child from exceeding row width */
    overflow: hidden;
}

.qc-sec2-col {
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(17,26,47,.78);
    box-shadow: 0 16px 42px rgba(0,0,0,.45), 0 0 0 6px rgba(34,211,238,.05); /* halo */
    padding: 14px;
    min-width: 0; /* Crucial for flex/grid children to wrap */
}

/* --- Labels --- */
.qc-sec2-label {
    font-weight: 800;
    margin-bottom: 8px;
}

/* --- Code blocks (wrap + soft scroll) --- */
.qc-sec2-code {
    position: relative;
    margin: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(148,163,184,.24);
    padding: 12px;
    color: #e7eaf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    /* Allow internal scroll without breaking parent layout */
    max-width: 100%;
    overflow: auto;
    /* Keep long words from forcing horizontal overflow of the column */
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

    .qc-sec2-code code {
        white-space: pre;
        word-wrap: normal;
    }

.qc-url {
    color: #9cc7ff;
}

/* --- Copy buttons --- */
.qc-sec2-copy {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.06);
    color: #eaf1ff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

    .qc-sec2-copy:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(167,139,250,.22);
    }

/* --- Sub-section cards --- */
.qc-sec2-h4 {
    margin: 0 0 8px;
    font-weight: 900;
}

.qc-sec2-p {
    margin: 0;
    color: #cfe3ff;
}

/* --- Fancy corner accents (subtle) --- */
.qc-sec2-card::before, .qc-sec2-col::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(167,139,250,.9), rgba(167,139,250,0));
    top: 8px;
    left: 8px;
    filter: blur(1px);
    opacity: .5;
}

.qc-sec2-card::after, .qc-sec2-col::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,211,238,.9), rgba(34,211,238,0));
    bottom: 8px;
    right: 8px;
    filter: blur(1px);
    opacity: .5;
}

/* --- Glowing purple scrollbars (section + code blocks) --- */
/* WebKit/Blink */
.qc-api-sec2, .qc-sec2-code {
    scrollbar-width: thin;
}

    .qc-api-sec2::-webkit-scrollbar,
    .qc-sec2-code::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    .qc-api-sec2::-webkit-scrollbar-track,
    .qc-sec2-code::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
        border-radius: 12px;
    }

    .qc-api-sec2::-webkit-scrollbar-thumb,
    .qc-sec2-code::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #A78BFA, #7C3AED);
        border-radius: 12px;
        box-shadow: inset 0 0 6px rgba(255,255,255,.18);
    }

        .qc-api-sec2::-webkit-scrollbar-thumb:hover,
        .qc-sec2-code::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #C4B5FD, #8B5CF6);
        }

/* Firefox */
.qc-api-sec2 {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

.qc-sec2-code {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

/* --- Responsive --- */
@media (max-width: 980px) {
    .qc-sec2-shell {
        max-width: 860px;
    }

    .qc-sec2-grid {
        grid-template-columns: 1fr;
    }

    .qc-sec2-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .qc-sec2-shell {
        max-width: 560px;
    }

    .qc-sec2-code {
        font-size: .92rem;
    }
    /* Extra padding to avoid edge clipping */
    .qc-sec2-col, .qc-sec2-card {
        padding: 12px;
    }
}





























/* ============================================================================
   SECTION 3 — Security, limits, and client management (v2.9)
   - Self-contained styles with qc-api-sec3-* prefix
   - Elegant dark cards, fantasy accent lines, fully responsive
   ============================================================================ */

.qc-api-sec3 {
    margin: 42px auto 48px;
    padding: 0 16px;
    background: radial-gradient(520px 380px at 10% 0%, rgba(167,139,250,.08), transparent 60%), radial-gradient(520px 380px at 90% 0%, rgba(34,211,238,.08), transparent 60%);
}

.qc-sec3-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.qc-sec3-head {
    text-align: center;
    margin-bottom: 18px;
}

.qc-sec3-title {
    margin: 0;
    font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qc-sec3-sub {
    max-width: 860px;
    margin: 10px auto 0;
    color: #93a4b5;
}

/* Fantasy divider */
.qc-api-sec3 .qc-sec3-head::after {
    content: "";
    display: block;
    width: 160px;
    height: 8px;
    margin: 12px auto 0;
    background: repeating-linear-gradient(90deg, rgba(34,211,238,.6) 0 10px, transparent 10px 18px);
    border-radius: 999px;
    opacity: .65;
}

.qc-sec3-block {
    margin-top: 28px;
}

/* Grid */
.qc-sec3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.qc-sec3-card {
    position: relative;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(17,26,47,.78);
    box-shadow: 0 16px 42px rgba(0,0,0,.45), 0 0 0 6px rgba(167,139,250,.06); /* halo */
    padding: 14px;
    min-width: 0; /* containment */
}

.qc-sec3-h3 {
    margin: 0 0 8px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-sec3-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.qc-sec3-note {
    margin-top: 8px;
    color: #9fb2c7;
    font-size: .95rem;
}

/* KV band */
.qc-sec3-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

    .qc-sec3-kv > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        border: 1px dashed rgba(148,163,184,.28);
        border-radius: 12px;
    }

    .qc-sec3-kv span {
        color: #9fb2c7;
    }

    .qc-sec3-kv strong {
        color: #e7eaf3;
    }

/* Subhead in block */
.qc-sec3-sub2 {
    color: #9fb2c7;
    margin: 6px 0 0 2px;
}

/* Code blocks & copy */
.qc-sec3-h4 {
    margin: 0 0 8px;
    font-weight: 900;
}

.qc-sec3-code {
    position: relative;
    margin: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(148,163,184,.24);
    padding: 12px;
    color: #e7eaf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    max-width: 100%;
    overflow: auto;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qc-sec3-copy {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.06);
    color: #eaf1ff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

    .qc-sec3-copy:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(167,139,250,.22);
    }

/* Subtle corner glow accents */
.qc-sec3-card::before, .qc-sec3-code::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(167,139,250,.9), rgba(167,139,250,0));
    top: 8px;
    left: 8px;
    filter: blur(1px);
    opacity: .5;
}

.qc-sec3-card::after, .qc-sec3-code::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,211,238,.9), rgba(34,211,238,0));
    bottom: 8px;
    right: 8px;
    filter: blur(1px);
    opacity: .5;
}

/* Glowing purple scrollbars (section 3 + code) */
.qc-api-sec3, .qc-sec3-code {
    scrollbar-width: thin;
}

    .qc-api-sec3::-webkit-scrollbar, .qc-sec3-code::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    .qc-api-sec3::-webkit-scrollbar-track, .qc-sec3-code::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
        border-radius: 12px;
    }

    .qc-api-sec3::-webkit-scrollbar-thumb, .qc-sec3-code::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #A78BFA, #7C3AED);
        border-radius: 12px;
        box-shadow: inset 0 0 6px rgba(255,255,255,.18);
    }

        .qc-api-sec3::-webkit-scrollbar-thumb:hover, .qc-sec3-code::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #C4B5FD, #8B5CF6);
        }

.qc-api-sec3 {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

.qc-sec3-code {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 980px) {
    .qc-sec3-shell {
        max-width: 860px;
    }

    .qc-sec3-grid {
        grid-template-columns: 1fr;
    }

    .qc-sec3-kv {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .qc-sec3-shell {
        max-width: 560px;
    }

    .qc-sec3-code {
        font-size: .92rem;
    }

    .qc-sec3-card {
        padding: 12px;
    }
}



































/* ============================================================================
   SECTION 4 — SDKs, patterns, and FAQ (v3.0)
   - Self-contained styles with qc-api-sec4-* prefix
   - Elegant dark cards, fantasy accent halos, responsive grids
   ============================================================================ */

.qc-api-sec4 {
    margin: 46px auto 52px;
    padding: 0 16px;
    background: radial-gradient(540px 380px at 12% 0%, rgba(167,139,250,.08), transparent 60%), radial-gradient(540px 380px at 88% 0%, rgba(34,211,238,.08), transparent 60%);
}

.qc-sec4-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.qc-sec4-head {
    text-align: center;
    margin-bottom: 18px;
}

.qc-sec4-title {
    margin: 0;
    font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qc-sec4-sub {
    max-width: 860px;
    margin: 10px auto 0;
    color: #93a4b5;
}

/* Divider */
.qc-api-sec4 .qc-sec4-head::after {
    content: "";
    display: block;
    width: 160px;
    height: 8px;
    margin: 12px auto 0;
    background: repeating-linear-gradient(90deg, rgba(167,139,250,.6) 0 10px, transparent 10px 18px);
    border-radius: 999px;
    opacity: .65;
}

.qc-sec4-block {
    margin-top: 28px;
}

/* Grid */
.qc-sec4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.qc-sec4-card {
    position: relative;
    border: 1px solid rgba(148,163,184,.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), transparent), rgba(17,26,47,.78);
    box-shadow: 0 16px 42px rgba(0,0,0,.45), 0 0 0 6px rgba(34,211,238,.05);
    padding: 14px;
    min-width: 0;
}

.qc-sec4-h3 {
    margin: 0 0 8px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qc-sec4-h4 {
    margin: 0 0 8px;
    font-weight: 900;
}

.qc-sec4-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.qc-sec4-p {
    margin: 0;
    color: #cfe3ff;
}

/* Code blocks + copy */
.qc-sec4-code {
    position: relative;
    margin: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(148,163,184,.24);
    padding: 12px;
    color: #e7eaf3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    max-width: 100%;
    overflow: auto;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.qc-sec4-copy {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.28);
    background: rgba(255,255,255,.06);
    color: #eaf1ff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

    .qc-sec4-copy:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(167,139,250,.22);
    }

/* Corner glow accents */
.qc-sec4-card::before, .qc-sec4-code::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(167,139,250,.9), rgba(167,139,250,0));
    top: 8px;
    left: 8px;
    filter: blur(1px);
    opacity: .5;
}

.qc-sec4-card::after, .qc-sec4-code::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,211,238,.9), rgba(34,211,238,0));
    bottom: 8px;
    right: 8px;
    filter: blur(1px);
    opacity: .5;
}

/* Glowing purple scrollbars (section 4 + code) */
.qc-api-sec4, .qc-sec4-code {
    scrollbar-width: thin;
}

    .qc-api-sec4::-webkit-scrollbar, .qc-sec4-code::-webkit-scrollbar {
        height: 10px;
        width: 10px;
    }

    .qc-api-sec4::-webkit-scrollbar-track, .qc-sec4-code::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
        border-radius: 12px;
    }

    .qc-api-sec4::-webkit-scrollbar-thumb, .qc-sec4-code::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #A78BFA, #7C3AED);
        border-radius: 12px;
        box-shadow: inset 0 0 6px rgba(255,255,255,.18);
    }

        .qc-api-sec4::-webkit-scrollbar-thumb:hover, .qc-sec4-code::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #C4B5FD, #8B5CF6);
        }

.qc-api-sec4 {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

.qc-sec4-code {
    scrollbar-color: #8B5CF6 rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 980px) {
    .qc-sec4-shell {
        max-width: 860px;
    }

    .qc-sec4-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .qc-sec4-shell {
        max-width: 560px;
    }

    .qc-sec4-code {
        font-size: .92rem;
    }

    .qc-sec4-card {
        padding: 12px;
    }
}