/* ══════════════════════════════════════
   PreaWedding — Onboarding Wizard
   Editorial Atelier · Ceremonial Flow
   Fraunces + Outfit · Linen · Gold · Rose
══════════════════════════════════════ */
:root {
    --bg: #fbf7f0;
    --bg2: #f3ede3;
    --bg3: #ebe3d5;
    --white: #fff;
    --card: #fff;
    --txt: #2c1810;
    --txt2: #5a4a3c;
    --txt3: #8a7a6c;
    --txt4: #b5a899;
    --gold: #b8956a;
    --gold-l: #cbaa82;
    --gold-d: #9a7a52;
    --rose: #c4918a;
    --rose-l: #d9afa9;
    --sage: #8fa887;
    --sage-l: #aac0a3;
    --sage-d: #6e8a66;
    --red: #c0564f;
    --red-l: #f4e8e7;
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 20px;
    --font: "Fraunces", Georgia, serif;
    --sans: "Outfit", "Helvetica Neue", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--txt);
    min-height: 100%;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
input {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    width: 100%;
}
em {
    font-style: italic;
    font-family: var(--font);
}

/* ═══ GRAIN ═══ */
.ob-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ═══ PARTICLES ═══ */
.ob-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ob-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 12s infinite;
}
@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    15% {
        opacity: 0.4;
    }
    85% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

/* ═══ HEADER ═══ */
.ob-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(251, 247, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.ob-brand {
    display: flex;
    align-items: baseline;
    font-size: 1.15rem;
    gap: 1px;
}
.brand-prea {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--gold-d);
}
.brand-wed {
    font-family: var(--font);
    font-weight: 400;
    font-style: italic;
    color: var(--txt);
    opacity: 0.7;
}
.ob-skip {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--txt4);
    font-weight: 500;
    transition: color 0.3s;
}
.ob-skip:hover {
    color: var(--gold);
}

/* Steps indicator */
.ob-steps-indicator {
    display: flex;
    align-items: center;
    gap: 0;
}
.ob-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--txt4);
    border: 1.5px solid rgba(44, 24, 16, 0.1);
    transition: all 0.4s var(--ease);
    position: relative;
}
.ob-step-dot span {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.ob-step-dot.active {
    border-color: var(--gold);
    color: var(--white);
    background: var(--gold);
    transform: scale(1.1);
}
.ob-step-dot.done {
    border-color: var(--sage);
    background: var(--sage);
    color: var(--white);
}
.ob-step-dot.done span {
    font-size: 0;
}
.ob-step-dot.done::after {
    content: "";
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
        no-repeat center/contain;
}
.ob-step-line {
    width: 40px;
    height: 2px;
    background: rgba(44, 24, 16, 0.08);
    position: relative;
    overflow: hidden;
}
.ob-step-line-fill {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}

/* ═══ PROGRESS BAR ═══ */
.ob-progress {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(44, 24, 16, 0.04);
    z-index: 99;
}
.ob-progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--rose), var(--gold), var(--sage));
    transition: width 0.6s var(--ease);
    border-radius: 0 2px 2px 0;
}

/* ═══ MAIN ═══ */
.ob-main {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

/* ═══ STEPS ═══ */
.ob-step {
    display: none;
    opacity: 0;
    min-height: calc(100vh - 190px);
}
.ob-step.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ob-step-inner {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 32px;
}
.ob-step-wide {
    max-width: 960px;
}
.ob-step-content {
    position: relative;
}

/* Tags & titles */
.ob-tag {
    display: inline-block;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-d);
    font-weight: 600;
    margin-bottom: 14px;
}
.ob-title {
    font-family: var(--font);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--txt);
}
.ob-title em {
    color: var(--gold-d);
}
.ob-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--txt3);
    margin-bottom: 36px;
    opacity: unset !important;
}
.ob-optional {
    color: var(--txt4);
    font-weight: 400;
}

/* ═══ FORM ═══ */
.ob-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.ob-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ob-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ob-field label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--txt2);
}
.ob-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid rgba(44, 24, 16, 0.08);
    border-radius: var(--r);
    padding: 0 16px;
    height: 50px;
    transition: all 0.3s var(--ease);
}
.ob-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}
.ob-input-wrap svg {
    width: 18px;
    height: 18px;
    stroke: var(--txt4);
    flex-shrink: 0;
    transition: stroke 0.3s;
}
.ob-input-wrap:focus-within svg {
    stroke: var(--gold);
}
.ob-input-wrap input {
    font-size: 0.82rem;
    color: var(--txt);
    height: 100%;
}
.ob-input-wrap input::placeholder {
    color: var(--txt4);
}

