/* ============================================================
   LinkBio -- shared auth & dashboard styles
   Phase 2: auth pages (login, signup, welcome)
   Phase 3: links manager, link form, appearance, QR, settings
   ============================================================ */

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

/* ---- Body class on auth pages (no AdminLTE padding) ------- */
.lb-auth-body {
    margin: 0;
    padding: 0;
    background: #fcf8ff;
    overflow-x: hidden;
}

/* ---- Bare shell injected by Platform.master --------------- */
.lb-auth-shell {
    width: 100%;
    min-height: 100vh;
}

/* ==============================================================
   Split-screen auth layout  (signup, login)
   ============================================================== */

.lb-auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---- Brand pane (purple half, desktop only) --------------- */
.lb-auth-brand {
    display: none;
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(145deg, #4129e7 0%, #2d1ca0 100%);
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .lb-auth-brand {
        display: flex;
    }
}

/* Image-cover variant: replaces gradient with a full-bleed photo (A6 forgot/reset) */
.lb-auth-brand--cover {
    background: none;
    padding: 0;
    align-items: stretch;
}

.lb-auth-brand--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Decorative glow blobs */
.lb-auth-brand-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.lb-brand-blob-1 {
    width: 600px;
    height: 600px;
    background: #5b4bff;
    top: -20%;
    right: -10%;
    opacity: .8;
    filter: blur(100px);
}

.lb-brand-blob-2 {
    width: 500px;
    height: 500px;
    background: #fd7958;
    bottom: -10%;
    left: -20%;
    opacity: .6;
    filter: blur(80px);
}

/* Content centred inside brand pane */
.lb-auth-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
}

/* Floating profile card */
.lb-auth-brand-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .2);
    transform: rotate(-2deg);
    transition: transform .3s;
}

.lb-auth-brand-profile:hover {
    transform: rotate(0deg);
}

.lb-auth-brand-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4129e7, #fd7958);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-auth-brand-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.lb-auth-brand-avatar .material-icons,
.lb-auth-brand-avatar-inner .material-icons {
    color: #fff;
    font-size: 1.6rem;
}

.lb-auth-brand-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.lb-auth-brand-handle {
    font-size: .85rem;
    font-weight: 700;
    color: #1b1a25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-auth-brand-card-sub {
    font-size: .75rem;
    color: #6b6f80;
}

.lb-auth-brand-share {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(65, 41, 231, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-auth-brand-share .material-icons {
    color: #4129e7;
    font-size: 1.1rem;
}

/* Social icon row */
.lb-auth-brand-icons {
    display: flex;
    gap: 1.5rem;
    align-self: flex-end;
    transform: translateX(3rem);
}

.lb-auth-brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    border: 1px solid rgba(255, 255, 255, .4);
    transition: transform .3s;
}

.lb-auth-brand-icon svg {
    width: 32px;
    height: 32px;
}

.lb-auth-brand-icon:nth-child(1) {
    transform: rotate(6deg);
}

.lb-auth-brand-icon:nth-child(2) {
    transform: rotate(-6deg);
}

.lb-auth-brand-icon:nth-child(3) {
    transform: rotate(12deg);
}

.lb-auth-brand-icon:hover {
    transform: rotate(0deg);
}

/* Tagline */
.lb-auth-brand-quote {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    margin: 0;
}

/* ---- Form pane -------------------------------------------- */
.lb-auth-form-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcf8ff;
    padding: 2rem 1.25rem;
    min-height: 100vh;
}

/* ---- Auth card (bordered on mobile, transparent on desktop) - */
.lb-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
    border: 1px solid #e4e5ec;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 992px) {
    .lb-auth-card {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 2rem 2.25rem;
    }
}

/* ---- Logo ------------------------------------------------- */
.lb-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.lb-auth-logo-img {
    max-height: 48px;
    width: auto;
}

.lb-auth-logo-colored {
    display: var(--lb-logo-colored-display, block);
}

.lb-auth-logo-white {
    display: var(--lb-logo-white-display, none);
}

/* ---- Headings --------------------------------------------- */
.lb-auth-heading {
    font-size: 21px;
    font-weight: 600;
    color: #1b1a25;
    margin: 0 0 .25rem;
    line-height: 1.3;
    text-align: center;
}

.lb-auth-sub {
    font-size: 14px;
    color: #6b6f80;
    margin: 0 0 1.25rem;
    text-align: center;
}

/* ---- OR divider ------------------------------------------- */
.lb-auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: #c5c7d4;
    font-size: 13px;
}

.lb-auth-divider::before,
.lb-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #edeef5;
}

/* ---- Error banner ----------------------------------------- */
.lb-auth-error {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    color: #c0392b;
    border-radius: 8px;
    padding: .65rem .9rem;
    font-size: .875rem;
    margin-bottom: 1rem;
}

/* ---- Google button ---------------------------------------- */
.lb-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    height: 44px;
    border: 1.5px solid #c7c4d9;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 500;
    color: #1b1a25;
    background: #fff;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.lb-btn-google:hover {
    background: #eae6f5;
    text-decoration: none;
    color: #1b1a25;
}

/* ---- Form fields ------------------------------------------ */
.lb-field {
    margin-bottom: 1rem;
}

.lb-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1b1a25;
    margin-bottom: .35rem;
}

.lb-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 .9rem;
    font-size: 15px;
    border: 1.5px solid #c7c4d9;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
    color: #1b1a25;
}

.lb-input:focus {
    border-color: #4129e7;
    box-shadow: 0 0 0 2px rgba(65, 41, 231, .18);
}

/* LTR fields (email, password, phone) always left-aligned */
.lb-input[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

.lb-input[dir="ltr"]::placeholder {
    text-align: left;
    direction: ltr;
}

/* ---- Password input wrapper ------------------------------- */
.lb-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* eye icon always on the physical right — password is always LTR */
.lb-input-wrap .lb-input {
    padding-right: 2.6rem;
}

.lb-pwd-toggle {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #999;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lb-pwd-toggle:hover {
    color: #4129e7;
}

.lb-pwd-toggle .material-icons {
    font-size: 1.1rem;
}

/* ---- Password strength indicator -------------------------- */
.lb-pwd-bars {
    display: flex;
    gap: 4px;
    margin-top: .4rem;
}

.lb-pwd-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: #e4e5ec;
    transition: background .2s;
}

.lb-pwd-label {
    display: block;
    font-size: 13px;
    color: #6b6f80;
    margin-top: .2rem;
    min-height: 1em;
}

