/* ════════════════════════════════════════════════════════════════
   create.css: Creator launch wizard
   Inherits design tokens from main.css
════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────── */
.create-page {
	padding-top: var(--nav-h);
	background: var(--bg);
}

/* Wizard fills the viewport below the nav */
.cw-wizard {
	min-height: calc(100vh - var(--nav-h));
	display: flex;
	flex-direction: column;
}

.cw-gate[hidden],
.cw-wizard[hidden] {
	display: none;
}

/* ════════════════════════════════════════════════════════════════
   GATE: Step 1: WeldPress-style connect dialog
════════════════════════════════════════════════════════════════ */
.cw-gate {
	display: flex;
	justify-content: center;
	padding: 40px 24px 40px;
}

/* Dialog card */
.cw-connect-dialog {
	width: 100%;
	max-width: 420px;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* Dialog header */
.cw-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--surface-3);
}

.cw-dialog-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cw-dialog-logo-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--noctis-blue);
}

.cw-dialog-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.96rem;
	letter-spacing: 0.04em;
	color: var(--white);
}

.cw-dialog-powered {
	font-size: 0.80rem;
	color: var(--text-3);
	letter-spacing: 0.04em;
}

/* Dialog sub-text */
.cw-dialog-sub {
	padding: 14px 20px 0;
	font-size: 0.90rem;
	color: var(--text-2);
	line-height: 1.5;
	margin: 0;
}

/* Wallet grid: 2 columns */
.cw-wallets-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--border);
	margin-top: 14px;
	border-top: 1px solid var(--border);
}

.cw-wl-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	background: var(--surface-2);
	border: none;
	cursor: pointer;
	transition: background 0.15s;
	font-family: var(--font-head);
	color: var(--white);
	text-align: left;
}

.cw-wl-btn:hover {
	background: var(--surface-3);
}

.cw-wl-btn:active {
	background: rgba(var(--noctis-blue-rgb), 0.08);
}

.cw-wl-icon {
	width: 32px;
	height: 32px;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.96rem;
	color: #fff;
	flex-shrink: 0;
	background: var(--noctis-blue); /* fallback for any wallet without a specific color below — the grid is populated dynamically from real detected extensions, which can include keys not in the named list */
}