/* ═══ COUPLE PREVIEW ═══ */
.ob-couple-preview {
    margin-top: 36px;
    text-align: center;
    padding: 32px 20px;
    background: rgba(184, 149, 106, 0.04);
    border: 1px solid rgba(184, 149, 106, 0.1);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
}
.ob-couple-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(184, 149, 106, 0.06) 0%, transparent 70%);
}
.ob-preview-ring {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}
.ob-ring-svg {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 30s linear infinite;
}
@keyframes ringRotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.ob-preview-names {
    position: relative;
    z-index: 1;
    padding: 28px 0;
}
.ob-preview-names span {
    display: block;
    font-family: var(--font);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--txt);
    line-height: 1.3;
    transition: all 0.4s var(--ease);
}
.ob-preview-and {
    font-family: var(--font);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.7;
}
.ob-preview-date {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--txt4);
    margin-top: 4px;
}

/* ═══ TEMPLATE CARDS ═══ */
.ob-templates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ob-tpl-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--white);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    opacity: unset !important;
}
.ob-tpl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44, 24, 16, 0.08);
}
.ob-tpl-card.selected {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(184, 149, 106, 0.15);
}
.ob-tpl-card.selected::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.ob-tpl-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--bg2);
}
.ob-tpl-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    z-index: 3;
}

/* Template mockups */
.ob-tpl-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
}
.ob-mockup-header {
    padding: 6px 8px;
    display: flex;
    align-items: center;
}
.ob-mockup-nav {
    display: flex;
    gap: 3px;
}
.ob-mockup-nav span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(44, 24, 16, 0.15);
}
.ob-mockup-nav-modern {
    display: flex;
    gap: 8px;
}
.ob-mockup-nav-modern span {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: rgba(0, 0, 0, 0.2);
}
.ob-mockup-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ob-mockup-names {
    font-family: var(--font);
    font-size: 0.65rem;
    color: var(--txt2);
    text-align: center;
    font-weight: 400;
}
.ob-mockup-line {
    width: 30px;
    height: 1px;
    background: var(--gold-l);
    opacity: 0.5;
}
.ob-mockup-date-m {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(44, 24, 16, 0.06);
}
.ob-mockup-sections {
    display: flex;
    gap: 4px;
    padding: 8px;
}
.ob-mockup-block {
    flex: 1;
    height: 20px;
    border-radius: 3px;
    background: rgba(44, 24, 16, 0.04);
}

/* Elegance mockup */
.elegance {
    background: linear-gradient(180deg, #faf6ee, #f5efe4);
}
.elegance-hero {
    background: radial-gradient(ellipse at 50% 50%, rgba(184, 149, 106, 0.06), transparent);
}

/* Moderne mockup */
.moderne {
    background: #0a0a0a;
}
.moderne-h {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.moderne-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.moderne-names {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.moderne-line {
    background: rgba(184, 149, 106, 0.4) !important;
}
.moderne-sections {
    gap: 3px;
}
.moderne-block {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Mercy mockup */
.mercy {
    background: linear-gradient(180deg, #fffcf5, #fbf5e8);
}
.mercy-h {
    border-bottom: 1px solid rgba(184, 149, 106, 0.1);
}
.mercy-hero {
    background: radial-gradient(ellipse at 50% 30%, rgba(184, 149, 106, 0.05), transparent);
}
.mercy-names {
    font-style: italic;
}
.mercy-line {
    background: rgba(184, 149, 106, 0.3) !important;
    width: 50px;
}
.mercy-block {
    background: rgba(184, 149, 106, 0.04) !important;
}

.ob-tpl-info {
    padding: 16px 18px 18px;
}
.ob-tpl-info h3 {
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--txt);
}
.ob-tpl-info p {
    font-size: 0.68rem;
    color: var(--txt3);
    line-height: 1.5;
    margin-bottom: 10px;
}
.ob-tpl-fonts {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    color: var(--txt4);
}
.ob-tpl-font-sep {
    color: var(--gold-l);
}

/* ═══ THEME SELECTION ═══ */
.ob-theme-preview-wrap {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 28px;
    align-items: start;
}
.ob-theme-mockup {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(44, 24, 16, 0.06);
    box-shadow: 0 8px 32px rgba(44, 24, 16, 0.06);
    aspect-ratio: 4/3;
}
.ob-theme-mockup-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease);
    padding: 12px;
}
.ob-tm-header {
    padding: 8px 10px;
    display: flex;
    align-items: center;
}
.ob-tm-nav {
    display: flex;
    gap: 4px;
}
.ob-tm-nav span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.15;
}
.ob-tm-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ob-tm-names {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    transition: color 0.4s;
}
.ob-tm-divider {
    width: 40px;
    height: 1px;
    transition: background 0.4s;
}
.ob-tm-date {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: color 0.4s;
}
.ob-tm-body {
    display: flex;
    gap: 6px;
    padding: 10px;
}
.ob-tm-block {
    flex: 1;
    height: 28px;
    border-radius: 4px;
    opacity: 0.06;
    transition: background 0.4s;
}

.ob-themes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ob-theme-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.3s var(--ease);
    background: var(--white);
}
.ob-theme-swatch:hover {
    border-color: rgba(44, 24, 16, 0.1);
    transform: translateX(4px);
}
.ob-theme-swatch.selected {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(184, 149, 106, 0.12);
}
.ob-theme-colors {
    display: flex;
    gap: 3px;
}
.ob-theme-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ob-theme-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--txt2);
}

