/* ============================================================
   AUTH — TENANT REGISTER PAGE  (design tokens = login)
   ============================================================ */

:root {
    --blue:         #0c40d4;
    --blue-dk:      #0a33b1;
    --blue-mid:     #1e5cf5;
    --blue-pale:    #eff6ff;
    --blue-light:   #dbeafe;
    --slate-900:    #0f172a;
    --slate-800:    #1e293b;
    --slate-700:    #334155;
    --slate-600:    #475569;
    --slate-500:    #64748b;
    --slate-400:    #94a3b8;
    --slate-300:    #cbd5e1;
    --slate-200:    #e2e8f0;
    --slate-100:    #f1f5f9;
    --slate-50:     #f8fafc;
    --white:        #ffffff;
    --success:      #10b981;
    --success-pale: #d1fae5;
    --danger:       #ef4444;
    --danger-pale:  #fee2e2;
    --warning:      #f59e0b;
    --warning-pale: #fef3c7;
    --gold:         #d97706;
    --gold-pale:    #fef3c7;
    --radius-2xl:   24px;
    --radius-xl:    18px;
    --radius-lg:    12px;
    --radius-md:    9px;
    --radius-sm:    6px;
    --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:    0 2px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:    0 4px 16px rgba(12,64,212,.10);
    --shadow-lg:    0 10px 32px rgba(12,64,212,.14);
    --shadow-focus: 0 0 0 4px rgba(12,64,212,.12);
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;
    --transition:   all 0.22s cubic-bezier(0.4,0,0.2,1);
    --panel-left:   420px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    width: 100%; min-height: 100%;
    font-family: var(--font);
    -webkit-tap-highlight-color: transparent;
}
body { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); display: flex; align-items: stretch; overflow-x: hidden; }

/* ─── Container ─── */
.register-container { display: flex; width: 100%; min-height: 100vh; background: var(--white); }

/* ─── Left panel ─── */
.left-panel {
    flex: 0 0 var(--panel-left);
    background: linear-gradient(155deg, #061d6a 0%, #0c40d4 52%, #1e5cf5 100%);
    padding: 48px 44px; display: flex; flex-direction: column;
    justify-content: space-between; color: white;
    position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.left-panel::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.18) 0%, transparent 50%);
    pointer-events: none;
}
.left-geo-1 { position: absolute; bottom: -100px; right: -100px; width: 360px; height: 360px; border: 56px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.left-geo-2 { position: absolute; top: 40px; right: -50px; width: 180px; height: 180px; border: 30px solid rgba(255,255,255,.06); border-radius: 50%; pointer-events: none; }
.left-geo-3 { position: absolute; top: 220px; left: -28px; width: 90px; height: 90px; border: 16px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.left-geo-4 { position: absolute; bottom: 180px; left: 40%; width: 60px; height: 60px; border: 10px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.left-content, .left-footer { position: relative; z-index: 1; }
.brand-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 48px; }
.brand-icon {
    width: 48px; height: 48px; background: rgba(255,255,255,.18);
    border: 1.5px solid rgba(255,255,255,.28); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; backdrop-filter: blur(8px);
}
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.4px; }
.left-headline { font-size: 1.55rem; font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.5px; }
.left-headline span { color: rgba(255,255,255,.55); }
.left-tagline { font-size: 0.88rem; opacity: 0.75; line-height: 1.7; margin-bottom: 40px; }
.features { display: flex; flex-direction: column; gap: 16px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; backdrop-filter: blur(6px);
}
.feature-text { font-size: 0.875rem; font-weight: 500; opacity: 0.88; line-height: 1.35; }
.feature-text strong { font-weight: 700; opacity: 1; }
.left-divider {
    height: 1px; margin: 32px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 100%);
}
.left-quote {
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px; padding: 18px 20px; font-size: 0.8rem;
    opacity: 0.85; line-height: 1.6; font-style: italic; backdrop-filter: blur(6px);
}
.left-quote strong { font-style: normal; opacity: 1; }

