/* ─── Badge system (one source of truth) ─── */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: var(--radius-full);
}

.badge .icon {
    flex-shrink: 0;
    opacity: 0.95;
}

/* Hero */
.badge--hero {
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.08);
}

.badge--hero .icon {
    width: 14px;
    height: 14px;
}

/* Section labels (landing) */
.badge--section {
    padding: 6px 14px;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.06);
}

.badge--section .icon {
    width: 13px;
    height: 13px;
}

/* Step pages */
.badge-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.badge--step {
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.08);
    max-width: 100%;
    line-height: 1.5;
}

.badge--step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: var(--gold-gradient);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 800;
}

.badge--step .icon {
    width: 14px;
    height: 14px;
}

/* Tags (hero card, chips) */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
}

.tag .icon {
    width: 11px;
    height: 11px;
}

.tag--success {
    background: rgba(74, 222, 128, 0.08);
    color: var(--success);
    border-color: rgba(74, 222, 128, 0.22);
}

.tag--muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Status badges (dashboard) */
.badge--status {
    padding: 5px 12px;
    font-size: 0.76rem;
    border-radius: var(--radius-full);
}

.badge--status.is-pending  { background: rgba(242, 201, 76, 0.1); color: #f2c94c; border: 1px solid rgba(242, 201, 76, 0.22); }
.badge--status.is-active   { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.2); }
.badge--status.is-success  { background: rgba(39, 174, 96, 0.1); color: #27ae60; border: 1px solid rgba(39, 174, 96, 0.22); }
.badge--status.is-error    { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.22); }

@media (max-width: 768px) {
    .badge--hero,
    .badge--step {
        font-size: 0.76rem;
        padding: 7px 12px;
        white-space: normal;
        text-align: center;
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }

    .badge--step-num {
        min-width: 18px;
        height: 18px;
        font-size: 0.66rem;
    }
}
