/* Page-scoped styles for /Public/NewCommunity */
.nc {
    --nc-navy: #0B2545;
    --nc-blue: #1A56C4;
    --nc-teal: #2FB3A5;
    --nc-success: #0F6D62;
    --nc-success-bg: #E6F6F3;
    --nc-text: #0E1A2B;
    --nc-muted: #4B5564;
    --nc-border: #D7DCE5;
    --nc-bg: #F6F7FA;
    --nc-danger: #C4321A;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--nc-text);
    display: flex;
    min-height: 100vh;
    background: var(--nc-bg);
}

.nc *, .nc *::before, .nc *::after { box-sizing: border-box; }
.nc a { color: var(--nc-blue); text-decoration: none; }
.nc a:hover { text-decoration: underline; }
.nc svg { flex-shrink: 0; }

/* Left column */
.nc-left {
    flex: 0 0 55%;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 40px;
}
.nc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nc-logo img { height: 36px; width: auto; }

.nc-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.nc-step { display: flex; align-items: center; gap: 6px; color: var(--nc-muted); }
.nc-step-dot {
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; border: 1.5px solid var(--nc-border);
}
.nc-step.is-done { color: var(--nc-blue); }
.nc-step.is-done .nc-step-dot { background: var(--nc-blue); border-color: var(--nc-blue); color: #fff; }
.nc-step.is-current { color: var(--nc-text); font-weight: 600; }
.nc-step.is-current .nc-step-dot { background: var(--nc-navy); border-color: var(--nc-navy); color: #fff; }
.nc-step-line { width: 28px; height: 2px; background: var(--nc-border); }
.nc-step-line.is-done { background: var(--nc-blue); }

.nc-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.nc-form-wrap { width: 100%; max-width: 520px; }

.nc-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--nc-success-bg); color: var(--nc-success);
    border-radius: 999px; padding: 4px 12px; font-size: .8125rem; font-weight: 600;
}
.nc-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 8px; color: var(--nc-text); }
.nc-sub { color: var(--nc-muted); font-size: 1.0625rem; line-height: 1.55; margin: 0 0 28px; }

.nc-field { margin-bottom: 20px; }
.nc-existing { display: flex; flex-direction: column; gap: 4px; background: #EEF3FC; border: 1px solid #C9D8F3; color: var(--nc-text); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: .9375rem; line-height: 1.5; }
.nc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nc-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
.nc-input {
    width: 100%; height: 52px; border: 1.5px solid var(--nc-border); border-radius: 12px;
    padding: 0 16px; font: inherit; font-size: 1rem; color: var(--nc-text); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.nc-input:focus { outline: none; border-color: var(--nc-blue); box-shadow: 0 0 0 4px rgba(26,86,196,.15); }

.nc-group {
    display: flex; height: 52px; border: 1.5px solid var(--nc-border); border-radius: 12px; overflow: hidden;
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.nc-group:focus-within { border-color: var(--nc-blue); box-shadow: 0 0 0 4px rgba(26,86,196,.15); }
.nc-group.is-taken { border-color: var(--nc-danger); }
.nc-group.is-taken:focus-within { box-shadow: 0 0 0 4px rgba(196,50,26,.15); }
.nc-group input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 1rem; color: var(--nc-text); background: transparent; }
.nc-group input:focus { outline: none; }
.nc-suffix {
    display: flex; align-items: center; padding: 0 16px; background: var(--nc-bg); color: var(--nc-muted);
    border-left: 1.5px solid var(--nc-border); font-size: .9375rem; white-space: nowrap; user-select: none;
}

.nc-help { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8125rem; color: var(--nc-muted); min-height: 20px; }
.nc-help.is-available { color: var(--nc-success); }
.nc-help.is-taken { color: var(--nc-danger); }
.nc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nc-error { display: block; color: var(--nc-danger); font-size: .8125rem; margin-top: 6px; }
.nc-error:empty { display: none; }
.nc-summary-errors { color: var(--nc-danger); font-size: .875rem; margin-bottom: 16px; }
.nc-summary-errors ul { margin: 0; padding-left: 18px; }

.nc-plan {
    display: flex; align-items: center; gap: 14px; background: var(--nc-bg); border: 1px solid var(--nc-border);
    border-radius: 14px; padding: 14px 16px; margin: 8px 0 24px;
}
.nc-plan-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--nc-navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.nc-plan-text { flex: 1; min-width: 0; }
.nc-plan-title { font-weight: 700; font-size: .9375rem; }
.nc-plan-sub { color: var(--nc-muted); font-size: .8125rem; }
.nc-plan-link { font-weight: 600; font-size: .875rem; min-height: 44px; display: inline-flex; align-items: center; }

.nc-submit {
    width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--nc-blue); color: #fff;
    font: inherit; font-weight: 700; font-size: 1.0625rem; display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: background-color .15s, box-shadow .15s;
}
.nc-submit:hover { background: #164AA8; }
.nc-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(26,86,196,.3); }
.nc-submit:disabled { opacity: .6; cursor: not-allowed; }
.nc-fineprint { text-align: center; color: var(--nc-muted); font-size: .8125rem; line-height: 1.5; margin: 14px auto 0; max-width: 440px; }

.nc-footer { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; color: var(--nc-muted); }
.nc-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.nc-footer .nc-back { color: var(--nc-muted); }

/* Right column */
.nc-right {
    flex: 0 0 45%; background: var(--nc-navy); color: #fff; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 48px;
}
.nc-right::before, .nc-right::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.nc-right::before { width: 420px; height: 420px; top: -120px; right: -140px; }
.nc-right::after { width: 520px; height: 520px; bottom: -220px; left: -200px; }
.nc-right-inner { position: relative; z-index: 1; width: 100%; max-width: 500px; }

.nc-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FB2E8; margin-bottom: 12px; }