/* ─── Right panel ─── */
.right-panel {
    flex: 1; padding: 44px 60px; display: flex; flex-direction: column;
    justify-content: flex-start; min-height: 100vh; overflow-y: auto;
    background: var(--white);
    animation: fadeUp 0.38s ease-out;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Header ─── */
.register-header { text-align: center; margin-bottom: 32px; }
.logo { display: flex; justify-content: center; margin-bottom: 16px; }
.logo img { width: 72px; height: auto; filter: drop-shadow(0 4px 12px rgba(12,64,212,.18)); transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }
.register-title { font-size: 1.9rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.5px; margin-bottom: 6px; }
.register-subtitle { color: var(--slate-500); font-size: 0.88rem; font-weight: 500; line-height: 1.5; }

/* ─── Progress bar ─── */
.progress-track {
    height: 5px; background: var(--slate-200); border-radius: 5px;
    margin-bottom: 28px; overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-mid), #60a5fa);
    border-radius: 5px; transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px rgba(12,64,212,.4);
}

/* ─── Stepper ─── */
.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; max-width: 100px; position: relative; }
.step-item:not(:last-child)::after {
    content: ''; position: absolute; top: 18px;
    left: calc(50% + 18px); right: calc(-50% + 18px);
    height: 2px; background: var(--slate-200); z-index: 0;
    transition: background 0.4s;
}
.step-item.completed:not(:last-child)::after { background: var(--blue); }
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    border: 2.5px solid var(--slate-200); background: var(--white);
    color: var(--slate-400); transition: var(--transition); position: relative; z-index: 1;
}
.step-item.active .step-circle {
    border-color: var(--blue); background: var(--blue); color: white;
    box-shadow: 0 0 0 5px rgba(12,64,212,.12), var(--shadow-md);
    transform: scale(1.1);
}
.step-item.completed .step-circle { border-color: var(--blue); background: var(--blue); color: white; }
.step-label {
    font-size: 0.62rem; font-weight: 700; color: var(--slate-400);
    text-transform: uppercase; letter-spacing: 0.6px; text-align: center;
    white-space: nowrap; transition: color 0.3s;
}
.step-item.active .step-label, .step-item.completed .step-label { color: var(--blue); }

/* ─── Form steps ─── */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.32s cubic-bezier(0.4,0,0.2,1); }
.form-step.going-back { animation: stepBack 0.32s cubic-bezier(0.4,0,0.2,1); }
@keyframes stepIn  { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
.step-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.6px;
    color: var(--blue-mid); font-weight: 800; margin-bottom: 6px;
    padding: 4px 12px; background: var(--blue-pale); border-radius: 30px;
}
.step-heading { font-size: 1.3rem; font-weight: 800; color: var(--slate-900); margin-bottom: 6px; letter-spacing: -0.3px; }
.step-desc { font-size: 0.855rem; color: var(--slate-500); line-height: 1.6; margin-bottom: 28px; }

/* ─── Form elements (identical to login) ─── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
    font-weight: 700; color: var(--slate-700); font-size: 0.855rem; letter-spacing: 0.1px;
}
.label-icon {
    color: var(--blue-mid); font-size: 0.7rem; width: 20px; height: 20px;
    background: var(--blue-pale); border-radius: 5px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.required { color: var(--danger); font-size: 0.72rem; margin-left: 2px; }
.form-control {
    width: 100%; padding: 13px 16px;
    border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
    font-size: 0.93rem; font-weight: 500; transition: var(--transition);
    background: var(--white); color: var(--slate-900);
    font-family: var(--font); -webkit-appearance: none; appearance: none;
    line-height: 1.5;
}
.form-control::placeholder { color: var(--slate-400); font-weight: 400; font-size: 0.86rem; }
.form-control:hover:not(:focus) { border-color: var(--slate-300); }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus); background: var(--blue-pale); }
.form-control.is-invalid { border-color: var(--danger); background: #fff5f5; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.form-control.is-valid { border-color: var(--success); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* ─── Password container ─── */
.password-container { position: relative; }
.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--slate-400); cursor: pointer;
    font-size: 0.95rem; padding: 8px; border-radius: 8px;
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
}
.password-toggle:hover { color: var(--blue); background: var(--blue-pale); }

