/* CB Members — front-end + admin styles. Dark to sit naturally on RetroTube. */

.cbm-wrap {
	--cbm-accent: #ff3565;
	--cbm-purple: #aa31dc;
	--cbm-surface: #16161d;
	--cbm-line: #363542;
	max-width: 760px;
	margin: 0 auto;
	scroll-margin-top: 88px;
}
.cbm-box {
	box-sizing: border-box;
	padding: 26px 24px;
	color: #eee;
	background: radial-gradient(circle at 100% 0,rgba(170,49,220,.09),transparent 28%),var(--cbm-surface);
	border: 1px solid #302e3b;
	border-radius: 16px;
	box-shadow: 0 16px 38px rgba(0,0,0,.28);
}
.cbm-box h3 { margin: 0 0 8px; color: #fff; font-size: clamp(21px,3vw,26px); line-height: 1.2; letter-spacing: -.015em; }
.cbm-lede { max-width: 650px; margin: 0 0 20px; color: #bbb6c3; font-size: 14px; line-height: 1.55; }
.cbm-box label { display: block; margin: 14px 0 4px; font-weight: 600; }
.cbm-form-grid,
.cbm-address-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 15px 16px;
}
.cbm-form-grid > label,
.cbm-address-grid > label { min-width: 0; margin: 0; }
.cbm-field--full { grid-column: 1 / -1; }
.cbm-label-text { display: block; margin-bottom: 6px; color: #f5f1f4; font-size: 13px; font-weight: 750; line-height: 1.35; }
.cbm-label-text small { color: #aaa4ae; font-size: 11px; font-weight: 550; }
.cbm-field-help { display: block; margin: -2px 0 7px; color: #99929f; font-size: 11px; font-weight: 450; line-height: 1.45; }
.cbm-box input[type=text], .cbm-box input[type=email], .cbm-box input[type=password],
.cbm-box input[type=date], .cbm-box input[type=tel], .cbm-box select, .cbm-box textarea {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 11px 13px;
	color: #fff;
	background: #0e0e13;
	border: 1px solid #403e4e;
	border-radius: 10px;
	font-size: 16px;
	line-height: 1.35;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.cbm-box textarea { min-height: 88px; resize: vertical; }
.cbm-box input:hover, .cbm-box select:hover, .cbm-box textarea:hover { border-color: #59566a; }
.cbm-box input:focus, .cbm-box select:focus, .cbm-box textarea:focus {
	outline: 3px solid rgba(255,53,101,.24);
	outline-offset: 1px;
	border-color: var(--cbm-accent);
}
.cbm-box input::placeholder { color: #77717d; opacity: 1; }
.cbm-box input,
.cbm-box select,
.cbm-box textarea,
.cbm-box button { scroll-margin-top: 88px; scroll-margin-bottom: 104px; }
.cbm-consents { display: grid; gap: 9px; margin-top: 17px; }
.cbm-check {
	display: flex !important;
	min-height: 48px;
	box-sizing: border-box;
	gap: 11px;
	align-items: flex-start;
	margin: 0 !important;
	padding: 11px 12px;
	color: #d8d3d9;
	background: rgba(255,255,255,.035);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 11px;
	font-size: 13px;
	font-weight: 450 !important;
	line-height: 1.45;
	cursor: pointer;
}
.cbm-check:hover { border-color: rgba(255,53,101,.38); }
.cbm-check input {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--cbm-accent);
}
.cbm-check span { min-width: 0; }
.cbm-box a { color: #ff7da5; }

.cbm-btn {
	display: inline-flex;
	min-height: 48px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	padding: 12px 26px;
	color: #fff !important;
	background: linear-gradient(135deg,var(--cbm-accent),var(--cbm-purple));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 22px rgba(210,39,111,.22);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.3;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.cbm-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 13px 27px rgba(210,39,111,.3); }
.cbm-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cbm-btn:active:not(:disabled) { transform: translateY(1px); }
.cbm-btn:disabled, .cbm-btn-disabled { opacity: .45; cursor: not-allowed; }
.cbm-btn-current { background: #2f2f3c; }
.cbm-busy { opacity: .55; pointer-events: none; }
.cbm-error { background: #4a1420; color: #ffb3c1; border: 1px solid #97244a; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.cbm-ok { color: #6fe08b; font-weight: 700; }
.cbm-small { color: #aaa4ae; font-size: 12px; margin-top: 10px; }
.cbm-small a { display: inline-flex; min-height: 44px; align-items: center; }
.cbm-missing { color: #ff8f8f; }
.cbm-loading { padding: 30px; text-align: center; opacity: .7; }

/* Account-type choice cards */
.cbm-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cbm-choice {
	min-height: 132px;
	padding: 20px 16px;
	color: #eee;
	background: #0e0e13;
	border: 1px solid #3a3a48;
	border-radius: 12px;
	cursor: pointer;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.cbm-choice:hover { border-color: #e0447c; transform: translateY(-2px); }
.cbm-choice-icon { font-size: 30px; }
.cbm-choice strong { font-size: 17px; }
.cbm-choice span:last-child { font-size: 12.5px; opacity: .75; }

/* Progress bar */
.cbm-progress { list-style: none; display: flex; gap: 5px; margin: 0 0 20px; padding: 0; font-size: 11px; }
.cbm-progress li {
	display: flex;
	min-width: 0;
	min-height: 38px;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 4px;
	background: #23232d;
	border: 1px solid transparent;
	border-radius: 8px;
	opacity: .64;
	text-align: center;
}
.cbm-step-number { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 800; }
.cbm-step-label { min-width: 0; line-height: 1.2; }
.cbm-progress li.now { background: linear-gradient(135deg, #e0447c, #9b2ce0); opacity: 1; font-weight: 700; }
.cbm-progress li.done { background: #274a30; color: #8fe6a4; opacity: 1; }
.cbm-progress li.now .cbm-step-number { background: rgba(255,255,255,.2); }
.cbm-progress li.done .cbm-step-number { background: rgba(143,230,164,.12); }

/* Compact, structured performer details. */
.cbm-private-note {
	display: flex;
	gap: 5px 12px;
	flex-wrap: wrap;
	margin: 0 0 20px;
	padding: 12px 14px;
	color: #c8c1ca;
	background: rgba(255,53,101,.075);
	border: 1px solid rgba(255,53,101,.22);
	border-radius: 11px;
	font-size: 12px;
	line-height: 1.45;
}
.cbm-private-note strong { color: #ff94b1; }
.cbm-address-card {
	min-width: 0;
	margin: 18px 0 0;
	padding: 16px;
	background: rgba(255,255,255,.025);
	border: 1px solid var(--cbm-line);
	border-radius: 13px;
}
.cbm-address-card legend { padding: 0 7px; color: #fff; font-size: 14px; font-weight: 800; }
.cbm-address-card > .cbm-field-help { margin: -2px 0 13px; }
.cbm-section { margin-top: 18px; }
.cbm-signature { margin-top: 18px !important; }

/* Upload and camera controls. */
.cbm-upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.cbm-upload-card {
	display: flex !important;
	min-width: 0;
	min-height: 154px;
	box-sizing: border-box;
	flex-direction: column;
	margin: 0 !important;
	padding: 15px;
	background: rgba(255,255,255,.025);
	border: 1px solid var(--cbm-line);
	border-radius: 13px;
}
.cbm-upload-card input[type=file],
.cbm-upload-inline input[type=file] {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	margin-top: auto;
	padding: 9px;
	color: #d7d2da;
	background: #0e0e13;
	border: 1px solid #403e4e;
	border-radius: 9px;
	font-size: 13px;
}
.cbm-upload-status { display: block; margin-top: 8px; color: #98929c; font-size: 11px; font-weight: 600; }
.cbm-capture-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cbm-capture-actions .cbm-btn { margin-top: 0; }
.cbm-upload-inline {
	display: flex !important;
	min-width: min(100%,300px);
	flex: 1;
	flex-direction: column;
	margin: 0 !important;
	padding: 11px 12px;
	color: #d7d2da;
	background: rgba(255,255,255,.025);
	border: 1px solid var(--cbm-line);
	border-radius: 11px;
	font-size: 12px;
}
.cbm-upload-inline input[type=file] { margin-top: 7px; }
.cbm-timer { color: #ff9ab7; font-size: 13px; font-weight: 750; }

/* Camera */
.cbm-cam video { display: block; width: 100%; max-width: 560px; max-height: 420px; aspect-ratio: 4 / 3; border-radius: 12px; background: #000; object-fit: cover; }
.cbm-thumb { max-width: 260px; border-radius: 8px; margin-top: 10px; }
.cbm-thumb-video { width: 100%; max-width: 420px; border-radius: 10px; }
.cbm-script { background: #0e0e13; border-left: 4px solid #e0447c; padding: 12px 14px; border-radius: 6px; font-size: 16px; }
.cbm-alt { font-weight: 400 !important; display: inline !important; }

/* MuzeGirl-only welcome video shown after the creator account choice. */
body.cbm-welcome-open { overflow: hidden; }
.cbm-welcome-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	box-sizing: border-box;
	place-items: center;
	padding: 22px;
	background: radial-gradient(circle at 50% 20%,rgba(170,49,220,.28),transparent 46%),rgba(4,3,8,.92);
	backdrop-filter: blur(12px);
}
.cbm-welcome-dialog {
	position: relative;
	width: min(960px,100%);
	max-height: calc(100dvh - 44px);
	overflow: auto;
	color: #f7f4f8;
	background: #0b0910;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 20px;
	box-shadow: 0 28px 90px rgba(0,0,0,.72),0 0 55px rgba(207,45,125,.18);
}
.cbm-welcome-heading { padding: 20px 72px 16px 22px; }
.cbm-welcome-kicker {
	margin: 0 0 4px;
	color: #ff75a1;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .16em;
}
.cbm-welcome-heading h2 { margin: 0; color: #fff; font-size: clamp(20px,3vw,30px); line-height: 1.15; }
.cbm-welcome-video {
	display: block;
	width: 100%;
	max-height: min(68dvh,620px);
	background: #000;
	aspect-ratio: 16 / 9;
	object-fit: contain;
}
.cbm-welcome-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	padding: 0;
	color: #fff;
	background: rgba(0,0,0,.72);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 50%;
	font: 400 30px/1 Arial,sans-serif;
	cursor: pointer;
}
.cbm-welcome-close:hover { background: #b92262; }
.cbm-welcome-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cbm-welcome-status { margin: 0; padding: 13px 18px 15px; color: #bbb4c0; font-size: 13px; line-height: 1.45; text-align: center; }
.cbm-welcome-needs-play .cbm-welcome-status { color: #fff; background: rgba(185,34,98,.24); font-weight: 700; }

@media (max-width: 620px) {
	#cbm-register { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	.cbm-box { padding: 20px 16px; border-radius: 14px; }
	.cbm-box h3 { font-size: 21px; }
	.cbm-form-grid,
	.cbm-upload-grid,
	.cbm-choose { grid-template-columns: 1fr; }
	.cbm-address-card { padding: 14px 12px; }
	.cbm-progress { gap: 6px; margin-bottom: 18px; }
	.cbm-progress li { min-height: 34px; padding: 4px; }
	.cbm-step-label { display: none; }
	.cbm-step-number { width: 24px; height: 24px; flex-basis: 24px; }
	.cbm-check { font-size: 13px; }
	.cbm-btn { width: 100%; padding-inline: 18px; }
	.cbm-small a { width: auto; }
	.cbm-choice { min-height: 108px; }
	.cbm-upload-card { min-height: 148px; }
	.cbm-capture-actions { align-items: stretch; flex-direction: column; }
	.cbm-capture-actions .cbm-btn,
	.cbm-upload-inline { width: 100%; }
	.cbm-welcome-modal { padding: max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom)); }
	.cbm-welcome-dialog { max-height: calc(100dvh - 20px); border-radius: 15px; }
	.cbm-welcome-heading { padding: 15px 62px 12px 15px; }
	.cbm-welcome-kicker { font-size: 10px; }
	.cbm-welcome-heading h2 { font-size: 20px; }
	.cbm-welcome-close { top: 8px; right: 8px; width: 46px; height: 46px; }
	.cbm-welcome-video { max-height: 62dvh; }
	.cbm-welcome-status { padding: 11px 12px 13px; font-size: 12px; }
}

@media (max-width: 359px) {
	.cbm-address-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.cbm-btn { transition: none; }
	.cbm-btn:hover:not(:disabled) { transform: none; }
}

/* Membership plan cards */
.cbm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.cbm-plan { position: relative; background: #16161d; color: #eee; border: 1px solid #2b2b36; border-radius: 14px; padding: 26px 20px; text-align: center; }
.cbm-plan h3 { color: #fff; margin: 0 0 6px; }
.cbm-plan ul { list-style: none; padding: 0; margin: 14px 0; text-align: left; }
.cbm-plan li { padding: 6px 0 6px 24px; position: relative; font-size: 14px; border-bottom: 1px dashed #2b2b36; }
.cbm-plan li:before { content: "✓"; position: absolute; left: 0; color: #6fe08b; }
.cbm-plan-price { font-size: 34px; font-weight: 800; color: #fff; }
.cbm-plan-price span { font-size: 14px; font-weight: 400; opacity: .6; }
.cbm-plan-silver  { border-top: 4px solid #b9c0cc; }
.cbm-plan-gold    { border-top: 4px solid #e8c04a; }
.cbm-plan-diamond { border-top: 4px solid #7ad7ff; box-shadow: 0 0 30px rgba(122, 215, 255, .18); }
.cbm-plan-featured { transform: scale(1.04); }
.cbm-plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #7ad7ff; color: #06222e; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
@media (max-width: 860px) { .cbm-plans { grid-template-columns: 1fr; } .cbm-plan-featured { transform: none; } }

.cbm-locked { background: #16161d; color: #eee; border: 1px dashed #7ad7ff; border-radius: 10px; padding: 18px; text-align: center; }

/* Status badges (front + admin) */
.cbm-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cbm-pending    { background: #4a3a10; color: #ffd76e; }
.cbm-approved, .cbm-active { background: #17331f; color: #7ce69a; }
.cbm-rejected   { background: #44121f; color: #ff8fa8; }
.cbm-onboarding { background: #14304a; color: #86c9ff; }
.cbm-suspended, .cbm-expired { background: #333; color: #bbb; }
.cbm-tier-silver  { background: #2e3138; color: #cdd4de; }
.cbm-tier-gold    { background: #423311; color: #ffd76e; }
.cbm-tier-diamond { background: #0d2f3d; color: #7ad7ff; }
.cbm-tier-icon     { background: #48112a; color: #ff9ab2; }

/* Admin */
.cbm-cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 22px; }
.cbm-card { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 16px 22px; min-width: 150px; text-align: center; }
.cbm-card-num { font-size: 30px; font-weight: 800; color: #9b2ce0; }
.cbm-card-label { font-size: 12px; color: #555; }
.cbm-docs { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0 20px; }
.cbm-doc { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 14px; max-width: 340px; }
.cbm-kv th { text-align: left; }
.cbm-decision { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 16px; max-width: 700px; }

/* Print: only the record */
@media print {
	#adminmenumain, #wpadminbar, #wpfooter, .cbm-decision, .button, .subsubsub { display: none !important; }
	#wpcontent { margin-left: 0 !important; }
	.cbm-badge { border: 1px solid #000; color: #000 !important; background: none !important; }
}

/* v1.5 membership landing page overrides. */
.cbm-membership-shell {
	--cbm-pink: #ff3565;
	--cbm-purple: #b52bda;
	--cbm-border: rgba(255,53,101,.34);
	width: min(1180px,100%);
	margin: 0 auto;
	color: #f8f4f6;
}
.cbm-membership-intro {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	padding: clamp(24px,4vw,42px);
	background: radial-gradient(circle at 92% 5%,rgba(181,43,218,.24),transparent 34%),linear-gradient(135deg,#181318,#231621);
	border: 1px solid var(--cbm-border);
	border-radius: 18px;
	box-shadow: 0 18px 42px rgba(0,0,0,.26);
}
.cbm-membership-intro > span { color:#ff83a2; font-size:11px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.cbm-membership-intro h2 { max-width:760px; margin:8px 0 10px; color:#fff; font-size:clamp(26px,4vw,42px); line-height:1.08; letter-spacing:-.025em; }
.cbm-membership-intro p { max-width:800px; margin:0; color:#c9bec3; font-size:15px; line-height:1.6; }
.cbm-membership-promises { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.cbm-membership-promises b { padding:7px 11px; color:#f8eaf0; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:999px; font-size:11px; }
.cbm-membership-shell .cbm-plans { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; width:100%; max-width:none; margin:0 auto; align-items:stretch; }
.cbm-membership-shell .cbm-plan {
	position:relative;
	display:flex;
	min-width:0;
	padding:28px 18px 20px;
	box-sizing:border-box;
	flex-direction:column;
	color:#eee;
	background:linear-gradient(165deg,#1b191e,#141317);
	border:1px solid #302b35;
	border-radius:15px;
	box-shadow:0 12px 28px rgba(0,0,0,.18);
	text-align:left;
	transform:none;
}
.cbm-membership-shell .cbm-plan h3 { margin:5px 0 8px; color:#fff; font-size:22px; }
.cbm-plan-kicker { color:#bcb2b8; font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.cbm-membership-shell .cbm-plan ul { display:grid; gap:0; min-height:205px; margin:18px 0 8px; padding:0; list-style:none; text-align:left; }
.cbm-membership-shell .cbm-plan li { position:relative; padding:9px 0 9px 22px; color:#e6dfe2; border-bottom:1px solid rgba(255,255,255,.07); font-size:13px; line-height:1.35; }
.cbm-membership-shell .cbm-plan li:before { position:absolute; left:0; color:#70df92; content:"\2713"; font-weight:900; }
.cbm-membership-shell .cbm-plan-price { color:#fff; font-size:36px; font-weight:900; letter-spacing:-.03em; }
.cbm-membership-shell .cbm-plan-price span { margin-left:2px; font-size:12px; font-weight:500; opacity:.65; letter-spacing:0; }
.cbm-membership-shell .cbm-plan .cbm-btn { display:block; width:100%; min-height:46px; margin:16px 0 0; padding:13px 16px; box-sizing:border-box; background:linear-gradient(135deg,var(--cbm-pink),var(--cbm-purple)); text-align:center; }
.cbm-plan-term { display:block; margin-top:10px; color:#8f858b; font-size:10px; line-height:1.35; text-align:center; }
.cbm-membership-shell .cbm-plan-silver { border-top:3px solid #b9c0cc; }
.cbm-membership-shell .cbm-plan-gold { border-top:3px solid #e8c04a; }
.cbm-membership-shell .cbm-plan-diamond { border-top:3px solid #72d7ff; box-shadow:0 12px 28px rgba(0,0,0,.18); }
.cbm-membership-shell .cbm-plan-icon { border-color:rgba(255,53,101,.58); border-top:3px solid #ff3565; background:radial-gradient(circle at 100% 0,rgba(181,43,218,.22),transparent 38%),linear-gradient(165deg,#201720,#151317); }
.cbm-membership-shell .cbm-plan-featured { box-shadow:0 0 0 1px rgba(232,192,74,.32),0 14px 32px rgba(0,0,0,.28); }
.cbm-membership-shell .cbm-plan-ribbon { position:absolute; top:-11px; right:14px; left:auto; padding:4px 10px; color:#fff; background:#d52b63; border:1px solid rgba(255,255,255,.2); border-radius:999px; font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; transform:none; }
.cbm-membership-shell .cbm-plan-gold .cbm-plan-ribbon { color:#281d00; background:#e8c04a; }
.cbm-membership-shell .cbm-plan-diamond .cbm-plan-ribbon { color:#06222e; background:#72d7ff; }
.cbm-membership-footnote { max-width:900px; margin:18px auto 0; color:#8f858b; font-size:11px; line-height:1.5; text-align:center; }
@media (max-width:1100px) { .cbm-membership-shell .cbm-plans { grid-template-columns:repeat(2,minmax(0,1fr)); } .cbm-membership-shell .cbm-plan ul { min-height:0; } }
@media (max-width:620px) { .cbm-membership-intro { border-radius:14px; } .cbm-membership-promises { display:grid; } .cbm-membership-shell .cbm-plans { grid-template-columns:1fr; gap:20px; } .cbm-membership-shell .cbm-plan { padding:26px 18px 18px; } }
