/*
 * Contact Me customer pages: log in / sign up (views/shop/_top.php) and the
 * customer dashboard (views/shop/_dash_top.php). Brand: navy + yellow.
 */
:root {
	--cm-navy: #102061;
	--cm-navy-2: #0a1440;
	--cm-navy-3: #1b2c80;
	--cm-yellow: #eaf700;
	--cm-yellow-2: #d8e400;
	--cm-ink: #0f172a;
	--cm-text: #334155;
	--cm-muted: #64748b;
	--cm-line: #e6e9f2;
	--cm-bg: #f4f6fb;
	--cm-green: #15803d;
	--cm-green-bg: #e8f7ee;
	--cm-amber: #a35400;
	--cm-amber-bg: #fff4e2;
	--cm-red: #c62828;
	--cm-red-bg: #fdecec;
	--cm-radius: 18px;
	--cm-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.cm {
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cm-text);
	background: var(--cm-bg);
	-webkit-font-smoothing: antialiased;
}
.cm a { color: var(--cm-navy); }
.cm h1, .cm h2, .cm h3 { margin: 0; color: var(--cm-ink); line-height: 1.25; }
.cm p { margin: 0; }
.cm button, .cm input { font: inherit; }
.cm-ico { width: 20px; height: 20px; flex: none; }
.cm-mt { margin-top: 20px; }

/* ---- buttons ---- */
.cm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 12px;
	font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.cm-btn:active { transform: translateY(1px); }