.cw-wl-icon--eternl      { background: #1d4ed8; }
.cw-wl-icon--lace        { background: #6c47ff; }
.cw-wl-icon--nami        { background: #009ddd; }
.cw-wl-icon--flint       { background: #f97316; }
.cw-wl-icon--typhoncip30 { background: #16a34a; }
.cw-wl-icon--nufi        { background: #db2777; }
.cw-wl-icon--begin       { background: #dc2626; }
.cw-wl-icon--gerowallet  { background: #ca8a04; }
.cw-wl-icon--vespr       { background: #7c3aed; }
.cw-wl-icon--yoroi       { background: #2563eb; }

/* Real wallet logo (CIP-30 provider.icon), matching weldpress/frontend/
   modal.js's nav-bar connect modal — the colored letter badge above is
   now only the fallback for a wallet that genuinely provides no icon. */
.cw-wl-icon--has-img {
	background: #fff;
	padding: 4px;
}
.cw-wl-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cw-wl-name {
	font-size: 0.94rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Dialog footer */
.cw-dialog-footer {
	padding: 12px 20px;
	border-top: 1px solid var(--border);
	text-align: center;
}

.cw-dialog-footer-note {
	font-size: 0.80rem;
	color: var(--text-3);
	letter-spacing: 0.03em;
}

/* Spinner */
.cw-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-3);
	border-top-color: var(--noctis-blue);
	border-radius: 50%;
	animation: cw-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.cw-spinner--sm {
	width: 14px;
	height: 14px;
}

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

@media (prefers-reduced-motion: reduce) {
	.cw-spinner,
	.cw-check[data-state="pending"] .cw-check-icon::after {
		animation-duration: 2.5s;
	}
}

/* ════════════════════════════════════════════════════════════════
   WIZARD: Steps 2-6
════════════════════════════════════════════════════════════════ */

/* ── Progress bar ────────────────────────────────────────────── */
.cw-progress-wrap {
	flex-shrink: 0;
	z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 16px 0;
}

.cw-progress {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 680px;
	margin: 0 auto;
}

.cw-prog-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	opacity: 0.35;
	transition: opacity 0.25s;
}

.cw-prog-step.active  { opacity: 1; }
.cw-prog-step.done    { opacity: 0.7; }

.cw-prog-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--border-3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--text-2);
	transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.cw-prog-step.active .cw-prog-num {
	border-color: var(--noctis-blue);
	background: var(--noctis-blue);
	color: #fff;
}

.cw-prog-step.done .cw-prog-num {
	border-color: var(--noctis-green);
	background: rgba(var(--noctis-green-rgb), 0.15);
	color: var(--noctis-green);
}

.cw-prog-label {
	font-family: var(--font-head);
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--text-3);
	text-transform: uppercase;
}

.cw-prog-step.active .cw-prog-label { color: var(--white); }

.cw-prog-line {
	flex: 1;
	height: 1px;
	background: var(--border-2);
	margin: 0 6px;
	margin-bottom: 14px;
}

/* ── Step body ───────────────────────────────────────────────── */
.cw-body {
	padding: 48px 0 24px;
}

.cw-content {
	max-width: 720px;
	margin: 0 auto;
}

/* All steps are the same fixed height, content scrolls within cw-body if needed */
.cw-step {
	min-height: 480px;
}

.cw-step-header {
	margin-bottom: 40px;
}

.cw-step-title {
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--white);
	margin: 12px 0 10px;
}

.cw-step-sub {
	color: var(--text-2);
	font-size: 1.04rem;
	max-width: 560px;
}

/* ── Action bar ─────────────────────────────────────────────── */
.cw-actions-wrap {
	background: var(--surface);
	border-top: 1px solid var(--border);
	padding: 16px 0;
	z-index: 100;
}

.cw-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 720px;
	margin: 0 auto;
}

.cw-actions-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cw-step-counter {
	font-family: var(--font-head);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--text-3);
	text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   STEP 2: Wallet Verification
════════════════════════════════════════════════════════════════ */
.cw-verify-wallet-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	margin-bottom: 28px;
	font-size: 0.96rem;
}

.cw-verify-label {
	color: var(--text-3);
	font-family: var(--font-head);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cw-verify-addr {
	font-family: monospace;
	color: var(--silver);
	font-size: 0.96rem;
	word-break: break-all;
	overflow-wrap: anywhere;
}

.cw-checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 32px;
}

.cw-check {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.3s;
}

.cw-check[data-state="pass"]  { border-color: rgba(var(--noctis-green-rgb), 0.4); }
.cw-check[data-state="fail"]  { border-color: rgba(var(--noctis-red-rgb), 0.4); }
.cw-check[data-state="info"]  { border-color: rgba(var(--noctis-blue-rgb), 0.3); }

.cw-check-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--surface-3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.87rem;
	flex-shrink: 0;
	transition: background 0.3s, color 0.3s;
}

.cw-check[data-state="pending"] .cw-check-icon::after { content: ''; display: block; width: 10px; height: 10px; border: 2px solid var(--border-3); border-top-color: var(--noctis-blue); border-radius: 50%; animation: cw-spin 0.7s linear infinite; }
.cw-check[data-state="pass"]    .cw-check-icon { background: rgba(var(--noctis-green-rgb), 0.15); color: var(--noctis-green); }
.cw-check[data-state="pass"]    .cw-check-icon::after { content: '✓'; }
.cw-check[data-state="fail"]    .cw-check-icon { background: rgba(var(--noctis-red-rgb), 0.15); color: var(--noctis-red); }
.cw-check[data-state="fail"]    .cw-check-icon::after { content: '✕'; }
.cw-check[data-state="info"]    .cw-check-icon { background: rgba(var(--noctis-blue-rgb), 0.12); color: var(--noctis-blue); }
.cw-check[data-state="info"]    .cw-check-icon::after { content: 'ℹ'; font-size: 0.96rem; }

.cw-check-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cw-check-label {
	font-family: var(--font-head);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--white);
}

.cw-check-detail {
	font-size: 0.90rem;
	color: var(--text-2);
}

.cw-verify-result {
	margin-top: 8px;
}

.cw-verify-badge {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: rgba(var(--noctis-green-rgb), 0.07);
	border: 1px solid rgba(var(--noctis-green-rgb), 0.35);
	border-radius: var(--radius);
}

.cw-verify-badge-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(var(--noctis-green-rgb), 0.18);
	color: var(--noctis-green);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

.cw-verify-badge-title {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.96rem;
	color: var(--noctis-green);
	margin-bottom: 2px;
}

.cw-verify-badge-sub {
	font-size: 0.90rem;
	color: var(--text-2);
}

/* ════════════════════════════════════════════════════════════════
   FORM FIELDS (Steps 3-5)
════════════════════════════════════════════════════════════════ */
.cw-fields {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.cw-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cw-field-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 600px) {
	.cw-field-group { grid-template-columns: 1fr; }
}

.cw-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-size: 0.87rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--silver);
}