/* ═══ SLUG ═══ */
.ob-slug-wrap {
    max-width: 480px;
}
.ob-slug-input-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}
.ob-slug-prefix {
    font-size: 0.78rem;
    color: var(--txt3);
    font-weight: 500;
    background: var(--bg2);
    padding: 0 14px;
    height: 50px;
    display: flex;
    align-items: center;
    border-radius: var(--r) 0 0 var(--r);
    border: 1.5px solid rgba(44, 24, 16, 0.08);
    border-right: none;
    white-space: nowrap;
}
.ob-slug-input {
    border-radius: 0 var(--r) var(--r) 0 !important;
}
.ob-slug-input input {
    letter-spacing: 0.02em;
}
.ob-slug-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    color: var(--txt4);
    margin-bottom: 16px;
}
.ob-slug-status {
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    margin-bottom: 24px;
}
.ob-slug-status.available {
    color: var(--sage-d);
}
.ob-slug-status.taken {
    color: var(--red);
}
.ob-slug-status svg {
    width: 14px;
    height: 14px;
}

/* URL preview card */
.ob-url-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(44, 24, 16, 0.06);
    box-shadow: 0 12px 40px rgba(44, 24, 16, 0.06);
}
.ob-url-browser {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg2);
    border-bottom: 1px solid rgba(44, 24, 16, 0.04);
}
.ob-url-dots {
    display: flex;
    gap: 4px;
}
.ob-url-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(44, 24, 16, 0.1);
}
.ob-url-dots span:first-child {
    background: rgba(192, 86, 79, 0.4);
}
.ob-url-dots span:nth-child(2) {
    background: rgba(184, 149, 106, 0.4);
}
.ob-url-dots span:last-child {
    background: rgba(143, 168, 135, 0.4);
}
.ob-url-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    color: var(--txt3);
}
.ob-url-site-preview {
    padding: 32px 20px;
    text-align: center;
}
.ob-url-site-names {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--txt);
    margin-bottom: 8px;
}
.ob-url-site-line {
    width: 30px;
    height: 1px;
    background: var(--gold-l);
    margin: 0 auto 8px;
}
.ob-url-site-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--txt4);
}

/* ═══ SUCCESS ═══ */
.ob-success-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.ob-success-icon {
    margin-bottom: 24px;
}
.ob-success-icon svg {
    width: 80px;
    height: 80px;
}
.ob-check-path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkDraw 0.8s 0.3s var(--ease) forwards;
}
@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}
.ob-success-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.ob-success-summary {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    margin: 32px 0;
    text-align: left;
    border: 1px solid rgba(44, 24, 16, 0.06);
}
.ob-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(44, 24, 16, 0.04);
}
.ob-summary-row:last-child {
    border-bottom: none;
}
.ob-summary-label {
    font-size: 0.68rem;
    color: var(--txt3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}
.ob-summary-value {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--txt);
}
.ob-summary-url {
    color: var(--gold-d);
    font-size: 0.75rem;
}

