/*
Theme Name: QAVEX
Theme URI: https://qavexdigital.com
Author: QAVEX Digital World
Description: QAVEX marketing and client-portal theme. Black and neon green. Home page with website builder and business suite sections, working sign-up with referral codes, package payment step, business set-up, and a client dashboard with 12 module templates.
Version: 2.8.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qavex
Tags: dark, one-column, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--neon: #39ff14;
	--neon-2: #5bff3d;
	--neon-dark: #2bd10e;
	--neon-soft: rgba(57, 255, 20, 0.1);
	--neon-line: rgba(57, 255, 20, 0.35);
	--bg: #0a0a0a;
	--s1: #111111;
	--s2: #171717;
	--s3: #1f1f1f;
	--line: #2a2a2a;
	--line-2: #333333;
	--row: #1e1e1e;
	--text: #ffffff;
	--muted: #a3a3a3;
	--subtle: #8a8a8a;
	--amber: #ffb020;
	--red: #ff4d4f;
	--blue: #4da3ff;
	--radius: 16px;
	--radius-sm: 10px;
	--font: "Inter", "Helvetica Neue", Arial, sans-serif;
	--container: 1200px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--neon); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.neon { color: var(--neon); }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; }

/* ------------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
	font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--neon-2), var(--neon)); color: var(--bg); }
.btn-primary:hover { color: var(--bg); box-shadow: 0 8px 28px rgba(57, 255, 20, .25); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--neon); color: var(--neon); }
.btn-outline:hover { background: var(--neon-soft); }
.btn-dark { background: var(--s3); border-color: var(--line); color: var(--text); }
.btn-dark:hover { color: var(--text); border-color: var(--line-2); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ badges */
.badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 600; line-height: 1.2;
	background: rgba(57, 255, 20, .14); color: var(--neon);
}
.badge--amber { background: rgba(255, 176, 32, .14); color: var(--amber); }
.badge--red { background: rgba(255, 77, 79, .14); color: var(--red); }
.badge--blue { background: rgba(77, 163, 255, .14); color: var(--blue); }
.badge--muted { background: rgba(163, 163, 163, .14); color: var(--muted); }
.badge--solid { background: var(--neon); color: var(--bg); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------------ header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10, 10, 10, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header .container { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo img, .site-logo svg { height: 22px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .login-link { color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-actions .btn, .header-actions .gsw-menu { flex: none; white-space: nowrap; }
.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
	background: var(--s2); border: 1px solid var(--line); color: var(--text); cursor: pointer;
	align-items: center; justify-content: center;
}
@media (max-width: 1180px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav, .header-actions { display: none; }
	.site-header.is-open .container { flex-wrap: wrap; padding-bottom: 20px; }
	.site-header.is-open .primary-nav, .site-header.is-open .header-actions { display: block; width: 100%; margin: 0; }
	.site-header.is-open .primary-nav ul { flex-direction: column; gap: 0; }
	.site-header.is-open .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-header.is-open .header-actions { display: flex; padding-top: 16px; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: 112px 0; position: relative; overflow-x: clip; }
main { overflow-x: clip; }
.section--tight { padding: 72px 0; }
.section--band { background: var(--s1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; color: var(--neon); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.03em; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 620px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(520px 520px at 78% 40%, rgba(57, 255, 20, .22), transparent 70%),
		radial-gradient(320px 320px at 8% 10%, rgba(57, 255, 20, .12), transparent 70%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
	background-image: linear-gradient(#141414 1px, transparent 1px), linear-gradient(90deg, #141414 1px, transparent 1px);
	background-size: 96px 96px;
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.2vw, 54px); letter-spacing: -0.04em; margin: 22px 0 22px; }
.hero h1 .line { display: block; }
.hero h1 .line--neon { color: var(--neon); }
.hero-lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.trust { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.trust .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--neon-soft); display: grid; place-items: center; }
.trust .tick .icon { width: 13px; height: 13px; }
.hero-visual { position: relative; padding-bottom: 80px; }
.hero-visual .mockup { width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.float-card {
	position: absolute; background: var(--s2); border: 1px solid var(--line-2); border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.float-sales { left: 10%; bottom: 0; width: 290px; padding: 20px; background: var(--s1); }
.float-sales .label { color: var(--muted); font-size: 13px; }
.float-sales .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.float-sales .delta { position: absolute; top: 20px; right: 20px; color: var(--neon); font-size: 12px; font-weight: 700; }
.mini-bars { display: flex; align-items: flex-end; gap: 14px; height: 64px; margin-top: 12px; }
.mini-bars span { flex: 1; background: #2a2a2a; border-radius: 6px; }
.mini-bars span:last-child { background: var(--neon); }
.float-toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.float-toast strong { display: block; font-size: 13px; }
.float-toast small { color: var(--muted); font-size: 11px; }
.float-toast .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--neon); display: grid; place-items: center; color: var(--bg); }
.float-toast .ico--amber { background: rgba(255, 176, 32, .2); color: var(--amber); font-weight: 800; border-radius: 50%; width: 28px; height: 28px; }
.float-receipt { right: -12px; bottom: 30px; }
.float-stock { right: -12px; top: 52%; }
@media (max-width: 960px) {
	.hero .container { grid-template-columns: minmax(0, 1fr); }
	.float-receipt, .float-stock { right: 0; }
}
@media (max-width: 560px) {
	.float-sales { left: 0; width: 240px; }
	.float-stock { display: none; }
}

/* ------------------------------------------------------------------ stats */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 32px 0 32px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 14px; }
.stat--neon strong { color: var(--neon); }
@media (max-width: 760px) {
	.stats-strip .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat { padding: 24px 0 24px 20px; }
	.stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------------ product cards */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo-card {
	background: linear-gradient(135deg, #1c1c1c, #0f0f0f); border: 1px solid var(--line); border-radius: 24px;
	padding: 32px; display: flex; flex-direction: column;
}
.duo-card .tile { width: 48px; height: 48px; border-radius: 12px; background: var(--neon); color: var(--bg); display: grid; place-items: center; margin-bottom: 36px; }
.duo-card .tile .icon { width: 24px; height: 24px; }
.duo-card h3 { font-size: 28px; margin-bottom: 8px; }
.duo-card > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 12px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--neon); width: 18px; height: 18px; margin-top: 3px; }
.theme-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; }
.theme-thumbs figure { margin: 0; }
.theme-thumbs img { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.theme-thumbs figure.is-active img { border: 2px solid var(--neon); }
.theme-thumbs figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.theme-thumbs .is-active figcaption { color: var(--text); font-weight: 600; }
.mini-pos { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mini-pos .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-pos .item { background: var(--s2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 11px; font-weight: 600; }
.mini-pos .item .ph { height: 44px; border-radius: 6px; margin-bottom: 8px; }
.mini-pos .item span { display: block; color: var(--neon); font-weight: 600; font-size: 10px; }
.mini-pos .sale { background: var(--s2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 11px; display: flex; flex-direction: column; gap: 6px; }
.mini-pos .sale strong { font-size: 12px; }
.mini-pos .sale .row { display: flex; justify-content: space-between; color: var(--muted); }
.mini-pos .sale .row b { color: var(--text); }
.mini-pos .sale .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }
.mini-pos .sale .total b { color: var(--neon); }
.mini-pos .sale .charge { background: var(--neon); color: var(--bg); text-align: center; border-radius: 99px; padding: 6px; font-weight: 700; }
.ph { background: linear-gradient(135deg, #262626, #151515); }
@media (max-width: 960px) { .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .mini-pos { grid-template-columns: minmax(0, 1fr); } .duo-card { padding: 24px; } }

/* ------------------------------------------------------------------ modules grid */
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.module {
	background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
	transition: border-color .2s ease, transform .2s ease;
}
.module:hover { border-color: var(--neon-line); transform: translateY(-2px); }
.module .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--neon-soft); color: var(--neon); display: grid; place-items: center; margin-bottom: 30px; }
.module h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.module p { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 960px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .modules { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.step .num { color: var(--neon); font-size: 48px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; display: block; margin-bottom: 36px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ pricing */
.pricing { position: relative; max-width: 760px; margin: 0 auto; }
.pricing::before { content: ""; position: absolute; inset: -80px; background: radial-gradient(closest-side, rgba(57, 255, 20, .18), transparent); pointer-events: none; }
.price-card {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
	background: linear-gradient(135deg, #1c1c1c, #0f0f0f); border: 1.5px solid var(--neon); border-radius: 28px; padding: 40px;
}
.price-card .amount { font-size: 88px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 6px; }
.price-card .amount .fx.is-fx { font-size: .72em; letter-spacing: -0.04em; }
.price-card .amount small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.price-card .then { display: inline-block; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 16px 0 24px; }
.price-card .then > span { display: block; color: var(--muted); font-size: 13px; }
.price-card .then strong .fx { white-space: nowrap; }
.price-card .then strong { color: var(--neon); font-size: 16px; }
.price-card .includes { border-left: 1px solid var(--line); padding-left: 40px; }
.price-card .note { color: var(--subtle); font-size: 13px; margin: 16px 0 0; }
@media (max-width: 760px) {
	.price-card { grid-template-columns: minmax(0, 1fr); padding: 28px; }
	.price-card .includes { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
	.price-card .amount { font-size: 64px; }
}

/* ------------------------------------------------------------------ referral band */
.referral-band {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
	background: var(--s1); border: 1px solid var(--line); border-radius: 28px; padding: 56px;
}
.referral-band::after { content: ""; position: absolute; right: -120px; top: 50%; width: 600px; height: 600px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(57, 255, 20, .2), transparent); pointer-events: none; }
.referral-band h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; margin: 24px 0 18px; }
.referral-band h2 span { display: block; color: var(--neon); }
.referral-band p { color: var(--muted); max-width: 560px; }
.earn-card { position: relative; z-index: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.earn-card .top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.earn-card .total { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.earn-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.earn-row .who { flex: 1; font-size: 13px; font-weight: 600; }
.earn-row .who small { display: block; color: var(--subtle); font-weight: 400; font-size: 11px; }
.earn-row b { color: var(--neon); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.avatar--neon { background: var(--neon); color: var(--bg); border-color: var(--neon); }
.avatar--lg { width: 80px; height: 80px; font-size: 28px; }
@media (max-width: 860px) { .referral-band { grid-template-columns: minmax(0, 1fr); padding: 32px; } }

/* ------------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .control { position: relative; display: flex; align-items: center; }
.field .control > .icon { position: absolute; left: 14px; color: var(--subtle); width: 18px; height: 18px; pointer-events: none; }
.field .control > .suffix { position: absolute; right: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
	background: var(--s2); border: 1px solid var(--line); color: var(--text); font: 400 15px/1.4 var(--font);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.field .control > .icon ~ input { padding-left: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57, 255, 20, .15); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field .hint { font-size: 12px; color: var(--subtle); }
.field .hint.ok { color: var(--neon); font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reveal { position: absolute; right: 8px; background: none; border: 0; color: var(--muted); font: 600 13px var(--font); cursor: pointer; padding: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--neon); margin-top: 2px; flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.notice--error { background: rgba(255, 77, 79, .08); border-color: rgba(255, 77, 79, .35); color: #ffb3b4; }
.notice--info { background: var(--neon-soft); border-color: var(--neon-line); color: var(--text); }
.notice--warn { background: rgba(255, 176, 32, .08); border-color: rgba(255, 176, 32, .35); color: #ffd590; }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ------------------------------------------------------------------ sign up */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.signup h2 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; }
.benefits { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.benefits li { display: flex; gap: 16px; align-items: center; }
.benefits .tile { width: 48px; height: 48px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); color: var(--neon); display: grid; place-items: center; flex: none; }
.benefits strong { display: block; }
.benefits span { color: var(--muted); font-size: 14px; }
.form-card { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.form-card h3 { font-size: 26px; margin-bottom: 4px; }
.form-progress { height: 4px; background: var(--s3); border-radius: 2px; margin: 14px 0 32px; overflow: hidden; }
.form-progress span { display: block; height: 100%; background: var(--neon); border-radius: 2px; }
.form-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 0; }
@media (max-width: 960px) { .signup { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 520px) { .form-card { padding: 24px; } }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 24px; }
.footer-grid h4 { font-size: 14px; letter-spacing: 0; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; color: var(--subtle); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ flow pages (payment, setup) */
.flow-header { border-bottom: 1px solid var(--line); }
.flow-header .container { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.flow-header .aside { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.stepper { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0 auto; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--subtle); }
.stepper .n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--s2); display: grid; place-items: center; font-size: 13px; }
.stepper .is-done { color: var(--text); }
.stepper .is-done .n { background: var(--neon); border-color: var(--neon); color: var(--bg); }
.stepper .is-current { color: var(--text); }
.stepper .is-current .n { background: var(--bg); border: 2px solid var(--neon); color: var(--neon); }
.stepper .bar { width: 64px; height: 2px; background: var(--line-2); }
.stepper .bar.is-done { background: var(--neon); }
.flow { padding: 56px 0 96px; position: relative; }
.flow::before { content: ""; position: absolute; right: 0; top: 0; width: 640px; height: 520px; background: radial-gradient(closest-side, rgba(57, 255, 20, .13), transparent); pointer-events: none; }
.flow .container { position: relative; }
.flow h1 { font-size: clamp(30px, 4vw, 38px); letter-spacing: -0.03em; margin-bottom: 6px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 36px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.panel h2 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 18px; }
.methods { display: grid; gap: 14px; margin-bottom: 28px; }
.method { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); cursor: pointer; }
.method input { position: absolute; opacity: 0; }
.method .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.method .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--s3); color: var(--muted); display: grid; place-items: center; flex: none; }
.method strong { display: block; font-size: 15px; }
.method span.d { color: var(--muted); font-size: 13px; }
.method .badge { margin-left: auto; }
.method:has(input:checked) { border-color: var(--neon); background: var(--s2); }
.method:has(input:checked) .radio { border-color: var(--neon); }
.method:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); }
.method:has(input:checked) .tile { color: var(--neon); }
.method:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
.method-fields { border-top: 1px solid var(--line); padding-top: 24px; }
.method-fields[hidden] { display: none; }
.summary { background: linear-gradient(135deg, #1c1c1c, #0f0f0f); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; position: sticky; top: 110px; }
.summary h2 { font-size: 18px; margin-bottom: 20px; }
.pkg { display: flex; gap: 16px; align-items: center; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 24px; }
.pkg img { width: 56px; height: 56px; }
.pkg strong { display: block; }
.pkg span { color: var(--muted); font-size: 13px; }
.lines { display: grid; gap: 12px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.lines div { display: flex; justify-content: space-between; color: var(--muted); }
.lines b { color: var(--text); font-weight: 600; }
.lines b.neon { color: var(--neon); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; }
.total-row strong { font-size: 30px; letter-spacing: -0.02em; }
.timeline { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.timeline h3 { font-size: 11px; color: var(--subtle); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.timeline li { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--neon); flex: none; }
.timeline li:nth-child(2)::before { opacity: .55; }
.timeline li:nth-child(3)::before { background: var(--line-2); }
.timeline li:nth-child(3) { color: var(--muted); }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 13px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .icon { color: var(--neon); width: 18px; height: 18px; }
.ref-applied { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px 20px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; }
.ref-applied .icon { color: var(--neon); }
.ref-applied b { margin-left: auto; color: var(--neon); }
.fine { color: var(--subtle); font-size: 12px; text-align: center; margin: 16px 0 0; }
@media (max-width: 960px) {
	.checkout { grid-template-columns: minmax(0, 1fr); }
	.summary { position: static; }
	.stepper .bar { width: 24px; }
	.flow-header .aside { display: none; }
}
@media (max-width: 600px) {
	.stepper .label { display: none; }
	.panel { padding: 22px; }
}

/* setup */
.setup { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.setup-steps { position: sticky; top: 110px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 24px 12px; }
.setup-steps h2 { font-size: 15px; padding: 0 12px; margin-bottom: 2px; }
.setup-steps .muted { font-size: 12px; padding: 0 12px; }
.setup-steps .form-progress { margin: 12px 12px 18px; }
.setup-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.setup-steps li a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; color: var(--subtle); font-size: 14px; font-weight: 500; }
.setup-steps li a:hover { background: var(--s2); color: var(--text); }
.setup-steps .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.setup-steps .is-done a { color: var(--text); }
.setup-steps .is-done .n { background: var(--neon); border-color: var(--neon); color: var(--bg); }
.setup-block { margin-bottom: 56px; scroll-margin-top: 110px; }
.setup-block > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.setup-block h2 { font-size: 26px; margin-bottom: 4px; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.type-opt { position: relative; display: block; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt strong { display: block; font-size: 15px; }
.type-opt small { color: var(--subtle); font-size: 12.5px; }
.type-opt:has(input:checked) { border: 2px solid var(--neon); padding: 13px 15px; }
.type-opt:has(input:focus-visible), .theme-opt:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
.theme-opt .meta small { display: block; line-height: 1.45; margin-top: 2px; }
.theme-opt .meta .pick { flex: none; margin-left: 12px; }
.theme-opt { position: relative; display: block; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.theme-opt .meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 6px 6px; }
.theme-opt strong { display: block; font-size: 15px; }
.theme-opt small { color: var(--subtle); }
.theme-opt .pick { font-size: 13px; color: var(--muted); font-weight: 600; }
.theme-opt:has(input:checked) { border: 2px solid var(--neon); padding: 9px; }
.theme-opt:has(input:checked) .pick { color: var(--bg); background: var(--neon); border-radius: 99px; padding: 4px 12px; }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 3px; }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dropzone { border: 1.5px dashed var(--neon); border-radius: 14px; background: var(--s2); padding: 28px 16px; text-align: center; display: grid; justify-items: center; gap: 10px; cursor: pointer; }
.dropzone .logo-preview { width: 84px; height: 84px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; color: var(--neon); font-weight: 800; font-size: 26px; }
.dropzone .logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone small { color: var(--subtle); }
.flow-actions { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
@media (max-width: 960px) {
	.setup { grid-template-columns: minmax(0, 1fr); }
	.setup-steps { position: static; }
	.themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.details-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .themes { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ dashboard (app) */
.app-body { background: var(--bg); }
.app { display: flex; min-height: 100vh; }
.app-sidebar {
	width: 256px; flex: none; background: var(--s1); border-right: 1px solid var(--line);
	display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-bar .app-sidebar { top: 32px; height: calc(100vh - 32px); }
.app-sidebar .brand { padding: 26px 24px 22px; }
.app-sidebar .brand svg, .app-sidebar .brand img { height: 20px; width: auto; }
.app-nav-label { padding: 0 24px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); font-weight: 700; margin-bottom: 8px; }
.app-nav { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 4px; }
.app-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.app-nav a:hover { background: var(--s2); color: var(--text); }
.app-nav a.is-active { background: var(--neon-soft); color: var(--text); font-weight: 600; }
.app-nav a.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--neon); }
.app-nav a.is-active .icon { color: var(--neon); }
.app-nav .count { margin-left: auto; }
.plan-card { margin: auto 16px 16px; background: linear-gradient(135deg, #1c1c1c, #0f0f0f); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 12px; }
.plan-card strong { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.plan-card strong .icon { color: var(--neon); width: 18px; height: 18px; }
.plan-card p { color: var(--muted); margin: 0 0 12px; }
.plan-card a { font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 3px; background: var(--neon); }
.progress--amber span { background: var(--amber); }
.progress--red span { background: var(--red); }
.app-account { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 16px 20px; }
.app-account div { flex: 1; min-width: 0; }
.app-account strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-account small { display: block; color: var(--subtle); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-account a { color: var(--subtle); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.app-account a:hover { background: var(--s2); color: var(--text); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-topbar .title { margin-right: auto; min-width: 0; }
.app-topbar h1 { font-size: 22px; letter-spacing: -0.01em; margin: 0; }
.app-topbar p { margin: 2px 0 0; color: var(--subtle); font-size: 13px; }
.app-search { position: relative; width: 260px; }
.app-search .icon { position: absolute; left: 14px; top: 11px; color: var(--subtle); width: 18px; height: 18px; }
.app-search input { width: 100%; height: 40px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--text); padding: 0 14px 0 42px; font: 14px var(--font); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--muted); display: inline-grid; place-items: center; position: relative; cursor: pointer; }
.icon-btn .pip { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); }
.app-menu-toggle { display: none; }
.app-content { padding: 28px 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.preview-note { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); background: var(--s1); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; }
.preview-note .icon { color: var(--amber); width: 18px; height: 18px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card--glow { background: linear-gradient(135deg, #1c1c1c, #0f0f0f); border-color: var(--neon); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.card--flush .card-head { padding: 22px 24px 0; }
.card-head h2 { font-size: 16px; letter-spacing: -0.01em; margin: 0; }
.card-head p { color: var(--subtle); font-size: 12px; margin: 2px 0 0; }
.card-head a { font-size: 13px; font-weight: 600; white-space: nowrap; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-half { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; }
.stat-card { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--neon-soft); color: var(--neon); display: grid; place-items: center; margin-bottom: 22px; }
.stat-card .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .delta { position: absolute; top: 22px; right: 20px; font-size: 12px; font-weight: 600; color: var(--neon); }
.stat-card .delta.down { color: var(--red); }
.stat-card--neon { border-color: var(--neon); }
.stat-card--neon .value { color: var(--neon); }
.stat-card small { display: block; color: var(--subtle); font-size: 12px; margin-top: 4px; }
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; background: var(--s2); color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--row); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table td strong { display: block; font-weight: 600; }
.table td small { color: var(--subtle); font-size: 12px; }
.cell-media { display: flex; align-items: center; gap: 14px; }
.cell-media .ph, .cell-media img { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.sales-chart svg { width: 100%; height: auto; }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.legend li b { margin-left: auto; color: var(--text); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.list-plain li { display: grid; gap: 8px; }
.list-plain .row { display: flex; justify-content: space-between; font-size: 13px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.pill.is-active { background: var(--neon); border-color: var(--neon); color: var(--bg); font-weight: 600; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar .grow { flex: 1; }
.toolbar .app-search { width: 320px; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--s3); border: 1px solid var(--line-2); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--subtle); }
.switch.on { background: var(--neon); border-color: var(--neon); }
.switch.on::after { left: 21px; background: var(--bg); }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; }
.row-item.is-active { border-color: var(--neon); }
.row-item .grow { flex: 1; min-width: 0; }
.row-item strong { display: block; font-size: 15px; }
.row-item small { color: var(--subtle); font-size: 12px; }
.drag { color: var(--subtle); }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.pos-item { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pos-item.in-cart { border-color: var(--neon); }
.pos-item .ph { height: 110px; border-radius: 10px; margin-bottom: 14px; }
.pos-item strong { display: block; font-size: 14px; padding: 0 4px; }
.pos-item small { display: block; padding: 0 4px; color: var(--subtle); font-size: 12px; }
.pos-item small.low { color: var(--amber); }
.pos-item .price { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 2px; color: var(--neon); font-weight: 700; }
.pos-item .add { width: 34px; height: 34px; border-radius: 10px; background: var(--s3); border: 0; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.pos-item.in-cart .add { background: var(--neon); color: var(--bg); }
.pos-item .qty { position: absolute; top: 18px; left: 18px; }
.cart { position: sticky; top: 24px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--row); }
.cart-line .ph { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line strong { display: block; font-size: 14px; }
.cart-line span { color: var(--neon); font-size: 13px; font-weight: 600; }
.stepper-qty { display: flex; align-items: center; gap: 12px; background: var(--s2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-weight: 700; }
.stepper-qty button { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; width: 20px; }
.stepper-qty button:last-child { color: var(--neon); }
.totals { display: grid; gap: 10px; padding: 18px 0; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals b { color: var(--text); font-weight: 500; }
.grand { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 16px 0; }
.grand strong { font-size: 26px; color: var(--neon); letter-spacing: -0.02em; }
.pay-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.pay-opts button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.pay-opts button.is-active { border-color: var(--neon); color: var(--text); }
.pay-opts button.is-active .icon { color: var(--neon); }

/* documents */
.docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.doc-list { display: grid; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid transparent; }
.doc-row:hover { background: var(--s2); }
.doc-row.is-active { background: var(--s2); border-color: var(--neon); }
.doc-row .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--s3); color: var(--muted); display: grid; place-items: center; flex: none; }
.doc-row.is-active .tile { color: var(--neon); }
.doc-row .grow { flex: 1; min-width: 0; }
.doc-row strong { display: block; font-size: 14px; }
.doc-row small { color: var(--subtle); font-size: 12px; }
.doc-row .end { text-align: right; display: grid; gap: 6px; justify-items: end; }
.doc-row .end b { font-size: 14px; }
.paper { background: #fff; color: #0a0a0a; border-radius: 10px; overflow: hidden; font-size: 12px; }
.paper .band { height: 8px; background: var(--neon); }
.paper .inner { padding: 36px; }
.paper .head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.paper .biz { display: flex; gap: 12px; align-items: center; }
.paper .biz .mark { width: 44px; height: 44px; border-radius: 10px; background: #0a0a0a; color: var(--neon); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.paper .biz strong { display: block; font-size: 14px; }
.paper .biz small, .paper .sub { color: #6b6b6b; }
.paper .kind { text-align: right; }
.paper .kind strong { display: block; font-size: 22px; letter-spacing: .1em; font-weight: 800; }
.paper .meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #e6e6e6; margin-top: 28px; padding-top: 22px; }
.paper .meta .lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #6b6b6b; text-transform: uppercase; }
.paper .meta dl { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; align-content: start; }
.paper .meta dt { color: #6b6b6b; }
.paper .meta dd { margin: 0; font-weight: 600; text-align: right; }
.paper .status { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 99px; font-weight: 700; background: rgba(255, 176, 32, .18); }
.paper .status--paid { background: rgba(57, 255, 20, .22); }
.paper .status--blue { background: rgba(77, 163, 255, .18); }
.paper table { width: 100%; border-collapse: collapse; margin-top: 28px; }
.paper th { background: #0a0a0a; color: #fff; font-size: 10px; letter-spacing: .1em; text-align: left; padding: 10px 12px; }
.paper th:first-child { border-radius: 6px 0 0 6px; }
.paper th:last-child { border-radius: 0 6px 6px 0; color: var(--neon); }
.paper td { padding: 12px; border-bottom: 1px solid #e6e6e6; }
.paper .r { text-align: right; }
.paper .sums { display: grid; justify-content: end; gap: 6px; margin-top: 18px; }
.paper .sums div { display: flex; gap: 40px; justify-content: space-between; color: #6b6b6b; }
.paper .sums b { color: #0a0a0a; }
.paper .due { margin-top: 10px; background: #0a0a0a; color: #fff; border-radius: 8px; padding: 14px 16px; display: flex; gap: 40px; justify-content: space-between; align-items: center; }
.paper .due strong { color: var(--neon); font-size: 16px; }
.paper .notes { margin-top: 30px; }
.paper .foot { display: flex; justify-content: space-between; border-top: 1px solid #e6e6e6; margin-top: 36px; padding-top: 14px; color: #6b6b6b; font-size: 10px; }
.doc-actions { display: flex; gap: 8px; }

/* builder */
.builder { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.builder > aside { background: var(--s1); padding: 20px 16px; display: grid; gap: 10px; align-content: start; }
.builder > aside:first-child { border-right: 1px solid var(--line); }
.builder > aside:last-child { border-left: 1px solid var(--line); }
.builder .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--subtle); margin: 8px 4px 2px; }
.builder .canvas { background: #0d0d0d; background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 24px 24px; padding: 28px; display: grid; place-items: start center; }
.builder .canvas img { border-radius: 12px; box-shadow: 0 0 0 2px var(--neon), 0 30px 60px rgba(0, 0, 0, .5); width: 100%; max-width: 560px; }
.page-link { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.page-link.is-active { background: var(--s3); color: var(--text); font-weight: 600; }
.page-link.is-active .icon { color: var(--neon); }
.sec-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--s2); font-size: 13px; }
.sec-item.is-active { border-color: var(--neon); }
.sec-item .grow { flex: 1; }
.swatches { display: flex; gap: 10px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; display: block; }
.swatches i.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }

/* referral page */
.ref-hero { position: relative; overflow: hidden; }
.ref-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(57, 255, 20, .2), transparent); pointer-events: none; }
.ref-hero h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 16px 0 8px; }
.ref-hero p { color: var(--muted); }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.copy-row .field { margin: 0; flex: 1 1 320px; }
.earn-ways { display: grid; gap: 14px; }
.earn-way { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 20px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.earn-way.is-main { border-color: var(--neon); }
.earn-way .tile { width: 44px; height: 44px; border-radius: 12px; background: var(--neon); color: var(--bg); display: grid; place-items: center; }
.earn-way.is-soft { background: var(--s1); }
.earn-way.is-soft .tile { background: var(--s3); color: var(--muted); }
.earn-way strong { display: block; font-size: 15px; }
.earn-way p { color: var(--subtle); font-size: 13px; margin: 2px 0 0; }
.earn-way .amt { font-size: 22px; font-weight: 800; color: var(--neon); }
.earn-way.is-soft .amt { font-size: 15px; color: var(--muted); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 32px; height: 32px; margin: 0 auto 12px; color: var(--subtle); }

/* settings */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--subtle); font-weight: 500; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.is-active { color: var(--text); font-weight: 600; border-color: var(--neon); }
.pref { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--row); font-size: 14px; }
.pref:last-child { border-bottom: 0; }

@media (max-width: 1200px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.builder { grid-template-columns: 220px minmax(0, 1fr); }
	.builder > aside:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
	.pos { grid-template-columns: minmax(0, 1fr); }
	.cart { position: static; }
}
@media (max-width: 1024px) {
	.grid-main, .grid-half, .docs { grid-template-columns: minmax(0, 1fr); }
	.app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; }
	.admin-bar .app-sidebar { top: 46px; height: calc(100vh - 46px); }
	.app.nav-open .app-sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
	.app-menu-toggle { display: inline-grid; }
	.app-search { display: none; }
	.grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.app-topbar, .app-content { padding-left: 16px; padding-right: 16px; }
	.grid-4 { grid-template-columns: minmax(0, 1fr); }
	.builder { grid-template-columns: minmax(0, 1fr); }
	.builder > aside:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
	.app-topbar .btn-ghost { display: none; }
	.paper .inner { padding: 22px; }
	.toolbar .app-search { width: 100%; display: block; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ------------------------------------------------------------------ blog / generic content */
.entry { padding: 72px 0 96px; }
.entry .container { max-width: 760px; }
.entry h1 { font-size: clamp(32px, 5vw, 48px); }
.entry-meta { color: var(--subtle); font-size: 14px; margin-bottom: 32px; }
.entry-content { color: #d6d6d6; font-size: 17px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 3px solid var(--neon); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--text); }
.entry-content pre, .entry-content code { background: var(--s2); border-radius: 6px; font-size: 14px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content code { padding: 2px 6px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; }
.post-card h2 { font-size: 19px; letter-spacing: -0.01em; }
.post-card h2 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: 14px; }
.pagination { margin-top: 48px; display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--muted); }
.pagination .current { background: var(--neon); color: var(--bg); border-color: var(--neon); }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-list { grid-template-columns: minmax(0, 1fr); } }
.comments-area { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; background: var(--s2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 15px var(--font);
}
.comment-form .submit { background: var(--neon); color: var(--bg); border: 0; border-radius: 99px; padding: 12px 24px; font: 600 15px var(--font); cursor: pointer; }
.alignwide { margin-left: -80px; margin-right: -80px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption-text, figcaption { color: var(--subtle); font-size: 13px; }
.sticky, .bypostauthor, .gallery-caption { display: block; }
.not-found { text-align: center; padding: 140px 0; }
.not-found .code { font-size: 120px; font-weight: 800; color: var(--neon); letter-spacing: -0.05em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ hero account card (sign up / sign in) */
.anchor { position: relative; top: -96px; display: block; height: 0; visibility: hidden; }
.auth { position: relative; scroll-margin-top: 96px; }
.auth-card { padding: 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(57, 255, 20, .08); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); }
.auth-tabs button { height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14.5px var(--font, Inter, Arial, sans-serif); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--neon); color: var(--bg); }
.auth-tabs button:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.auth-intro { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.auth-panel .field { margin-bottom: 14px; }
.auth-panel .notice { margin-bottom: 14px; }
.auth-panel .notice[hidden], .auth-panel[hidden] { display: none; }
.google-slot { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 8px; }
.google-slot.is-busy { opacity: .5; pointer-events: none; }
.auth-fine { color: var(--subtle); font-size: 12px; text-align: center; margin: 0 0 6px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; color: var(--subtle); font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: 14px; }
.auth-row a { color: var(--neon); }
.auth-card .check { margin: 4px 0 18px; }
@media (max-width: 960px) { .auth { max-width: 560px; } }
@media (max-width: 520px) { .auth-card { padding: 20px; } }

/* ------------------------------------------------------------------ dashboard showcase (moved from the hero) */
.dash-section { padding-top: 24px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.dash-grid .check-list { margin: 22px 0 28px; }
.dash-visual { padding-bottom: 80px; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ business suite */
[hidden] { display: none !important; }
.pill.is-active .subtle { color: inherit; opacity: .65; }
.row-actions { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.icon-btn--sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--bg) var(--bg) transparent transparent; animation: qspin .7s linear infinite; }
.btn-dark.is-busy::after, .btn-ghost.is-busy::after { border-color: var(--text) var(--text) transparent transparent; }
@keyframes qspin { to { transform: rotate(360deg); } }
.stock-low { color: var(--amber); }
.stock-out { color: var(--red); }
.stat-card--warn { border-color: rgba(255, 176, 32, .55); }
.stat-card--warn .tile { background: rgba(255, 176, 32, .12); color: var(--amber); }
a.stat-link { display: block; color: inherit; transition: border-color .15s; }
a.stat-link:hover { border-color: var(--line-2); color: inherit; }
.no-match { text-align: center; color: var(--subtle); padding: 28px 16px; margin: 0; }
.table tr[hidden] { display: none; }
.table td small { display: block; }
.table td a strong { color: var(--text); }
.cell-media img { object-fit: cover; background: var(--s3); }
.cell-media .ph { background: var(--s3); }
.pills .pill .subtle { font-weight: 500; margin-left: 2px; }
button.pill { font-family: var(--font); }
.notice .icon { flex: none; }

/* dialogs */
.qdlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--s1); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.qdlg--wide { width: min(820px, calc(100vw - 24px)); }
.qdlg[open] { display: flex; flex-direction: column; animation: qpop .18s ease-out; }
.qdlg::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
@keyframes qpop { from { transform: translateY(10px); opacity: 0; } }
.qdlg > form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 34px); }
.qdlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.qdlg-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.qdlg-body { padding: 20px 22px 6px; overflow-y: auto; min-height: 0; }
.qdlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--s1); }
.qdlg .field { margin-bottom: 16px; }
.qdlg .field input, .qdlg .field select, .qdlg .field textarea { height: 46px; }
.qdlg .field textarea { height: auto; padding-top: 12px; }
.qdlg .check { margin: 2px 0 16px; }
.qdlg-group { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 0; margin: 0 0 16px; }
.qdlg-group legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field select:disabled { opacity: .5; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); margin: 0 0 16px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--neon); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo, .photo-add { width: 86px; height: 86px; border-radius: 12px; position: relative; flex: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.photo-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.photo-add { display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; }
.photo-add:hover { border-color: var(--neon); color: var(--text); }
.photo-add .icon { width: 22px; height: 22px; }
.photo-add.is-busy { pointer-events: none; opacity: .6; }
.photo-add.is-busy .icon { animation: qspin 1s linear infinite; }
.photo-add[hidden] { display: none; }

/* toasts */
.qtoast { position: fixed; left: 50%; bottom: 24px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0; transition: .25s ease; max-width: calc(100vw - 32px); background: var(--s3); color: var(--text); border: 1px solid var(--neon-line); border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.qtoast.is-in { opacity: 1; transform: translate(-50%, 0); }
.qtoast.is-bad { border-color: rgba(255, 77, 79, .6); }

/* more menu */
details.more { position: relative; }
details.more > summary { list-style: none; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: grid; text-align: left; }
.more-menu a, .more-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: none; border: 0; color: var(--text); font: 500 13px var(--font); cursor: pointer; text-align: left; white-space: nowrap; }
.more-menu a:hover, .more-menu button:hover { background: var(--s3); color: var(--text); }
.more-menu .icon { width: 16px; height: 16px; color: var(--muted); }
.more-menu .danger { color: #ff8a8b; }
.more-menu .danger .icon { color: #ff8a8b; }

/* categories */
.cat-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--row); }
.cat-list .tile { width: 40px; height: 40px; border-radius: 10px; background: var(--neon-soft); color: var(--neon); display: grid; place-items: center; flex: none; }
.cat-list .grow { flex: 1; min-width: 0; }
.cat-list strong { display: block; font-size: 15px; }
.cat-list small { color: var(--subtle); font-size: 12px; }
.cat-move { display: grid; gap: 4px; }
.cat-move .icon-btn { width: 28px; height: 22px; border-radius: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* documents editor */
.dlines { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; display: grid; gap: 8px; }
.dlines-head, .dline { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px 110px 34px; gap: 8px; align-items: center; }
.dlines-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: 0 4px; }
.dline input { height: 42px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--text); padding: 0 12px; font: 14px var(--font); width: 100%; min-width: 0; }
.dline input:focus, .mini-input:focus { outline: none; border-color: var(--neon); }
.dline .num, .dlines-head .num { text-align: right; }
[data-line-list] { display: grid; gap: 8px; }
.dlines > .btn { justify-self: start; }
.doc-bottom { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.totals--doc { flex: 0 1 300px; padding: 0; margin-left: auto; }
.totals div { align-items: center; }
.mini-input { width: 120px; height: 36px; border-radius: 9px; background: var(--s2); border: 1px solid var(--line); color: var(--text); padding: 0 10px; font: 14px var(--font); text-align: right; }
.totals--doc .grand { padding: 12px 0 0; }
.totals--doc .grand strong { font-size: 22px; }
.done-body { text-align: center; padding: 34px 26px 28px; }
.done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--neon); color: var(--bg); display: grid; place-items: center; margin: 0 auto 16px; }
.done-tick .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.done-body h2 { margin: 0 0 6px; font-size: 22px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* till */
.pos-item { display: block; width: 100%; text-align: left; color: var(--text); font-family: var(--font); cursor: pointer; transition: border-color .12s, transform .12s; }
.pos-item:hover { border-color: var(--line-2); }
.pos-item:active { transform: scale(.98); }
.pos-item img.ph, .pos-item .ph { display: block; width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: var(--s3); }
.pos-item .ph--init { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--subtle); }
.pos-item .add { font-size: 20px; font-weight: 600; }
.pos-item.is-out { opacity: .5; }
.pos-item .qty { z-index: 1; }
.cart-lines { max-height: 340px; overflow-y: auto; margin: 4px 0; }
.cart-empty { font-size: 13px; text-align: center; padding: 18px 0; margin: 0; }
.stepper-qty { padding: 4px 8px; gap: 6px; }
.qty-in { width: 46px; background: none; border: 0; color: var(--text); font: 700 14px var(--font); text-align: center; -moz-appearance: textfield; }
.qty-in::-webkit-outer-spin-button, .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-in:focus { outline: 1px solid var(--neon); border-radius: 6px; }
.pay-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.change-out { height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); font-weight: 700; color: var(--neon); }
.cart .field input { height: 44px; }
.cart [data-pay-cash][hidden], .cart [data-pay-ref][hidden] { display: none; }

/* referral wallet */
.wallet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 28px; align-items: center; border-color: var(--neon-line); background: linear-gradient(135deg, #151515, #0d0d0d); }
.wallet .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.wallet-amt { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--neon); line-height: 1.1; margin: 4px 0; }
.wallet-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.wallet-sums div { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.wallet-sums dt { color: var(--subtle); font-size: 12px; }
.wallet-sums dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.wallet-cta { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 220px; }
.wallet-cta small { font-size: 12px; }
.methods-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.method-card { position: relative; cursor: pointer; }
.method-card input { position: absolute; opacity: 0; pointer-events: none; }
.method-card > span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--s2); border: 1.5px solid var(--line); height: 100%; }
.method-card .icon { color: var(--muted); margin-bottom: 6px; }
.method-card strong { font-size: 15px; }
.method-card small { color: var(--subtle); font-size: 12px; }
.method-card input:checked + span { border-color: var(--neon); background: var(--neon-soft); }
.method-card input:checked + span .icon { color: var(--neon); }
.method-card input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }

.pos-jump { display: none; }
@media (max-width: 1200px) {
	.pos-jump { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--neon); color: var(--bg); font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
	.pos-jump strong { margin-right: auto; font-size: 17px; }
	.pos-jump:hover { color: var(--bg); }
	[data-pos] { padding-bottom: 70px; }
	.wallet { grid-template-columns: 1fr 1fr; }
	.wallet-cta { grid-column: 1 / -1; justify-items: start; text-align: left; max-width: none; grid-template-columns: auto 1fr; align-items: center; }
}
@media (max-width: 1024px) {
	.toolbar .app-search { display: block; }
}
@media (max-width: 720px) {
	.field-row--3 { grid-template-columns: minmax(0, 1fr); }
	.dlines-head { display: none; }
	.dline { grid-template-columns: 1fr 1fr 34px; grid-template-areas: "name name del" "qty price price" "amt amt amt"; }
	.dline [data-k=name] { grid-area: name; }
	.dline [data-k=qty] { grid-area: qty; }
	.dline [data-k=price] { grid-area: price; }
	.dline [data-amount] { grid-area: amt; }
	.dline [data-line-del] { grid-area: del; }
	.dline + .dline, [data-line-list] > .dline + .dline { border-top: 1px solid var(--line); padding-top: 10px; }
	.wallet { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.wallet-sums { grid-template-columns: 1fr 1fr 1fr; }
	.wallet-cta { grid-template-columns: minmax(0, 1fr); }
	.wallet-cta .btn { width: 100%; }
	.cat-list li { padding: 14px 16px; flex-wrap: wrap; }
	.cat-list .row-actions { width: 100%; justify-content: flex-start; }
	.pay-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qdlg-head, .qdlg-body, .qdlg-foot { padding-left: 16px; padding-right: 16px; }
	.qdlg { max-height: calc(100vh - 16px); }
	.qdlg > form { max-height: calc(100vh - 18px); }
	.pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.pos-item img.ph, .pos-item .ph { height: 96px; }
}
@media (max-width: 640px) {
	.app-content .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.app-content .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.app-content .stat-card { padding: 14px; }
	.app-content .stat-card .tile { width: 32px; height: 32px; margin-bottom: 12px; }
	.app-content .stat-card .value { font-size: 20px; }
	.app-content .stat-card .label { font-size: 12px; }
	.app-content .stat-card .delta { top: 14px; right: 12px; }
	.methods-2 { grid-template-columns: minmax(0, 1fr); }
	.wallet-sums { grid-template-columns: minmax(0, 1fr); }
	.field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ------------------------------------------------------------------ v1.5 polish: feel, payments, settings, phones */
html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }
button, .btn, a, label, summary { touch-action: manipulation; }
.btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.card, .stat-card, .panel, .summary { transition: border-color .2s ease; }
::selection { background: rgba(57, 255, 20, .3); }
.field input, .field select, .field textarea { transition: border-color .15s ease, box-shadow .15s ease; }
.grid-main--ref { align-items: start; }
@media (min-width: 1025px) { .grid-main--ref { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }

/* segmented control (iOS style) */
.seg--full { display: flex; width: 100%; }
.seg--full > label, .seg--full > a { flex: 1; }
.seg--full span, .seg--full > a { text-align: center; }
.seg > a { display: grid; gap: 2px; justify-items: center; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg > a small { font-size: 11px; font-weight: 500; color: var(--subtle); }
.seg > a.is-on { background: var(--neon); color: var(--bg); }
.seg > a.is-on small { color: rgba(10, 10, 10, .7); }
.seg span { transition: background-color .2s ease, color .2s ease; }
.seg--sm span { padding: 6px 12px; font-size: 12px; }

/* iOS switch */
.ios-switch { -webkit-appearance: none; appearance: none; position: relative; width: 51px; height: 31px; border-radius: 31px; background: var(--s3); border: 1px solid var(--line-2); cursor: pointer; flex: none; transition: background-color .2s ease, border-color .2s ease; margin: 0; }
.ios-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.3, .7, .4, 1.2); }
.ios-switch:checked { background: var(--neon); border-color: var(--neon); }
.ios-switch:checked::after { transform: translateX(20px); }
.ios-switch:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin: 0 0 18px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); cursor: pointer; }
.toggle-row strong { display: block; font-size: 14px; font-weight: 600; }
.toggle-row small { display: block; color: var(--subtle); font-size: 12px; margin-top: 2px; }

/* settings */
.tabs--seg { border: 0; gap: 6px; padding: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; width: max-content; max-width: 100%; scrollbar-width: none; }
.tabs--seg::-webkit-scrollbar { display: none; }
.tabs--seg a { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.tabs--seg a .icon { width: 18px; height: 18px; }
.tabs--seg a.is-active { background: var(--s3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.tabs--seg a.is-active .icon { color: var(--neon); }
.form-narrow { max-width: 760px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-foot span { display: block; font-size: 12px; }
.plan-foot strong { font-size: 15px; }
.list-rows { list-style: none; margin: 0; padding: 4px 0 6px; }
.list-rows li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--row); }
.card:not(.card--flush) .list-rows li { padding-left: 0; padding-right: 0; }
.list-rows li:first-child { border-top: 0; }
.list-rows li > div { flex: 1; min-width: 0; }
.list-rows strong { display: block; font-size: 14px; }
.list-rows small { display: block; color: var(--subtle); font-size: 12px; }
.list-rows b { font-weight: 700; white-space: nowrap; }

/* document designer */
.designer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 24px; align-items: start; }
.designer-form { display: grid; gap: 24px; min-width: 0; }
.designer-preview { position: sticky; top: 24px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-bar .designer-preview { top: 56px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.preview-head .seg { margin: 0; }
.preview-frame { position: relative; overflow: hidden; border-radius: 10px; background: #fff; height: 600px; transition: opacity .2s ease; }
.preview-frame iframe { border: 0; transform-origin: 0 0; display: block; background: #fff; height: 1100px; }
.preview-frame.is-loading { opacity: .55; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.tpl-card { position: relative; display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--s2); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.tpl-card:hover { border-color: var(--line-2); }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked) { border-color: var(--neon); background: var(--neon-soft); }
.tpl-card:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
.tpl-card strong { font-size: 13px; margin-top: 6px; }
.tpl-card small { font-size: 11px; color: var(--subtle); line-height: 1.35; }
.tpl-thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 8px; background: #fff; overflow: hidden; }
.tpl-thumb i { position: absolute; display: block; border-radius: 2px; background: #d9d9d9; }
.tpl-thumb i:nth-child(1) { left: 12%; top: 12%; width: 22%; height: 9%; background: #0a0a0a; }
.tpl-thumb i:nth-child(2) { right: 12%; top: 13%; width: 30%; height: 5%; background: #bdbdbd; }
.tpl-thumb i:nth-child(3) { left: 12%; right: 12%; top: 36%; height: 7%; background: #0a0a0a; }
.tpl-thumb i:nth-child(4) { left: 12%; right: 12%; top: 48%; height: 22%; background: repeating-linear-gradient(#e8e8e8 0 3px, #fff 3px 8px); }
.tpl-thumb i:nth-child(5) { right: 12%; bottom: 10%; width: 40%; height: 9%; background: #0a0a0a; }
.tpl-thumb--classic { border-top: 5px solid var(--neon); }
.tpl-thumb--modern i:nth-child(1) { left: 0; top: 0; width: 100%; height: 26%; border-radius: 0; background: #101010; }
.tpl-thumb--modern i:nth-child(2) { top: 10%; background: var(--neon); }
.tpl-thumb--modern i:nth-child(3) { background: #e6ffe0; border-bottom: 2px solid var(--neon); }
.tpl-thumb--modern i:nth-child(5) { background: var(--neon); }
.tpl-thumb--minimal i:nth-child(1) { background: #fff; border: 1.5px solid #0a0a0a; }
.tpl-thumb--minimal i:nth-child(3) { height: 2px; background: #0a0a0a; }
.tpl-thumb--minimal i:nth-child(5) { height: 3px; background: var(--neon); }
.tpl-thumb--bold { border-left: 7px solid var(--neon); }
.tpl-thumb--bold i:nth-child(2) { height: 10%; width: 40%; background: #1f7a0a; }
.tpl-thumb--bold i:nth-child(3), .tpl-thumb--bold i:nth-child(5) { background: var(--neon); }
.tpl-thumb--corporate i:nth-child(1) { box-shadow: 0 9px 0 -5px var(--neon); }
.tpl-thumb--corporate i:nth-child(3) { background: #efefef; border: 1px solid #ccc; }
.tpl-thumb--corporate i:nth-child(4) { border: 1px solid #ccc; background: repeating-linear-gradient(#fff 0 6px, #ccc 6px 7px); }
.pos-ico { display: inline-flex; flex-direction: column; gap: 2px; width: 22px; vertical-align: middle; margin-right: 8px; }
.pos-ico i { display: block; height: 3px; border-radius: 2px; background: currentColor; }
.pos-ico i:first-child { width: 10px; height: 5px; }
.pos-ico i:last-child { width: 16px; opacity: .55; }
.pos-ico--center { align-items: center; }
.pos-ico--right { align-items: flex-end; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); transition: transform .15s ease; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px #fff; }
.swatch--custom { position: relative; background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); overflow: hidden; }
.swatch--custom input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; }
.img-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.img-pick-prev { display: grid; place-items: center; width: 120px; height: 64px; border-radius: 12px; background: #fff; color: #888; font-size: 11px; font-weight: 600; text-align: center; padding: 6px; overflow: hidden; flex: none; }
.img-pick-prev img { max-width: 100%; max-height: 52px; object-fit: contain; }
.img-pick--sign .img-pick-prev { width: 180px; }
.img-pick.is-busy { opacity: .6; pointer-events: none; }
.prof-logo .img-pick-prev { width: 96px; height: 96px; border-radius: 16px; }
.prof-logo .img-pick-prev img { max-height: 84px; }
.prof-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prof-links li > div { min-width: 0; }
.prof-links small { display: block; color: var(--muted, #8a8f98); font-size: 12px; }
.check-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.check-pills .subtle { font-size: 13px; margin-right: 4px; }
.check-pills label { position: relative; cursor: pointer; }
.check-pills input { position: absolute; opacity: 0; pointer-events: none; }
.check-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.check-pills input:checked + span { background: var(--neon-soft); border-color: var(--neon); color: var(--text); }
.check-pills input:checked + span::before { content: "✓"; color: var(--neon); }
.check-pills input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: rgba(17, 17, 17, .82); border: 1px solid var(--line); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
.sign-pad { position: relative; border-radius: 14px; background: #fff; overflow: hidden; touch-action: none; }
.sign-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 900 / 320; cursor: crosshair; touch-action: none; position: relative; z-index: 1; }
.sign-pad-line { position: absolute; left: 8%; right: 8%; bottom: 26%; border-bottom: 1.5px dashed #c7c7c7; }
.sign-pad-hint { position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; color: #9a9a9a; font-size: 13px; pointer-events: none; }

/* payment page */
.pay .methods { margin-bottom: 22px; }
.pay .methods.is-locked { opacity: .45; pointer-events: none; }
.pay-panel { border-top: 1px solid var(--line); padding-top: 22px; animation: qfade .25s ease; }
@keyframes qfade { from { opacity: 0; transform: translateY(4px); } }
.pay-state { text-align: center; padding: 18px 4px 8px; }
.pay-state h2 { margin: 14px 0 6px; font-size: 20px; }
.pay-state .btn { margin-top: 12px; }
.pay-state-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--neon-soft); color: var(--neon); position: relative; }
.pay-state-icon .icon { width: 28px; height: 28px; }
.pay-state-icon.is-wait { background: rgba(255, 176, 32, .12); color: var(--amber); }
.pay-state-icon.is-ok { background: var(--neon); color: var(--bg); }
.pay-state-icon.is-spin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--amber); animation: qspin 1s linear infinite; }
.pay-manual { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--s2); }
.pay-manual > summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pay-manual > summary::-webkit-details-marker { display: none; }
.pay-manual > summary::after { content: "›"; font-size: 20px; color: var(--subtle); transition: transform .2s ease; }
.pay-manual[open] > summary::after { transform: rotate(90deg); }
.pay-manual > :not(summary) { margin-left: 16px; margin-right: 16px; }
.pay-manual .pay-ref { padding-bottom: 16px; }
.pay-steps { margin: 0 16px 18px; padding: 0 0 0 20px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.pay-steps li::marker { color: var(--neon); font-weight: 700; }
.copy-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 12px; margin-left: 4px; border-radius: 10px; background: var(--s3); border: 1px solid var(--line-2); color: var(--text); font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; vertical-align: middle; }
.copy-chip span { overflow-wrap: anywhere; text-align: left; }
.copy-chip .icon { width: 15px; height: 15px; color: var(--neon); }
.copy-chip:active { transform: scale(.97); }
.pay-card-art { position: relative; height: 150px; max-width: 280px; margin: 0 auto 20px; border-radius: 16px; padding: 18px; background: radial-gradient(120% 140% at 0% 0%, #2a2a2a, #0d0d0d); border: 1px solid var(--line-2); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); overflow: hidden; }
.pay-card-art::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(57, 255, 20, .3), transparent); }
.pay-card-art span { display: block; width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e6c36a, #9c7a2b); }
.pay-card-art b { position: absolute; left: 18px; bottom: 40px; font: 600 15px ui-monospace, Menlo, monospace; letter-spacing: .08em; color: #ddd; }
.pay-card-art i { position: absolute; right: 18px; bottom: 14px; font: 800 italic 18px var(--font); color: #fff; }
.usdt-box { border-radius: 14px; background: var(--s2); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 12px; }
.usdt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.usdt-row b { color: var(--text); }
.usdt-row--addr { align-items: flex-start; flex-direction: column; gap: 6px; }
.usdt-row--addr .copy-chip { margin-left: 0; font-size: 13px; }
.usdt-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12px; color: var(--amber); }
.usdt-warn .icon { width: 16px; height: 16px; margin-top: 1px; }
.pay-demo { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.pay-demo .fine { display: flex; gap: 6px; align-items: center; color: var(--amber); }
.pay-foot { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.pay-foot .icon { width: 16px; height: 16px; color: var(--neon); margin-top: 2px; }

/* bottom tab bar (phones) */
.tabbar { display: none; }

/* dialogs as bottom sheets on phones; tables as cards */
@media (max-width: 1100px) {
	.designer { grid-template-columns: minmax(0, 1fr); }
	.designer-preview { position: static; order: -1; }
	.preview-frame { max-height: 75vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 820px) {
	input, select, textarea, .field input, .field select, .field textarea, .app-search input, .mini-input, .dline input { font-size: 16px !important; } /* No zoom on iPhone. */
	.app-topbar { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 10, .82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); gap: 10px; padding: 10px 16px; flex-wrap: nowrap; }
	.admin-bar .app-topbar { top: 46px; }
	.app-topbar .title { flex: 1; }
	.app-topbar h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.app-topbar p { display: none; }
	.app-topbar .icon-btn:not(.app-menu-toggle) { display: none; }
	.app-topbar .btn { flex: none; }
	.pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 16px; }
	.pills::-webkit-scrollbar { display: none; }
	.pill { flex: none; }
	.toolbar { gap: 10px; }
	.toolbar .app-search { width: 100%; }
	.earn-way { grid-template-columns: auto 1fr; }
	.earn-way .amt { grid-column: 2; font-size: 18px; }
}
@media (max-width: 720px) {
	.app-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
	.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 14, 14, .88); border-top: 1px solid var(--line); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
	.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--subtle); font: 600 10.5px var(--font); letter-spacing: .01em; cursor: pointer; border-radius: 10px; }
	.tabbar .icon { width: 22px; height: 22px; }
	.tabbar .is-active { color: var(--neon); }
	.app.nav-open .tabbar { display: none; }
	.pos-jump { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	[data-pos] { padding-bottom: 76px; }
	.save-bar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
	.qdlg, .qdlg--wide { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
	.qdlg[open] { animation: qsheet .28s cubic-bezier(.2, .8, .2, 1); }
	@keyframes qsheet { from { transform: translateY(100%); } }
	.qdlg > form { max-height: 92vh; }
	.qdlg-head { position: relative; padding-top: 22px; }
	.qdlg-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--line-2); }
	.qdlg-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	.qdlg-foot .btn { flex: 1; }
	.tabs--seg { width: 100%; overflow-x: auto; }
	.tabs--seg a { flex: none; padding: 9px 12px; font-size: 13px; }
	.list-rows li { padding: 14px 16px; flex-wrap: wrap; }
	.plan-foot .btn { width: 100%; }
	.form-actions .btn, .save-bar .btn { flex: 1; }

	/* tables → cards */
	.table--cards thead { display: none; }
	.table--cards, .table--cards tbody { display: block; }
	.table--cards tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--row); }
	.table--cards tr:last-child { border-bottom: 0; }
	.table--cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; border: 0; white-space: normal; text-align: right; grid-column: 1 / -1; font-size: 14px; min-width: 0; }
	.table--cards td::before { content: attr(data-label); color: var(--subtle); font-size: 12px; font-weight: 500; text-align: left; flex: none; }
	.table--cards td:first-child { grid-column: 1; text-align: left; display: block; padding-bottom: 4px; }
	.table--cards td:first-child::before, .table--cards td:last-child::before, .table--cards td[data-label=""]::before { display: none; }
	.table--cards td.num { text-align: right; }
	.table--cards td small { display: inline; margin-left: 4px; }
	.table--cards td:first-child small { display: block; margin: 0; }
	.table--cards td:last-child { justify-content: flex-end; padding-top: 6px; }
	.table--cards td:last-child .row-actions { flex-wrap: wrap; justify-content: flex-end; }
	.table--cards td:nth-child(2):not(:last-child) { grid-column: 2; grid-row: 1; align-self: start; display: block; text-align: right; }
	.table--cards td:nth-child(2):not(:last-child)::before { display: none; }
	.table--cards .cell-media { min-width: 0; }
	.table-wrap { overflow: visible; }
	.wallet-sums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.wallet-sums div { padding: 10px; }
	.wallet-sums dd { font-size: 14px; }
}
@media (max-width: 420px) {
	.tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wallet-sums { grid-template-columns: minmax(0, 1fr); }
	.seg--full > a small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.empty .btn .icon { width: 18px; height: 18px; margin: 0; color: inherit; }
@media (max-width: 720px) {
	.table--cards td:not(:first-child) { justify-content: flex-end; flex-wrap: wrap; }
	.table--cards td:not(:first-child)::before { margin-right: auto; }
	.table--cards td s { font-size: 12px; }
}
.designer-preview .hint { font-size: 12px; color: var(--subtle); }
@media (max-width: 520px) { .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); } .hero-ctas .btn { width: 100%; } }

/* ------------------------------------------------------------------ v1.6: global switcher, plans, notices */
.gsw { display: inline-flex; align-items: center; gap: 6px; }
.gsw-menu { position: relative; }
.gsw-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--s2); color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; user-select: none; }
.gsw-menu > summary::-webkit-details-marker { display: none; }
.gsw-menu > summary .icon { width: 16px; height: 16px; }
.gsw-menu[open] > summary, .gsw-menu > summary:hover { color: var(--text); border-color: var(--line-2); }
.gsw-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 190px; max-height: min(70vh, 420px); overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); display: grid; gap: 2px; animation: qfade .16s ease; }
.gsw-list a, .gsw-list button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 500 13.5px var(--font); text-align: left; cursor: pointer; }
.gsw-list a:hover, .gsw-list button:hover { background: var(--s3); color: var(--text); }
.gsw-list .is-on { color: var(--neon); font-weight: 700; }
.gsw-list .is-on::after { content: "✓"; margin-left: auto; }
.gsw-list--cur { min-width: 250px; }
.gsw-list--cur b { width: 40px; flex: none; }
.gsw-list--cur span { color: var(--subtle); font-size: 12.5px; }
.gsw-note { margin: 6px 8px 4px; font-size: 11px; color: var(--subtle); }
.flow-header .aside { display: flex; align-items: center; gap: 12px; }
.flow-header .gsw-menu > summary { height: 32px; }
.app-lang { padding: 0 16px 10px; }
.app-lang .gsw-list { right: auto; left: 0; top: auto; bottom: calc(100% + 8px); }
.fx.is-fx { white-space: nowrap; }
.fx-approx { display: block; font-size: 13px; font-weight: 500; color: var(--subtle); text-align: right; letter-spacing: 0; }

/* sign-up terms + Google gate */
.terms-check { margin: 4px 0 16px; }
.terms-check a { text-decoration: underline; text-underline-offset: 2px; }
.google-gate { position: relative; }
.google-gate.is-locked .google-slot { opacity: .35; pointer-events: none; filter: grayscale(1); }
.google-gate-msg { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }
.google-gate.is-locked .google-gate-msg { display: flex; }
.hint.ok { color: var(--neon); font-weight: 600; }
.hint.bad { color: var(--amber); }
.linklike { background: none; border: 0; padding: 0; color: var(--neon); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* payment: non-refundable notice and hosting plans */
.refund-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin: 0 0 22px; border-radius: 14px; background: rgba(255, 176, 32, .07); border: 1px solid rgba(255, 176, 32, .35); }
.refund-note strong { display: block; font-size: 15px; margin-bottom: 4px; }
.refund-note p { margin: 0; color: var(--muted); font-size: 13.5px; }
.refund-note .check { color: var(--text); font-size: 13.5px; }
.refund-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 176, 32, .14); color: var(--amber); }
.pay:not(.is-acked) .pay-panel .btn-primary { opacity: .5; }
.plan-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.plan-opt { position: relative; display: grid; gap: 2px; padding: 14px 12px 12px; border-radius: 14px; background: var(--s2); border: 1.5px solid var(--line); color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.plan-opt:hover { color: var(--text); border-color: var(--line-2); }
.plan-opt.is-on { border-color: var(--neon); background: var(--neon-soft); }
.plan-opt-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-opt strong { font-size: 19px; letter-spacing: -.01em; }
.plan-opt small { font-size: 11.5px; color: var(--subtle); }
.plan-save { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--neon); color: var(--bg); font-size: 10.5px; font-weight: 800; }

/* designer: preview actions and full-screen preview */
.preview-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.qdlg--full { width: min(900px, calc(100vw - 24px)); height: calc(100vh - 40px); max-height: none; }
.qdlg--full[open] { display: flex; flex-direction: column; }
.qdlg--full iframe { flex: 1; width: 100%; border: 0; background: #ececec; }

@media (max-width: 1180px) {
	.site-header .gsw { order: -1; }
}
@media (min-width: 1181px) and (max-width: 1240px) {
	.site-header .gsw-menu--cur { display: none; }
}
@media (max-width: 1180px) {
	.site-header.is-open .header-actions { flex-wrap: wrap; gap: 10px; }
	.site-header.is-open .gsw { width: 100%; }
	.site-header .gsw-list { left: 0; right: auto; max-width: calc(100vw - 32px); }
	.site-header .gsw-menu--cur .gsw-list { left: 0; }
}
@media (max-width: 720px) {
	.plan-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qdlg--full { height: 94vh; width: 100%; }
	.flow-header .aside > :not(.gsw) { display: none; }
	.flow-header .container { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 14px; row-gap: 14px; }
	.flow-header .aside { order: 2; margin-left: auto; }
	.flow-header .stepper { order: 3; width: 100%; justify-content: center; }
	.refund-note { flex-direction: column; }
}

/* sign-up: point at the Terms box when it was missed */
.terms-check.is-shake { animation: qshake .4s ease; }
.terms-check.is-shake span, .terms-check.is-shake a { color: #ff8a8a; }
@keyframes qshake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .terms-check.is-shake { animation: none; } }

/* ------------------------------------------------------------------ marketplace (dashboard) */
.badge--warn { background: rgba(255, 176, 32, .14); color: var(--amber); }
.badge--mkt { background: rgba(57, 255, 20, .1); color: var(--neon); gap: 4px; }
.badge--mkt .icon { width: 13px; height: 13px; }
.notice--ok { background: rgba(57, 255, 20, .08); border-color: rgba(57, 255, 20, .35); color: #c9ffbe; }
.mkt-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.mkt-import-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mkt-import-box { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.mkt-import-box h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; }
.mkt-import-box h3 .icon { color: var(--neon); }
.mkt-import-box p { margin: 0; font-size: 13.5px; }
.mkt-import-box a { color: var(--neon); }
.mkt-import [data-mkt-result] { margin: 16px 0 0; }
.card-head--pad { padding: 20px 22px 4px; margin-bottom: 8px; }
.card-head h2 { margin: 0 0 4px; font-size: 18px; }
.card-head p { margin: 0; font-size: 13.5px; }
.mini-select { max-width: 220px; height: 36px; border-radius: 9px; background: var(--s2); border: 1px solid var(--line); color: var(--text); padding: 0 8px; font: 13.5px var(--font); }
.mkt-cat-now { display: block; margin-top: 4px; font-size: 12px; }
label.switch { display: inline-block; cursor: pointer; }
label.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
label.switch span { position: absolute; inset: 0; border-radius: inherit; }
label.switch:has(input:checked) { background: var(--neon); border-color: var(--neon); }
label.switch:has(input:checked)::after { left: 21px; background: var(--bg); }
label.switch:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
#t-mkt tr.is-busy { opacity: .55; pointer-events: none; }
.mkt-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.mkt-upsell { margin-top: 20px; }
.mkt-upsell h2 { margin: 0 0 8px; font-size: 18px; }
.mkt-fields legend { display: inline-flex; align-items: center; gap: 6px; }
.mkt-fields legend .icon { color: var(--neon); width: 16px; height: 16px; }
@media (max-width: 720px) {
	.mkt-import-grid { grid-template-columns: minmax(0, 1fr); }
	.mini-select { max-width: 100%; width: 100%; }
}
.tabbar:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.mkt-soon { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; }
.mkt-soon .icon { width: 16px; height: 16px; color: var(--neon); flex: none; }

/* set-up: designs made for each marketplace category */
.theme-cat { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--s3); color: var(--muted); font: 600 11px/1.5 var(--font); font-style: normal; }
.theme-opt.is-match { order: -1; }
.theme-opt.is-match .theme-cat { background: rgba(57, 255, 20, .14); color: var(--neon); }

/* ------------------------------------------------------------------ landing: QAVEX Marketplace */
.mkl { border-top: 1px solid var(--line); background: radial-gradient(90% 60% at 100% 0%, rgba(57, 255, 20, .07), transparent 60%); }
.mkl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.mkl-head > div:first-child { max-width: 680px; }
.mkl-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mkl-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.mkl-cats a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 14px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.mkl-cats a:hover { border-color: color-mix(in srgb, var(--tone) 60%, var(--line)); transform: translateY(-2px); color: var(--text); }
.mkl-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: color-mix(in srgb, var(--tone) 70%, #fff); }
.mkl-ic .icon { width: 20px; height: 20px; }
.mkl-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mkl-cats small { position: absolute; top: 12px; right: 12px; color: var(--subtle); font-size: 11.5px; font-weight: 600; }
.mkl-row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 14px; }
.mkl-row-head h3 { font-size: 20px; margin: 0; }
.mkl-row-head a { color: var(--neon); font-weight: 600; font-size: 14px; }
.mkl-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mkl-item { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); color: var(--text); transition: border-color .2s ease; }
.mkl-item:hover { border-color: var(--line-2); color: var(--text); }
.mkl-img { position: relative; aspect-ratio: 4 / 3; background: #f2f2ef; display: grid; place-items: center; overflow: hidden; color: #b9bdb5; }
.mkl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mkl-img .icon { width: 40px; height: 40px; }
.mkl-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.mkl-body .mk-price { font-weight: 800; font-size: 16px; color: var(--neon); }
.mkl-body .mk-price--ask { font-size: 13.5px; color: var(--muted); }
.mkl-body b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkl-body small { display: block; color: var(--subtle); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkl-body small .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.mkl-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mkl-points li { display: flex; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mkl-points .icon { flex: none; width: 20px; height: 20px; color: var(--neon); margin-top: 2px; }
.mkl-points b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.primary-nav .qavex-mkt-link > a::after, .primary-nav a.qavex-mkt-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--neon); vertical-align: 3px; box-shadow: 0 0 0 3px rgba(57, 255, 20, .18); }
@media (max-width: 1100px) { .mkl-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) {
	.mkl-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mkl-points { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.mkl-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 6px; scrollbar-width: none; }
	.mkl-cats::-webkit-scrollbar { display: none; }
	.mkl-cats li { flex: 0 0 132px; scroll-snap-align: start; }
	.mkl-cta { width: 100%; }
	.mkl-cta .btn { flex: 1 1 auto; justify-content: center; }
	.mkl-items { gap: 10px; }
	.mkl-body { padding: 10px 11px 12px; }
}

/* ------------------------------------------------------------------ Theme Store */
.tstore-hero { padding: 72px 0 28px; background: radial-gradient(70% 80% at 85% 0%, rgba(57, 255, 20, .09), transparent 60%); }
.tstore-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.04em; max-width: 880px; margin: 0 0 16px; }
.tstore-search { position: relative; max-width: 520px; margin-top: 28px; }
.tstore-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--subtle); width: 18px; height: 18px; }
.tstore-search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--s1); color: var(--text); font: 500 16px var(--font); }
.tstore-search input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57, 255, 20, .15); }
.tstore-cats { position: sticky; top: 76px; z-index: 30; background: rgba(10, 10, 10, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-bar .tstore-cats { top: 108px; }
.tstore-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.tstore-chips::-webkit-scrollbar { display: none; }
.tchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1); color: var(--muted); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: border-color .15s ease, color .15s ease; }
.tchip .icon { width: 15px; height: 15px; color: color-mix(in srgb, var(--tone, #39ff14) 75%, #fff); }
.tchip small { font-size: 11px; color: var(--subtle); font-weight: 600; }
.tchip:hover { color: var(--text); border-color: var(--line-2); }
.tchip.is-on { background: var(--neon); border-color: var(--neon); color: #0a0a0a; }
.tchip.is-on .icon, .tchip.is-on small { color: #0a0a0a; }
.tstore-body { padding-top: 12px; padding-bottom: 40px; }
.tgroup { padding: 36px 0 8px; scroll-margin-top: 150px; }
.tgroup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tgroup-head h2 { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.tgroup-head p { margin: 2px 0 0; color: var(--subtle); font-size: 13.5px; }
.tgroup-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: color-mix(in srgb, var(--tone) 70%, #fff); flex: none; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tcard { display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.tcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tcard-shot { position: relative; display: block; padding: 0; border: 0; background: #1a1a1a; cursor: zoom-in; aspect-ratio: 16 / 10; overflow: hidden; }
.tcard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.tcard:hover .tcard-shot img { transform: scale(1.03); }
.tcard-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(10, 10, 10, .78); color: #fff; font: 600 12px var(--font); opacity: 0; transition: opacity .2s ease; }
.tcard-zoom .icon { width: 14px; height: 14px; }
.tcard:hover .tcard-zoom, .tcard-shot:focus-visible .tcard-zoom { opacity: 1; }
.tcard-body, .theme-opt .tcard-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.tcard-text strong { display: block; font-size: 16px; }
.tcard-text small { display: block; color: var(--subtle); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.tcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tcard-tags i { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--s3); color: var(--muted); }
.tcard-sw { display: flex; flex: none; margin-top: 3px; }
.tcard-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px var(--s1); margin-left: -4px; }
.tcard-actions { display: flex; gap: 8px; padding: 12px 16px 16px; margin-top: auto; }
.tcard-actions .btn { flex: 1 1 0; justify-content: center; }
.tstore-none { text-align: center; color: var(--muted); padding: 40px 0; }
.tstore-cta { text-align: center; border-top: 1px solid var(--line); }
.tstore-cta .section-sub { margin: 12px auto 24px; }
.tpreview { width: min(980px, calc(100vw - 24px)); height: calc(100vh - 40px); max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--s1); color: var(--text); overflow: hidden; }
.tpreview[open] { display: flex; flex-direction: column; }
.tpreview::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.tpreview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.tpreview-head small { color: var(--neon); font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.tpreview-head h2 { font-size: 20px; margin: 2px 0 0; }
.tpreview-actions { display: flex; align-items: center; gap: 8px; }
.tpreview-body { flex: 1; overflow-y: auto; padding: 18px; background: #0d0d0d; }
.tpreview-frame { max-width: 720px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #fff; }
.tpreview-frame img { display: block; width: 100%; height: auto; }
.tpreview-note { text-align: center; color: var(--subtle); font-size: 12.5px; margin: 14px 0 4px; }
.tstore-chips--setup { margin: 14px 0 6px; padding: 0 0 6px; }
.themes .setup-store-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.themes .setup-store-link .icon { width: 16px; height: 16px; color: var(--neon); }
.theme-opt .tcard-body { padding: 12px 4px 4px; }
.theme-opt .pick { flex: none; align-self: center; }
@media (max-width: 1024px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 782px) { .admin-bar .tstore-cats { top: 122px; } }
@media (max-width: 640px) {
	.tstore-hero { padding: 44px 0 20px; }
	.tgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.tgroup { padding-top: 28px; scroll-margin-top: 80px; }
	.tpreview { width: 100vw; height: 100vh; max-width: none; border-radius: 0; border: 0; }
	.tpreview-body { padding: 10px; }
	.tpreview-head h2 { font-size: 17px; }
	.tcard-zoom { opacity: 1; }
}
.duo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--neon); font-weight: 600; font-size: 14.5px; }
.duo-link .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.duo-link:hover .icon { transform: translateX(3px); }
@media (min-width: 1181px) and (max-width: 1360px) {
	.primary-nav li:has(> a[href$="#features"]) { display: none; }
	.primary-nav ul { gap: 24px; }
}
.theme-opt .meta.tcard-body { flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.theme-opt .tcard-text { flex: 1 1 100%; }
.theme-opt .tcard-sw { margin: 6px 0 0 4px; }
.theme-opt .meta .pick { margin: 6px 0 0 auto; }

/* ------------------------------------------------------------------ domains (v1.9) */
.dom { display: grid; gap: 24px; }
.dom-name { overflow-wrap: anywhere; }
.dom-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.dom-acts .btn .icon { width: 16px; height: 16px; }
.dom-fine { text-align: left; display: flex; gap: 8px; align-items: flex-start; }
.dom-fine .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--neon); }
.dom-free .row-item { flex-wrap: wrap; }
.dom-free .row-item .grow { flex: 1 1 200px; }
.dom-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.dom-item { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 12px; }
.dom-item.is-main { border-color: var(--neon-line); }
.dom-item-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dom-item-head .grow { flex: 1 1 220px; min-width: 0; }
.dom-item-head strong { display: block; font-size: 15px; }
.dom-item-head small { color: var(--subtle); font-size: 12px; }
.dom-item .dom-acts { justify-content: flex-start; }
.dom-remove { margin-left: auto; color: var(--muted); }
.dom-remove:hover { color: var(--red); }
.dom-dns { border-top: 1px solid var(--line); padding-top: 12px; }
.dom-dns summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.dom-dns[open] summary { margin-bottom: 12px; }
.dom-dns .fine { text-align: left; }
.dom-dns-table { display: grid; gap: 6px; }
.dom-dns-row { display: grid; grid-template-columns: 120px minmax(90px, .5fr) minmax(0, 1.5fr); gap: 10px; align-items: center; }
.dom-dns-row > span { min-width: 0; }
.dom-dns-row b { display: block; font-size: 13px; }
.dom-dns-row small { color: var(--subtle); font-size: 11.5px; }
.dom-dns-row .copy-chip { margin: 0; font-size: 12.5px; }
.dom-dns-row--head span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
.dom-msg { margin: 0; font-size: 13px; color: var(--muted); }
.dom-msg.is-bad { color: #ffb3b4; }
.dom-connect, .dom-search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dom-connect .field, .dom-search .field { margin: 0; flex: 1 1 260px; }
.dom-connect .dom-msg { flex-basis: 100%; }
.dom-search { margin-bottom: 18px; }
.dom-exts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dom-ext { display: grid; grid-template-columns: minmax(0, 1fr) 190px 230px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--s1); transition: background .2s ease, opacity .2s ease; }
.dom-ext:first-child { border-top: 0; }
.dom-ext.is-fit { background: linear-gradient(90deg, rgba(77, 163, 255, .07), transparent 70%), var(--s1); }
.dom-ext-name strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dom-ext-name em { font-style: normal; color: var(--neon); }
.dom-ext-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.dom-ext-tags .badge { font-size: 11px; padding: 3px 8px; }
.dom-state { font-size: 12px; color: var(--subtle); }
.dom-ext[data-state="available"] .dom-state { color: var(--neon); font-weight: 600; }
.dom-ext[data-state="available"] .dom-state::before { content: "✓ "; }
.dom-ext[data-state="taken"] .dom-state { color: var(--red); font-weight: 600; }
.dom-ext[data-state="taken"] .dom-ext-name strong { text-decoration: line-through; text-decoration-color: rgba(255, 77, 79, .6); color: var(--muted); }
.dom-ext[data-state="own"] .dom-state { color: var(--blue); font-weight: 600; }
.dom-ext[data-state="checking"] .dom-state { animation: qpulse 1.2s ease-in-out infinite; }
@keyframes qpulse { 50% { opacity: .4; } }
.dom-ext-price b { display: block; font-size: 17px; }
.dom-ext-price b small { font-size: 12px; font-weight: 500; color: var(--subtle); margin-left: 3px; }
.dom-ext-price span { font-size: 12px; color: var(--subtle); }
.dom-ext-price .dom-ask { font-size: 14px; color: var(--muted); }
.dom-ext-go { display: flex; justify-content: flex-end; }
.dom-ext-go .btn { white-space: nowrap; }
.dom-ext-go .btn.is-off { opacity: .45; pointer-events: none; background: var(--s3); border-color: var(--line); color: var(--muted); }
.dom-ext-go .btn .icon { width: 16px; height: 16px; }
.dom-buying { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--neon-line); background: var(--neon-soft); border-radius: 14px; margin-bottom: 22px; }
.dom-buying .icon { width: 26px; height: 26px; color: var(--neon); flex: none; }
.dom-buying strong { display: block; font-size: 19px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dom-buying small { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
	.dom-ext { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
	.dom-ext-name strong { font-size: 15.5px; }
	.dom-ext-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
	.dom-ext-price b { display: inline; }
	.dom-ext-go .btn { width: 100%; justify-content: center; }
	.dom-dns-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
	.dom-dns-row--head { display: none; }
	.dom-free .dom-acts { justify-content: flex-start; width: 100%; }
}

.dom-slug { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.dom-free > .muted + .dom-slug { margin-top: 0; padding-top: 0; border-top: 0; }
.dom-slug .field { margin: 0; }
.dom-slug .field input { padding-left: 44px; }
.dom-slug-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dom-free .dom-fine .linklike { font-size: 12.5px; }

/* ------------------------------------------------------------------ QAVEX Admin console (v2.0) */
.qa-brand { display: flex; align-items: center; gap: 10px; }
.qa-brand > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--neon); padding: 3px 8px; border-radius: 6px; }
.qa-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: #111; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.qa-content { max-width: 1440px; }
.qa-search { width: 300px; }
.qa-kpis .stat-card { display: block; color: var(--text); }
a.stat-card:hover { border-color: var(--line-2); }
.qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.qa-chips a:hover { color: var(--text); border-color: var(--line-2); }
.qa-chips a.is-on { background: var(--neon-soft); border-color: var(--neon-line); color: var(--text); }
.qa-chips a b { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--s3); color: var(--muted); }
.qa-chips a.is-on b { background: var(--neon); color: var(--bg); }
.qa-found { margin: -8px 0 0; font-size: 13px; }
.qa-table td small { display: block; font-size: 12px; margin-top: 2px; }
.qa-table td .qa-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.qa-url { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-url .icon { width: 14px; height: 14px; }
.qa-type { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--s3); color: var(--muted); }
.qa-type--site { background: var(--neon-soft); color: var(--neon); }
.qa-type--own_site { background: rgba(77, 163, 255, .14); color: var(--blue); }
.qa-type--market { background: rgba(255, 176, 32, .14); color: var(--amber); }
.qa-bad { color: var(--red) !important; }
.qa-out { color: #ffb3b4; }
.qa-money b { display: block; }
.qa-money small { color: var(--subtle); }
.qa-pager { display: flex; gap: 6px; flex-wrap: wrap; }
.qa-pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.qa-pager a.is-on { background: var(--neon); border-color: var(--neon); color: var(--bg); }
.qa-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa-todo a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.qa-todo a span { flex: 1; }
.qa-todo a b { font-size: 16px; color: var(--subtle); }
.qa-todo li.is-on a { color: var(--text); border-color: rgba(255, 176, 32, .4); }
.qa-todo li.is-on a b { color: var(--amber); }
.qa-todo .icon { width: 18px; height: 18px; color: var(--subtle); }
.qa-rows li a strong:hover { color: var(--neon); }
.qa-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 200px; padding-top: 8px; }
.qa-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.qa-bar-g { position: relative; width: 100%; max-width: 44px; min-height: 2px; background: var(--s3); border-radius: 6px 6px 2px 2px; display: flex; align-items: flex-end; overflow: hidden; }
.qa-bar-g i { display: block; width: 100%; background: var(--neon); border-radius: 6px 6px 0 0; }
.qa-bar small { font-size: 11px; color: var(--subtle); }
.qa-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--subtle); margin: 14px 0 0; }
.qa-legend span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.qa-legend .g { background: var(--s3); }
.qa-legend .n { background: var(--neon); margin-left: 10px; }
.qa-back { margin: 0; }
.qa-back a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.qa-back .icon { width: 16px; height: 16px; }
.qa-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.qa-head.is-off { border-color: rgba(255, 77, 79, .45); }
.qa-avatar { width: 56px; height: 56px; font-size: 20px; }
.qa-head-main { flex: 1 1 280px; min-width: 0; }
.qa-head-main h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.qa-head-main p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.qa-head-main p + p { margin-top: 8px; }
.qa-danger:hover { color: var(--red); border-color: rgba(255, 77, 79, .5); }
.qa-btn-danger { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }
.qa-mini .stat-card { padding: 18px; }
.qa-v { font-size: 20px !important; }
.qa-unit { font-size: 13px; font-weight: 500; color: var(--subtle); }
.qa-facts { margin: 0; display: grid; gap: 0; }
.qa-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--row); font-size: 14px; }
.qa-facts > div:first-child { border-top: 0; }
.qa-facts dt { color: var(--subtle); }
.qa-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.qa-facts--money dd { font-variant-numeric: tabular-nums; }
.qa-facts-total { border-top: 1px solid var(--line-2) !important; }
.qa-facts-total dd { color: var(--neon); font-size: 17px; }
.qa-act .qa-form { display: grid; gap: 10px; }
.qa-act .qa-form + .qa-form, .qa-sep { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.qa-act-t { margin: 0; }
.qa-act-t strong { display: block; font-size: 14px; }
.qa-act-t small { display: block; color: var(--subtle); font-size: 12px; margin-top: 2px; }
.qa-act input[type=text], .qa-act select, .qa-reject input, .qa-range input { height: 40px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); color: var(--text); padding: 0 12px; font: 14px var(--font); min-width: 0; }
.qa-act .field { margin: 0; }
.qa-inline { display: flex; gap: 8px; }
.qa-inline select { flex: 1; }
.qa-record { display: grid; gap: 12px; }
.qa-row-act { display: grid; gap: 8px; min-width: 230px; }
.qa-reject { display: flex; gap: 6px; }
.qa-reject input { height: 34px; flex: 1; font-size: 13px; }
.qa-small-link { display: block; font-size: 12px; margin-top: 2px; }
.qa-late td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.qa-period { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.qa-range { display: flex; align-items: center; gap: 8px; color: var(--subtle); }
.qa-range input { height: 36px; color-scheme: dark; }
.qa-streams .qa-group td { font-weight: 700; }
.qa-streams .qa-sub td { color: var(--muted); font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
.qa-streams .qa-sub td:first-child { padding-left: 36px; }
.qa-streams .qa-total td { font-weight: 800; border-top: 1px solid var(--line-2); background: var(--s2); }
.qa-streams .qa-total .qa-net b { color: var(--neon); }
.qa-note { margin: 0; padding: 14px 24px 18px; font-size: 12px; color: var(--subtle); border-top: 1px solid var(--row); }
.qa-paused { text-align: center; padding: 40px 28px; }
.qa-paused h1 { font-size: 26px; margin: 16px 0 8px; }
.qa-paused-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 1100px) {
	.qa-search { width: 100%; order: 3; }
}
@media (max-width: 900px) {
	.qa-chart { gap: 4px; height: 160px; }
	.qa-streams .qa-sub td:first-child { padding-left: 0; }
	.qa-row-act { min-width: 0; width: 100%; }
	.qa-reject { flex-wrap: wrap; }
	.qa-table td .qa-ref, .qa-url { max-width: 200px; }
}
.stat-card--neon.qa-neg { border-color: rgba(255, 77, 79, .5); }
.stat-card--neon.qa-neg .value { color: var(--red); }
.qa-table td:first-child a strong { color: var(--text); }
.qa-table td:first-child a:hover strong { color: var(--neon); }
.qa-content { grid-template-columns: minmax(0, 1fr); }
.qa-content > * { min-width: 0; }
@media (max-width: 760px) {
	.table--cards.qa-table td:last-child:not([data-label=""])::before { display: block; }
	.qa-period { align-items: stretch; }
	.qa-range { width: 100%; }
	.qa-range label { flex: 1; min-width: 0; }
	.qa-range input { width: 100%; }
	.qa-kpis .stat-card .value { font-size: 22px; }
	.qa-kpis .stat-card .tile { margin-bottom: 12px; }
}

@media (max-width: 1100px) {
	.qa-table.table--cards thead { display: none; }
	.qa-table.table--cards, .qa-table.table--cards tbody { display: block; }
	.qa-table.table--cards tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--row); }
	.qa-table.table--cards tr:last-child { border-bottom: 0; }
	.qa-table.table--cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; border: 0; white-space: normal; text-align: right; grid-column: 1 / -1; font-size: 14px; min-width: 0; }
	.qa-table.table--cards td::before { content: attr(data-label); color: var(--subtle); font-size: 12px; font-weight: 500; text-align: left; flex: none; }
	.qa-table.table--cards td:first-child { grid-column: 1; text-align: left; display: block; padding-bottom: 4px; }
	.qa-table.table--cards td[data-label=""]::before { display: none; }
	.qa-table.table--cards td:last-child:not([data-label=""])::before { display: block; }
	.qa-table.table--cards td.empty { display: block; text-align: center; }
	.qa-streams.table--cards td:first-child { grid-column: 1 / -1; }
}
.qa-table td { white-space: normal; }
.qa-table td .badge, .qa-table td .qa-type { white-space: nowrap; }
.qa-table td, .qa-table th { padding-left: 16px; padding-right: 16px; }
.qa-table .qa-url { max-width: 220px; }

/* ------------------------------------------------------------------ theme switch + light theme (v2.1) */
.theme-toggle { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--s2); color: var(--muted); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); }
.theme-toggle .icon { width: 17px; height: 17px; grid-area: 1 / 1; transition: transform .3s ease, opacity .2s ease; }
.theme-toggle .tt-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="light"] .theme-toggle .tt-sun { opacity: 1; transform: none; color: #d97706; }
html[data-theme="light"] .theme-toggle .tt-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
.plan-card .plan-btn { margin-top: 4px; justify-content: center; }
.plan-card .plan-btn .icon { width: 15px; height: 15px; }
.qa-lang { padding: 0 20px 12px; }

html[data-theme="light"] {
	color-scheme: light;
	--neon: #15a30b;
	--neon-2: #1fbe12;
	--neon-dark: #0f7f07;
	--neon-soft: rgba(21, 163, 11, .1);
	--neon-line: rgba(21, 163, 11, .35);
	--bg: #f5f6f3;
	--s1: #ffffff;
	--s2: #f3f4f1;
	--s3: #e9ebe6;
	--line: #e1e4dd;
	--line-2: #d2d6cc;
	--row: #edefe9;
	--text: #0d100c;
	--muted: #4a5047;
	--subtle: #676d63;
	--amber: #b26a00;
	--red: #d0312d;
	--blue: #1c6bd0;
	--qw-ink: #0d100c;
	--qw-neon: #2bd90f;
	--shadow: 0 1px 2px rgba(16, 24, 16, .05), 0 8px 24px rgba(16, 24, 16, .06);
}
/* Brand buttons stay bright neon with dark text. */
html[data-theme="light"] .btn-primary { background: linear-gradient(135deg, #5bff3d, #39ff14); color: #0a0a0a; }
html[data-theme="light"] .btn-primary:hover { color: #0a0a0a; filter: brightness(.97); }
html[data-theme="light"] .btn-outline { border-color: var(--neon); color: var(--neon); }
html[data-theme="light"] .btn-dark { background: var(--text); border-color: var(--text); color: #fff; }
html[data-theme="light"] .btn-dark:hover { color: #fff; opacity: .9; }
html[data-theme="light"] .tchip.is-on, html[data-theme="light"] .tchip.is-on .icon, html[data-theme="light"] .tchip.is-on small { color: #fff; }
html[data-theme="light"] .tchip .icon { color: color-mix(in srgb, var(--tone, #15a30b) 80%, #000); }
/* Surfaces that used dark gradients. */
html[data-theme="light"] .duo-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .summary,
html[data-theme="light"] .plan-card,
html[data-theme="light"] .card--glow,
html[data-theme="light"] .wallet { background: linear-gradient(135deg, #ffffff, #f4f6f1); }
html[data-theme="light"] .ph { background: linear-gradient(135deg, #eceee9, #e1e4dd); }
html[data-theme="light"] .mini-bars span { background: var(--s3); }
html[data-theme="light"] .site-header { background: rgba(245, 246, 243, .88); }
html[data-theme="light"] .hero::after { opacity: .8; background-image: linear-gradient(#e6e9e2 1px, transparent 1px), linear-gradient(90deg, #e6e9e2 1px, transparent 1px); }
html[data-theme="light"] .builder .canvas { background-color: #eef0ea; background-image: radial-gradient(#d4d8cf 1px, transparent 1px); }
html[data-theme="light"] .tpreview-body { background: var(--s3); }
/* Text colours tuned for a light background. */
html[data-theme="light"] .notice--error { background: rgba(208, 49, 45, .07); border-color: rgba(208, 49, 45, .3); color: #a12622; }
html[data-theme="light"] .notice--warn { background: rgba(178, 106, 0, .08); border-color: rgba(178, 106, 0, .3); color: #7a4a00; }
html[data-theme="light"] .dom-msg.is-bad, html[data-theme="light"] .qa-out, html[data-theme="light"] .more-menu .danger, html[data-theme="light"] .more-menu .danger .icon { color: #b42318; }
html[data-theme="light"] .swatch.is-on, html[data-theme="light"] .swatches i.on { box-shadow: 0 0 0 2px var(--s1), 0 0 0 4px var(--text); }
html[data-theme="light"] .field input::placeholder, html[data-theme="light"] .field textarea::placeholder { color: #9aa095; }
html[data-theme="light"] .qa-range input { color-scheme: light; }
/* Softer shadows and cards that stand out on the light page. */
html[data-theme="light"] .card, html[data-theme="light"] .stat-card, html[data-theme="light"] .panel, html[data-theme="light"] .tcard { box-shadow: var(--shadow); }
html[data-theme="light"] .hero-visual .mockup { box-shadow: 0 30px 70px rgba(16, 24, 16, .18); }
html[data-theme="light"] .auth-card { box-shadow: 0 30px 80px rgba(16, 24, 16, .14), 0 0 0 1px var(--line); }
html[data-theme="light"] .gsw-list, html[data-theme="light"] .more-menu, html[data-theme="light"] .qdlg { box-shadow: 0 20px 50px rgba(16, 24, 16, .16); }
html[data-theme="light"] .app.nav-open .app-sidebar { box-shadow: 20px 0 60px rgba(16, 24, 16, .18); }
html[data-theme="light"] .qdlg::backdrop, html[data-theme="light"] .tpreview::backdrop { background: rgba(16, 24, 16, .45); }
html[data-theme="light"] .tabs--seg a.is-active { background: var(--s1); box-shadow: 0 1px 3px rgba(16, 24, 16, .1); }
html[data-theme="light"] .avatar--neon, html[data-theme="light"] .qa-brand > span, html[data-theme="light"] .badge--solid { color: #fff; }
html[data-theme="light"] .tstore-cats { background: rgba(245, 246, 243, .92); }
html[data-theme="light"] .app-topbar { background-color: rgba(245, 246, 243, .88); }
@media (min-width: 1025px) { html[data-theme="light"] .app-topbar { background-color: transparent; } }
.stat strong .fx { color: inherit; font-size: inherit; }
@media (max-width: 760px) { .stat strong { font-size: clamp(26px, 8vw, 40px); } }
.qa-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.qa-plan { display: grid; gap: 14px; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.qa-plan:hover { border-color: var(--line-2); color: var(--text); }
.qa-plan.is-on { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon-line); }
.qa-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qa-plan-head strong { font-size: 16px; }
.qa-plan-big { display: flex; align-items: baseline; gap: 8px; }
.qa-plan-big b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.qa-plan-big span { color: var(--subtle); font-size: 13px; }
.qa-plan-facts { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.qa-plan-facts div { display: flex; justify-content: space-between; gap: 10px; }
.qa-plan-facts dt { color: var(--subtle); }
.qa-plan-facts dd { margin: 0; font-weight: 700; text-align: right; }
.qa-plan-facts small { color: var(--subtle); font-weight: 500; }
.qa-chips--in { padding: 0 24px 16px; }
@media (max-width: 1100px) { .qa-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .qa-plans { grid-template-columns: minmax(0, 1fr); gap: 12px; } .qa-chips--in { padding: 0 16px 14px; } }
.qa-note--link { border-top: 0; padding-bottom: 0; }
.qa-note--link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.qa-note--link .icon { width: 15px; height: 15px; }
.qa-host-mini { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; background: var(--neon-soft); border: 1px solid var(--neon-line); color: var(--text); }
.qa-host-mini:hover { color: var(--text); border-color: var(--neon); }
.qa-host-mini > span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--neon); text-transform: uppercase; letter-spacing: .08em; }
.qa-host-mini > span .icon { width: 15px; height: 15px; }
.qa-host-mini b { font-size: 24px; letter-spacing: -0.02em; }
.qa-host-mini b small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.qa-host-mini > small { color: var(--muted); font-size: 12px; }
.dom-ph { color: var(--subtle); font-style: italic; }
.dom-ext[data-state="empty"] .dom-ext-name strong { font-weight: 600; }
.dom > section { scroll-margin-top: 96px; }
.qa-addr-compare { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.qa-addr-compare > div { flex: 1 1 260px; padding: 14px 16px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); min-width: 0; }
.qa-addr-compare > div.is-on { border-color: var(--neon-line); background: var(--neon-soft); }
.qa-addr-compare small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 4px; }
.qa-addr-compare code { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; color: var(--text); }
.qa-addr-compare > span { color: var(--subtle); font-size: 20px; }
.qa-addr-note { font-size: 13px; margin: 0 0 16px; }
.qa-addr-actions .qa-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qa-force { margin: 0; font-size: 13px; }
.qa-steps { margin: 0; padding-left: 20px; display: grid; gap: 18px; }
.qa-steps li::marker { color: var(--neon); font-weight: 800; }
.qa-steps strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.qa-steps p { margin: 0; color: var(--muted); font-size: 13.5px; }
.qa-dns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qa-dns span { padding: 8px 12px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); font-size: 12.5px; color: var(--subtle); }
.qa-dns b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); margin-left: 4px; }
.qa-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.qa-checks li { display: flex; gap: 10px; align-items: flex-start; }
.qa-checks .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.qa-checks .is-ok .icon { color: var(--neon); }
.qa-checks .is-bad .icon { color: var(--red); }
.qa-checks strong { display: block; font-size: 13.5px; }
.qa-checks small { display: block; color: var(--subtle); font-size: 12px; overflow-wrap: anywhere; }
.qa-inline input[type=text] { flex: 1; min-width: 0; }

/* Light theme: phone tab bar + business details logo box */
html[data-theme="light"] .tabbar { background: rgba(255, 255, 255, .92); border-top-color: rgba(0, 0, 0, .08); }
html[data-theme="light"] .tabbar .is-active { color: #12a150; }
html[data-theme="light"] .img-pick-prev { border: 1px dashed rgba(0, 0, 0, .18); background: #fafafa; }

/* ------------------------------------------------------------------ packages: Lite / Pro */
.plan-chip { display: inline-flex; align-items: center; margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; background: var(--s3); color: var(--muted); border: 1px solid var(--line); }
.plan-chip--pro { background: var(--neon); color: var(--bg); border-color: transparent; }
h2 .plan-chip, .plan-title .plan-chip, .upg-row .plan-chip { margin-left: 6px; vertical-align: middle; }
.plan-card strong .plan-chip { margin-left: auto; }
.plan-btn--up { margin-bottom: 8px; }
.pro-hint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.pro-hint .plan-chip { margin-left: 0; }

/* locked module */
.pro-lock { max-width: 680px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 40px 28px; }
.pro-lock-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--neon-soft); color: var(--neon); }
.pro-lock-ico .icon { width: 30px; height: 30px; }
.pro-lock .plan-chip { margin: 0; }
.pro-lock h2 { font-size: 26px; letter-spacing: -.02em; margin: 4px 0 0; }
.pro-lock > p { margin: 0; max-width: 46ch; }
.pro-lock-list { text-align: left; margin: 8px 0 4px; }
.pro-lock-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; margin: 4px 0 8px; }
.pro-lock-price > div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); text-align: left; }
.pro-lock-price span { font-size: 12px; }
.pro-lock-price strong { font-size: 20px; letter-spacing: -.01em; }
.pro-lock-price small { font-size: 11.5px; color: var(--subtle); }

/* overview */
.upg-done { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.upg-done > .tile { width: 52px; height: 52px; border-radius: 14px; background: var(--neon); color: var(--bg); display: grid; place-items: center; flex: none; }
.upg-done > div { flex: 1; min-width: 220px; }
.upg-done h2 { font-size: 18px; margin: 0 0 4px; }
.upg-done p { margin: 0; }
.pro-teaser h2 .plan-chip { margin-left: 4px; }

/* settings → plan */
.plan-up { margin-top: 20px; padding: 18px; border-radius: 16px; border: 1px dashed var(--line-2, var(--line)); background: var(--s2); }
.plan-up-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.plan-up-head > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.plan-up-head small { color: var(--subtle); font-size: 12.5px; }
.plan-up-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 14px 0 0; font-size: 13px; }

/* payment: choose package, upgrade box */
.pkg-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.pkg-opt { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: var(--s2); border: 1.5px solid var(--line); color: var(--text); transition: border-color .15s ease; }
.pkg-opt:hover { color: var(--text); border-color: var(--line-2, var(--line)); }
.pkg-opt.is-on { border-color: var(--neon); background: var(--neon-soft); }
.pkg-opt-head { display: flex; align-items: center; gap: 8px; }
.pkg-opt-head strong { font-size: 16px; }
.pkg-opt-head .plan-save { position: static; }
.pkg-opt small { color: var(--muted); font-size: 12.5px; }
.pkg-opt-price { font-size: 13px; font-weight: 600; margin-top: 6px; }
.pkg-opt-price em { font-style: normal; color: var(--subtle); font-weight: 500; }
.pkg-opt-has { font-size: 12px; color: var(--subtle); }
.pkg-opt.is-on .pkg-opt-has { color: var(--text); }
.upg-box { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); margin-bottom: 20px; }
.upg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.upg-row > span { color: var(--muted); }
.upg-row s { font-weight: 500; margin-left: 4px; }
.upg-list { margin: 4px 0; gap: 8px; font-size: 13.5px; }
.upg-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .pkg-pick, .pro-lock-price { grid-template-columns: minmax(0, 1fr); } }

/* sign-up: package choice */
.auth-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.auth-plan-opt { position: relative; cursor: pointer; }
.auth-plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.auth-plan-opt > span { display: grid; gap: 2px; height: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--s2); }
.auth-plan-opt strong { font-size: 13.5px; }
.auth-plan-opt small { font-size: 11.5px; color: var(--subtle); line-height: 1.35; }
.auth-plan-opt input:checked + span { border-color: var(--neon); background: var(--neon-soft); }
.auth-plan-opt input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }

/* home: two package cards */
.pricing--two { max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pkg-card { grid-template-columns: minmax(0, 1fr); gap: 0; align-content: start; border-color: var(--line); }
.pkg-card--pro { border-color: var(--neon); box-shadow: 0 30px 80px -40px rgba(57, 255, 20, .35); }
.pkg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pkg-pop { padding: 4px 10px; border-radius: 999px; background: var(--neon); color: var(--bg); font-size: 11.5px; font-weight: 800; }
.pkg-tag { margin: 12px 0 0; color: var(--muted); }
.pkg-card .amount { font-size: 72px; margin: 18px 0 4px; }
.pkg-card .then { display: grid; gap: 2px; margin: 12px 0 22px; }
.pkg-card .then .pkg-save { color: var(--subtle); font-size: 12px; }
.pkg-card .includes { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.pkg-plus { font-weight: 700; margin: 0 0 12px; }
.check-list .is-no { color: var(--subtle); }
.check-list .is-no .icon { color: var(--subtle); }
.pkg-note { text-align: center; color: var(--subtle); font-size: 13px; margin: 24px 0 0; }
@media (max-width: 860px) { .pricing--two { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
@media (max-width: 760px) { .pkg-card .amount { font-size: 60px; } .pkg-card .includes { border-top: 1px solid var(--line); } }

/* orders */
.orders-table .order-note { font-style: italic; }
.orders-table .row-actions { flex-wrap: nowrap; }
.qa-plan-prices { display: block; margin: -4px 0 10px; color: var(--subtle); font-size: 12px; }
@media (max-width: 820px) { .toolbar > .pills { flex: 0 0 calc(100% + 32px); min-width: 0; } }

/* ------------------------------------------------------------------ pay from referral balance */
.bal-pick { display: grid; gap: 10px; margin: 0 0 16px; }
.bal-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); cursor: pointer; }
.bal-opt:has(input:checked) { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon) inset; }
.bal-opt input { accent-color: var(--neon); width: 18px; height: 18px; margin: 0; }
.bal-opt .bal-name { display: grid; gap: 2px; }
.bal-opt .bal-name small { color: var(--muted); font-size: 13px; }
.bal-opt .bal-price { font-weight: 700; white-space: nowrap; }
.bal-opt.is-short { opacity: .55; cursor: not-allowed; }
.bal-opt.is-short .bal-price { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ------------------------------------------------------------------ checkout: payment methods */
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pay-head h2 { margin: 0; }
.pay-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pay-secure .icon { width: 14px; height: 14px; color: var(--neon); }
.methods--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.methods--grid .method { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px; min-height: 104px; }
.methods--grid .method .radio { position: absolute; top: 16px; right: 16px; }
.methods--grid .method .m-body { flex: 1 1 calc(100% - 60px); min-width: 0; padding-right: 28px; }
.methods--grid .method .m-body .d { display: block; margin-top: 2px; line-height: 1.4; }
.methods--grid .method .m-side { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.methods--grid .method .badge { margin-left: 0; }
.method .m-amt { font-size: 15px; font-weight: 700; }
.method .m-state { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--s3); color: var(--muted); }
.method .m-setup { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.method.is-off { cursor: not-allowed; background: transparent; border-style: dashed; }
.method.is-off .tile, .method.is-off .m-body { opacity: .55; }
.method.is-off .radio { opacity: .35; }
.pay-empty { display: flex; gap: 16px; align-items: flex-start; padding: 18px; margin: -8px 0 24px; border-radius: 14px; border: 1px solid rgba(255, 176, 32, .35); background: rgba(255, 176, 32, .06); }
.pay-empty .pay-state-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.pay-empty .pay-state-icon .icon { width: 20px; height: 20px; }
.pay-empty strong { display: block; margin-bottom: 4px; }
.pay-empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) {
	.methods--grid { grid-template-columns: minmax(0, 1fr); }
	.methods--grid .method { min-height: 0; }
}

/* word counter under long text fields */
.words-count { display: block; margin: 6px 0 0; font-size: 12px; color: var(--subtle); text-align: right; }
.words-count.is-over { color: #ff6b6b; font-weight: 600; }