.cw-required { color: var(--noctis-blue); font-size: 0.9em; }
.cw-optional { color: var(--text-3); font-size: 0.87rem; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; text-transform: none; }

.cw-field-badge {
	font-size: 0.73rem;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.cw-badge-primary {
	background: rgba(var(--noctis-blue-rgb), 0.1);
	border: 1px solid rgba(var(--noctis-blue-rgb), 0.3);
	color: var(--noctis-blue);
}

.cw-field-note {
	font-size: 0.88rem;
	color: var(--text-3);
	line-height: 1.5;
}

.cw-field-note-inline {
	font-size: 0.80rem;
	color: var(--noctis-yellow);
	font-family: var(--font-body);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.cw-input,
.cw-textarea,
.cw-select {
	width: 100%;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 1.00rem;
	padding: 11px 14px;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
	-webkit-appearance: none;
}

.cw-input:focus,
.cw-textarea:focus,
.cw-select:focus {
	border-color: var(--noctis-blue);
	background: var(--surface-3);
}

.cw-input::placeholder,
.cw-textarea::placeholder { color: var(--text-3); }

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

.cw-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.cw-select option {
	background: var(--surface-2);
	color: var(--white);
}

.cw-input-mono { font-family: monospace; font-size: 0.94rem; }

.cw-input-prefix {
	display: flex;
	align-items: center;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	transition: border-color 0.2s;
}

.cw-input-prefix:focus-within { border-color: var(--noctis-blue); }

.cw-prefix {
	padding: 11px 0 11px 14px;
	color: var(--text-3);
	font-size: 1.00rem;
	white-space: nowrap;
}

.cw-input-prefix .cw-input {
	border: none;
	background: transparent;
	padding-left: 4px;
}

.cw-input-prefix .cw-input:focus { border: none; background: transparent; }

.cw-ticker-wrap {
	display: flex;
	align-items: center;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	transition: border-color 0.2s;
}

.cw-ticker-wrap:focus-within { border-color: var(--noctis-blue); }
.cw-ticker-wrap .cw-input { border: none; background: transparent; padding-left: 4px; }
.cw-ticker-wrap .cw-input:focus { border: none; background: transparent; }

.cw-input-ticker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: var(--font-head);
	font-weight: 700;
}

.cw-char-count {
	font-size: 0.85rem;
	color: var(--text-3);
	text-align: right;
}

/* ── File upload ─────────────────────────────────────────────── */
.cw-upload-zone {
	border: 1px dashed var(--border-3);
	border-radius: var(--radius);
	transition: border-color 0.2s, background 0.2s;
}

.cw-upload-zone:hover { border-color: var(--noctis-blue); background: rgba(var(--noctis-blue-rgb), 0.03); }

.cw-upload-inner {
	padding: 32px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.cw-upload-icon {
	font-size: 1.4rem;
	color: var(--text-3);
}

.cw-upload-text {
	font-size: 0.94rem;
	color: var(--text-2);
}

.cw-upload-browse {
	color: var(--noctis-blue);
	cursor: pointer;
	text-decoration: underline;
}

.cw-upload-input { display: none; }

.cw-upload-preview {
	padding: 16px;
	position: relative;
}

.cw-logo-preview-img {
	width: 80px;
	height: 80px;
	object-fit: fill;
	border-radius: var(--radius);
	border: 1px solid var(--border-2);
}

.cw-banner-preview-wrap {
	padding: 0;
}

.cw-banner-preview-img {
	width: 100%;
	max-height: 120px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--border-2);
}

.cw-upload-remove {
	display: block;
	margin-top: 8px;
	font-size: 0.84rem;
	color: var(--noctis-red);
	cursor: pointer;
	font-family: var(--font-head);
	letter-spacing: 0.05em;
}

.cw-upload-preview--doc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cw-doc-filename {
	font-size: 0.9rem;
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cw-upload-preview--doc .cw-upload-remove {
	margin-top: 0;
	flex-shrink: 0;
}

/* ── ZK toggle ───────────────────────────────────────────────── */
.cw-zk-toggle {
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius-lg);
	padding: 20px;
	transition: border-color 0.2s;
}

.cw-zk-toggle.active { border-color: rgba(var(--noctis-green-rgb), 0.45); }

.cw-zk-toggle-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	justify-content: space-between;
}