/* ═══ BUTTONS ═══ */
.ob-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 32px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}
.ob-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold-d);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease);
}
.ob-btn-primary:hover::before {
    transform: translateX(0);
}
.ob-btn-primary span,
.ob-btn-primary svg {
    position: relative;
    z-index: 1;
}
.ob-btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}
.ob-btn-primary:hover svg {
    transform: translateX(3px);
}
.ob-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(184, 149, 106, 0.2);
}
.ob-btn-primary:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ob-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--txt3);
    transition: all 0.3s var(--ease);
    letter-spacing: 0.04em;
}
.ob-btn-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}
.ob-btn-back:hover {
    color: var(--gold);
}
.ob-btn-back:hover svg {
    transform: translateX(-3px);
}

.ob-btn-dashboard {
    font-size: 0.76rem;
    height: 54px;
    padding: 0 40px;
    opacity: unset !important;
}

/* ═══ FOOTER NAV ═══ */
.ob-footer {
    position: fixed;
    bottom: 46px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: rgba(251, 247, 240, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(44, 24, 16, 0.04);
}

/* ═══ TOAST ═══ */
.ob-toast {
    position: fixed;
    bottom: 136px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    z-index: 200;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    max-width: 90vw;
}
.ob-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.ob-toast.success {
    background: var(--sage-d);
}
.ob-toast.error {
    background: var(--red);
}

/* ═══ CONFETTI ═══ */
.ob-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}

/* ══════════════════════════════════
   STEP 2 — TEMPLATE IFRAME PREVIEW
══════════════════════════════════ */

/* Two-column layout */
.ob-step-2-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1080px;
    width: 100%;
    padding: 20px 32px;
}

/* Left sidebar */
.ob-tpl-sidebar {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

/* Template row list */
.ob-tpl-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ob-tpl-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--r);
    border: 1.5px solid rgba(44, 24, 16, 0.07);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    background: var(--white);
    position: relative;
}
.ob-tpl-row:hover {
    border-color: rgba(184, 149, 106, 0.3);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(184, 149, 106, 0.08);
}
.ob-tpl-row.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(184, 149, 106, 0.04), rgba(196, 145, 138, 0.03));
    box-shadow: 0 6px 24px rgba(184, 149, 106, 0.12);
}

/* Radio indicator */
.ob-tpl-row-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(44, 24, 16, 0.15);
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
    position: relative;
}
.ob-tpl-row.selected .ob-tpl-row-radio {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2);
}
.ob-tpl-row.selected .ob-tpl-row-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--white);
}

.ob-tpl-row-info {
    flex: 1;
    min-width: 0;
}
.ob-tpl-row-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--txt);
    margin-bottom: 3px;
}
.ob-tpl-row-info span {
    display: block;
    font-size: 0.62rem;
    color: var(--txt4);
    line-height: 1.4;
}

.ob-tpl-row-badge {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}

/* Premium template rows */
.ob-tpl-premium {
    position: relative;
    opacity: 0.65;
}
.ob-tpl-premium .ob-tpl-row-radio {
    border-color: var(--bg3);
}
.ob-tpl-premium:hover {
    opacity: 0.85;
}
.ob-tpl-premium.selected {
    /* Premium rows can't be truly selected on free plan */
    border-color: var(--bg3);
    background: var(--bg2);
}
.ob-tpl-premium.selected .ob-tpl-row-radio {
    border-color: var(--bg3);
    background: transparent;
}
.ob-tpl-premium.selected .ob-tpl-row-radio::after {
    display: none;
}
.ob-tpl-badge-premium {
    background: linear-gradient(135deg, var(--gold), var(--gold-d));
    color: var(--white);
    font-size: 0.48rem;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    flex-shrink: 0;
}

/* Premium toast hint */
.ob-premium-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--txt);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.72rem;
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
    z-index: 200;
    max-width: 360px;
    text-align: center;
    line-height: 1.5;
}
.ob-premium-hint.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ob-tpl-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.62rem;
    color: var(--txt4);
    line-height: 1.5;
    padding: 12px 14px;
    background: rgba(44, 24, 16, 0.02);
    border-radius: var(--r-sm);
    border: 1px solid rgba(44, 24, 16, 0.05);
}
.ob-tpl-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--gold-l);
}