.cm-btn .cm-ico { width: 18px; height: 18px; }
.cm-btn-primary { background: var(--cm-yellow); color: var(--cm-navy) !important; box-shadow: 0 6px 16px rgba(200, 212, 0, .25); }
.cm-btn-primary:hover { background: var(--cm-yellow-2); }
.cm-btn-dark { background: var(--cm-navy); color: #fff !important; }
.cm-btn-dark:hover { background: var(--cm-navy-3); }
.cm-btn-ghost { background: #fff; color: var(--cm-navy) !important; border-color: var(--cm-line); }
.cm-btn-ghost:hover { border-color: #c6cde0; }
.cm-btn-block { width: 100%; }
.cm-btn-lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.cm-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---- form fields ---- */
.cm-field { margin-bottom: 16px; }
.cm-field > label { display: block; margin-bottom: 7px; color: var(--cm-ink); font-size: 13px; font-weight: 700; }
.cm-input { position: relative; display: flex; align-items: center; }
.cm-input > .cm-ico { position: absolute; left: 14px; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
.cm-input input {
	width: 100%; height: 50px; padding: 0 14px 0 44px;
	border: 1.5px solid var(--cm-line); border-radius: 12px; background: #fff;
	color: var(--cm-ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.cm-input input::placeholder { color: #a3adc2; }
.cm-input input:focus { outline: none; border-color: var(--cm-navy); box-shadow: 0 0 0 4px rgba(16, 32, 97, .1); }
.cm-input input[readonly] { background: #f6f8fc; color: var(--cm-muted); }
.cm-input.is-bad input { border-color: var(--cm-red); box-shadow: 0 0 0 4px rgba(198, 40, 40, .08); }
.cm-input .cm-prefix { position: absolute; left: 44px; color: var(--cm-ink); font-weight: 700; pointer-events: none; }
.cm-input.has-prefix input { padding-left: 82px; }
.cm-input.has-eye input { padding-right: 50px; }
.cm-input input.cm-pin { letter-spacing: .45em; font-weight: 800; }
.cm-input input.cm-pin::placeholder { letter-spacing: .3em; }
.cm-eye {
	position: absolute; right: 6px; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #94a3b8; cursor: pointer;
}
.cm-eye:hover { background: #f1f4fa; color: var(--cm-navy); }
.cm-eye .cm-ico { width: 18px; height: 18px; }
.cm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cm-hint { margin-top: 6px; color: var(--cm-muted); font-size: 13px; }

/* ---- alerts ---- */
.cm-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.cm-alert .cm-ico { width: 18px; height: 18px; margin-top: 1px; }
.cm-alert-ok { background: var(--cm-green-bg); color: var(--cm-green); }
.cm-alert-err { background: var(--cm-red-bg); color: var(--cm-red); }
.cm-alert-info { background: #eef2ff; color: var(--cm-navy); }

/* ================= log in / sign up ================= */
.cm-auth { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.cm-auth-brand {
	position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 40px 52px;
	color: #fff;
	background:
		radial-gradient(700px 380px at 0% 0%, rgba(234, 247, 0, .14), transparent 60%),
		radial-gradient(600px 400px at 100% 100%, rgba(80, 110, 255, .22), transparent 60%),
		linear-gradient(160deg, var(--cm-navy) 0%, var(--cm-navy-2) 100%);
}
.cm-auth-brand .cm-logo img { display: block; height: 46px; }
.cm-auth-brand h2 { margin: 52px 0 14px; color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.cm-auth-brand h2 span { color: var(--cm-yellow); }
.cm-auth-brand p { max-width: 460px; margin-bottom: 26px; color: rgba(255, 255, 255, .75); font-size: 16px; }
.cm-auth-brand ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cm-auth-brand li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .92); font-weight: 600; }
.cm-tick { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(234, 247, 0, .15); color: var(--cm-yellow); }
.cm-tick .cm-ico { width: 16px; height: 16px; }
.cm-auth-art { width: 100%; max-width: 480px; margin-top: auto; padding-top: 28px; align-self: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.cm-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.cm-auth-mobile-top { display: none; }
.cm-auth-card { width: 100%; max-width: 440px; }
.cm-auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cm-auth-card .cm-sub { margin: 8px 0 26px; color: var(--cm-muted); }
.cm-auth-foot { margin-top: 20px; text-align: center; font-size: 15px; }
.cm-auth-foot a { font-weight: 800; }
.cm-auth-help { margin-top: 28px; color: var(--cm-muted); font-size: 13px; text-align: center; }
.cm-auth-help a { color: var(--cm-muted); }
.cm-auth-legal { margin-top: 14px; color: var(--cm-muted); font-size: 12.5px; text-align: center; }
.cm-steps-mini { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.cm-steps-mini li { flex: 1; color: var(--cm-muted); font-size: 12px; font-weight: 700; }
.cm-steps-mini li::before { content: ''; display: block; height: 4px; margin-bottom: 8px; border-radius: 4px; background: var(--cm-line); }
.cm-steps-mini li.on { color: var(--cm-navy); }
.cm-steps-mini li.on::before { background: var(--cm-yellow); box-shadow: inset 0 0 0 1px #c3cd00; }
.cm-divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--cm-muted); font-size: 13px; }
.cm-divider::before, .cm-divider::after { content: ''; flex: 1; height: 1px; background: var(--cm-line); }

@media (max-width: 960px) {
	.cm-auth { grid-template-columns: 1fr; }
	.cm-auth-brand { display: none; }
	.cm-auth-main { justify-content: flex-start; padding: 0 0 36px; }
	.cm-auth-mobile-top {
		display: flex; align-items: center; justify-content: space-between; width: 100%;
		margin-bottom: 28px; padding: 14px 20px;
		background: linear-gradient(160deg, var(--cm-navy), var(--cm-navy-2));
	}
	.cm-auth-mobile-top img { display: block; height: 34px; }
	.cm-auth-mobile-top a.cm-home { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; opacity: .85; }
	.cm-auth-card { padding: 0 20px; }
	.cm-auth-card h1 { font-size: 26px; }
}

/* ================= dashboard ================= */
.cm-dash { display: flex; min-height: 100vh; }
.cm-side {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
	display: flex; flex-direction: column; width: 268px; padding: 22px 16px 18px; overflow-x: hidden; overflow-y: auto;
	color: #fff;
	background:
		radial-gradient(400px 260px at 0% 0%, rgba(234, 247, 0, .08), transparent 60%),
		linear-gradient(180deg, var(--cm-navy) 0%, var(--cm-navy-2) 100%);
	transition: transform .25s ease;
}
.cm-side-logo { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 20px; }
.cm-side-logo img { display: block; height: 40px; }
.cm-side-close { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.cm-nav { display: flex; flex-direction: column; gap: 4px; }
.cm-nav-label { padding: 12px 12px 6px; color: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cm-nav a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
	color: rgba(255, 255, 255, .78) !important; font-size: 15px; font-weight: 600; text-decoration: none;
	transition: background .15s, color .15s;
}
.cm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.cm-nav a.active { background: var(--cm-yellow); color: var(--cm-navy) !important; font-weight: 800; box-shadow: 0 8px 20px rgba(234, 247, 0, .16); }
.cm-nav a .cm-lock { width: 16px; height: 16px; margin-left: auto; opacity: .55; }
.cm-nav a .cm-dot { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #ff7a45; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
.cm-nav a.active .cm-dot { background: var(--cm-navy); color: var(--cm-yellow); }
.cm-side-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.cm-help-card { padding: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); font-size: 13px; }
.cm-help-card b { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.cm-help-card a { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--cm-yellow) !important; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.cm-help-card a .cm-ico { width: 16px; height: 16px; }
.cm-side-logout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255, 255, 255, .78) !important; font-weight: 600; text-decoration: none; }
.cm-side-logout:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.cm-backdrop { display: none; }

.cm-main { display: flex; flex: 1; flex-direction: column; min-width: 0; margin-left: 268px; }
.cm-topbar {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
	padding: 14px 32px; border-bottom: 1px solid var(--cm-line);
	background: rgba(244, 246, 251, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cm-topbar h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.cm-crumb { color: var(--cm-muted); font-size: 13px; }
.cm-burger { display: none; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--cm-line); border-radius: 12px; background: #fff; color: var(--cm-navy); cursor: pointer; }
.cm-top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cm-code-chip { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--cm-line); border-radius: 999px; background: #fff; color: var(--cm-muted); font-size: 13px; white-space: nowrap; }
.cm-code-chip b { color: var(--cm-navy); font-size: 14px; letter-spacing: .04em; }
.cm-avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--cm-navy); color: var(--cm-yellow); font-size: 15px; font-weight: 800; }
.cm-content { width: 100%; max-width: 1180px; padding: 28px 32px 56px; }

.cm-card { padding: 24px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: #fff; box-shadow: var(--cm-shadow); }
.cm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cm-card-head h2 { font-size: 18px; font-weight: 800; }
.cm-card-head p { margin-top: 4px; color: var(--cm-muted); font-size: 14px; }
.cm-card-head .cm-link { flex: none; font-size: 14px; font-weight: 800; text-decoration: none; }
.cm-grid { display: grid; gap: 20px; }
.cm-grid > * { min-width: 0; }
.cm-grid-2 { grid-template-columns: 1fr 1fr; }
.cm-grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

/* welcome banner */
.cm-hero {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	overflow: hidden; padding: 28px 30px; border-radius: 22px; color: #fff;
	background:
		radial-gradient(520px 260px at 100% 0%, rgba(234, 247, 0, .2), transparent 60%),
		linear-gradient(135deg, var(--cm-navy) 0%, var(--cm-navy-2) 100%);
	box-shadow: 0 16px 40px rgba(16, 32, 97, .22);
}
.cm-hero h2 { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.cm-hero p { max-width: 540px; margin-top: 8px; color: rgba(255, 255, 255, .78); }
.cm-hero .cm-btn { margin-top: 18px; }
.cm-hero-code { min-width: 250px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .07); }
.cm-hero-code small { display: block; color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cm-code { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; color: var(--cm-yellow); font-size: 27px; font-weight: 800; letter-spacing: .06em; }
.cm-copy { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.cm-copy:hover { background: rgba(255, 255, 255, .2); }
.cm-copy .cm-ico { width: 17px; height: 17px; }
.cm-copy.light { background: #eef1f7; color: var(--cm-navy); }
.cm-copy.light:hover { background: #e2e7f2; }

.cm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.cm-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cm-pill-ok { background: var(--cm-green-bg); color: var(--cm-green); }
.cm-pill-wait { background: var(--cm-amber-bg); color: var(--cm-amber); }

/* progress steps */
.cm-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.cm-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 16px; }
.cm-step::after { content: ''; position: absolute; top: 18px; left: 48px; right: 10px; height: 2px; border-radius: 2px; background: #e1e6f0; }
.cm-step:last-child::after { display: none; }
.cm-step.done::after { background: var(--cm-green); }
.cm-step-dot {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border: 2px solid #e1e6f0; border-radius: 50%;
	background: #f1f4f9; color: var(--cm-muted); font-weight: 800;
}
.cm-step-dot .cm-ico { width: 18px; height: 18px; }
.cm-step.done .cm-step-dot { border-color: var(--cm-green); background: var(--cm-green); color: #fff; }
.cm-step.now .cm-step-dot { border-color: #c3cd00; background: var(--cm-yellow); color: var(--cm-navy); box-shadow: 0 0 0 6px rgba(234, 247, 0, .28); }
.cm-step b { display: block; color: var(--cm-ink); font-size: 15px; }
.cm-step span { color: var(--cm-muted); font-size: 13px; }

/* kits */
.cm-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cm-kit { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--cm-line); border-radius: 18px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cm-kit:hover { border-color: #cdd5ea; box-shadow: 0 14px 32px rgba(16, 32, 97, .1); transform: translateY(-2px); }
.cm-kit.popular { border-color: var(--cm-navy); }
.cm-kit-tag { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--cm-yellow); color: var(--cm-navy); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.cm-kit img { display: block; width: 100%; aspect-ratio: 27 / 25; object-fit: cover; background: var(--cm-navy); }
.cm-kit-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.cm-kit-body h3 { font-size: 18px; font-weight: 800; }
.cm-kit-body p { color: var(--cm-muted); font-size: 14px; }
.cm-kit-items { gap: 8px; margin: 2px 0 6px; }
.cm-kit-items li { font-size: 14px; font-weight: 600; }
.cm-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.cm-price b { color: var(--cm-ink); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cm-price span { color: var(--cm-muted); font-size: 13px; font-weight: 700; }
.cm-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--cm-muted); font-size: 13px; text-align: center; }
.cm-secure .cm-ico { width: 16px; height: 16px; color: var(--cm-green); }

/* lists */
.cm-checklist { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.cm-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--cm-text); font-size: 14px; }
.cm-checklist .cm-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--cm-green); }
.cm-numbered { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.cm-numbered li { display: flex; gap: 14px; align-items: flex-start; counter-increment: n; }
.cm-numbered li::before { content: counter(n); display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cm-yellow); color: var(--cm-navy); font-weight: 800; font-size: 14px; }
.cm-numbered li > div > b { display: block; color: var(--cm-ink); }
.cm-numbered span b { color: var(--cm-ink); }
.cm-numbered span { color: var(--cm-muted); font-size: 14px; }

/* QR */
.cm-qr-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cm-qr-wrap > div { flex: 1; min-width: 220px; }
.cm-qr-img { display: block; flex: none; width: 200px; height: 200px; padding: 10px; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; image-rendering: pixelated; }
.cm-qr-big { width: 280px; height: 280px; margin: 0 auto; }
.cm-qr-center { text-align: center; }
.cm-qr-center .cm-code { justify-content: center; color: var(--cm-navy); font-size: 24px; margin: 14px 0 18px; }
.cm-qr-locked { position: relative; width: 200px; height: 200px; margin: 0 auto; overflow: hidden; border-radius: 18px; border: 1px solid var(--cm-line); background: repeating-conic-gradient(#dfe4ef 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.cm-qr-locked::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cm-lock-badge { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--cm-navy); font-size: 13px; font-weight: 800; text-align: center; }
.cm-lock-badge i { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cm-navy); color: var(--cm-yellow); }
.cm-link-box { display: flex; align-items: center; gap: 8px; margin: 14px 0 16px; padding: 7px 7px 7px 14px; border: 1px solid var(--cm-line); border-radius: 12px; background: #f6f8fc; font-size: 13px; }
.cm-link-box a { flex: 1; min-width: 0; overflow: hidden; color: var(--cm-navy); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* sticker previews with the customer's own QR */
.cm-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cm-sticker { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--cm-line); border-radius: 18px; background: #fff; transition: box-shadow .15s, transform .15s; }
.cm-sticker:hover { box-shadow: 0 14px 32px rgba(16, 32, 97, .1); transform: translateY(-2px); }
.cm-sticker-stage { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 20px; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e9edf6 100%); }
.cm-sticker-art { position: relative; container-type: inline-size; filter: drop-shadow(0 10px 16px rgba(16, 32, 97, .22)); }
.cm-sticker-art img.base { display: block; width: 100%; height: auto; }
.cm-sticker-art img.qr { position: absolute; display: block; height: auto; image-rendering: pixelated; }
.cm-sticker-art .num { position: absolute; display: flex; align-items: center; justify-content: center; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1; white-space: nowrap; }
.cm-sticker-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.cm-sticker-body b { display: block; color: var(--cm-ink); }
.cm-sticker-body span { color: var(--cm-muted); font-size: 13px; }
.cm-sticker-body .cm-btn { margin-top: auto; }

/* tables */
.cm-table-wrap { overflow-x: auto; border: 1px solid var(--cm-line); border-radius: 14px; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-table th { padding: 11px 14px; border-bottom: 1px solid var(--cm-line); background: #f8fafd; color: var(--cm-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.cm-table td { padding: 14px; border-bottom: 1px solid var(--cm-line); color: var(--cm-ink); }
.cm-table tr:last-child td { border-bottom: 0; }
.cm-table .muted { color: var(--cm-muted); font-size: 13px; word-break: break-all; }

/* stats */
.cm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cm-stat { padding: 14px 16px; border: 1px solid var(--cm-line); border-radius: 14px; background: #f8fafd; }
.cm-stat small { display: block; color: var(--cm-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cm-stat b { display: block; margin-top: 4px; color: var(--cm-ink); font-size: 16px; font-weight: 800; }

/* empty state */
.cm-empty { padding: 36px 16px; color: var(--cm-muted); text-align: center; }
.cm-empty i { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%; background: #eef1f7; color: var(--cm-navy); }
.cm-empty b { display: block; margin-bottom: 4px; color: var(--cm-ink); font-size: 16px; }
.cm-empty .cm-btn { margin-top: 16px; }

/* toast */
.cm-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px);
	padding: 12px 18px; border-radius: 12px; background: var(--cm-ink); color: #fff;
	font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s;
}
.cm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cm-toast.err { background: var(--cm-red); }

@media (max-width: 1100px) {
	.cm-grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
	.cm-side { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	.cm-dash.nav-open .cm-side { transform: none; }
	.cm-dash.nav-open .cm-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 64, .5); }
	.cm-side-close { display: flex; }
	.cm-main { margin-left: 0; }
	.cm-burger { display: inline-flex; }
	.cm-topbar { padding: 12px 16px; }
	.cm-content { padding: 20px 16px 40px; }
	.cm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.cm-code-chip { display: none; }
	.cm-topbar h1 { font-size: 18px; }
	.cm-crumb { display: none; }
	.cm-card { padding: 18px; }
	.cm-hero { padding: 22px 20px; border-radius: 18px; }
	.cm-hero h2 { font-size: 22px; }
	.cm-hero-code { width: 100%; min-width: 0; }
	.cm-code { font-size: 24px; }
	.cm-steps { grid-template-columns: 1fr; gap: 18px; }
	.cm-step { flex-direction: row; align-items: center; gap: 14px; padding-right: 0; }
	.cm-step::after { top: 40px; bottom: -16px; left: 18px; right: auto; width: 2px; height: auto; }
	.cm-qr-wrap { flex-direction: column; align-items: stretch; }
	.cm-qr-img { margin: 0 auto; }
	.cm-qr-big { width: 240px; height: 240px; }
	.cm-stickers { grid-template-columns: 1fr 1fr; gap: 12px; }
	.cm-sticker-stage { padding: 14px; }
	.cm-sticker-body { padding: 12px; }
	.cm-sticker-body .cm-btn { padding: 8px 10px; font-size: 13px; }
	.cm-actions .cm-btn { flex: 1; }
	.cm-stats { grid-template-columns: 1fr 1fr; }
	.cm-table thead { display: none; }
	.cm-table tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--cm-line); }
	.cm-table tr:last-child { border-bottom: 0; }
	.cm-table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
	.cm-table td::before { content: attr(data-label); color: var(--cm-muted); font-size: 12px; font-weight: 700; text-align: left; }
}
@media (max-width: 380px) {
	.cm-row2 { grid-template-columns: 1fr; }
	.cm-stickers { grid-template-columns: 1fr; }
}
