:root {
    --navy:         #ffffff;
    --navy-2:       #f0f4ff;
    --navy-3:       #e8efff;
    --indigo:       #3b5bdb;
    --indigo-light: #4c6ef5;
    --blue:         #228be6;
    --cyan:         #15aabf;
    --emerald:      #12b886;
    --amber:        #f59f00;
    --red:          #fa5252;
    --white:        #0d1e3c;
    --text-dim:     rgba(13,30,60,0.45);
    --text-mid:     rgba(13,30,60,0.65);
    --border:       rgba(59,91,219,0.15);
    --card-bg:      rgba(255,255,255,0.80);
    --card-hover:   rgba(59,91,219,0.06);
    --glow-indigo:  rgba(59,91,219,0.40);
    --glow-cyan:    rgba(21,170,191,0.28);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    color: #000;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── BACKGROUND ── */
.bg-mesh {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-mesh::before {
    content: '';
    position: absolute; width: 900px; height: 900px;
    top: -300px; left: -200px;
    background: radial-gradient(circle, rgba(59,91,219,0.08) 0%, transparent 65%);
    animation: pulse1 9s ease-in-out infinite alternate;
}
.bg-mesh::after {
    content: '';
    position: absolute; width: 700px; height: 700px;
    bottom: -200px; right: -100px;
    background: radial-gradient(circle, rgba(21,170,191,0.06) 0%, transparent 65%);
    animation: pulse2 11s ease-in-out infinite alternate;
}
@keyframes pulse1 { from{transform:scale(1) translate(0,0)} to{transform:scale(1.15) translate(40px,30px)} }
@keyframes pulse2 { from{transform:scale(1) translate(0,0)} to{transform:scale(1.2) translate(-30px,-40px)} }

.grid-lines {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(59,91,219,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(59,91,219,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── LAYOUT ── */
.page-wrap {
    position: relative; z-index: 1;
    display: flex; min-height: 100vh;
}

/* ─────────── LEFT SIDEBAR ─────────── */
.left-sidebar {
    width: 340px; min-width: 340px;
    background: linear-gradient(160deg, #dde8ff 0%, #edf2ff 55%, #f3f7ff 100%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 40px 36px;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex; align-items: center; gap: 13px;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease both;
}

.brand-logo {
    width: 46px; height: 46px;
    /* background: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%); */
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: #fff;
    /* box-shadow: 0 0 24px var(--glow-indigo); */
}

.brand-name {
    font-size: 18px; font-weight: 800; letter-spacing: -0.4px;
    color: #0d1e3c;
}
.brand-sub {
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--cyan); margin-top: 1px;
}

/* Steps tracker */
.steps-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
    text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 20px;
    animation: fadeUp 0.5s 0.1s ease both;
}
.step-list {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 40px;
    animation: fadeUp 0.5s 0.15s ease both;
}
.step-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 13px 15px; border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s; cursor: default;
    position: relative;
}
.step-item.active {
    background: rgba(59,91,219,0.10);
    border-color: rgba(59,91,219,0.22);
}
.step-item.done {
    background: rgba(18,184,134,0.08);
    border-color: rgba(18,184,134,0.18);
}
.step-item.upcoming { opacity: 0.55; }
.step-num {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    transition: all 0.3s;
}
.step-item.active .step-num {
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    color: #fff;
}
.step-item.done .step-num {
    background: var(--emerald); color: #fff; font-size: 13px;
}
.step-item.upcoming .step-num {
    background: rgba(13,30,60,0.10); color: var(--text-dim);
}
.step-info { display: flex; flex-direction: column; }
.step-name {
    font-size: 13px; font-weight: 700; color: #0d1e3c; line-height: 1;
    margin-bottom: 3px;
}
.step-item.upcoming .step-name { color: var(--text-dim); }
.step-desc { font-size: 11px; font-weight: 400; color: var(--text-dim); }

/* Benefits */
.benefits-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
    text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 16px;
    animation: fadeUp 0.5s 0.2s ease both;
}
.benefit-list {
    display: flex; flex-direction: column; gap: 11px;
    animation: fadeUp 0.5s 0.25s ease both;
}
.benefit-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px; font-weight: 400; color: var(--text-mid);
    line-height: 1.5;
}
.benefit-icon {
    font-size: 14px; flex-shrink: 0; margin-top: 1px;
    color: var(--indigo);
}

.sidebar-footer {
    margin-top: auto; padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 11px; color: var(--text-dim);
    animation: fadeUp 0.5s 0.3s ease both;
}
.sidebar-footer a { color: var(--cyan); text-decoration: none; }

/* ─────────── MAIN CONTENT ─────────── */
.main-content {
    flex: 1;
    padding: 40px 60px 60px;
    overflow-y: auto;
    display: flex; flex-direction: column;
}

/* Top bar */
.top-bar {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 40px; gap: 12px; flex-wrap: wrap;
    animation: fadeUp 0.5s ease both;
}
.top-bar-left { flex: 1; }
.page-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(21,170,191,0.10); border: 1px solid rgba(21,170,191,0.22);
    border-radius: 100px; padding: 5px 13px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 10px;
}
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--cyan); animation:blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.page-title {
    font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.8px; color: #0d1e3c;
}
.page-subtitle {
    font-size: 13.5px; font-weight: 400; color: var(--text-dim); margin-top: 4px;
}
.login-link {
    font-size: 13px; font-weight: 500; color: var(--text-mid);
}
.login-link a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.login-link a:hover { opacity: 0.75; }

