*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: #0a0e1a;
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.3px;
}

a {
    color: #3b9eff;
    text-decoration: none;
}

a:hover {
    color: #6db8ff;
    text-decoration: none;
}

.bb-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
    padding: 0;
}

.bb-nav-mobile {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.bb-nav-mobile.open {
    display: block;
}

.bb-nav-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.bb-nav-mobile a:last-child {
    border-bottom: none;
}

/* ─── Button ─────────────────────────────────── */
.btn-bb-primary {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-bb-primary:hover {
    background: #2e8eef;
}

.btn-bb-nav {
    padding: 9px 20px;
    font-size: 14px;
    width: auto;
}

/* ─── Page body ───────────────────────────────── */
.bb-page-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 24px;
}

/* ─── Card ────────────────────────────────────── */
.bb-card-wrap {
    width: 100%;
    max-width: 920px;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 58px 9px var(--blue-glow),
        0 24px 48px rgba(0, 0, 0, 0.5);
}

/* ─── Left panel ──────────────────────────────── */
.bb-left-panel {
    width: 320px;
    flex-shrink: 0;
    background: var(--surface2);
    border-right: 1px solid var(--border);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bb-left-panel h2 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.bb-left-panel>div>p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.bb-steps {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bb-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bb-step-num {
    width: 34px;
    height: 34px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-bdr);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

.bb-step-title {
    font-size: 14px;
    font-weight: 500;
    color: #e8eaf2;
    margin-bottom: 2px;
}

.bb-step-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.bb-left-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.bb-left-footer p {
    font-size: 13px;
    color: var(--faint);
    margin: 0;
}

/* ─── Right panel ─────────────────────────────── */
.bb-right-panel {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bb-right-panel h3 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.bb-form-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* ─── Form ────────────────────────────────────── */
.bb-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.bb-form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.bb-form-label span {
    color: var(--blue);
    margin-left: 2px;
}

.bb-form-input {
    background: #0a0e1a;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    outline: none;
}

.bb-form-input::placeholder {
    color: var(--faint);
}

/* ─── Field validation states ─────────────────── */
.bb-form-input.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.bb-form-input.is-valid {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}

.bb-field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    display: none;
}

.bb-field-error.show {
    display: block;
}

.bb-form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.12);
}

/* ─── Alerts ──────────────────────────────────── */
.bb-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.55;
}

.bb-alert.show {
    display: flex;
}

.bb-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bb-alert-success {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: var(--green);
}

.bb-alert-error {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: var(--red);
}

/* ─── Bottom link ─────────────────────────────── */
.bb-back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted);
}

/* ─── Footer ──────────────────────────────────── */
.bb-footer-bottom {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    flex-shrink: 0;
}

.bb-footer-bottom p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.bb-coingecko-dot {
    width: 14px;
    height: 14px;
    background: #1a8c5b;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
    margin-right: 4px;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 767px) {
    .bb-navbar {
        padding: 0 20px;
    }

    .bb-nav-links {
        display: none;
    }

    .bb-nav-toggle {
        display: block;
    }

    .bb-page-body {
        padding: 28px 16px;
        align-items: flex-start;
    }

    .bb-card-wrap {
        flex-direction: column;
    }

    .bb-left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 28px 24px;
    }

    .bb-right-panel {
        padding: 28px 24px;
    }
}