.dpb-wrapper {
    max-width: 520px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.dpb-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(34,197,94,0.10), transparent 55%),
                radial-gradient(circle at bottom right, rgba(250,204,21,0.14), transparent 55%),
                #020617;
    border-radius: 18px;
    padding: 1.4rem 1.5rem 1.35rem;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15,23,42,0.55);
}

.dpb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(148,163,184,0.35);
    pointer-events: none;
}

/* Header */

.dpb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dpb-heading {
    max-width: 75%;
}

.dpb-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(34,197,94,0.5);
    font-size: 0.7rem;
    font-weight: 500;
    color: #bbf7d0;
}

.dpb-title {
    margin: 0.45rem 0 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f9fafb;
}

.dpb-subtitle {
    margin: 0;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Lang toggle */

.dpb-lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(15,23,42,0.9);
    border-radius: 999px;
    padding: 2px;
    border: 1px solid rgba(51,65,85,0.9);
}

.dpb-lang-btn {
    border: none;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s ease-in-out;
}

.dpb-lang-btn.dpb-active {
    background: linear-gradient(135deg, #22c55e, #a3e635);
    color: #020617;
    box-shadow: 0 8px 18px rgba(34,197,94,0.6);
}

/* Body & steps */

.dpb-body {
    font-size: 0.84rem;
}

.dpb-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.dpb-step {
    display: flex;
    gap: 0.55rem;
}

.dpb-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #facc15, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #020617;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(250,204,21,0.55);
}

.dpb-step-text h4 {
    margin: 0 0 0.05rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #e5e7eb;
}

.dpb-step-text p {
    margin: 0;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Methods */

.dpb-methods {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(15,23,42,0.95));
    border: 1px solid rgba(55,65,81,0.9);
    padding: 0.75rem 0.8rem 0.6rem;
    margin-bottom: 0.75rem;
}

.dpb-section + .dpb-section {
    border-top: 1px solid rgba(31,41,55,0.9);
    margin-top: 0.55rem;
    padding-top: 0.55rem;
}

.dpb-section h5 {
    margin: 0 0 0.12rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
}

.dpb-small {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    color: #9ca3af;
}

.dpb-copy-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.dpb-label {
    font-size: 0.74rem;
    font-weight: 500;
    color: #9ca3af;
    min-width: 56px;
}

.dpb-code {
    background: #020617;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.74rem;
    color: #e5e7eb;
    border: 1px solid rgba(55,65,81,0.95);
    word-break: break-all;
}

.dpb-copy-btn {
    border-radius: 999px;
    border: 1px solid rgba(34,197,94,0.7);
    background: rgba(22,163,74,0.12);
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bbf7d0;
    font-weight: 600;
    transition: all 0.12s ease-in-out;
}

.dpb-copy-btn:hover {
    background: rgba(34,197,94,0.2);
}

.dpb-copy-btn.dpb-copied {
    background: linear-gradient(135deg, #22c55e, #a3e635);
    color: #020617;
}

/* Footnote */

.dpb-footnote {
    margin: 0;
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: left;
}

/* Responsive */

@media (max-width: 480px) {
    .dpb-card {
        padding: 1.2rem 1.05rem 1.15rem;
    }
    .dpb-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dpb-heading {
        max-width: 100%;
    }
}
