.rcard-dash {
	--rd-navy: #0F2A4D;
	--rd-blue: #1C63B8;
	--rd-sky: #4FC3F7;
	--rd-line: #DCEAF7;
	--rd-paper: #F3F9FE;
	--rd-mute: #6C7A89;
	font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

.rcard-dash-notice {
	background: #E8F6EE; color: #1F7A44; border: 1px solid #BFE8CF;
	padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
}
.rcard-dash-error {
	background: #FBEAEA; color: #A83232; border: 1px solid #F3C6C6;
	padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
}

/* ---------- auth ---------- */
.rcard-auth-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	max-width: 640px;
	margin: 20px auto;
}
.rcard-auth-box { background: #fff; border: 1px solid var(--rd-line); border-radius: 16px; padding: 22px; }
.rcard-auth-box h3 { margin: 0 0 14px; font-size: 15px; color: var(--rd-navy); }
.rcard-auth-box input {
	width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 10px;
	border-radius: 10px; border: 1px solid var(--rd-line); background: var(--rd-paper); font-size: 13px;
}

.rcard-btn {
	display: inline-block; padding: 10px 18px; border-radius: 10px; font-size: 13px;
	font-weight: 600; border: none; cursor: pointer; text-decoration: none;
}
.rcard-dash .rcard-btn-primary { background: var(--rd-blue) !important; color: #fff !important; width: 100%; text-align: center; box-sizing: border-box; border: none !important; }
.rcard-dash .rcard-btn-outline { background: #fff !important; color: var(--rd-navy) !important; border: 1px solid var(--rd-line) !important; width: 100%; text-align: center; box-sizing: border-box; }
.rcard-dash .rcard-btn-auto { width: auto; }

.rcard-inline-setting {
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 18px;
	max-width: 360px;
}
.rcard-inline-setting-label { display: block; font-size: 12px; color: var(--rd-mute); margin-bottom: 8px; }
.rcard-inline-setting-row { display: flex; align-items: center; gap: 8px; }
.rcard-inline-setting-row select {
	flex: 1;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid var(--rd-line);
	background: var(--rd-paper);
	font-size: 13px;
}

/* ---------- shell (sidebar + main) ---------- */
.rcard-shell-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
}
@media (max-width: 820px) {
	.rcard-shell-grid { grid-template-columns: 1fr; }
}

.rcard-sidebar {
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	padding: 16px 10px;
	height: max-content;
	position: sticky;
	top: 16px;
}
.rcard-sidebar-logo {
	font-weight: 700;
	color: var(--rd-navy);
	font-size: 16px;
	padding: 6px 12px 14px;
}
.rcard-side-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: #3A4B5C;
	text-decoration: none;
	margin-bottom: 2px;
}
.rcard-side-link:hover { background: var(--rd-paper); }
.rcard-side-link.active { background: var(--rd-navy); color: #fff; }
.rcard-side-ic { width: 18px; text-align: center; }
.rcard-side-logout { margin-top: 10px; border-top: 1px solid var(--rd-line); padding-top: 12px; }

.rcard-main { min-width: 0; }
.rcard-page-title { font-size: 19px; color: var(--rd-navy); margin: 0 0 4px; }
.rcard-page-sub { font-size: 13px; color: var(--rd-mute); margin: 0 0 18px; }

/* ---------- overview stat cards + chart ---------- */
.rcard-stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}
.rcard-stat-card {
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rcard-stat-card span { font-size: 12px; opacity: 0.85; }
.rcard-stat-card strong { font-size: 20px; }
.rcard-stat-blue   { background: #E7F1FC; color: var(--rd-navy); }
.rcard-stat-sky    { background: #E6F8FE; color: #0C5A78; }
.rcard-stat-amber  { background: #FFF3E3; color: #8A5A15; }
.rcard-stat-purple { background: #F1EBFB; color: #5B3B95; }

.rcard-chart-box {
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	padding: 18px;
	margin-bottom: 18px;
}
.rcard-chart-box h4 { font-size: 13px; color: var(--rd-navy); margin: 0 0 14px; }
.rcard-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.rcard-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.rcard-bar { width: 100%; max-width: 22px; background: linear-gradient(180deg, var(--rd-sky), var(--rd-blue)); border-radius: 6px 6px 0 0; min-height: 2px; }
.rcard-bar-col span { font-size: 10px; color: var(--rd-mute); }

.rcard-mini-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.rcard-mini-stats div { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rcard-mini-stats span { font-size: 11px; color: var(--rd-mute); }
.rcard-mini-stats strong { font-size: 18px; color: var(--rd-navy); }

/* ---------- card editor ---------- */
.rcard-card-editor {
	display: grid;
	grid-template-columns: 160px 1fr 320px;
	gap: 20px;
}
@media (max-width: 980px) {
	.rcard-card-editor { grid-template-columns: 1fr; }
}
.rcard-editor-subnav { display: flex; flex-direction: column; gap: 4px; }
.rcard-subnav-link {
	display: block;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 12px;
	color: #3A4B5C;
	text-decoration: none;
	border: 1px solid transparent;
}
.rcard-subnav-link:hover { background: var(--rd-paper); }
.rcard-subnav-link.active { background: var(--rd-paper); border-color: var(--rd-line); color: var(--rd-navy); font-weight: 600; }

.rcard-editor-body {
	background: #fff;
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	padding: 20px;
}
.rcard-editor-body h4 {
	font-size: 13px; color: var(--rd-navy); margin: 0 0 10px;
	border-top: 1px solid var(--rd-line); padding-top: 14px;
}
.rcard-editor-body h4:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.rcard-section-form label { display: block; font-size: 12px; color: var(--rd-mute); margin-bottom: 10px; }
.rcard-section-form input[type="text"],
.rcard-section-form input[type="email"],
.rcard-section-form input[type="time"],
.rcard-section-form input[type="password"],
.rcard-section-form input[type="file"],
.rcard-section-form textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
	padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rd-line);
	background: var(--rd-paper); font-size: 13px; color: var(--rd-navy);
}
.rcard-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcard-fe-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 6px; }
.rcard-fe-thumb-wide { width: 100%; height: 70px; border-radius: 10px; object-fit: cover; }

.rcard-theme-picker-fe { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rcard-theme-option-fe {
	display: flex; align-items: center; gap: 6px; border: 1px solid var(--rd-line);
	border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; width: auto;
}
.rcard-theme-swatch { display: flex; gap: 2px; }
.rcard-theme-swatch i { width: 10px; height: 10px; border-radius: 50%; display: block; }

.rcard-checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rcard-checkbox-pill {
	display: flex; align-items: center; gap: 6px; border: 1px solid var(--rd-line);
	border-radius: 999px; padding: 7px 14px; font-size: 12px; background: var(--rd-paper);
	color: var(--rd-navy); width: auto; cursor: pointer;
}

.rcard-fe-gallery-existing { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.rcard-fe-gallery-item { text-align: center; font-size: 11px; width: auto; }
.rcard-fe-gallery-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }

.rcard-hours-row-fe { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.rcard-hours-row-fe span:first-child { width: 46px; color: var(--rd-navy); }
.rcard-hours-row-fe input[type="time"] { width: 90px; margin: 0; }

.rcard-fe-save { margin-top: 14px; width: auto; padding: 10px 24px; }

.rcard-editor-preview { position: sticky; top: 16px; align-self: start; }
.rcard-preview-label { display: block; text-align: center; font-size: 12px; color: var(--rd-mute); margin-bottom: 10px; }

/* ---------- share ---------- */
.rcard-share-box { background: #fff; border: 1px solid var(--rd-line); border-radius: 16px; padding: 20px; max-width: 360px; text-align: center; }
.rcard-share-box code { display: block; background: var(--rd-paper); padding: 8px 12px; border-radius: 8px; margin: 8px 0 16px; font-size: 12px; }
.rcard-share-qr img { border-radius: 10px; border: 1px solid var(--rd-line); margin-bottom: 16px; }

/* ---------- leads table ---------- */
.rcard-fe-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; }
.rcard-fe-table th, .rcard-fe-table td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--rd-line); }
.rcard-fe-table th { color: var(--rd-mute); font-weight: 600; background: var(--rd-paper); }

/* ---------- analytics ---------- */
.rcard-fe-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.rcard-fe-stat { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.rcard-fe-stat span { font-size: 11px; color: var(--rd-mute); }
.rcard-fe-stat strong { font-size: 22px; color: var(--rd-navy); }

.rcard-fe-locked {
	background: var(--rd-paper); border: 1px dashed var(--rd-line); border-radius: 12px;
	padding: 16px; font-size: 13px; color: var(--rd-navy); text-align: center;
}

/* ---------- subscription ---------- */
.rcard-fe-plan-current {
	background: var(--rd-navy); color: #fff; border-radius: 14px; padding: 16px 20px;
	display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px;
}
.rcard-fe-plan-current strong { font-size: 16px; }

/* ---------- account ---------- */
.rcard-account-form { background: #fff; border: 1px solid var(--rd-line); border-radius: 16px; padding: 20px; max-width: 380px; }
.rcard-account-form label { display: block; font-size: 12px; color: var(--rd-mute); margin-bottom: 12px; }
.rcard-account-form input {
	display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 12px;
	border-radius: 10px; border: 1px solid var(--rd-line); background: var(--rd-paper); font-size: 13px;
}
.rcard-account-form input:disabled { opacity: 0.6; }
.rcard-account-form button { width: auto; padding: 10px 22px; }
