body {
    min-height: 100vh;
}

.pbb-funnel-container {
    position: relative;
    display: flex;
    min-height: calc(100vh - 88px);
    margin-top: 88px;
}

/* Sidebar */
.pbb-funnel-aside {
    position: fixed;
    top: 88px;
    bottom: 0;
    left: 0;
    width: 320px;
    background-color: var(--grey-100);
    border-right: 1px solid var(--grey-200);
    padding: 40px 32px;
    display: none;
    flex-direction: column;
    gap: 32px;
}

@media screen and (min-width: 1200px) {
    .pbb-funnel-aside {
        display: flex;
    }
}

/* Progress bar */
.pbb-funnel-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pbb-funnel-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pbb-funnel-progress-bar {
    height: 4px;
    background-color: var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
}

.pbb-funnel-progress-fill {
    height: 100%;
    background-color: var(--bitcoin-orange);
    border-radius: 4px;
    transition: width 300ms ease;
}

/* Stepper */
.pbb-funnel-stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pbb-funnel-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.pbb-funnel-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.pbb-funnel-step::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--grey-200);
    z-index: 1;
}

.pbb-funnel-step:first-child::before {
    top: 50%;
}

.pbb-funnel-step:last-child::before {
    bottom: 50%;
}

.pbb-funnel-step.done .pbb-funnel-step-dot {
    background-color: var(--green);
}

.pbb-funnel-step.done::before {
    background-color: var(--green);
}

.pbb-funnel-step.current .pbb-funnel-step-dot {
    background-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.2);
}

.pbb-funnel-step.current::before {
    background: linear-gradient(to bottom, var(--green) 0%, var(--grey-200) 100%);
}

.pbb-funnel-step.todo .pbb-funnel-step-dot {
    background-color: var(--grey-200);
}

.pbb-funnel-step-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
}

.pbb-funnel-step.done .pbb-funnel-step-title {
    color: var(--dark);
}

.pbb-funnel-step.current .pbb-funnel-step-title {
    color: var(--dark);
    font-weight: 600;
}

.pbb-funnel-step.todo .pbb-funnel-step-title {
    color: #999;
}

/* Content */
.pbb-funnel-content {
    flex: auto;
    margin-left: 0;
    padding: 24px;
}

@media screen and (min-width: 1200px) {
    .pbb-funnel-content {
        margin-left: 320px;
        padding: 56px 48px 48px 80px;
    }
}

.pbb-funnel-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

@media screen and (min-width: 1200px) {
    .pbb-funnel-content h1 {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

.pbb-funnel-section {
    margin: 0 auto;
    width: 100%;
}

@media screen and (min-width: 1200px) {
    .pbb-funnel-section {
        margin: 0;
    }
}

.pbb-funnel-section.section-sm {
    max-width: 460px;
}

.pbb-funnel-section.section-md {
    max-width: 600px;
}

/* Radiobox */
.pbb-radiobox-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media screen and (min-width: 768px) {
    .pbb-radiobox-container {
        flex-direction: row;
    }
}

.pbb-radio-input {
    display: none;
}

.pbb-radiobox {
    display: block;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--grey-200);
    flex: 1 1 0;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.pbb-radio-input:hover + .pbb-radiobox {
    border-color: var(--bitcoin-orange);
}

.pbb-radio-input:checked + .pbb-radiobox {
    border-color: var(--bitcoin-orange);
    background-color: rgba(242, 169, 0, 0.05);
}

.pbb-radiobox-icon {
    color: #999;
    margin-bottom: 8px;
    transition: color 150ms ease;
}

.pbb-radio-input:checked + .pbb-radiobox .pbb-radiobox-icon {
    color: var(--bitcoin-orange);
}

.pbb-radiobox-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.pbb-radio-input:checked + .pbb-radiobox .pbb-radiobox-title {
    color: var(--bitcoin-orange);
}

.pbb-radiobox-descr {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Buttons container */
.pbb-funnel-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 48px;
}

.expiration {
    flex: 1 1 0;
}

.cvc {
    max-width: 100px;
}

.words-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style-position: inside;
    margin-top: 48px;
}

/* Secret page */
.pbb-secret-info-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    margin-bottom: 16px;
}

.pbb-secret-info-icon {
    flex-shrink: 0;
    color: var(--bitcoin-orange);
    margin-top: 2px;
}

.pbb-secret-info-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.pbb-secret-info-text p {
    margin: 0 0 8px;
}

.pbb-secret-info-text p:last-child {
    margin-bottom: 0;
}

.pbb-secret-info-text ul {
    margin: 0 0 8px;
    padding-left: 20px;
}

.pbb-secret-info-text li {
    margin-bottom: 4px;
}

.pbb-secret-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6D4C00;
    margin-bottom: 32px;
}

.pbb-secret-warning svg {
    flex-shrink: 0;
    color: #F9A825;
}

.pbb-secret-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pbb-strength-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pbb-strength-track {
    height: 4px;
    background-color: var(--grey-200);
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 300ms ease, background-color 300ms ease;
}

.strength-bar.weak {
    background-color: #E53935;
}

.strength-bar.medium {
    background-color: #FB8C00;
}

.strength-bar.strong {
    background-color: #43A047;
}

.password-strength {
    font-size: 0.8rem;
    font-weight: 500;
}

.password-strength.weak {
    color: #E53935;
}

.password-strength.medium {
    color: #FB8C00;
}

.password-strength.strong {
    color: #43A047;
}

.pbb-secret-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
}