.cw-zk-toggle-left {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.cw-zk-icon {
	font-size: 1.4rem;
	color: var(--noctis-green);
	flex-shrink: 0;
	margin-top: 2px;
}

.cw-zk-title {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.96rem;
	color: var(--white);
	margin-bottom: 4px;
}

.cw-zk-desc {
	font-size: 0.90rem;
	color: var(--text-2);
	line-height: 1.5;
}

.cw-staking-toggle {
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius-lg);
	padding: 20px;
	transition: border-color 0.2s;
}

.cw-staking-toggle.active { border-color: rgba(var(--noctis-blue-rgb), 0.45); }

.cw-staking-toggle-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	justify-content: space-between;
}

.cw-staking-toggle-left {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.cw-staking-icon {
	font-size: 1.4rem;
	color: var(--noctis-blue);
	flex-shrink: 0;
	margin-top: 2px;
}

.cw-staking-title-label {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.96rem;
	color: var(--white);
	margin-bottom: 4px;
}

.cw-staking-desc {
	font-size: 0.90rem;
	color: var(--text-2);
	line-height: 1.5;
}

.cw-staking-config {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border-2);
}

/* Toggle switch */
.cw-toggle-switch {
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

.cw-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cw-toggle-track {
	display: block;
	width: 44px;
	height: 24px;
	background: var(--surface-3);
	border: 1px solid var(--border-3);
	border-radius: var(--radius-lg);
	position: relative;
	transition: background 0.2s, border-color 0.2s;
}

.cw-toggle-track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: var(--grey-mid);
	border-radius: 50%;
	transition: transform 0.2s, background 0.2s;
}

.cw-toggle-input:checked + .cw-toggle-track {
	background: rgba(var(--noctis-green-rgb), 0.2);
	border-color: var(--noctis-green);
}

.cw-toggle-input:checked + .cw-toggle-track::after {
	transform: translateX(20px);
	background: var(--noctis-green);
}

.cw-zk-badge-preview {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 16px;
}