/* Progress bar */
.progress-bar-wrap {
    background: rgba(59,91,219,0.10);
    border-radius: 100px; height: 4px;
    margin-bottom: 40px; overflow: hidden;
    animation: fadeUp 0.5s 0.1s ease both;
}
.progress-bar-fill {
    height: 100%; border-radius: 100px;
    background: linear-gradient(90deg, var(--indigo), var(--cyan));
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Step panels */
.step-panel { display: none; }
.step-panel.active {
    display: block;
    animation: fadeUp 0.45s ease both;
}

/* Section heading */
.section-heading {
    font-size: 13px; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase;
    color: #0d1e3c;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}

/* Role selector */
.role-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 36px;
}
.role-card {
    border: 2px solid var(--border);
    border-radius: 16px; padding: 20px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer; background: rgba(255,255,255,0.85);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative; overflow: hidden; text-align: center;
    box-shadow: 0 2px 8px rgba(59,91,219,0.06);
}
.role-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 60%, var(--cyan) 100%);
    opacity: 0; transition: opacity 0.3s; border-radius: inherit;
}
.role-card.active {
    border-color: var(--indigo-light);
    box-shadow: 0 0 0 4px rgba(76,110,245,0.15), 0 8px 32px rgba(59,91,219,0.25);
}
.role-card.active::before { opacity: 1; }
.role-card:hover:not(.active) {
    background: rgba(59,91,219,0.05);
    border-color: rgba(59,91,219,0.25);
    transform: translateY(-2px);
}
.role-card-icon {
    font-size: 28px; position: relative; z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    color: var(--indigo);
}
.role-card.active .role-card-icon { transform: scale(1.2); color: #fff; }
.role-card-name {
    font-size: 13px; font-weight: 700;
    position: relative; z-index: 1;
    color: #0d1e3c; line-height: 1.3;
    transition: color 0.3s;
}
.role-card.active .role-card-name { color: #fff; }
.role-card-desc {
    font-size: 10.5px; font-weight: 400; color: var(--text-dim);
    position: relative; z-index: 1; line-height: 1.5;
}
.role-card.active .role-card-desc { color: rgba(255,255,255,0.85); }
.role-check {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(59,91,219,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; z-index: 1;
    transition: all 0.3s; color: var(--indigo);
}
.role-card.active .role-check { background: rgba(255,255,255,0.30); color: #fff; }

/* Form grid */
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    margin-bottom: 24px;
}
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-label {
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase;
    color: #0d1e3c;
}
.field-label .req { color: var(--red); margin-left: 2px; }
.field-wrap { position: relative; }
.field-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    font-size: 14px; color: var(--text-dim); pointer-events: none;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    padding: 12.5px 14px 12.5px 42px;
    color: #0d1e3c;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 400;
    outline: none; transition: all 0.22s;
    -webkit-appearance: none;
}

select { cursor: pointer; }
select option { background: #fff; color: #0d1e3c; }
textarea {
    resize: vertical; min-height: 88px;
    padding-top: 12px; padding-left: 42px;
    line-height: 1.6;
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
    border-color: var(--indigo-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,91,219,0.12);
}
input.error, select.error { border-color: var(--red) !important; }
.field-hint {
    font-size: 11px; font-weight: 400; color: var(--text-dim);
    margin-top: 2px;
}
.field-error {
    font-size: 11px; font-weight: 600; color: var(--red);
    margin-top: 2px; display: none;
}
.pw-toggle {
    position: absolute; right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-dim); cursor: pointer;
    font-size: 15px; padding: 0; transition: color 0.2s;
}
.pw-toggle:hover { color: #0d1e3c; }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-bars { display: flex; gap: 4px; margin-bottom: 5px; }
.pw-bar {
    flex: 1; height: 3px; border-radius: 100px;
    background: rgba(13,30,60,0.10); transition: background 0.3s;
}
.pw-bar.weak   { background: var(--red); }
.pw-bar.fair   { background: var(--amber); }
.pw-bar.good   { background: var(--blue); }
.pw-bar.strong { background: var(--emerald); }
.pw-label { font-size: 10.5px; font-weight: 600; color: var(--text-dim); }
.pw-label.weak-t   { color: var(--red); }
.pw-label.fair-t   { color: var(--amber); }
.pw-label.good-t   { color: var(--blue); }
.pw-label.strong-t { color: var(--emerald); }

/* OTP box */
.otp-row { display: flex; gap: 10px; align-items: flex-end; }
.otp-row input { flex: 1; }
.btn-send-otp {
    padding: 12.5px 18px;
    background: rgba(59,91,219,0.10);
    border: 1.5px solid rgba(59,91,219,0.25);
    border-radius: 11px; color: var(--indigo-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all 0.25s; white-space: nowrap;
}
.btn-send-otp:hover { background: rgba(59,91,219,0.20); color: var(--indigo); }
.btn-send-otp:disabled { opacity: 0.5; cursor: not-allowed; }

/* OTP digits */
.otp-digits { display: flex; gap: 10px; justify-content: center; margin: 8px 0; }
.otp-digit {
    width: 46px; height: 52px; text-align: center;
    background: rgba(255,255,255,0.95);
    border: 2px solid var(--border);
    border-radius: 12px; color: #0d1e3c;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px; font-weight: 700;
    outline: none; transition: all 0.2s;
    padding: 0;
}
.otp-digit:focus {
    border-color: var(--indigo-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,91,219,0.12);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed rgba(59,91,219,0.20);
    border-radius: 14px; padding: 28px 20px;
    text-align: center; cursor: pointer;
    transition: all 0.3s; background: rgba(255,255,255,0.65);
    position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--indigo-light);
    background: rgba(59,91,219,0.06);
}
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 28px; margin-bottom: 10px; }
.upload-title { font-size: 13.5px; font-weight: 700; color: #0d1e3c; margin-bottom: 5px; }
.upload-sub { font-size: 11.5px; font-weight: 400; color: var(--text-dim); }
.upload-types {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px;
}
.upload-type-tag {
    padding: 3px 10px; border-radius: 6px;
    background: rgba(59,91,219,0.08); border: 1px solid rgba(59,91,219,0.15);
    font-size: 10.5px; font-weight: 600; color: var(--indigo);
}

/* Checkbox & Radio */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-group input[type="checkbox"] {
    width: 16px; height: 16px; min-width: 16px; margin-top: 2px;
    accent-color: var(--indigo-light); padding: 0; border-radius: 4px;
    background: transparent; border: none; box-shadow: none;
}
.checkbox-label {
    font-size: 13px; font-weight: 400; color: #0d1e3c; line-height: 1.6;
}
.checkbox-label a { color: var(--cyan); text-decoration: none; font-weight: 600; }

/* Review card */
.review-section { margin-bottom: 28px; }
.review-section-title {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #0d1e3c;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.review-edit-btn {
    font-size: 11px; font-weight: 600; color: var(--indigo-light);
    background: none; border: none; cursor: pointer; padding: 0;
    transition: color 0.2s;
}
.review-edit-btn:hover { color: var(--cyan); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.review-item { display: flex; flex-direction: column; }
.review-key { font-size: 10.5px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.review-val { font-size: 13.5px; font-weight: 600; color: #0d1e3c; }

/* Declaration box */
.declaration-box {
    background: rgba(59,91,219,0.05);
    border: 1px solid rgba(59,91,219,0.15);
    border-radius: 14px; padding: 20px;
    margin-bottom: 24px;
}
.declaration-title { font-size: 13px; font-weight: 700; color: #0d1e3c; margin-bottom: 10px; }
.declaration-text { font-size: 12px; font-weight: 400; color: var(--text-mid); line-height: 1.7; }

/* Navigation buttons */
.nav-btns {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 36px; padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 14px; flex-wrap: wrap;
}
.btn-back {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    background: transparent; border: 1.5px solid var(--border);
    border-radius: 12px; color: var(--text-mid);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.25s;
}
.btn-back:hover { background: rgba(59,91,219,0.06); border-color: rgba(59,91,219,0.25); color: var(--indigo); }
.btn-next {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--blue) 55%, var(--cyan) 100%);
    border: none; border-radius: 12px; color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59,91,219,0.40);
    position: relative; overflow: hidden;
}
.btn-next::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.12); opacity: 0; transition: opacity 0.3s;
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,91,219,0.55); }
.btn-next:hover::after { opacity: 1; }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Success screen */
.success-screen {
    text-align: center; padding: 60px 20px;
    display: none;
    animation: fadeUp 0.6s ease both;
}
.success-screen.show { display: block; }
.success-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--emerald), #0ca678);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 36px; color: #fff;
    margin: 0 auto 28px; box-shadow: 0 0 40px rgba(18,184,134,0.4);
    animation: popIn 0.6s 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.success-title {
    font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -1px;
    margin-bottom: 12px; color: #0d1e3c;
}
.success-sub {
    font-size: 15px; font-weight: 400; color: var(--text-mid); margin-bottom: 8px;
    max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.success-ref {
    display: inline-block;
    background: rgba(18,184,134,0.1); border: 1px solid rgba(18,184,134,0.25);
    border-radius: 8px; padding: 8px 18px;
    font-size: 13px; font-weight: 700; color: var(--emerald);
    margin: 18px 0 32px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary-success {
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    border: none; border-radius: 12px; color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 4px 20px rgba(59,91,219,0.4);
}
.btn-primary-success:hover { transform: translateY(-2px); }
.btn-sec-success {
    padding: 13px 28px;
    background: transparent; border: 1.5px solid var(--border);
    border-radius: 12px; color: var(--text-mid);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.25s;
}
.btn-sec-success:hover { background: rgba(59,91,219,0.06); color: var(--indigo); }

/* Step counter */
.step-counter {
    font-size: 12px; font-weight: 600; color: var(--text-mid);
}
.step-counter strong { color: var(--indigo-light); }

@keyframes fadeUp {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Floating toast */
.floaty {
    position: fixed; bottom: 18px; right: 30%;
    background: rgba(255,255,255,0.95); border: 1px solid rgba(21,170,191,0.25);
    border-radius: 14px; padding: 11px 16px;
    display: flex; align-items: center; gap: 10px;
    backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(59,91,219,0.15);
    animation: floatIn 0.6s 1s ease both; z-index: 100;
}
@keyframes floatIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
.floaty-dot { width:7px; height:7px; border-radius:50%; background:var(--emerald); animation:blink 1.6s infinite; }
.floaty-text { font-size:12px; font-weight:500; color: var(--text-mid); }
.floaty-text strong { color: #0d1e3c; font-weight:700; }

/* ── 13-inch laptop (sidebar visible but slim) ── */
@media (max-width: 1280px) {
    .left-sidebar { width: 280px; min-width: 280px; padding: 32px 22px; }
    .main-content { padding: 32px 36px 48px; }
    .role-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .brand-name { font-size: 15px; }
}

/* ── Tablet / small laptop (sidebar hidden) ── */
@media (max-width: 1100px) {
    .left-sidebar { display: none; }
    .main-content { padding: 32px 28px 48px; }
    .role-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Tablet portrait ── */
@media (max-width: 768px) {
    .main-content { padding: 24px 18px 40px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .col-span-2 { grid-column: span 1; }
    .review-grid { grid-template-columns: 1fr; }
    .otp-digits { gap: 6px; }
    .otp-digit { width: 40px; height: 48px; font-size: 20px; }
    .nav-btns { flex-direction: column; align-items: stretch; }
    .btn-back, .btn-next { justify-content: center; width: 100%; }
    .step-counter { text-align: center; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .main-content { padding: 20px 14px 36px; }
    .role-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .role-card { padding: 14px 10px; }
    .role-card-desc { display: none; }
    .otp-digit { width: 36px; height: 44px; font-size: 18px; }
    .floaty { bottom: 14px; right: 14px; padding: 8px 12px; font-size: 11px; }
    .success-actions { flex-direction: column; }
    .btn-primary-success, .btn-sec-success { width: 100%; }
}