/* ─── Password strength ─── */
.strength-bar { display: flex; gap: 5px; margin: 9px 0 4px; }
.strength-seg { flex: 1; height: 5px; border-radius: 3px; background: var(--slate-200); transition: background 0.3s, transform 0.2s; }
.strength-seg.filled { transform: scaleY(1.3); }
.strength-seg.weak   { background: #ef4444; }
.strength-seg.fair   { background: #f59e0b; }
.strength-seg.good   { background: #3b82f6; }
.strength-seg.strong { background: #10b981; }
.strength-lbl { font-size: 0.72rem; font-weight: 700; color: var(--slate-400); display: flex; align-items: center; gap: 5px; }

/* ─── Domain preview ─── */
.domain-preview {
    border-radius: var(--radius-lg); border: 2px solid var(--slate-200);
    padding: 14px 18px; margin-top: 8px; background: var(--slate-50);
    transition: var(--transition);
}
.domain-preview.ready  { border-color: var(--blue); background: var(--blue-pale); }
.domain-preview.error  { border-color: var(--danger); background: #fff5f5; }
.domain-preview-label {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.1px;
    color: var(--slate-400); font-weight: 800; margin-bottom: 7px;
    display: flex; align-items: center; gap: 7px;
}
.domain-preview.ready .domain-preview-label { color: var(--blue); }
.domain-url {
    font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600;
    color: var(--slate-500); display: flex; align-items: center; gap: 8px;
    word-break: break-all; flex-wrap: wrap;
}
.domain-preview.ready .domain-url { color: var(--blue); }
.domain-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.68rem; padding: 3px 10px; border-radius: 20px;
    margin-top: 8px; font-weight: 800; letter-spacing: 0.2px;
}
.domain-badge.available { background: var(--success-pale); color: #065f46; }
.domain-badge.taken     { background: var(--danger-pale);  color: #991b1b; }
.domain-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--slate-300); border-top-color: var(--blue);
    border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Buttons (same gradient as login submit-btn) ─── */
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    color: white; border: none; padding: 14px 24px; border-radius: var(--radius-lg);
    font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden; min-height: 52px;
    font-family: var(--font); display: flex; align-items: center;
    justify-content: center; gap: 8px; letter-spacing: 0.2px;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--blue-mid), #60a5fa);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(12,64,212,.32); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary > span { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }

.btn-secondary {
    background: var(--white); color: var(--slate-600);
    border: 2px solid var(--slate-200); padding: 12px 20px;
    border-radius: var(--radius-lg); font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); min-height: 52px;
    font-family: var(--font); display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.btn-row { display: flex; gap: 12px; align-items: center; }
.btn-row .btn-secondary { flex: 0 0 auto; }
.btn-row .btn-primary  { flex: 1; }

/* ─── Terms ─── */
.terms-group {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;
    padding: 16px 18px; border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg); background: var(--slate-50);
    transition: var(--transition); cursor: pointer;
}
.terms-group:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.terms-check { width: 20px; height: 20px; border: 2px solid var(--slate-300); border-radius: 6px; cursor: pointer; flex-shrink: 0; margin-top: 1px; accent-color: var(--blue); }
.terms-lbl { font-size: 0.855rem; color: var(--slate-700); line-height: 1.55; cursor: pointer; }
.terms-lbl a { color: var(--blue); text-decoration: none; font-weight: 700; }
.terms-lbl a:hover { text-decoration: underline; }

/* ─── Tabs ─── */
.tab-nav {
    display: flex; gap: 0; margin-bottom: 24px;
    background: var(--slate-100); border-radius: var(--radius-lg);
    padding: 4px; width: fit-content;
}
.tab-btn {
    padding: 10px 24px; border: none; border-radius: var(--radius-md);
    font-size: 0.84rem; font-weight: 700; cursor: pointer;
    background: transparent; color: var(--slate-500);
    font-family: var(--font); transition: var(--transition);
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.tab-btn.active { background: var(--white); color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tab-btn:not(.active):hover { color: var(--slate-700); background: rgba(255,255,255,.5); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.28s ease-out; }

/* ─── Currency grid ─── */
.currency-warning-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b; border-radius: var(--radius-xl);
    padding: 18px 20px; margin-bottom: 24px;
    display: flex; gap: 14px; align-items: flex-start;
}
.currency-warning-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.15rem; box-shadow: 0 4px 12px rgba(245,158,11,.35);
}
.currency-warning-title { font-size: 0.875rem; font-weight: 800; color: #92400e; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.currency-warning-text { font-size: 0.8rem; color: #78350f; line-height: 1.65; }
.currency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.currency-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px 14px; border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg); cursor: pointer; background: var(--white);
    transition: var(--transition); text-align: center; position: relative; overflow: hidden;
}
.currency-card::before { content: ''; position: absolute; inset: 0; background: var(--blue-pale); opacity: 0; transition: opacity 0.22s; pointer-events: none; }
.currency-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(12,64,212,.12); }
.currency-card:hover::before { opacity: 1; }
.currency-card.selected { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12,64,212,.14); }
.currency-card.selected::before { opacity: 1; }
.currency-flag { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.currency-flag img { width: 48px; height: 48px; object-fit: cover; display: block; }
.currency-code { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 800; color: var(--slate-900); position: relative; z-index: 1; letter-spacing: 0.6px; }
.currency-name { font-size: 0.65rem; color: var(--slate-500); font-weight: 500; line-height: 1.3; position: relative; z-index: 1; }
.currency-symbol-badge { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; background: var(--slate-100); color: var(--slate-600); padding: 2px 9px; border-radius: 20px; position: relative; z-index: 1; transition: var(--transition); }
.currency-card.selected .currency-symbol-badge { background: var(--blue); color: white; }
.currency-card-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: white; font-size: 0.55rem; display: none; align-items: center; justify-content: center; z-index: 2; font-weight: 900; box-shadow: 0 2px 8px rgba(12,64,212,.4); }
.currency-card.selected .currency-card-check { display: flex; }
.currency-search-wrap { position: relative; margin-bottom: 16px; }
.currency-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--slate-400); font-size: 0.88rem; pointer-events: none; }
.currency-search {
    width: 100%; padding: 12px 44px 12px 42px;
    border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
    font-size: 0.9rem; font-family: var(--font); font-weight: 500;
    background: var(--white); color: var(--slate-900); transition: var(--transition);
    -webkit-appearance: none;
}
.currency-search::placeholder { color: var(--slate-400); font-weight: 400; }
.currency-search:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus); }
.currency-flag-display { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 20px; background: linear-gradient(135deg, #eff6ff, #e0e7ff); border: 2px solid var(--blue); border-radius: var(--radius-lg); }
.currency-flag-display-img { width: 42px; height: 42px; overflow: hidden; flex-shrink: 0; }
.currency-flag-display-img img { width: 42px; height: 42px; object-fit: cover; display: block; }
.currency-flag-display-info { flex: 1; }
.currency-flag-display-code { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 800; color: var(--blue); }
.currency-flag-display-symbol { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 800; color: var(--blue-mid); }
.currency-label-below { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--slate-600); margin-top: 6px; margin-bottom: 16px; padding: 5px 14px; background: var(--slate-50); border-radius: 20px; display: inline-block; }
.currency-label-below.hidden { display: none; }

/* ─── Business type grid ─── */
.bts-search-wrap { position: relative; margin-bottom: 16px; }
.bts-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--slate-400); font-size: 0.88rem; pointer-events: none; transition: color 0.2s; }
.bts-search-wrap:focus-within .bts-search-icon { color: var(--blue); }
.bts-search {
    width: 100%; padding: 12px 44px 12px 42px;
    border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
    font-size: 0.9rem; font-family: var(--font); font-weight: 500;
    background: var(--white); color: var(--slate-900); transition: var(--transition);
    -webkit-appearance: none;
}
.bts-search::placeholder { color: var(--slate-400); font-weight: 400; }
.bts-search:focus { outline: none; border-color: var(--blue); box-shadow: var(--shadow-focus); }
.bts-clear { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 7px; color: var(--slate-400); font-size: 0.82rem; border-radius: 6px; display: none; transition: var(--transition); align-items: center; }
.bts-clear:hover { color: var(--danger); background: var(--danger-pale); }
.bts-clear.visible { display: flex; }
.bts-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--slate-200); }
.bts-cat-btn {
    padding: 5px 13px; border: 1.5px solid var(--slate-200); border-radius: 20px;
    font-size: 0.73rem; font-weight: 700; cursor: pointer;
    background: var(--white); color: var(--slate-500);
    font-family: var(--font); transition: var(--transition); white-space: nowrap;
}
.bts-cat-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.bts-cat-btn.active { border-color: var(--blue); color: white; background: var(--blue); }
.bts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 9px; max-height: 340px; overflow-y: auto; padding-right: 4px;
    margin-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--slate-200) transparent;
}
.bts-grid::-webkit-scrollbar { width: 5px; }
.bts-grid::-webkit-scrollbar-track { background: transparent; }
.bts-grid::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 3px; }
.bts-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 6px 12px; border: 2px solid var(--slate-200); border-radius: var(--radius-lg);
    cursor: pointer; background: var(--white); transition: var(--transition);
    text-align: center; position: relative; overflow: hidden;
}
.bts-card::before { content: ''; position: absolute; inset: 0; background: var(--card-color, var(--blue-pale)); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.bts-card:hover { border-color: var(--card-color, var(--blue)); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.bts-card:hover::before { opacity: 0.09; }
.bts-card.selected { border-color: var(--card-color, var(--blue)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-color, var(--blue)) 22%, transparent); }
.bts-card.selected::before { opacity: 0.10; }
.bts-card.disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); pointer-events: none; }
.bts-card-icon-wrap {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; position: relative; z-index: 1; transition: var(--transition);
    background: color-mix(in srgb, var(--card-color, var(--blue)) 12%, transparent);
    color: var(--card-color, var(--blue));
}
.bts-card:hover .bts-card-icon-wrap,
.bts-card.selected .bts-card-icon-wrap { background: var(--card-color, var(--blue)); color: white; transform: scale(1.06); }
.bts-card-name { font-size: 0.68rem; font-weight: 700; color: var(--slate-700); line-height: 1.35; position: relative; z-index: 1; transition: color 0.2s; }
.bts-card.selected .bts-card-name { color: var(--slate-900); }
.bts-card-check { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--card-color, var(--blue)); color: white; font-size: 0.55rem; display: none; align-items: center; justify-content: center; z-index: 2; font-weight: 900; }
.bts-card.selected .bts-card-check { display: flex; }
.bts-section-header { grid-column: 1 / -1; font-size: 0.67rem; font-weight: 800; color: var(--slate-400); text-transform: uppercase; letter-spacing: 1.3px; padding: 7px 2px 2px; display: flex; align-items: center; gap: 8px; }
.bts-section-header::after { content: ''; flex: 1; height: 1px; background: var(--slate-200); }
.bts-empty { grid-column: 1 / -1; text-align: center; padding: 30px 16px; color: var(--slate-400); font-size: 0.875rem; }
.bts-empty i { display: block; font-size: 2.2rem; margin-bottom: 10px; opacity: 0.35; }
.bts-selected-pills {
    margin-top: 14px; padding: 14px 16px; background: var(--blue-pale);
    border: 2px solid var(--blue); border-radius: var(--radius-lg);
    display: none; animation: fadeUp 0.22s ease-out;
}
.bts-selected-pills.visible { display: block; }
.bts-pills-title { font-size: 0.72rem; font-weight: 800; color: var(--blue); margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.bts-pills-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bts-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; border-radius: 30px; padding: 5px 10px 5px 8px;
    border: 1.5px solid rgba(12,64,212,.25); font-size: 0.74rem; font-weight: 600;
    color: var(--slate-700); box-shadow: var(--shadow-xs);
}
.bts-pill-icon { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: white; }
.bts-pill-remove { background: none; border: none; cursor: pointer; padding: 2px 4px; color: var(--slate-400); font-size: 0.7rem; border-radius: 4px; transition: var(--transition); }
.bts-pill-remove:hover { color: var(--danger); background: rgba(239,68,68,.1); }
.bts-limit-warning { font-size: 0.72rem; color: var(--warning); margin-top: 7px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.bts-other-wrap { margin-top: 16px; display: none; animation: fadeUp 0.22s ease-out; }
.bts-other-wrap.visible { display: block; }

/* ─── Summary card ─── */
.summary-card {
    background: var(--slate-50); border-radius: var(--radius-xl);
    padding: 20px 24px; margin-bottom: 24px;
    border: 2px solid var(--slate-200); box-shadow: var(--shadow-xs);
}
.summary-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 800; color: var(--slate-400); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--slate-200); }
.summary-row { display: flex; align-items: flex-start; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--slate-200); }
.summary-row:last-child { border-bottom: none; }
.summary-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 0.74rem; flex-shrink: 0; margin-top: 1px; }
.summary-key { font-size: 0.7rem; color: var(--slate-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.summary-val { font-size: 0.9rem; font-weight: 600; color: var(--slate-900); margin-top: 3px; }
.summary-val.mono { font-family: var(--font-mono); color: var(--blue); font-size: 0.84rem; }

/* ─── Login link / version ─── */
.login-link { text-align: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--slate-200); font-size: 0.855rem; color: var(--slate-500); }
.login-link a { color: var(--blue); text-decoration: none; font-weight: 700; }
.login-link a:hover { text-decoration: underline; }
.version-info { margin-top: 16px; text-align: center; color: var(--slate-400); font-size: 0.72rem; letter-spacing: 0.2px; }

/* ─── SweetAlert custom buttons ─── */
.swal-popup-mega { border-radius: 20px !important; font-family: var(--font) !important; }
.swal-btn-mega {
    background: linear-gradient(135deg, var(--blue), var(--blue-mid)) !important;
    color: white !important; border: none !important;
    padding: 12px 28px !important; border-radius: 11px !important;
    font-size: 0.9rem !important; font-weight: 700 !important;
    cursor: pointer !important; font-family: var(--font) !important;
    transition: all 0.3s !important; letter-spacing: 0.1px !important;
}
.swal-btn-mega:hover { transform: translateY(-1px) !important; box-shadow: 0 8px 20px rgba(12,64,212,.3) !important; }

/* ─── intl-tel-input override ─── */
.iti { width: 100%; }
.iti__tel-input { padding-left: 54px !important; }
.iti__flag-container { border-right: 2px solid var(--slate-200); padding: 0 8px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    :root { --panel-left: 360px; }
    .right-panel { padding: 36px 44px; }
}
@media (max-width: 900px) {
    :root { --panel-left: 300px; }
    .left-panel { padding: 32px 28px; }
    .left-headline { font-size: 1.35rem; }
    .right-panel { padding: 32px 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .bts-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
@media (max-width: 768px) {
    .register-container { flex-direction: column; }
    .left-panel { flex: none; height: auto; position: relative; padding: 28px 26px 30px; order: 2; }
    .right-panel { flex: none; padding: 28px 24px; order: 1; min-height: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .bts-grid { max-height: 280px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .currency-grid { grid-template-columns: repeat(3, 1fr); }
    .register-title { font-size: 1.6rem; }
}
@media (max-width: 520px) {
    .right-panel { padding: 20px 16px; }
    .left-panel { padding: 20px 16px; }
    .register-title { font-size: 1.4rem; }
    .btn-row { flex-direction: column-reverse; }
    .btn-row .btn-secondary { width: 100%; justify-content: center; }
    .bts-grid { grid-template-columns: repeat(3, 1fr); }
    .currency-grid { grid-template-columns: repeat(2, 1fr); }
    .currency-flag, .currency-flag img { width: 40px; height: 40px; }
    .step-label { font-size: 0.56rem; }
    .features { grid-template-columns: 1fr; }
    .tab-nav { width: 100%; }
    .tab-btn { flex: 1; justify-content: center; }
}