.cw-zk-badge-sample {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: rgba(var(--noctis-green-rgb), 0.12);
	border: 1px solid rgba(var(--noctis-green-rgb), 0.4);
	border-radius: var(--radius-sm);
	color: var(--noctis-green);
	font-family: var(--font-head);
	font-size: 0.80rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.cw-zk-badge-icon { font-size: 0.92rem; }

.cw-zk-badge-note {
	font-size: 0.88rem;
	color: var(--text-3);
}

/* ════════════════════════════════════════════════════════════════
   STEP 5: Tier & Config
════════════════════════════════════════════════════════════════ */

/* Tier cards */
.cw-tier-cards {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 16px;
}

@media (max-width: 860px) {
	.cw-tier-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.cw-tier-cards { grid-template-columns: 1fr; }
}

.cw-tier-card {
	background: var(--surface-2);
	border: 2px solid var(--border-2);
	border-radius: var(--radius-lg);
	padding: 20px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.cw-tier-card:hover { border-color: var(--border-3); transform: translateY(-1px); }
.cw-tier-card.selected { border-color: var(--noctis-blue); background: rgba(var(--noctis-blue-rgb), 0.05); }

.cw-tier-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cw-tier-badge {
	font-family: var(--font-head);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}

.cw-tier-badge--a {
	background: rgba(255,255,255,0.08);
	color: var(--silver);
}

.cw-tier-badge--b {
	background: rgba(var(--noctis-blue-rgb), 0.12);
	color: var(--noctis-blue);
	border: 1px solid rgba(var(--noctis-blue-rgb), 0.3);
}

.cw-tier-badge--c {
	background: rgba(var(--noctis-violet-rgb), 0.12);
	color: var(--noctis-violet-light);
	border: 1px solid rgba(var(--noctis-violet-rgb), 0.35);
}

/* Tier C card */
.cw-tier-card--c { border-color: rgba(var(--noctis-violet-rgb),0.2); }
.cw-tier-card--c:hover { border-color: rgba(var(--noctis-violet-rgb),0.45); }
.cw-tier-card--c.selected { border-color: var(--noctis-violet); background: rgba(var(--noctis-violet-rgb),0.06); }
.cw-tier-card--c.selected .cw-tier-features li { color: #c8a0f0; }

.cw-tier-card-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.cw-tier-card-maxprivacy {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	background: rgba(var(--noctis-violet-rgb),0.15);
	border: 1px solid rgba(var(--noctis-violet-rgb),0.4);
	color: var(--noctis-violet-light);
	white-space: nowrap;
}

.cw-tier-c-requirement {
	font-size: 0.84rem;
	color: var(--text-3);
	line-height: 1.5;
	border-top: 1px solid rgba(var(--noctis-violet-rgb),0.2);
	padding-top: 10px;
	margin-top: 10px;
}

/* Tier C config panel */
.cw-tier-c-notice {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	background: rgba(var(--noctis-violet-rgb),0.06);
	border: 1px solid rgba(var(--noctis-violet-rgb),0.3);
	border-radius: var(--radius);
	margin-bottom: 8px;
}
.cw-tier-c-notice-icon { font-size: 1.4rem; color: var(--noctis-violet); flex-shrink: 0; }
.cw-tier-c-notice-body { font-size: 0.90rem; color: var(--text-2); line-height: 1.6; }

.cw-tier-c-notice--status {
	background: rgba(255,255,255,0.05);
	border-color: var(--border-2);
}
.cw-tier-c-notice--status .cw-tier-c-notice-icon { color: var(--text-3); }
.cw-tier-c-notice-body strong { color: var(--noctis-violet-light); }

.cw-tier-c-grad-note {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	background: rgba(0,0,0,0.3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 0.88rem;
	color: var(--text-3);
	line-height: 1.5;
}
.cw-tier-c-grad-icon { flex-shrink: 0; color: var(--text-3); }

.cw-tier-fee {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--white);
}

.cw-tier-name {
	font-family: var(--font-head);
	font-size: 1.04rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 8px;
}

.cw-tier-desc {
	font-size: 0.90rem;
	color: var(--text-2);
	margin-bottom: 14px;
	line-height: 1.5;
}

.cw-tier-features {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cw-tier-features li {
	font-size: 0.88rem;
	color: var(--text-2);
}

.cw-tier-card.selected .cw-tier-features li { color: var(--silver); }

/* Config divider */
.cw-config-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text-3);
	font-family: var(--font-head);
	font-size: 0.80rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cw-config-divider::before,
.cw-config-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border);
}

/* Sliders */
.cw-slider-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cw-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	background: var(--border-3);
	border-radius: var(--radius-xs);
	outline: none;
	cursor: pointer;
}

.cw-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--noctis-blue);
	cursor: pointer;
	border: 3px solid var(--bg);
	box-shadow: 0 0 0 1px var(--noctis-blue);
	transition: box-shadow 0.15s;
}