/* Right preview column */
.ob-tpl-preview-col {
    position: sticky;
    top: 90px;
}

/* Browser mockup */
.ob-browser-mockup {
    background: var(--white);
    border-radius: 14px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.ob-browser-chrome {
    height: 38px;
    background: #ebebeb;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ob-browser-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.ob-browser-btns span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ob-browser-btns span:nth-child(1) {
    background: #ff5f56;
}
.ob-browser-btns span:nth-child(2) {
    background: #ffbd2e;
}
.ob-browser-btns span:nth-child(3) {
    background: #27c93f;
}

.ob-browser-urlbar {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    font-family: var(--sans);
    font-size: 10px;
    color: #666;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ob-browser-viewport {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #f2f2f2;
}

/* Loading overlay */
.ob-iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f2f2f2;
    z-index: 5;
    transition: opacity 0.4s;
}
.ob-iframe-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.ob-iframe-loader span {
    font-size: 0.65rem;
    color: var(--txt4);
}

.ob-iframe-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(184, 149, 106, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ob-iframe-scaler {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    opacity: 0;
}

#tpl-iframe {
    width: 1280px;
    height: 1400px; /* overridden by JS: viewportH / scale */
    border: none;
    pointer-events: none;
    display: block;
}

/* ══════════════════════════════════
   STEP 4 — ACCOUNT CREATION
══════════════════════════════════ */

/* Step 4 dot: special gold ring */
.ob-step-dot-last.active {
    background: linear-gradient(135deg, var(--gold), var(--rose));
    border-color: transparent;
    box-shadow:
        0 0 0 3px rgba(184, 149, 106, 0.2),
        0 4px 16px rgba(184, 149, 106, 0.3);
}

/* Two-column layout */
.ob-step-4-inner {
    max-width: 880px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── Left: Form ── */
.ob-step-4-form {
    display: flex;
    flex-direction: column;
}

/* Password wrap */
.ob-input-password-wrap {
    position: relative;
    padding-right: 0;
}
.ob-input-password-wrap input {
    padding-right: 44px;
}
.ob-pwd-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 14px;
    color: var(--txt4);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.ob-pwd-toggle:hover {
    color: var(--gold);
}

/* Password strength */
.ob-pwd-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    min-height: 14px;
}
.ob-pwd-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(44, 24, 16, 0.07);
    border-radius: 2px;
    overflow: hidden;
}
.ob-pwd-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition:
        width 0.5s var(--ease),
        background-color 0.4s;
}
.ob-pwd-label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-width: 44px;
    text-align: right;
}

/* Or divider */
.ob-or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--txt4);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ob-or-divider::before,
.ob-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(44, 24, 16, 0.07);
}

/* Google button */
.ob-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 50px;
    background: var(--white);
    border: 1.5px solid rgba(44, 24, 16, 0.1);
    border-radius: var(--r);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--txt);
    cursor: pointer;
    margin-bottom: 18px;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
.ob-google-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.04), rgba(52, 168, 83, 0.04));
    opacity: 0;
    transition: opacity 0.3s;
}
.ob-google-btn:hover {
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.ob-google-btn:hover::after {
    opacity: 1;
}

/* Login hint */
.ob-login-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--txt3);
}
.ob-link {
    color: var(--gold-d);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.ob-link:hover {
    color: var(--gold);
}

/* ── Right: Summary card ── */
.ob-step-4-card {
    perspective: 1200px;
}

.ob-choices-card {
    background: var(--white);
    border-radius: 20px;
    padding: 34px 30px;
    border: 1px solid rgba(44, 24, 16, 0.07);
    box-shadow:
        0 32px 80px rgba(44, 24, 16, 0.1),
        0 8px 24px rgba(44, 24, 16, 0.05);
    position: relative;
    overflow: hidden;
    animation: cardReveal 0.9s 0.15s var(--ease) both;
}
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: perspective(600px) rotateY(-12deg) translateX(40px);
    }
    to {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) translateX(0);
    }
}

/* Shimmer sweep */
.ob-choices-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(184, 149, 106, 0.07) 50%, transparent 60%);
    animation: shineSwipe 3.5s 1s ease-out infinite;
    pointer-events: none;
}
@keyframes shineSwipe {
    0% {
        left: -100%;
    }
    40% {
        left: 160%;
    }
    100% {
        left: 160%;
    }
}