.pbb-secret-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Form grid */
.pbb-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pbb-form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media screen and (min-width: 576px) {
    .pbb-form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.pbb-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin-top: 12px;
}

.pbb-form-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Promo code row */
.pbb-promo-row {
    display: flex;
    margin-bottom: 24px;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    overflow: hidden;
}

.pbb-promo-row input[type="text"] {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.pbb-promo-row .pbb-promo-btn {
    border: none;
    background-color: var(--grey-100);
    color: var(--dark);
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-left: 1px solid var(--grey-200);
    transition: background-color 150ms ease;
}

.pbb-promo-row .pbb-promo-btn:hover {
    background-color: var(--grey-200);
}

/* Price card */
.pbb-price-card {
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.pbb-price-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #666;
}

.pbb-price-discount {
    color: var(--green);
    font-weight: 500;
}

.pbb-price-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid var(--grey-200);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
}

.pbb-price-total small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #999;
    margin-right: 4px;
}

/* Payment section */
.pbb-payment-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 16px;
}

.pbb-payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pbb-payment-option:hover {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 2px 12px rgba(242, 169, 0, 0.08);
}

.pbb-payment-option-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.pbb-payment-btc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.pbb-payment-btc-btn img {
    max-width: 160px;
    transition: transform 150ms ease;
}

.pbb-payment-btc-btn:hover img {
    transform: scale(1.05);
}

.pbb-payment-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbb-payment-divider span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #bbb;
    text-transform: uppercase;
}

#paypal-button-container {
    width: 100%;
}

@media screen and (max-width: 576px) {
    .pbb-payment-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pbb-payment-divider {
        padding: 12px 0;
    }
}

/* KYC details */
.pbb-kyc-details {
    margin-top: 24px;
    margin-bottom: 16px;
}

.pbb-kyc-details summary {
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    font-weight: 500;
}

.pbb-kyc-details summary:hover {
    color: var(--dark);
}

.pbb-kyc-details p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin-top: 8px;
}

/* Confirmation page */
.pbb-confirmation-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pbb-confirmation-icon {
    color: #43A047;
    margin-bottom: 16px;
}

.pbb-confirmation-hero h1 {
    margin-bottom: 0;
}

.pbb-confirmation-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    margin-bottom: 16px;
}

.pbb-confirmation-card-icon {
    flex-shrink: 0;
    color: var(--bitcoin-orange);
    margin-top: 2px;
}

.pbb-confirmation-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.pbb-confirmation-card a {
    color: var(--bitcoin-orange);
    font-weight: 500;
    word-break: break-all;
}

.pbb-confirmation-dev {
    margin-top: 40px;
    padding: 24px;
    border: 2px dashed var(--grey-200);
    border-radius: 12px;
    background: #FFFDE7;
}

.pbb-confirmation-dev-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 16px;
}

.pbb-confirmation-dev-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pbb-confirmation-dev-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbb-confirmation-dev-preview img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--grey-200);
}

/* Payment panel */
.pbb-payment-panel {
    margin-bottom: 16px;
}

/* Recovery page */
.pbb-form-error {
    color: #E53935;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 14px;
    background-color: #FBE1E1;
    border-radius: 8px;
}

.pbb-recovery-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
}

.pbb-recovery-hint svg {
    flex-shrink: 0;
    color: #bbb;
}

/* Modal words reveal */
.pbb-words-reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
}

.pbb-word-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
}

.pbb-word-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    min-width: 20px;
}

.pbb-word-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

/* Marketing / data privacy page */
.pbb-marketing-questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pbb-marketing-question {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    transition: border-color 150ms ease;
}

.pbb-marketing-question:hover {
    border-color: #ccc;
}

.pbb-marketing-question-sub {
    margin-left: 48px;
    background-color: #fff;
    border-style: dashed;
}

.pbb-marketing-question-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbb-marketing-icon-security {
    background-color: #E8F5E9;
    color: #43A047;
}

.pbb-marketing-icon-email {
    background-color: #E3F2FD;
    color: #1E88E5;
}

.pbb-marketing-icon-address {
    background-color: #FFF3E0;
    color: #FB8C00;
}

.pbb-marketing-icon-user {
    background-color: #F3E5F5;
    color: #8E24AA;
}

.pbb-marketing-question-content {
    flex: 1;
    min-width: 0;
}

.pbb-marketing-question-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.pbb-marketing-question-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 10px;
}

.pbb-marketing-question-hint svg {
    flex-shrink: 0;
    color: #F9A825;
}

.pbb-marketing-choices {
    display: flex;
    gap: 16px;
}

.pbb-marketing-choices label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.pbb-marketing-choices .form-check,
.pbb-marketing-choices > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pbb-marketing-choices > div > label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

/* Navbar recipient */
.pbb-mascott {
    max-width: 180px;
    margin: auto auto 0;
    opacity: 0.8;
}

/* End page */
.pbb-end-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.pbb-end-checkmark {
    color: #43A047;
    margin-bottom: 24px;
    animation: pbb-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pbb-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pbb-end-page h1 {
    margin-bottom: 12px;
}

.pbb-end-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.pbb-end-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 440px;
    background-color: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    text-align: left;
}

.pbb-end-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.4;
}

.pbb-end-card-row + .pbb-end-card-row {
    border-top: 1px solid var(--grey-200);
}

.pbb-end-card-row svg {
    flex-shrink: 0;
    color: #43A047;
}

.pbb-end-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 48px;
}

.pbb-end-btn:hover {
    text-decoration: none;
}

.hidden {
    display: none;
}