.cw-slider::-webkit-slider-thumb:hover {
	box-shadow: 0 0 0 3px rgba(var(--noctis-blue-rgb), 0.3);
}

.cw-slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.84rem;
	color: var(--text-3);
}

.cw-slider-value {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--white);
}

/* Creator alloc presets */
.cw-creator-alloc-gate {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cw-alloc-gate-text {
	font-size: 0.94rem;
	color: var(--text-2);
	margin: 0;
}

.cw-alloc-presets {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cw-alloc-preset {
	padding: 8px 16px;
	border: 1px solid var(--border-3);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text-2);
	font-family: var(--font-head);
	font-size: 0.90rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cw-alloc-preset:hover { border-color: var(--noctis-blue); color: var(--noctis-blue); }
.cw-alloc-preset.selected { border-color: var(--noctis-blue); background: rgba(var(--noctis-blue-rgb), 0.1); color: var(--noctis-blue); }

.cw-alloc-custom-btn {
	font-size: 0.84rem;
	color: var(--text-3);
	cursor: pointer;
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: underline;
	align-self: flex-start;
}

.cw-alloc-custom-btn:hover { color: var(--noctis-blue); }

.cw-alloc-custom-reset {
	font-size: 0.84rem;
	color: var(--text-3);
	cursor: pointer;
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: underline;
	align-self: flex-start;
}

/* Radio cards (vesting / DEX) */
.cw-radio-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.cw-vesting-cards {
	grid-template-columns: repeat(4, 1fr);
}

.cw-dex-cards {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
	.cw-radio-cards { grid-template-columns: repeat(2, 1fr); }
}

.cw-radio-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	background: var(--surface-2);
	border: 2px solid var(--border-2);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	-webkit-user-select: none;
	user-select: none;
}

.cw-radio-card:hover { border-color: var(--border-3); }
.cw-radio-card.selected { border-color: var(--noctis-blue); background: rgba(var(--noctis-blue-rgb), 0.06); }

.cw-rc-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.94rem;
	color: var(--white);
}

.cw-rc-sub {
	font-size: 0.80rem;
	color: var(--text-3);
	line-height: 1.4;
}

.cw-radio-card.selected .cw-rc-sub { color: var(--text-2); }

/* Supply bar */
.cw-supply-preview {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 20px;
}

.cw-supply-preview-header {
	margin-bottom: 14px;
}

.cw-supply-preview-title {
	font-family: var(--font-head);
	font-size: 0.80rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--text-3);
	text-transform: uppercase;
}

.cw-supply-bar-live {
	display: flex;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 16px;
	background: var(--surface-3);
}

.cw-sb-seg {
	height: 100%;
	transition: width 0.3s ease;
}

.cw-sb-dv      { background: var(--noctis-blue); }
.cw-sb-creator { background: var(--silver); }
.cw-sb-staking { background: var(--noctis-green); }
.cw-sb-lp      { background: var(--grey-mid); }
.cw-sb-public  { background: var(--surface-3); border-right: 1px solid var(--border-2); }

.cw-supply-legend-live {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cw-sl-row {
	display: grid;
	grid-template-columns: 12px 1fr 48px 120px;
	align-items: center;
	gap: 10px;
	font-size: 0.90rem;
}

.cw-sl-dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-xs);
	flex-shrink: 0;
}

.cw-sl-dot--dv      { background: var(--noctis-blue); }
.cw-sl-dot--creator { background: var(--silver); }
.cw-sl-dot--staking { background: var(--noctis-green); }
.cw-sl-dot--lp      { background: var(--grey-mid); }
.cw-sl-dot--public  { background: var(--border-3); border: 1px solid var(--border-2); }

.cw-sl-label  { color: var(--text-2); }
.cw-sl-pct    { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.87rem; text-align: right; }
.cw-sl-tokens { color: var(--text-3); font-size: 0.84rem; font-family: monospace; text-align: right; }

.cw-sl-dv-row { display: none; }
.cw-tier-b-active .cw-sl-dv-row { display: grid; }