.nc-preview { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); color: var(--nc-text); }
.nc-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--nc-bg); border-bottom: 1px solid var(--nc-border); }
.nc-dots { display: flex; gap: 6px; }
.nc-dots span { width: 9px; height: 9px; border-radius: 50%; background: #CBD1DB; }
.nc-address { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--nc-border); border-radius: 6px; padding: 4px 10px; font-size: .75rem; color: var(--nc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-banner { height: 62px; background: linear-gradient(90deg, #2FB3A5 0%, #8B5CF6 55%, #EC4899 100%); }
.nc-preview-body { padding: 0 16px 16px; }
.nc-preview-head { display: flex; align-items: flex-end; gap: 12px; margin-top: -22px; }
.nc-avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--nc-navy); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; }
.nc-preview-name { font-weight: 700; font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-preview-meta { font-size: .6875rem; color: var(--nc-muted); }
.nc-preview-head > div:last-child { min-width: 0; padding-top: 28px; padding-bottom: 0; margin-bottom: -4px; }
.nc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nc-tiles span { height: 46px; border-radius: 8px; background: var(--nc-bg); border: 1px solid var(--nc-border); }

.nc-unlock-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 14px; }
.nc-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: .9375rem; }
.nc-features li { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.92); }
.nc-features svg { color: var(--nc-teal); margin-top: 1px; }

.nc-next { margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px 18px; }
.nc-next h2 { font-size: .9375rem; font-weight: 700; margin: 0 0 8px; }
.nc-next ol { margin: 0; padding: 0; list-style: none; counter-reset: nc; font-size: .875rem; color: rgba(255,255,255,.85); }
.nc-next li { counter-increment: nc; display: flex; gap: 14px; padding: 3px 0; }
.nc-next li::before { content: counter(nc); color: rgba(255,255,255,.55); min-width: 10px; }

@media (max-width: 900px) {
    .nc { flex-direction: column; }
    .nc-left, .nc-right { flex: 1 1 auto; }
    .nc-left { padding: 20px; }
    .nc-right { padding: 32px 20px; }
    .nc-title { font-size: 2rem; }
    .nc-features { grid-template-columns: 1fr; }
}