/* ---- Primary button --------------------------------------- */
.lb-btn-primary {
    display: block;
    width: 100%;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #4129e7;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    letter-spacing: .01em;
}

.lb-btn-primary:hover {
    background: #4a3ce5;
    box-shadow: 0 4px 16px rgba(65, 41, 231, .3);
}

.lb-btn-primary:active {
    transform: scale(.98);
}

/* ---- Footer link (already have account?) ------------------ */
.lb-auth-footer {
    text-align: center;
    font-size: 14px;
    color: #6b6f80;
    margin: 1.25rem 0 0;
}

.lb-auth-footer a {
    color: #4129e7;
    font-weight: 600;
    text-decoration: none;
}

.lb-auth-footer a:hover {
    text-decoration: underline;
}

/* ---- Alt link (kept for login/welcome pages) -------------- */
.lb-auth-alt {
    text-align: center;
    font-size: 14px;
    color: #6b6f80;
    margin: 1.25rem 0 0;
}

.lb-auth-alt a {
    color: #4129e7;
    font-weight: 600;
    text-decoration: none;
}

.lb-auth-alt a:hover {
    text-decoration: underline;
}

/* ---- Handle row ------------------------------------------- */
.lb-handle-row {
    display: flex;
    align-items: center;
    border: 1.5px solid #dddee8;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.lb-handle-row:focus-within {
    border-color: #4129e7;
    box-shadow: 0 0 0 3px rgba(65, 41, 231, .12);
}

.lb-handle-prefix {
    padding: .6rem .7rem;
    font-weight: 700;
    color: #888;
    background: #f5f5fc;
    border-right: 1.5px solid #dddee8;
    white-space: nowrap;
    user-select: none;
}

[dir="rtl"] .lb-handle-prefix {
    border-right: none;
    border-left: 1.5px solid #dddee8;
}

.lb-handle-row .lb-input {
    border: none;
    box-shadow: none;
    border-radius: 0;
    flex: 1;
}

.lb-handle-row .lb-input:focus {
    box-shadow: none;
}

/* ---- Handle availability status --------------------------- */
.lb-handle-status {
    font-size: .8rem;
    margin-top: .3rem;
    min-height: 1.1em;
}

.lb-handle-ok {
    color: #27ae60;
}

.lb-handle-taken {
    color: #c0392b;
}

/* ---- Field helpers ---------------------------------------- */
.lb-field-hint {
    font-size: .78rem;
    color: #999;
    margin: .3rem 0 0;
}

.lb-field-row.lb-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .25rem;
}

[dir="rtl"] .lb-field-row.lb-forgot-row {
    justify-content: flex-start;
}

.lb-link-muted {
    font-size: .82rem;
    color: #888;
    text-decoration: none;
}

.lb-link-muted:hover {
    color: #4129e7;
}

/* ---- Signin brand pane: vertical profile card ------------- */
.lb-auth-brand-profile-card {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
}

.lb-auth-brand-profile-card .lb-auth-brand-avatar {
    width: 80px;
    height: 80px;
}

.lb-auth-brand-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: .25rem 0 0;
}

.lb-auth-brand-profile-role {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    margin: 0;
}

.lb-auth-brand-profile-handle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 255, 255, .18);
    border-radius: 9999px;
    padding: .25rem .9rem;
    font-size: 13px;
    color: #fff;
    direction: ltr;
    margin-top: .25rem;
}

/* ---- Signin brand pane: stats card ------------------------ */
.lb-auth-brand-stats {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lb-auth-brand-stats-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
    margin: 0 0 .25rem;
}

.lb-auth-brand-stats-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.lb-auth-brand-stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 173, 102, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-auth-brand-stats-icon .material-icons {
    color: #1FAD66;
    font-size: 1.4rem;
}

/* ---- Input with inline icon (signin) ---------------------- */
.lb-input-icon-wrap {
    position: relative;
}

.lb-input-icon {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    color: #9ca0ae;
    pointer-events: none;
    font-size: 20px;
    line-height: 1;
}

/* Email: icon on left, text clears icon */
.lb-input-icon-wrap .lb-input {
    padding-left: 2.8rem;
    padding-right: .9rem;
}

/* Password: lock icon on left (equal padding to email), eye toggle on right */
.lb-input-icon-wrap-pwd .lb-input {
    padding-left: 2.8rem;
    padding-right: 2.6rem;
}

.lb-pwd-toggle-left {
    position: absolute;
    top: 50%;
    right: .6rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lb-pwd-toggle-left:hover {
    color: #4129e7;
}

.lb-pwd-toggle-left .material-icons {
    font-size: 1.1rem;
}

/* ---- Field header (label + forgot link on same row) ------- */
.lb-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}

.lb-field-header label {
    margin-bottom: 0;
}

.lb-forgot-link {
    font-size: 13px;
    color: #4129e7;
    text-decoration: none;
    font-weight: 500;
}

.lb-forgot-link:hover {
    color: #3420c8;
    text-decoration: underline;
}

/* ---- Remember me row -------------------------------------- */
.lb-remember-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 14px;
    color: #6b6f80;
    margin-bottom: 1rem;
}

.lb-remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4129e7;
    cursor: pointer;
    flex-shrink: 0;
}

.lb-remember-row label {
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

/* ---- Social login grid (signin) --------------------------- */
.lb-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.lb-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 42px;
    background: #fcf8ff;
    border: 1.5px solid #c7c4d9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1b1a25;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.lb-btn-social:hover {
    background: #eae6f5;
    color: #1b1a25;
    text-decoration: none;
}

.lb-btn-social:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.lb-btn-social-full {
    width: 100%;
}

/* ---- Welcome / handle-picker page ------------------------- */
.lb-welcome-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #fcf8ff;
}

.lb-welcome-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .09);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
}

.lb-welcome-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: #1b1a25;
}

.lb-welcome-sub {
    font-size: .9rem;
    color: #6b6f80;
    margin: 0 0 1.5rem;
}

/* ---- Creator dashboard stub ------------------------------- */
.lb-dash-home {
    padding: 2rem;
}

.lb-dash-home h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

/* ---- Public profile placeholder --------------------------- */
.lb-profile-placeholder {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
}

.lb-profile-placeholder h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.lb-bio {
    color: #555;
    font-size: .95rem;
    margin-top: .75rem;
}

.lb-notfound {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

/* ---- Wizard wrapper --------------------------------------- */
.lb-wizard-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: #f5f6fa;
}

.lb-wizard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .09);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 520px;
}

