/* CloneFlowz member app */
*, *::before, *::after { box-sizing: border-box; }
html, body.cfz-a { margin: 0; padding: 0; }
body.cfz-a { --b: #4353ff; --ink: #161a2b; --muted: #6b7183; --line: #e4e7ef; --bg: #f5f6fa; --card: #fff; --ok: #12a150; --err: #d93a3a; --warn: #c7922c; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.cfz-a a { color: var(--b); text-decoration: none; }
.cfz-a a:hover { text-decoration: underline; }
.cfz-a [hidden] { display: none !important; }
.cfz-a h1, .cfz-a h2, .cfz-a h3 { margin: 0; line-height: 1.25; }
.cfz-a .dashicons { vertical-align: middle; }

/* Buttons & inputs */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--b); background: var(--b); color: #fff !important; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: filter .15s, transform .05s; }
.a-btn:hover { filter: brightness(1.08); }
.a-btn:active { transform: translateY(1px); }
.a-btn:disabled { opacity: .5; cursor: default; filter: none; }
.a-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.a-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.a-btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.a-btn-sm .dashicons { font-size: 15px; width: 15px; height: 15px; }
.a-btn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.a-btn-ghost:hover { border-color: var(--b); color: var(--b) !important; filter: none; }
.a-btn-wide { width: 100%; }
.a-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.a-icon:hover { background: #eef0f6; color: var(--ink); }
.a-icon.is-danger:hover { background: #fdeceb; color: var(--err); }
.a-icon .dashicons { font-size: 17px; width: 17px; height: 17px; }
.a-link { background: none; border: 0; padding: 0; color: var(--b); cursor: pointer; font: inherit; }
.a-input { display: block; width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d5d9e4; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea.a-input { height: auto; padding: 10px 12px; resize: vertical; }
.a-input:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b) 18%, transparent); }
.a-input-lg { height: 50px; font-size: 16px; }
.a-input-sm { height: 32px; font-size: 13px; padding: 0 8px; }
.a-code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.a-color { width: 64px; height: 40px; border: 1px solid #d5d9e4; border-radius: 9px; padding: 3px; background: #fff; cursor: pointer; }
.a-label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; }
.a-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.a-check input { margin-top: 3px; }
.a-hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.a-msg { display: block; margin: 8px 0 0; font-size: 13px; }
.a-msg.is-ok { color: var(--ok); }
.a-msg.is-err { color: var(--err); }
.a-row { display: flex; gap: 8px; align-items: center; }
.a-form .a-btn { margin-top: 16px; }
.a-lock { color: var(--warn); font-size: 15px !important; width: 15px !important; height: 15px !important; }
.a-muted { color: var(--muted); font-size: 13px; display: block; }
.a-center { text-align: center; margin: 18px 0; }
.a-pill { display: inline-block; background: #eef0ff; color: var(--b); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* Shell */
.a-shell { display: flex; min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; width: 248px; flex: 0 0 248px; background: #121522; color: #c9cede; display: flex; flex-direction: column; padding: 18px 14px; z-index: 40; }
.a-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff !important; text-decoration: none !important; }
.a-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--b); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.a-logo-text { font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.a-logo-img { max-height: 38px; max-width: 190px; }
.a-nav { display: flex; flex-direction: column; gap: 2px; }
.a-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #c9cede; font-weight: 500; text-decoration: none !important; }
.a-nav a:hover { background: #1d2133; color: #fff; }
.a-nav a.is-active { background: var(--b); color: #fff; }
.a-nav .dashicons { font-size: 19px; width: 19px; height: 19px; opacity: .9; }
.a-side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid #23283b; }
.a-plan { font-size: 12px; color: #8b91a7; margin-bottom: 10px; }
.a-upgrade { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 9px; background: linear-gradient(135deg, #ffb547, #ff7a45); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.a-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.a-top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.a-top h1 { font-size: 19px; font-weight: 700; flex: 1; }
.a-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.a-user { display: flex; align-items: center; gap: 12px; }
.a-avatar { width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--b) 15%, #fff); color: var(--b); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.a-uname { font-weight: 600; }
.a-user .a-link, .a-user a { font-size: 13px; color: var(--muted); }
.a-body { padding: 26px 28px 60px; max-width: 1240px; width: 100%; }

/* Alerts & cards */
.a-alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; }
.a-alert.is-ok { background: #ecf9f1; border-color: #bfe9cf; color: #0e7a3e; }
.a-alert.is-err { background: #fdf0f0; border-color: #f3c7c7; color: #b42727; }
.a-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.a-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.a-card-h h3 { font-size: 16px; }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.a-grid2 > .a-card { margin-bottom: 0; }
.a-empty { text-align: center; padding: 28px 10px; color: var(--muted); }
.a-empty .dashicons { font-size: 40px; width: 40px; height: 40px; color: #c3c8d6; }
.a-loading { padding: 30px; text-align: center; }
.a-spin { display: inline-block; width: 26px; height: 26px; border: 3px solid #dde1ec; border-top-color: var(--b); border-radius: 50%; animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-locked { text-align: center; padding: 30px; }
.a-locked .dashicons { font-size: 36px; width: 36px; height: 36px; color: var(--warn); }

/* Dashboard */
.a-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: 16px; margin-bottom: 22px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--b) 85%, #fff) 0%, var(--b) 45%, color-mix(in srgb, var(--b) 60%, #000) 100%); }
.a-hero h2 { font-size: 24px; margin-bottom: 6px; }
.a-hero p { margin: 0; opacity: .9; max-width: 620px; }
.a-hero .a-btn { background: #fff; color: var(--b) !important; border-color: #fff; }
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.a-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.a-stat > .dashicons { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--b) 12%, #fff); color: var(--b); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.a-stat b { font-size: 22px; line-height: 1.1; }
.a-stat b small { font-size: 14px; color: var(--muted); font-weight: 500; }
.a-stat > span:last-child { color: var(--muted); font-size: 13px; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid #eef0f5; }
.a-list li:first-child { border-top: 0; }
.a-list li > a:first-child { color: var(--ink); text-decoration: none; min-width: 0; }
.a-list li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-list li span { color: var(--muted); font-size: 12.5px; }
.a-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.a-steps li { position: relative; padding: 0 0 18px 44px; counter-increment: s; }
.a-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--b) 12%, #fff); color: var(--b); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.a-steps li b { display: block; margin-bottom: 3px; }
.a-steps li > span { color: var(--muted); display: block; }
.a-steps .a-form { margin-top: 8px; }
.a-steps .a-input { margin-bottom: 8px; }
.a-steps .a-form .a-btn { margin-top: 0; }

/* Pages */
.a-toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.a-toolbar .a-input { max-width: 420px; }
.a-toolbar .a-btn { margin-left: auto; }
.a-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.a-span { grid-column: 1 / -1; }
.a-pcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.a-pcard:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.a-pcard-thumb { height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--b) 10%, #fff), #f3f4f9); color: var(--b) !important; text-decoration: none !important; font-size: 12px; font-weight: 600; }
.a-pcard-thumb .dashicons { font-size: 34px; width: 34px; height: 34px; }
.a-pcard-body { padding: 14px 16px 6px; flex: 1; }
.a-pcard-title { display: block; color: var(--ink) !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pcard-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.a-pcard-live { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 6px; }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.a-pcard-actions { display: flex; align-items: center; gap: 2px; padding: 10px 12px 12px; }
.a-pcard-actions .a-btn { margin-right: auto; }

/* Clone */
.a-clone { max-width: 860px; }
.a-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: -6px -6px 20px; padding: 0 6px; }
.a-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; margin-bottom: -1px; }
.a-tabs button:hover { color: var(--ink); }
.a-tabs button.is-active { color: var(--b); border-bottom-color: var(--b); }
.a-pane { display: none; }
.a-pane.is-active { display: block; }
.a-pane .a-label:first-child { margin-top: 0; }
.a-options { margin-top: 18px; padding-top: 4px; border-top: 1px dashed var(--line); }
.a-actions { margin-top: 18px; }
.a-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed #cfd4e2; border-radius: 12px; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.a-drop:hover, .a-drop.is-over { border-color: var(--b); background: color-mix(in srgb, var(--b) 5%, #fff); }
.a-drop .dashicons { font-size: 32px; width: 32px; height: 32px; color: var(--b); }
.a-drop b { color: var(--ink); }
.a-bookmarklet { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 10px 18px; border-radius: 99px; background: var(--b); color: #fff !important; font-weight: 700; cursor: grab; text-decoration: none !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--b) 35%, transparent); }
.a-progress-box { padding: 10px 0; }
.a-progress { height: 10px; border-radius: 99px; background: #eceef5; overflow: hidden; }
.a-progress span { display: block; height: 100%; width: 3%; border-radius: 99px; background: linear-gradient(90deg, var(--b), color-mix(in srgb, var(--b) 60%, #fff)); transition: width .4s ease; }
#cl-status, #cap-status { margin: 12px 0 0; color: var(--muted); }
#cl-status.is-err, #cap-status.is-err { color: var(--err); }

/* Sites / agency */
.a-site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f5; }
.a-site:first-child { border-top: 0; }
.a-site b { display: block; }
.a-site-actions { display: flex; gap: 6px; align-items: center; }
.a-badges { display: flex; gap: 6px; margin-top: 4px; }
.a-badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0ff; color: var(--b); }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 0 8px 8px; }
.a-table td { padding: 10px 8px; border-top: 1px solid #eef0f5; vertical-align: middle; }
.a-switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--muted); padding: 0; }
.a-switch span { width: 32px; height: 18px; border-radius: 99px; background: #cfd3de; position: relative; transition: background .15s; }
.a-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.a-switch.is-on { color: var(--ok); }
.a-switch.is-on span { background: var(--ok); }
.a-switch.is-on span::after { left: 16px; }

/* Branding */
.a-brand-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 12px; background: #121522; }
.a-bp-logo { color: #fff; font-size: 17px; }
.a-bp-logo img { max-height: 36px; max-width: 180px; display: block; }
.a-bp-btn { color: #fff; padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; }

/* Account */
.a-kv { list-style: none; margin: 0 0 14px; padding: 0; }
.a-kv li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #eef0f5; }
.a-kv li:first-child { border-top: 0; }
.a-kv span { color: var(--muted); }
.a-features { list-style: none; margin: 0 0 14px; padding: 0; columns: 1; }
.a-features li { padding: 4px 0; display: flex; gap: 6px; align-items: center; }
.a-features .is-on .dashicons { color: var(--ok); }
.a-features .is-off { color: #a2a7b8; }

/* Help */
.a-faq details { border-top: 1px solid #eef0f5; padding: 4px 0; }
.a-faq details:first-child { border-top: 0; }
.a-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.a-faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.a-faq details[open] summary::after { content: "–"; }
.a-faq p { margin: 0 0 14px; color: #424860; }
.a-support { display: flex; align-items: center; gap: 16px; }
.a-support > .dashicons { font-size: 34px; width: 34px; height: 34px; color: var(--b); }
.a-support div { flex: 1; }
.a-support p { margin: 4px 0 0; color: var(--muted); }

/* Auth screens */
.a-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--b) 16%, #fff), var(--bg)); }
.a-auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; box-shadow: 0 24px 60px rgba(16, 24, 40, .08); }
.a-auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.a-auth-logo .a-logo-text { color: var(--ink); }
.a-auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 18px; }
.a-auth-card label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 14px; }
.a-auth-card label input[type="text"], .a-auth-card label input[type="email"], .a-auth-card label input[type="password"] { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid #d5d9e4; border-radius: 10px; font-family: inherit; font-size: 15px; }
.a-auth-card label input:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b) 18%, transparent); }
.a-auth-card .a-check { font-weight: 400; display: flex; }
.a-auth-card .a-btn { height: 46px; font-size: 15px; margin-top: 6px; }
.a-auth-links { text-align: center; font-size: 13px; margin: 18px 0 0; color: var(--muted); }
.a-plan-pill { text-align: center; margin: -6px 0 18px; }
.a-auth-card .a-plan-pill { display: block; color: var(--b); font-weight: 700; }
.a-auth-card p { text-align: center; color: #424860; }
.a-capture-body .a-auth-card { max-width: 460px; }

/* Toast */
.a-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #161a2b; color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.a-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.a-toast.is-err { background: var(--err); }

/* Mobile */
@media (max-width: 960px) {
	.a-grid2 { grid-template-columns: 1fr; }
	.a-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
	.a-nav-open .a-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	.a-burger { display: inline-flex; }
	.a-top { padding: 0 14px; }
	.a-body { padding: 18px 14px 50px; }
	.a-uname { display: none; }
	.a-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
	.a-toolbar { flex-wrap: wrap; }
	.a-toolbar .a-btn { margin-left: 0; }
}
