:root {
    --bm-primary: #882528;
    --bm-primary-dark: #651a1c;
    --bm-secondary: #f08519;
    --bm-secondary-light: #fff4e8;
    --bm-soft: #fff8f2;
    --bm-border: #eee4dc;
    --bm-text: #252525;
    --bm-muted: #6f7278;
    --bm-white: #ffffff;
    --bm-success: #25a959;
    --bm-success-dark: #1f8f4b;
}

/* =========================================================
   SUCCESS HERO
   ========================================================= */

.success-hero {
    padding: 42px 0 26px;
    background:
        radial-gradient(
            circle at top right,
            rgba(240, 133, 25, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffaf6 100%
        );
}

.success-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 24px;
    background: var(--bm-white);
    box-shadow: 0 20px 55px rgba(55, 31, 21, 0.1);
}

.success-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    color: var(--bm-white);
    font-size: 28px;
}

.success-hero-card.is-success .success-hero-icon {
    background: linear-gradient(
        135deg,
        #2fb66d,
        #238f55
    );
    box-shadow: 0 14px 28px rgba(47, 182, 109, 0.2);
}

.success-hero-card.is-error .success-hero-icon {
    background: linear-gradient(
        135deg,
        var(--bm-primary),
        var(--bm-primary-dark)
    );
    box-shadow: 0 14px 28px rgba(136, 37, 40, 0.2);
}

.success-hero-content {
    min-width: 0;
}

.success-hero-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--bm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.success-hero-content h1 {
    margin: 0 0 10px;
    color: var(--bm-primary);
    font-size: clamp(27px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.success-hero-content p {
    max-width: 760px;
    margin: 0;
    color: var(--bm-muted);
    font-size: 16px;
    line-height: 1.7;
}

.success-hero-status {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--bm-soft);
    text-align: left;
}

.success-hero-status span,
.success-hero-status strong,
.success-hero-status small {
    display: block;
}

.success-hero-status span {
    margin-bottom: 5px;
    color: var(--bm-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.success-hero-status strong {
    margin-bottom: 4px;
    color: var(--bm-primary);
    font-size: 16px;
}

.success-hero-status small {
    color: var(--bm-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   PAGE WRAPPER
   ========================================================= */

.success-page {
    padding: 50px 0 80px;
    background: #f8f9fb;
}

/* =========================================================
   SHARED CARDS
   ========================================================= */

.credential-card,
.registration-summary-card,
.next-step-card {
    overflow: hidden;
    border: 1px solid rgba(136, 37, 40, 0.1);
    border-radius: 24px;
    background: var(--bm-white);
    box-shadow: 0 18px 50px rgba(55, 31, 21, 0.08);
}

.credential-card,
.registration-summary-card {
    padding: 30px;
}

.credential-header span,
.summary-header span,
.next-step-content > span {
    color: var(--bm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.credential-header h2,
.summary-header h2,
.next-step-content h2 {
    margin: 8px 0 6px;
    color: var(--bm-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.credential-header p,
.next-step-content p {
    margin: 0;
    color: var(--bm-muted);
    line-height: 1.7;
}

/* =========================================================
   CREDENTIALS
   ========================================================= */

.credential-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.credential-item {
    position: relative;
    padding: 22px;
    border: 1px solid var(--bm-border);
    border-radius: 18px;
    background: #fffaf6;
}

.credential-item small,
.credential-item strong {
    display: block;
}

.credential-item small {
    color: var(--bm-muted);
    font-size: 12px;
}

.credential-item strong {
    margin-top: 8px;
    padding-right: 72px;
    color: var(--bm-primary);
    font-size: 24px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.copy-button {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 6px;
    border: 0;
    background: transparent;
    color: var(--bm-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.copy-button:hover,
.copy-button:focus {
    color: var(--bm-primary);
}

.credential-warning {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: var(--bm-secondary-light);
    color: #6a4a27;
}

.credential-warning > i {
    margin-top: 3px;
    color: var(--bm-secondary);
}

/* =========================================================
   REGISTRATION SUMMARY
   ========================================================= */

.summary-list {
    margin-top: 20px;
}

.summary-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee7e1;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row > span {
    color: var(--bm-muted);
}

.summary-row > strong {
    color: var(--bm-text);
    text-align: right;
    overflow-wrap: anywhere;
}

/* =========================================================
   NEXT STEP
   ========================================================= */

.next-step-card {
    padding: 0;
}

.next-step-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
}

.next-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    font-size: 28px;
}

.next-step-content {
    flex: 1 1 auto;
    min-width: 0;
}

.next-step-content > span {
    display: block;
    margin-bottom: 7px;
}

.next-step-content h2 {
    margin: 0 0 10px;
}

.next-step-content p {
    max-width: 680px;
    margin: 0 0 20px;
}

.next-step-primary-button {
    min-height: 46px;
    padding-right: 24px;
    padding-left: 24px;
    border-color: var(--bm-success);
    background: var(--bm-success);
    color: var(--bm-white);
    font-weight: 600;
}

.next-step-primary-button:hover,
.next-step-primary-button:focus {
    border-color: var(--bm-success-dark);
    background: var(--bm-success-dark);
    color: var(--bm-white);
}

.next-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    border-top: 1px solid #eee7e1;
    background: #fffaf6;
}

.next-step-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--bm-muted);
    font-size: 13px;
}

.next-step-note i {
    color: var(--bm-secondary);
}

.next-step-secondary-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.next-step-home-link {
    padding-right: 8px;
    padding-left: 8px;
    color: var(--bm-muted);
    font-weight: 600;
    text-decoration: none;
}

.next-step-home-link:hover,
.next-step-home-link:focus {
    color: var(--bm-primary);
    text-decoration: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
    .success-hero-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .success-hero-status {
        grid-column: 1 / -1;
        min-width: 0;
        margin-left: 90px;
    }

    .next-step-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .next-step-secondary-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .success-hero {
        padding: 28px 0 18px;
    }

    .success-hero-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
        text-align: center;
    }

    .success-hero-icon {
        width: 58px;
        height: 58px;
        margin: 0 auto;
        border-radius: 17px;
        font-size: 24px;
    }

    .success-hero-content h1 {
        font-size: 29px;
    }

    .success-hero-content p {
        font-size: 15px;
    }

    .success-hero-status {
        grid-column: auto;
        margin-left: 0;
        text-align: center;
    }

    .success-page {
        padding: 36px 0 56px;
    }

    .credential-card,
    .registration-summary-card {
        padding: 22px;
    }

    .credential-grid {
        grid-template-columns: 1fr;
    }

    .summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .summary-row > strong {
        text-align: left;
    }

    .next-step-main {
        padding: 22px;
    }

    .next-step-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 23px;
    }

    .next-step-content h2 {
        font-size: 23px;
    }

    .next-step-primary-button {
        width: 100%;
    }

    .next-step-footer {
        padding: 18px 22px;
    }

    .next-step-secondary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .next-step-secondary-actions .btn {
        width: 100%;
    }

    .next-step-home-link {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .next-step-main {
        flex-direction: column;
    }

    .next-step-icon {
        margin: 0 auto;
    }

    .next-step-content {
        text-align: center;
    }

    .credential-item strong {
        padding-right: 0;
        font-size: 21px;
    }

    .copy-button {
        position: static;
        display: inline-flex;
        gap: 6px;
        align-items: center;
        margin-top: 10px;
        padding: 0;
    }
}