/* ---- Progress bar ----------------------------------------- */
.lb-wizard-progress {
    width: 100%;
    max-width: 520px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: .5rem;
}

.lb-wizard-progress-bar {
    height: 100%;
    background: #5b5fc7;
    border-radius: 2px;
    transition: width .3s ease;
}

.lb-wizard-step-label {
    font-size: .78rem;
    color: #999;
    margin: 0 0 1.25rem;
    align-self: flex-start;
    width: 100%;
    max-width: 520px;
}

/* ---- Wizard headings -------------------------------------- */
.lb-wizard-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: #111;
}

.lb-wizard-sub {
    font-size: .9rem;
    color: #666;
    margin: 0 0 1.5rem;
}

/* ---- Wizard action row ------------------------------------ */
.lb-wizard-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.lb-wizard-actions--center {
    justify-content: center;
}

[dir="rtl"] .lb-wizard-actions {
    justify-content: flex-start;
}

.lb-btn-text {
    background: none;
    border: none;
    color: #888;
    font-size: .88rem;
    cursor: pointer;
    padding: .4rem .5rem;
    text-decoration: underline;
}

.lb-btn-text:hover {
    color: #444;
}

/* ---- Goal grid (step 2) ----------------------------------- */
.lb-goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: .5rem;
}

.lb-goal-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.lb-goal-card:hover {
    border-color: #5b5fc7;
}

.lb-goal-card--selected {
    border-color: #5b5fc7;
    box-shadow: 0 0 0 3px rgba(91, 95, 199, .15);
}

.lb-goal-card strong {
    font-size: .9rem;
    color: #111;
}

.lb-goal-card span {
    font-size: .78rem;
    color: #777;
}

.lb-goal-icon {
    width: 32px;
    height: 32px;
    background: #ebebff;
    border-radius: 50%;
}

/* ---- Onboarding Step 3: theme picker ---------------------- */
.lb-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .lb-theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lb-theme-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid #e4e5ec;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 200px;
    transition: border-color .15s, box-shadow .15s;
}

.lb-theme-card:hover {
    border-color: #c7c4d9;
}

.lb-theme-card--selected {
    border-color: #4129e7;
    box-shadow: 0 4px 12px rgba(65, 41, 231, .15);
}

/* Hover overlay */
.lb-theme-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(65, 41, 231, .08);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    z-index: 2;
}

.lb-theme-card:hover .lb-theme-card-overlay {
    opacity: 1;
}

.lb-theme-card--selected .lb-theme-card-overlay {
    opacity: 0;
}

/* Image area */
.lb-theme-card-img-wrap {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    background: #f5f5fc;
}

/* ---- Template mock (step 3) ---- */
.lb-mock-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Mobile Mock */
.lb-mock-mobile {
    display: flex;
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    padding: 0.5rem;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.lb-mock-mobile-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 1rem;
    opacity: 0.20;
}

.lb-mock-mobile-title {
    width: 75%;
    height: 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 0.5rem;
}

.lb-mock-mobile-sub {
    width: 50%;
    height: 0.5rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
    opacity: 0.60;
}

.lb-mock-mobile-btn {
    width: 100%;
    height: 2rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 0.5rem;
}

.lb-mock-mobile-btn:last-child {
    margin-bottom: 0;
}

/* Checkmark */
.lb-theme-card-check {
    display: none;
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #4129e7;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    z-index: 10;
}

[dir="rtl"] .lb-theme-card-check {
    right: auto;
    left: .5rem;
}

.lb-theme-card-check .material-icons {
    font-size: 16px;
}

.lb-theme-card--selected .lb-theme-card-check {
    display: flex;
}

/* Bottom bar */
.lb-theme-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem;
    background: #fff;
    border-top: 1px solid #e4e5ec;
    z-index: 5;
    position: relative;
}

.lb-theme-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #1b1a25;
}

.lb-theme-badge {
    font-size: 10px;
    padding: .15rem .5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.lb-theme-badge--free {
    background: #e4e0ef;
    color: #464556;
}

.lb-theme-badge--starter {
    background: #ffeee8;
    color: #6e1500;
    border: 1px solid rgba(253, 121, 88, .2);
}

/* ---- Step 4: Platform picker ---- */
.lb-platform-grid-wrap {
    width: 100%;
    margin: 0 auto 3rem;
}

.lb-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .lb-platform-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.lb-platform-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e4e5ec;
    border-radius: .75rem;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.lb-platform-card:hover {
    border-color: #c4c0ff;
    transform: scale(1.02);
}

.lb-platform-card--selected {
    background: #efedff;
    border: 2px solid #4129e7;
}

/* Checkmark indicator */
.lb-platform-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #4129e7;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

[dir="rtl"] .lb-platform-check {
    right: auto;
    left: 4px;
}

.lb-platform-check .material-icons {
    font-size: 10px;
}

.lb-platform-card--selected .lb-platform-check {
    display: flex;
}

/* Icon wrapper */
.lb-platform-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: .5rem;
    border-radius: 50%;
    background: #fcf8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background .2s, color .2s;
    color: #6b6f80;
    font-size: 26px;
}

.lb-platform-card:hover .lb-platform-icon-wrap {
    background: #efedff;
    color: #4129e7;
}

.lb-platform-card--selected .lb-platform-icon-wrap {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    color: #4129e7;
}

.lb-platform-icon-wrap img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Label */
.lb-platform-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b6f80;
    transition: color .2s;
}

.lb-platform-card:hover .lb-platform-label {
    color: #4129e7;
}

.lb-platform-card--selected .lb-platform-label {
    font-weight: 600;
    color: #4129e7;
}

.lb-platform-chk {
    display: none;
}

/* ---- Platform field (step 5) ------------------------------ */
.lb-platform-field label {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lb-field-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ---- Step 5 link fields (card layout) --------------------- */
.lb-link-field {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--border, #E4E5EC);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: .75rem;
}

.lb-link-field-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    margin-top: 2px;
}

.lb-link-field-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lb-link-field-label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-secondary, #6B6F80);
    margin-bottom: .25rem;
}