.ob-choices-header {
    margin-bottom: 18px;
}
.ob-choices-couple {
    font-family: var(--font);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--txt);
    line-height: 1.2;
    margin-bottom: 5px;
    animation: fadeUp 0.6s 0.4s var(--ease) both;
}
.ob-choices-date {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--txt4);
    animation: fadeUp 0.5s 0.5s var(--ease) both;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ob-choices-divider {
    width: 36px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), var(--rose-l));
    margin: 18px 0;
    animation: dividerGrow 0.7s 0.6s var(--ease) both;
    transform-origin: left;
}
@keyframes dividerGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.ob-choices-items {
    display: flex;
    flex-direction: column;
}
.ob-choice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(44, 24, 16, 0.04);
    animation: choiceIn 0.5s calc(0.7s + var(--i) * 0.1s) var(--ease) both;
}
.ob-choice-row:last-child {
    border-bottom: none;
}
@keyframes choiceIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ob-choice-key {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--txt4);
    font-weight: 500;
}
.ob-choice-val {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--txt);
}
.ob-choice-url {
    color: var(--gold-d);
    font-size: 0.72rem;
    font-family: monospace;
}
.ob-choice-colors {
    display: flex;
    gap: 5px;
}
.ob-mini-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
}
.ob-mini-color:hover {
    transform: scale(1.2);
}

.ob-choices-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(44, 24, 16, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    color: var(--sage-d);
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeUp 0.5s 1.1s var(--ease) both;
}
.ob-choices-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(143, 168, 135, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .ob-header {
        padding: 16px 28px;
    }
    .ob-footer {
        padding: 16px 28px;
    }
    .ob-step-inner {
        padding: 20px 28px;
    }
    .ob-step-2-inner {
        grid-template-columns: 260px 1fr;
        gap: 28px;
        padding: 20px 28px;
    }
    .ob-browser-viewport {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .ob-header {
        padding: 14px 20px;
    }
    .ob-footer {
        padding: 14px 20px;
    }
    .ob-step-line {
        width: 20px;
    }
    .ob-step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
    }
    .ob-skip {
        display: none;
    }
    .ob-form-row {
        grid-template-columns: 1fr;
    }
    .ob-step-inner {
        padding: 16px 20px;
    }
    .ob-slug-input-row {
        flex-direction: column;
    }
    .ob-slug-prefix {
        border-radius: var(--r) var(--r) 0 0;
        border-right: 1.5px solid rgba(44, 24, 16, 0.08);
        border-bottom: none;
        width: 100%;
        justify-content: center;
    }
    .ob-slug-input {
        border-radius: 0 0 var(--r) var(--r) !important;
    }
    /* Step 2 mobile: preview on top, list below */
    .ob-step-2-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 20px;
    }
    .ob-tpl-preview-col {
        order: -1;
    }
    .ob-browser-viewport {
        height: 300px;
    }
    .ob-tpl-sidebar .ob-title {
        font-size: 1.3rem;
    }
    .ob-tpl-sidebar .ob-desc {
        font-size: 0.72rem;
        -webkit-line-clamp: 3;
    }
    /* Step 4 mobile: single column, card on top */
    .ob-step-4-inner {
        grid-template-columns: 1fr !important;
        gap: 28px;
        max-width: 480px !important;
    }
    .ob-step-4-card {
        order: -1;
    }
    .ob-choices-card {
        padding: 22px 20px;
    }
    .ob-choices-couple {
        font-size: 1.4rem;
    }
    .ob-step-line {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .ob-title {
        font-size: 1.5rem;
    }
    .ob-btn-primary {
        height: 46px;
        font-size: 0.66rem;
        padding: 0 24px;
    }
    .ob-step-line {
        width: 10px;
    }
    .ob-step-dot {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }
    .ob-preview-names span {
        font-size: 1.3rem;
    }
    .ob-choices-couple {
        font-size: 1.2rem;
    }
    .ob-choices-card {
        padding: 18px 16px;
    }
    .ob-browser-viewport {
        height: 240px;
    }
    .ob-footer {
        bottom: 42px;
    }
}

/* ═══ iOS ZOOM FIX ═══ */
@media screen and (max-width: 1024px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ═══ REDUCED MOTION — respect user accessibility preference ═══ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