/* ════════════════════════════════════════════════════════════════
   STEP 6: Review & Pay
════════════════════════════════════════════════════════════════ */
.cw-review {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 28px;
}

.cw-review-section {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.cw-review-section-title {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-head);
	font-size: 0.80rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--text-3);
	text-transform: uppercase;
	background: var(--surface-3);
}

.cw-review-rows {
	display: flex;
	flex-direction: column;
}

.cw-review-row {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	padding: 10px 16px;
	border-bottom: 1px solid var(--border);
	font-size: 0.94rem;
	align-items: center;
}

.cw-review-row:last-child { border-bottom: none; }

.cw-review-key {
	color: var(--text-3);
	font-family: var(--font-head);
	font-size: 0.84rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cw-review-val {
	color: var(--white);
}

.cw-review-tag {
	display: inline-flex;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-family: var(--font-head);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.cw-review-tag--b {
	background: rgba(var(--noctis-blue-rgb), 0.12);
	border: 1px solid rgba(var(--noctis-blue-rgb), 0.3);
	color: var(--noctis-blue);
}

.cw-review-tag--a {
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--border-3);
	color: var(--silver);
}

.cw-review-tag--c {
	background: rgba(var(--noctis-violet-rgb),0.12);
	border: 1px solid rgba(var(--noctis-violet-rgb),0.35);
	color: var(--noctis-violet-light);
}

/* ToS */
.cw-tos-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.94rem;
	color: var(--text-2);
	line-height: 1.5;
}

.cw-tos-check { flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--noctis-blue); }
.cw-tos-link { color: var(--noctis-blue); }

/* Pay section */
.cw-pay-section {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.cw-pay-summary {
	width: 100%;
	padding: 16px;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
}

.cw-pay-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.94rem;
	padding: 5px 0;
}

.cw-pay-line-label { color: var(--text-2); }
.cw-pay-line-val   { color: var(--white); font-family: var(--font-head); font-weight: 600; }

.cw-pay-line--total {
	border-top: 1px solid var(--border);
	margin-top: 6px;
	padding-top: 10px;
}

.cw-pay-line--total .cw-pay-line-label { font-family: var(--font-head); font-weight: 700; font-size: 0.90rem; letter-spacing: 0.06em; color: var(--silver); text-transform: uppercase; }
.cw-pay-line--total .cw-pay-line-val   { font-size: 1rem; }

.cw-pay-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 36px;
	background: var(--white);
	color: #000;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 0.96rem;
	letter-spacing: 0.1em;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.cw-pay-btn:hover:not(:disabled) { background: var(--silver); transform: translateY(-1px); }
.cw-pay-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.cw-pay-note {
	font-size: 0.87rem;
	color: var(--text-3);
	max-width: 420px;
	line-height: 1.5;
}

/* Success state */
.cw-launch-success {
	text-align: center;
	padding: 48px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.cw-success-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(var(--noctis-green-rgb), 0.15);
	border: 2px solid var(--noctis-green);
	color: var(--noctis-green);
	font-size: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cw-success-title {
	font-family: var(--font-head);
	font-size: 1.8rem;
	color: var(--white);
}

.cw-success-sub {
	color: var(--text-2);
	max-width: 420px;
}

.cw-success-id {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
	padding: 12px 24px;
	background: var(--surface-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
}

.cw-success-id-label {
	font-size: 0.80rem;
	color: var(--text-3);
	font-family: var(--font-head);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.cw-success-id-val {
	font-family: monospace;
	color: var(--white);
	font-size: 1rem;
}

/* ── Validation error state ──────────────────────────────────── */
.cw-input.error,
.cw-textarea.error,
.cw-select.error {
	border-color: var(--noctis-red);
}

.cw-field-error {
	font-size: 0.85rem;
	color: var(--noctis-red);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
	.cw-actions { flex-wrap: wrap; gap: 12px; }
	.cw-actions-right { flex: 1; justify-content: flex-end; }
	.cw-step-counter { display: none; }
	.cw-sl-row { grid-template-columns: 12px 1fr 40px 90px; }
	.cw-review-row { grid-template-columns: 120px 1fr; }
}