.lb-link-field-input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border, #E4E5EC);
    border-radius: 0;
    padding: .375rem 0;
    font-size: .9375rem;
    color: var(--text-primary, #161824);
    outline: none;
    transition: border-color .15s;
}
.lb-link-field-input:focus {
    border-bottom-color: var(--brand-primary, #4129e7);
    box-shadow: none;
}
.lb-link-field-input::placeholder {
    color: var(--text-tertiary, #9CA0AE);
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.lb-link-field-hint {
    display: none;
    font-size: .75rem;
    color: var(--warning, #F4A300);
    margin-top: .3rem;
    line-height: 1.4;
    direction: rtl;
    text-align: left;
}

.lb-link-title-input {
    font-size: .8125rem;
    color: var(--text-secondary, #6B6F80);
    border-bottom-style: dashed;
    padding-bottom: .2rem;
    margin-bottom: .1rem;
}

.lb-link-title-input::placeholder {
    font-style: italic;
}

.lb-link-field-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary, #9CA0AE);
    padding: .25rem;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    margin-top: 2px;
}
.lb-link-field-remove:hover {
    background: rgba(229,72,77,0.08);
    color: #E5484D;
}

/* ---- Add another link button ------------------------------ */
.lb-btn-add-link {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--outline-variant, #C7C4D9);
    border-radius: 12px;
    background: var(--surface-bright, #fcf8ff);
    color: var(--text-secondary, #6B6F80);
    font-size: .9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: border-color .15s, color .15s, background .15s;
    margin-top: .25rem;
}
.lb-btn-add-link:hover {
    border-color: var(--brand-primary, #4129e7);
    color: var(--brand-primary, #4129e7);
    background: var(--surface-container-low, #f6f2ff);
}

/* ---- Step 5 platform picker (inline tile grid) ------------ */
.lb-platform-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .25rem 0 .5rem;
    margin-bottom: .25rem;
}

.lb-platform-pick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .5rem .65rem;
    border: 1.5px solid #e4e5ec;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    min-width: 64px;
    transition: border-color .15s, background .15s, transform .1s;
    line-height: 1;
}

.lb-platform-pick-tile:hover {
    border-color: #4129e7;
    background: #f0ecfa;
    transform: scale(1.05);
}

.lb-platform-pick-tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.lb-platform-pick-label {
    font-size: .7rem;
    font-weight: 500;
    color: #6b6f80;
    white-space: nowrap;
}

.lb-platform-pick-tile:hover .lb-platform-pick-label {
    color: #4129e7;
}

.lb-input-sm {
    margin-bottom: .35rem;
}

.lb-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---- Step 6: Profile Details ----------------------------- */
.lb-avatar-bento {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--outline-variant, #c7c4d9);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    user-select: none;
}

.lb-avatar-bento:hover {
    border-color: var(--brand-primary, #4129e7);
    box-shadow: 0 4px 12px rgba(65, 41, 231, 0.08);
}

.lb-avatar-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(239, 237, 255, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.lb-avatar-bento:hover .lb-avatar-bento-overlay {
    opacity: 1;
}

.lb-avatar-bento-circle {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface-container-low, #f6f2ff);
    border: 2px dashed var(--outline-variant, #c7c4d9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background-color .2s;
    z-index: 1;
    overflow: hidden;
}

.lb-avatar-bento:hover .lb-avatar-bento-circle {
    border-color: var(--brand-primary, #4129e7);
    background: var(--brand-primary-soft, #EFEDFF);
}

.lb-avatar-bento-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lb-avatar-bento-icon {
    font-size: 32px;
    color: var(--text-tertiary, #9CA0AE);
    transition: color .2s;
}

.lb-avatar-bento:hover .lb-avatar-bento-icon {
    color: var(--brand-primary, #4129e7);
}

.lb-avatar-bento-text {
    z-index: 1;
}

.lb-avatar-bento-btn {
    display: inline-block;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--brand-primary, #4129e7);
}

.lb-avatar-bento-hint {
    font-size: .75rem;
    color: var(--text-tertiary, #9CA0AE);
    margin-top: 0.25rem;
}

.lb-file-hidden {
    display: none;
}

.lb-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem;
}

.lb-field-header label {
    margin-bottom: 0 !important;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-primary, #161824);
}

.lb-bio-count {
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-tertiary, #9CA0AE);
}

/* ---- Step 7: You're Ready! -------------------------------- */
.lb-ready-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lb-qr-card {
    padding: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--outline-variant, #C7C4D9);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: inline-block;
    transition: transform .2s, box-shadow .2s;
}
.lb-qr-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(65, 41, 231, 0.06);
}

.lb-qr-code canvas,
.lb-qr-code img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.lb-btn-download-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary, #4129e7);
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s, opacity .15s;
}
.lb-btn-download-qr:hover {
    color: var(--brand-primary-hover, #4A3CE5);
    text-decoration: underline;
}

/* URL Share Box */
.lb-ready-url-box {
    margin-bottom: 2rem;
    width: 100%;
}
.lb-ready-url-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #6B6F80);
    margin-bottom: 0.5rem;
    text-align: start;
}
.lb-ready-url-container {
    display: flex;
    align-items: center;
    background: var(--surface-container-low, #f6f2ff);
    border: 1px solid var(--outline-variant, #C7C4D9);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: border-color .15s, box-shadow .15s;
}
.lb-ready-url-container:focus-within {
    border-color: var(--brand-primary, #4129e7);
    box-shadow: 0 0 0 3px rgba(65, 41, 231, 0.15);
}
.lb-ready-url-text {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-mono, monospace);
    color: var(--text-primary, #161824);
    text-align: left;
    user-select: all;
    font-weight: 500;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-btn-copy-url {
    background: var(--brand-primary-soft, #EFEDFF);
    color: var(--brand-primary, #4129e7);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: background .15s, color .15s, transform .1s;
}
.lb-btn-copy-url:hover {
    background: var(--brand-primary, #4129e7);
    color: #FFFFFF;
}
.lb-btn-copy-url:active {
    transform: scale(0.95);
}

/* Step 7 phone preview frame -- glass morphism style matching step 3 lb-mock-phone */
.lb-step7-phone-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-step7-phone-frame {
    width: 280px;
    height: 560px;
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, 0.40);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 80px rgba(65, 41, 231, 0.12);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    padding: 8px;
}
.lb-step7-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 14px 14px;
    z-index: 10;
}
.lb-step7-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    background: #fff;
}
.lb-step7-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile-only inline phone preview (below QR, hidden on desktop) */
.lb-step7-phone-mobile {
    display: none;
    justify-content: center;
    margin: 1.25rem 0;
}
@media (max-width: 767px) {
    .lb-step7-phone-mobile {
        display: flex;
    }
    .lb-step7-phone-mobile .lb-step7-phone-frame {
        width: 220px;
        height: 440px;
    }
}

/* Stacking final buttons */
.lb-ready-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(199, 196, 217, 0.4);
}
.lb-btn-share-page {
    width: 100%;
    background: var(--brand-primary, #4129e7);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(65, 41, 231, 0.15);
    transition: background .15s, transform .1s;
}
.lb-btn-share-page:hover {
    background: var(--brand-primary-hover, #4A3CE5);
}
.lb-btn-share-page:active {
    transform: scale(0.98);
}
.lb-btn-go-dashboard {
    width: 100%;
    background: var(--surface-container-high, #eae6f5);
    color: var(--text-primary, #161824);
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .1s;
}
.lb-btn-go-dashboard:hover {
    background: var(--surface-variant, #e4e0ef);
}
.lb-btn-go-dashboard:active {
    transform: scale(0.98);
}

/* Responsive Safe Bottom Overlay on Mobile */
@media (max-width: 767px) {
    .lb-ready-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface-container-lowest, #ffffff);
        border-top: 1px solid var(--outline-variant, #C7C4D9);
        padding: 1rem;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }
    .lb-wizard-form-content {
        padding-bottom: 140px !important;
    }
}

/* ---- A5b: Google Link Confirmation ------------------------- */

/* Header: logos + animated connector line */
.lb-google-link-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lb-google-link-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary, #4129e7);
    letter-spacing: -0.01em;
}

/* Animated pulse connector line between LinkBio and Google */
.lb-google-link-connector {
    position: relative;
    width: 2rem;
    height: 2px;
    background: var(--outline-variant, #c7c4d9);
    border-radius: 9999px;
    flex-shrink: 0;
    overflow: visible;
}

.lb-google-link-connector::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: var(--brand-primary, #4129e7);
    opacity: 0.25;
    animation: lb-connector-pulse 1.8s ease-in-out infinite;
}

@keyframes lb-connector-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.5; }
}

/* Google badge circle */
.lb-google-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--outline-variant, #c7c4d9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    flex-shrink: 0;
}

.lb-google-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Confirmation body copy */
.lb-google-link-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary, #6B6F80);
    text-align: center;
    margin-bottom: 2rem;
}

.lb-google-link-email {
    font-weight: 600;
    color: var(--text-primary, #161824);
}

/* Action buttons group */
.lb-google-link-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.lb-btn-google-confirm {
    width: 100%;
    height: 44px;
    background: var(--brand-primary, #4129e7);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(65, 41, 231, 0.2);
}

.lb-btn-google-confirm:hover {
    background: var(--brand-primary-hover, #4A3CE5);
}

.lb-btn-google-confirm:active {
    transform: scale(0.98);
}

.lb-btn-google-decline {
    width: 100%;
    height: 44px;
    background: transparent;
    color: var(--text-secondary, #6B6F80);
    border: none;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.lb-btn-google-decline:hover {
    background: var(--surface-variant, #e4e0ef);
    color: var(--text-primary, #161824);
}

/* Footer links on this page */
.lb-google-link-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary, #9CA0AE);
}

.lb-google-link-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.lb-google-link-footer a:hover {
    color: var(--brand-primary, #4129e7);
}

/* Mobile: full centered card, no right pane */
@media (max-width: 767px) {
    .lb-google-link-header {
        gap: 0.75rem;
    }
    .lb-google-link-connector {
        width: 1.5rem;
    }
}

/* ---- A6: Forgot / Reset Password --------------------------- */

/* Outer page wrapper: centered card, blobs behind */
.lb-forgot-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-app, #F7F7FB);
}

/* Decorative ambient blobs */
.lb-forgot-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(72px);
}

.lb-forgot-blob-1 {
    top: -15%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: var(--primary-fixed-dim, #c4c0ff);
    opacity: 0.18;
}

.lb-forgot-blob-2 {
    bottom: -18%;
    left: -8%;
    width: 580px;
    height: 580px;
    background: var(--brand-primary-soft, #EFEDFF);
    opacity: 0.35;
}

/* Card */
.lb-forgot-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid var(--border, #E4E5EC);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: box-shadow .25s;
}

.lb-forgot-card:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

@media (min-width: 640px) {
    .lb-forgot-card {
        padding: 2.5rem;
    }
}

/* Card header: logo + title + subtitle */
.lb-forgot-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.lb-forgot-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary, #4129e7);
}

.lb-forgot-logo-icon {
    font-size: 2rem;
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

.lb-forgot-logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--brand-primary, #4129e7);
}

.lb-forgot-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #161824);
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .lb-forgot-title {
        font-size: 1.75rem;
    }
}

.lb-forgot-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #6B6F80);
    margin: 0;
    line-height: 1.6;
    max-width: 300px;
}

/* Form fields inside card */
.lb-forgot-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.lb-forgot-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lb-forgot-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #161824);
}

/* Input with leading icon (email field) */
.lb-forgot-input-wrap {
    position: relative;
}

.lb-forgot-input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary, #9CA0AE);
    font-size: 1.2rem;
    pointer-events: none;
    line-height: 1;
}

/* LTR positioning: icon on physical left always */
.lb-forgot-input-icon {
    left: 0.9rem;
}

.lb-forgot-input {
    width: 100%;
    background: var(--surface, #fcf8ff);
    border: 1px solid var(--outline-variant, #c7c4d9);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary, #161824);
    transition: border-color .15s, box-shadow .15s;
}

.lb-forgot-input:focus {
    outline: none;
    border-color: var(--brand-primary, #4129e7);
    box-shadow: 0 0 0 3px rgba(65, 41, 231, 0.15);
}

/* When there's a leading icon, indent input text */
.lb-forgot-input--with-icon {
    padding-left: 2.75rem;
}

/* Password field: input + eye toggle side by side */
.lb-forgot-pwd-wrap {
    position: relative;
}

.lb-forgot-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary, #9CA0AE);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color .15s;
    line-height: 1;
}

.lb-forgot-pwd-toggle:hover {
    color: var(--text-primary, #161824);
}

/* In RTL, eye toggle stays on the physical right (correct for LTR data) */
[dir="rtl"] .lb-forgot-pwd-toggle {
    right: 0.75rem;
    left: auto;
}

/* Submit button */
.lb-btn-forgot-submit {
    width: 100%;
    height: 44px;
    background: var(--primary-container, #5b4bff);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background .15s, transform .1s;
    box-shadow: 0 4px 12px rgba(65, 41, 231, 0.15);
    margin-top: 0.5rem;
}

.lb-btn-forgot-submit:hover {
    background: var(--brand-primary, #4129e7);
}

.lb-btn-forgot-submit:active {
    transform: scale(0.98);
}

/* Back to login link */
.lb-forgot-back {
    text-align: center;
}

.lb-forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-primary, #4129e7);
    text-decoration: none;
    transition: color .15s;
}

.lb-forgot-back-link:hover {
    color: var(--brand-primary-hover, #4A3CE5);
    text-decoration: none;
}

.lb-forgot-back-link .material-symbols-outlined {
    font-size: 1rem;
    transition: transform .15s;
}

.lb-forgot-back-link:hover .material-symbols-outlined {
    transform: translateX(-3px);
}

[dir="rtl"] .lb-forgot-back-link:hover .material-symbols-outlined {
    transform: translateX(3px);
}

/* Success state: email sent confirmation */
.lb-forgot-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.lb-forgot-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(31, 173, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-forgot-success-icon .material-icons,
.lb-forgot-success-icon .material-symbols-outlined {
    color: var(--success, #1FAD66);
    font-size: 1.75rem;
}

.lb-forgot-success-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #161824);
    margin: 0;
}

.lb-forgot-success-body {
    font-size: 0.95rem;
    color: var(--text-secondary, #6B6F80);
    margin: 0;
    line-height: 1.6;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 480px) {

    .lb-auth-card,
    .lb-welcome-card {
        padding: 1.75rem 1.25rem;
    }

    .lb-wizard-card {
        padding: 1.75rem 1.25rem;
    }

    .lb-goal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lb-theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Phase 3 -- Dashboard pages
   ============================================================ */

/* ---- Links manager ---------------------------------------- */
.lb-link-list {
    margin: 0;
    padding: 0;
}

.lb-link-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    transition: background .1s;
}

.lb-link-row:hover {
    background: #f8f9fa;
}

.lb-link-row.lb-link-hidden {
    opacity: .5;
}

.lb-drag-handle {
    cursor: grab;
    color: #bbb;
    flex-shrink: 0;
}

.lb-link-icon {
    color: #888;
    flex-shrink: 0;
}

.lb-link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lb-link-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-link-url {
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-link-actions {
    display: flex;
    gap: .1rem;
    flex-shrink: 0;
}

.lb-link-actions .btn-link {
    color: #888;
    padding: .25rem .35rem;
}

.lb-link-actions .btn-link:hover {
    color: #333;
}

/* ---- Template gallery (Appearance) ------------------------ */
.lb-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .75rem;
}

.lb-tpl-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}

.lb-tpl-card img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.lb-tpl-label {
    padding: .3rem .5rem;
    font-size: .78rem;
    text-align: center;
}

.lb-tpl-card:hover {
    border-color: #5b5fc7;
}

.lb-tpl-selected {
    border-color: #5b5fc7;
    box-shadow: 0 0 0 3px rgba(91, 95, 199, .2);
}

.lb-tpl-locked {
    opacity: .6;
    cursor: not-allowed;
}

/* ---- Button style picker (Appearance) --------------------- */
.lb-btn-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
}

.lb-btn-style-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: .6rem;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s;
}

.lb-btn-style-card:hover,
.lb-btn-selected {
    border-color: #5b5fc7;
}

.lb-btn-preview {
    display: block;
    padding: .4rem .8rem;
    font-size: .85rem;
    border-radius: 6px;
    background: #5b5fc7;
    color: #fff;
    pointer-events: none;
}

.lb-btn-preview.lb-btn-outline {
    background: transparent;
    color: #5b5fc7;
    border: 2px solid #5b5fc7;
}

.lb-btn-preview.lb-btn-pill {
    background: #5b5fc7;
    color: #fff;
    border-radius: 999px;
}

.lb-btn-preview.lb-btn-square {
    background: #5b5fc7;
    color: #fff;
    border-radius: 0;
}

/* ---- Avatar upload (Settings) ----------------------------- */
.lb-avatar-upload {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.lb-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.lb-file-hidden {
    display: none;
}

/* ---- QR page ---------------------------------------------- */
#qrcode canvas,
#qrcode img {
    border-radius: 8px;
}

/* ---- Segmented progress bar (7 pills) --------------------- */
.lb-wizard-progress-seg {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .5rem;
}

.lb-seg-pill {
    flex: 1;
    height: 6px;
    border-radius: 9999px;
    transition: background .3s;
}

.lb-seg-done {
    background: #4129e7;
}

.lb-seg-current {
    background: rgba(65, 41, 231, .45);
}

.lb-seg-pending {
    background: #e4e0ef;
}

/* ---- Light brand pane (steps 2-7) ------------------------- */
.lb-wizard-brand--light {
    background: linear-gradient(135deg, #e3dfff 0%, #ede9ff 55%, #f0ecfa 100%);
    overflow: hidden;
    position: relative;
}

/* Decorative blurred blobs behind the bento */
.lb-bento-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.lb-bento-blob-1 {
    top: -10%;
    right: -10%;
    width: 480px;
    height: 480px;
    background: #4129e7;
    filter: blur(100px);
    opacity: .22;
}

.lb-bento-blob-2 {
    bottom: -12%;
    left: -12%;
    width: 540px;
    height: 540px;
    background: #fd7958;
    filter: blur(120px);
    opacity: .14;
}

/* Bento stage that holds the phone and floating cards */
.lb-bento-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

/* Central glass phone mockup */
.lb-bento-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 440px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 38px;
    box-shadow: 0 28px 80px rgba(31, 38, 135, .18);
    overflow: hidden;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 6px;
}

.lb-bento-phone-header {
    height: 110px;
    border-radius: 30px 30px 0 0;
    background: linear-gradient(135deg, #4129e7 0%, #5b4bff 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.lb-bento-phone-avatar {
    position: absolute;
    bottom: -32px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e4e0ef;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
    background-image: url(step03_02.png);
    background-size: cover;
}

.lb-bento-phone-avatar .material-icons {
    color: #888;
    font-size: 2rem;
}

.lb-bento-phone-body {
    flex: 1;
    padding: 2.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
}

.lb-bento-phone-nameline {
    width: 110px;
    height: 10px;
    background: rgba(255, 255, 255, .7);
    border-radius: 9999px;
}

.lb-bento-phone-subline {
    width: 150px;
    height: 7px;
    background: rgba(255, 255, 255, .45);
    border-radius: 9999px;
    margin-bottom: .75rem;
}

.lb-bento-phone-link {
    width: 100%;
    height: 38px;
    background: rgba(255, 255, 255, .78);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

/* Shared glass card style for floating cards */
.lb-bento-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 8px 32px rgba(31, 38, 135, .12);
    border-radius: 16px;
    padding: .75rem 1rem;
}

/* Stats card: top-left of phone */
.lb-bento-stats {
    top: 4%;
    left: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lb-bento-stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(31, 173, 102, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lb-bento-stats-icon .material-icons {
    color: #1fad66;
    font-size: 1.1rem;
}

.lb-bento-stats-label {
    font-size: 11px;
    color: #6b6f80;
    margin: 0;
}

.lb-bento-stats-value {
    font-size: 16px;
    font-weight: 700;
    color: #1b1a25;
    margin: 0;
}

/* Social tiles card: bottom-left */
.lb-bento-social {
    bottom: 12%;
    left: 2%;
    padding: .65rem;
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .45rem;
}

.lb-bento-social-tile {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-bento-social-tile .material-icons {
    font-size: 1.2rem;
}

.lb-bento-social-add {
    background: #e4e0ef;
    color: #1b1a25;
}

/* Store item card: top-right */
.lb-bento-store {
    top: 18%;
    right: -2%;
    width: 142px;
    padding: .55rem;
    border-radius: 14px;
}

.lb-bento-store-img {
    width: 100%;
    height: 82px;
    border-radius: 10px;
    margin-bottom: .45rem;
    /*background: linear-gradient(135deg, #f7d3c4 0%, #f0a589 50%, #d96446 100%);*/
    background-image: url(step03_01.png);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -8px 14px rgba(0, 0, 0, .05);
}

.lb-bento-store-title {
    font-size: 12px;
    font-weight: 600;
    color: #1b1a25;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-bento-store-price {
    font-size: 12px;
    color: #4129e7;
    font-weight: 600;
    margin: 0;
}

/* Brand text below bento */
.lb-bento-text {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 360px;
}

.lb-bento-text-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .5rem;
}

.lb-bento-text-sub {
    font-size: .95rem;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

/* ---- Step 2 goal grid (6 cards, 2-col → 3-col) ------------ */
.lb-goal-grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    margin-bottom: .5rem;
}

@media (min-width: 480px) {
    .lb-goal-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lb-goal-card-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.5rem 1rem;
    border: 1.5px solid #e4e5ec;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
    user-select: none;
    aspect-ratio: 1 / 0.75;
}

.lb-goal-card-v2:hover {
    border-color: #c4c0ff;
    box-shadow: 0 2px 10px rgba(65, 41, 231, .08);
}

.lb-goal-card-v2--selected {
    border: 2px solid #4129e7;
    box-shadow: 0 0 0 3px rgba(65, 41, 231, .1);
}

/* Checkmark badge — top physical-right corner regardless of direction */
.lb-goal-card-v2-check {
    display: none;
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4129e7;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.lb-goal-card-v2-check .material-icons {
    font-size: .85rem;
    line-height: 1;
}

.lb-goal-card-v2--selected .lb-goal-card-v2-check {
    display: flex;
}

/* Icon circle */
.lb-goal-card-v2-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5fc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.lb-goal-card-v2-icon .material-icons {
    color: #9ca0ae;
    font-size: 1.5rem;
    transition: color .15s;
}

.lb-goal-card-v2--selected .lb-goal-card-v2-icon {
    background: #efedff;
}

.lb-goal-card-v2--selected .lb-goal-card-v2-icon .material-icons {
    color: #4129e7;
}

.lb-goal-card-v2:hover:not(.lb-goal-card-v2--selected) .lb-goal-card-v2-icon {
    background: #f0ecfa;
}

.lb-goal-card-v2:hover:not(.lb-goal-card-v2--selected) .lb-goal-card-v2-icon .material-icons {
    color: #7b6ff5;
}

/* Label */
.lb-goal-card-v2-label {
    font-size: .82rem;
    font-weight: 600;
    color: #6b6f80;
    transition: color .15s;
}

.lb-goal-card-v2--selected .lb-goal-card-v2-label {
    color: #1b1a25;
}

/* ---- Wizard actions row (Continue + Skip) ----------------- */
.lb-wizard-actions-2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.lb-wizard-actions-2 .lb-btn-primary {
    flex: 1;
}

/* Step 4 platform picker: Continue stacked above Skip */
.lb-wizard-actions-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    width: 100%;
}

.lb-wizard-actions-platforms .lb-btn-primary {
    width: 100%;
}

.lb-wizard-skip {
    background: none;
    border: none;
    font-size: .95rem;
    color: #9ca0ae;
    cursor: pointer;
    padding: .4rem .5rem;
    flex-shrink: 0;
    transition: color .15s;
}

.lb-wizard-skip:hover {
    color: #1b1a25;
}

/* ---- gap utility (Bootstrap 4 compat) --------------------- */
.gap-2 {
    gap: .5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* ============================================================
   Wizard split-screen layout (Welcome / onboarding)
   ============================================================ */

/* Form pane override: remove default padding so inner div controls it */
.lb-wizard-form-pane {
    padding: 0;
    align-items: stretch;
}

/* Full-height flex column inside the form pane */
.lb-wizard-form-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1.25rem 0;
}

@media (min-width: 992px) {
    .lb-wizard-form-inner {
        padding: 2.5rem 3rem 0;
    }
}

/* Logo header row */
.lb-wizard-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: .5rem;
}

.lb-wizard-header-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.lb-wizard-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-wizard-header-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lb-wizard-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1b1a25;
}

/* Back button */
.lb-wizard-back-form {
    margin: 0;
}

.lb-wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: none;
    border: none;
    padding: .4rem .5rem;
    cursor: pointer;
    color: #6b6f80;
    font-size: .9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color .15s, background .15s;
    line-height: 1;
}

.lb-wizard-back-btn:hover {
    color: #4129e7;
    background: #f0ecfa;
}

.lb-wizard-back-btn .material-icons {
    font-size: 1.1rem;
}

.lb-wizard-back-label {
    display: none;
}

@media (min-width: 480px) {
    .lb-wizard-back-label {
        display: inline;
    }
}

/* RTL: explicitly assign all three columns to avoid browser auto-placement ambiguity */
[dir="rtl"] .lb-wizard-header-start {
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
}

[dir="rtl"] .lb-wizard-header-center {
    grid-column: 2;
    grid-row: 1;
}

[dir="rtl"] .lb-wizard-header-end {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
}

/* Help link */
.lb-wizard-help-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #9ca0ae;
    font-size: .85rem;
    text-decoration: none;
    transition: color .15s;
}

.lb-wizard-help-link:hover {
    color: #4129e7;
}

.lb-wizard-help-link .material-icons {
    font-size: 1rem;
}

.lb-wizard-help-label {
    display: none;
}

@media (min-width: 480px) {
    .lb-wizard-help-label {
        display: inline;
    }
}

/* Centered content area pushes footer to bottom */
.lb-wizard-form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 672px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px 1.5rem;
}

.lb-wizard-form-narrow {
    max-width: 450px;
}

/* Footer bar */
.lb-wizard-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding-top: 1.25rem;
    margin-top: auto;
    border-top: 1px solid #e4e5ec;
    text-align: center;
}

@media (min-width: 640px) {
    .lb-wizard-footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: start;
    }
}

.lb-wizard-footer-copy {
    font-size: 12px;
    color: #9ca0ae;
    margin: 0;
}

.lb-wizard-footer-links {
    display: flex;
    gap: 1.25rem;
}

.lb-wizard-footer-links a {
    font-size: 12px;
    color: #9ca0ae;
    text-decoration: none;
}

.lb-wizard-footer-links a:hover {
    color: #4129e7;
    text-decoration: underline;
}

/* Brand pane: override gradient for wizard */
.lb-wizard-brand {
    background: linear-gradient(135deg, #5b4bff 0%, #4129e7 55%, #fd7958 100%);
}

/* Centered wrapper inside brand pane */
.lb-wizard-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

/* Glass profile card */
.lb-wizard-brand-card {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, .22);
}

.lb-wizard-brand-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 4px solid rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.lb-wizard-brand-avatar .material-icons {
    color: rgba(255, 255, 255, .85);
    font-size: 3rem;
}

.lb-wizard-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
}



/* ============================================================
   Mock Profile Stage (Step 3 Theme Picker)
   ============================================================ */

.lb-mock-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-mock-phone {
    width: 280px;
    height: 560px;
    border-radius: 40px;
    border: 8px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.lb-mock-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: rgba(255, 255, 255, .2);
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.lb-mock-header {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lb-mock-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #fcf8ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-bottom: .75rem;
}

.lb-mock-name {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: .25rem;
}

.lb-mock-title {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 1.5rem;
}

.lb-mock-links {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: 100%;
}

.lb-mock-link {
    height: 48px;
    background: rgba(255, 255, 255, .2);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.lb-mock-link-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}

[dir="rtl"] .lb-mock-link-icon {
    margin-left: .75rem;
}

[dir="ltr"] .lb-mock-link-icon {
    margin-right: .75rem;
}

.lb-mock-link-text {
    height: 12px;
    background: rgba(255, 255, 255, .4);
    border-radius: 4px;
}

.lb-mock-link-1 .lb-mock-link-text {
    width: 90px;
}

.lb-mock-link-2 .lb-mock-link-text {
    width: 120px;
}

.lb-mock-link-3 .lb-mock-link-text {
    width: 70px;
}

/* Floating elements */
.lb-mock-float-1 {
    position: absolute;
    top: 15%;
    right: -5%;
    width: 190px;
    padding: .75rem;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: rotate(6deg);
    z-index: 20;
    animation: lbPulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.lb-mock-float-1-img {
    height: 96px;
    background: rgba(252, 248, 255, .3);
    border-radius: 8px;
    margin-bottom: .5rem;
    overflow: hidden;
}

.lb-mock-float-1-img-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 41, 231, .4), rgba(167, 57, 30, .4));
}

.lb-mock-float-1-line {
    height: 12px;
    width: 75%;
    background: rgba(252, 248, 255, .5);
    border-radius: 4px;
    margin-bottom: .5rem;
}

.lb-mock-float-1-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-mock-float-1-price {
    height: 16px;
    width: 33%;
    background: rgba(252, 248, 255, .8);
    border-radius: 4px;
}

.lb-mock-float-1-btn {
    height: 24px;
    width: 64px;
    background: rgba(65, 41, 231, .8);
    border-radius: 9999px;
}

.lb-mock-float-2 {
    position: absolute;
    bottom: 20%;
    left: -10%;
    padding: 1rem;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.lb-mock-float-2-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(252, 248, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-mock-float-2-icon .material-icons {
    color: #fff;
    font-size: 24px;
}

.lb-mock-float-2-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 2px;
}

.lb-mock-float-2-val {
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}

@keyframes lbPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }
}

.lb-wizard-brand-handle {
    font-size: .82rem;
    color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: .25rem .9rem;
    border: 1px solid rgba(255, 255, 255, .15);
    direction: ltr;
}

.lb-wizard-brand-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .75rem;
}

.lb-wizard-brand-link-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: .75rem 1rem;
}

.lb-wizard-brand-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .28);
    flex-shrink: 0;
}

.lb-wizard-brand-link-bar {
    flex: 1;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .28);
}

/* Handle row: icon slot on the physical right (row is always dir=ltr) */
.lb-handle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;
    flex-shrink: 0;
    min-width: 2.75rem;
}

.lb-handle-ok-icon {
    color: #1fad66;
    font-size: 1.25rem !important;
}

.lb-handle-taken-icon {
    color: #c0392b;
    font-size: 1.25rem !important;
}

/* Override RTL border flip when the row is forced ltr */
.lb-handle-row[dir="ltr"] .lb-handle-prefix {
    border-right: 1.5px solid #dddee8;
    border-left: none;
}

/* CSS spinner for "checking" state */
.lb-handle-spin {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #4129e7;
    border-radius: 50%;
    animation: lb-spin .7s linear infinite;
}

@keyframes lb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Continue button with directional arrow */
.lb-btn-primary-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.lb-btn-arrow {
    font-size: 1.1rem !important;
}

[dir="rtl"] .lb-btn-arrow {
    transform: rotate(180deg);
}

/* "I'll do this later" secondary link */
.lb-wizard-later-wrap {
    text-align: center;
    margin-top: 1.25rem;
}

.lb-wizard-later {
    font-size: .9rem;
    color: #6b6f80;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: transparent;
}

.lb-wizard-later:hover {
    color: #4129e7;
    text-decoration-color: currentColor;
}

/* Field with extra top margin */
.lb-field--push {
    margin-top: 1.5rem;
}

/* Limit Continue button width on desktop */
@media (min-width: 768px) {
    .lb-btn-primary-arrow {
        max-width: 66.666%;
        margin-left: auto;
        margin-right: auto;
    }

    .lb-wizard-actions-2,
    .lb-wizard-actions {
        justify-content: center;
    }
}

/* Profile viewer styles (lb-pv-*) moved to creator.css */