/*
 * Foodies dashboard — aligned with theme --sfv-* tokens (see style.css).
 */
.fdash-wrap {
	--fdash-primary: var(--sfv-primary, #0f766e);
	--fdash-primary-dark: var(--sfv-primary-dark, #115e59);
	--fdash-text: var(--sfv-text, #1f2937);
	--fdash-muted: var(--sfv-muted, #6b7280);
	--fdash-border: var(--sfv-border, #e5e7eb);
	--fdash-surface: var(--sfv-surface, #f3f4f6);
	--fdash-radius: var(--sfv-radius, 12px);
	--fdash-radius-sm: var(--sfv-radius-sm, 8px);
	--fdash-shadow: var(--sfv-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
	--fdash-focus: color-mix(in srgb, var(--fdash-primary) 25%, transparent);

	max-width: 100%;
	width: 100%;
	margin: 0 auto 2rem;
	padding: 0;
	font-family: inherit;
	color: var(--fdash-text);
}

.fdash-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100000;
	padding: 0.5rem 1rem;
	background: var(--fdash-primary);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--fdash-radius-sm);
}

.fdash-skip-link:focus {
	left: 1rem;
	top: 1rem;
	outline: 2px solid var(--fdash-primary);
	outline-offset: 2px;
}

.fdash-title {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: 800;
	color: var(--fdash-text);
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 0.65rem;
}

.fdash-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 4px;
	background: linear-gradient(135deg, var(--fdash-primary), var(--fdash-primary-dark));
	border-radius: 2px;
}

.fdash-grid {
	display: grid;
	grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
	grid-template-areas: "sidebar main";
	gap: 1.5rem 1.75rem;
	align-items: start;
}

.fdash-sidebar {
	grid-area: sidebar;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-self: start;
	width: 100%;
}

.fdash-nav {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius);
	padding: 10px 0;
	box-shadow: var(--fdash-shadow);
}

.fdash-nav-link {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	color: var(--fdash-muted);
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
	border-left: 4px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fdash-nav-link:hover {
	background: var(--fdash-surface);
	color: var(--fdash-primary);
}

.fdash-nav-link:focus-visible {
	outline: 2px solid var(--fdash-primary);
	outline-offset: -2px;
}

.fdash-nav-link.active {
	background: color-mix(in srgb, var(--fdash-primary) 10%, #fff);
	color: var(--fdash-primary-dark);
	border-left-color: var(--fdash-primary);
	font-weight: 700;
}

.fdash-main {
	grid-area: main;
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius);
	padding: 30px;
	box-shadow: var(--fdash-shadow);
	min-width: 0;
}

.fdash-main h2 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--fdash-text);
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--fdash-surface);
	padding-bottom: 15px;
}

.fdash-login-box {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius);
	padding: 2rem;
	box-shadow: var(--fdash-shadow);
	text-align: center;
	max-width: 420px;
	margin: 2rem auto;
}

.fdash-login-box h3 {
	margin-top: 0;
	color: var(--fdash-text);
}

.fdash-card {
	background: var(--fdash-surface);
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	padding: 1.25rem 1.5rem;
}

.fdash-card p {
	margin: 0.5rem 0;
}

.fdash-fav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fdash-fav-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--fdash-border);
}

.fdash-fav-list li:last-child {
	border-bottom: none;
}

/* Buttons — match Woo primary gradient */
.fdash-btn,
a.fdash-btn,
button.fdash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--fdash-primary), var(--fdash-primary-dark));
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 10px color-mix(in srgb, var(--fdash-primary) 35%, transparent);
}

.fdash-btn:hover,
a.fdash-btn:hover,
button.fdash-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px color-mix(in srgb, var(--fdash-primary) 40%, transparent);
	filter: brightness(1.03);
}

.fdash-btn:focus-visible,
a.fdash-btn:focus-visible,
button.fdash-btn:focus-visible {
	outline: 2px solid var(--fdash-primary);
	outline-offset: 3px;
}

.fdash-btn-secondary,
button.fdash-btn-secondary {
	background: var(--fdash-surface);
	color: var(--fdash-text) !important;
	border: 1px solid var(--fdash-border);
	box-shadow: none;
	font-weight: 600;
}

.fdash-btn-secondary:hover,
button.fdash-btn-secondary:hover {
	background: #fff;
	filter: none;
	box-shadow: var(--fdash-shadow);
}

/* Tables */
.fdash-table-wrap {
	overflow-x: auto;
	margin-top: 15px;
	border-radius: var(--fdash-radius-sm);
	border: 1px solid var(--fdash-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.fdash-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
	margin: 0;
}

.fdash-table th {
	background: var(--fdash-surface);
	padding: 16px 20px;
	font-weight: 700;
	color: var(--fdash-text);
	border-bottom: 1px solid var(--fdash-border);
	white-space: nowrap;
}

.fdash-table td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--fdash-surface);
	color: var(--fdash-muted);
	vertical-align: middle;
}

.fdash-table tr:last-child td {
	border-bottom: none;
}

.fdash-table tbody tr:hover {
	background-color: #fcfcfc;
}

.fdash-table a {
	color: var(--fdash-primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s;
}

.fdash-table a:hover {
	color: var(--fdash-primary-dark);
	text-decoration: underline;
}

.fdash-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-pending {
	background: #fef9c3;
	color: #ca8a04;
	border: 1px solid #fef08a;
}

.status-draft {
	background: var(--fdash-surface);
	color: var(--fdash-muted);
	border: 1px solid var(--fdash-border);
}

.status-publish {
	background: color-mix(in srgb, var(--fdash-primary) 14%, #fff);
	color: var(--fdash-primary-dark);
	border: 1px solid color-mix(in srgb, var(--fdash-primary) 28%, #fff);
}

.fdash-alert {
	padding: 14px 18px;
	border-radius: var(--fdash-radius-sm);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	border-left: 4px solid #ef4444;
	background: #fee2e2;
	color: #991b1b;
}

.fdash-alert--success {
	border-left-color: var(--fdash-primary);
	background: color-mix(in srgb, var(--fdash-primary) 12%, #fff);
	color: var(--fdash-primary-dark);
}

.fdash-notices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.fdash-notice {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
	position: relative;
	overflow: hidden;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 0;
}

.fdash-notice-pending {
	border-color: #bfdbfe;
	background: #f0fdfa;
}

.fdash-notice-warning {
	border-color: #fed7aa;
	background: #fffbeb;
}

.fdash-notice-reviews {
	border-color: #ddd6fe;
	background: #eef2ff;
}

.fdash-notice-number {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
}

.fdash-notice-pending .fdash-notice-number {
	color: #3b82f6;
}

.fdash-notice-warning .fdash-notice-number {
	color: #d97706;
}

.fdash-notice-reviews .fdash-notice-number {
	color: #818cf8;
}

.fdash-notice-text {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--fdash-muted);
	line-height: 1.3;
}

.fdash-notice-icon {
	opacity: 0.85;
}

.fdash-muted {
	color: var(--fdash-muted);
	font-size: 14.5px;
	line-height: 1.5;
}

.fdash-tier-free {
	font-size: 13px;
}

.fdash-form fieldset {
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	padding: 1.25rem 1.25rem 0.5rem;
	margin: 0 0 1.5rem;
	background: #fff;
}

.fdash-form legend {
	font-weight: 700;
	color: var(--fdash-text);
	padding: 0 0.35rem;
}

.fdash-form input[type="text"],
.fdash-form input[type="email"],
.fdash-form input[type="password"],
.fdash-form select,
.fdash-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	background: var(--fdash-surface);
	font-size: 14px;
	color: var(--fdash-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.fdash-form input:focus,
.fdash-form select:focus,
.fdash-form textarea:focus {
	outline: none;
	border-color: var(--fdash-primary);
	box-shadow: 0 0 0 3px var(--fdash-focus);
	background: #fff;
}

.fdash-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--fdash-text);
	font-size: 14px;
}

.fdash-form p {
	margin-bottom: 1rem;
}

/* Tips rail */
.fdash-rail {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius);
	padding: 1.25rem 1.35rem;
	box-shadow: var(--fdash-shadow);
	margin-top: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 1.5rem;
	align-items: stretch;
	align-self: start;
}

.fdash-rail > * {
	flex: 0 0 auto;
	width: 100%;
}

.fdash-rail h4 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--fdash-text);
	margin-bottom: 20px;
}

.fdash-newsletter-box {
	margin-top: 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fdash-border);
}

.fdash-tips-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.fdash-tip-item {
	margin-bottom: 12px;
	font-size: 14px;
	position: relative;
	padding-left: 28px;
	line-height: 1.45;
	color: var(--fdash-muted);
}

.fdash-tip-bullet {
	position: absolute;
	left: 0;
	top: 2px;
	background: var(--fdash-border);
	color: var(--fdash-muted);
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}

@media screen and (max-width: 800px) {
	.fdash-grid {
		grid-template-columns: 1fr;
		grid-template-areas: "main" "sidebar";
	}

	.fdash-nav {
		display: flex;
		flex-wrap: wrap;
		padding: 5px;
	}

	.fdash-nav-link {
		flex: 1 1 50%;
		border-left: none;
		border-bottom: 3px solid transparent;
		justify-content: center;
		text-align: center;
		padding: 10px;
	}

	.fdash-nav-link.active {
		border-left-color: transparent;
		border-bottom-color: var(--fdash-primary);
		background: color-mix(in srgb, var(--fdash-primary) 10%, #fff);
	}

	.fdash-table thead {
		display: none;
	}

	.fdash-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid var(--fdash-border);
		border-radius: var(--fdash-radius-sm);
		background: #fff;
	}

	.fdash-table td {
		display: block;
		text-align: right;
		padding: 12px 15px;
		border-bottom: 1px solid var(--fdash-surface);
	}

	.fdash-table td:last-child {
		border-bottom: none;
	}

	.fdash-table td::before {
		content: attr(data-label);
		float: left;
		font-weight: 700;
		color: var(--fdash-text);
	}
}

/* --------------------------------------------------------------------------
   Featured / upgrade (membership shortcodes)
-------------------------------------------------------------------------- */
.sfv-badge-featured {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--fdash-primary), var(--fdash-primary-dark));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.sfv-upgrade-box {
	background: color-mix(in srgb, var(--fdash-primary) 6%, #fff);
	border: 1.5px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	padding: 14px 16px;
	margin-top: 6px;
}

.sfv-upgrade-box.sfv-upgrade-active {
	background: color-mix(in srgb, var(--fdash-primary) 10%, #fff);
	border-color: color-mix(in srgb, var(--fdash-primary) 35%, var(--fdash-border));
}

.sfv-upgrade-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fdash-primary-dark);
	margin: 0 0 8px;
}

.sfv-upgrade-perks {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--fdash-muted);
}

.sfv-upgrade-perks li {
	padding: 3px 0;
	border-bottom: 1px solid var(--fdash-border);
}

.sfv-upgrade-perks li:last-child {
	border: none;
}

.sfv-upgrade-price {
	font-size: 18px;
	font-weight: 800;
	color: var(--fdash-primary);
	margin: 0 0 10px;
}

.sfv-upgrade-btn {
	display: inline-block;
	background: var(--fdash-primary);
	color: #fff !important;
	padding: 8px 18px;
	border-radius: var(--fdash-radius-sm);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.2s ease, background 0.2s ease;
}

.sfv-upgrade-btn:hover {
	background: var(--fdash-primary-dark);
	filter: brightness(1.02);
}

.sfv-upgrade-note {
	font-size: 12px;
	color: var(--fdash-muted);
	margin: 6px 0 0;
}

/* --------------------------------------------------------------------------
   Analytics tab
-------------------------------------------------------------------------- */
.fdash-analytics-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.fdash-analytics-kpi {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	padding: 16px 18px;
	text-align: center;
	box-shadow: var(--fdash-shadow);
}

.fdash-analytics-kpi .kpi-num {
	display: block;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 4px;
}

.fdash-analytics-kpi .kpi-num--primary {
	color: var(--fdash-primary);
}

.fdash-analytics-kpi .kpi-num--amber {
	color: #d97706;
}

.fdash-analytics-kpi .kpi-num--red {
	color: #dc2626;
}

.fdash-analytics-kpi .kpi-num--green {
	color: #059669;
}

.fdash-analytics-kpi .kpi-lbl {
	font-size: 12px;
	color: var(--fdash-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fdash-analytics-table-wrap {
	overflow-x: auto;
	border-radius: var(--fdash-radius-sm);
	border: 1px solid var(--fdash-border);
	box-shadow: var(--fdash-shadow);
}

.fdash-analytics-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: #fff;
}

.fdash-analytics-table th {
	background: var(--fdash-surface);
	padding: 10px 14px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	color: var(--fdash-muted);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-bottom: 1px solid var(--fdash-border);
}

.fdash-analytics-table td {
	padding: 11px 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--fdash-border) 50%, #fff);
	vertical-align: middle;
}

.fdash-analytics-table tr:last-child td {
	border-bottom: none;
}

.fdash-bar-wrap {
	width: 100%;
	background: var(--fdash-surface);
	border-radius: 99px;
	height: 8px;
	min-width: 60px;
}

.fdash-bar-fill {
	height: 8px;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--fdash-primary), var(--fdash-primary-dark));
	transition: width 0.4s ease;
}

.fdash-type-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
}

.fdash-type-listing {
	background: color-mix(in srgb, #3b82f6 18%, #fff);
	color: #1e40af;
}

.fdash-type-coupon {
	background: color-mix(in srgb, #f59e0b 20%, #fff);
	color: #92400e;
}

.fdash-type-event {
	background: color-mix(in srgb, var(--fdash-primary) 16%, #fff);
	color: var(--fdash-primary-dark);
}

.fdash-analytics-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--fdash-muted);
	border: 1px dashed var(--fdash-border);
	border-radius: var(--fdash-radius-sm);
	background: #fff;
}

.fdash-analytics-footnote {
	margin-top: 14px;
	font-size: 12px;
	color: var(--fdash-muted);
	line-height: 1.5;
}

.fdash-analytics-footnote code {
	font-size: 11px;
	background: var(--fdash-surface);
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid var(--fdash-border);
}

.fdash-metric-sublabel {
	color: var(--fdash-muted);
	font-size: 11px;
}

.fdash-analytics-type-ico {
	margin-right: 4px;
}

.fdash-analytics-extra {
	color: var(--fdash-muted);
	font-size: 12px;
}

.fdash-analytics-bar-cell {
	width: 120px;
}

/* --------------------------------------------------------------------------
   Help center
-------------------------------------------------------------------------- */
.fdash-help-wrap {
	max-width: 780px;
}

.fdash-help-wrap > h2:first-of-type {
	margin-top: 0;
}

.fdash-help-intro {
	font-size: 14px;
	color: var(--fdash-muted);
	margin-bottom: 28px;
}

.fdash-help-back {
	margin-bottom: 20px;
}

.fdash-help-back a {
	color: var(--fdash-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.fdash-help-back a:hover {
	text-decoration: underline;
}

.fdash-help-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.fdash-help-nav a {
	text-decoration: none;
	background: var(--fdash-surface);
	color: var(--fdash-text);
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
	border: 1px solid transparent;
}

.fdash-help-nav a:hover {
	background: var(--fdash-primary);
	color: #fff;
}

.fdash-help-topic {
	background: #fff;
	border: 1px solid var(--fdash-border);
	border-radius: var(--fdash-radius);
	padding: 26px 28px;
	margin-bottom: 18px;
	scroll-margin-top: 80px;
	box-shadow: var(--fdash-shadow);
}

.fdash-help-topic-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.fdash-help-topic-icon {
	font-size: 28px;
	line-height: 1;
}

.fdash-help-topic-title {
	font-size: 17px;
	font-weight: 800;
	color: var(--fdash-text);
	margin: 0;
}

.fdash-help-steps {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	counter-reset: step-counter;
}

.fdash-help-steps li {
	counter-increment: step-counter;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fdash-surface);
	font-size: 14px;
	color: var(--fdash-text);
	line-height: 1.5;
}

.fdash-help-steps li:last-child {
	border-bottom: none;
}

.fdash-help-steps li::before {
	content: counter(step-counter);
	min-width: 26px;
	height: 26px;
	background: var(--fdash-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.fdash-help-tip {
	background: color-mix(in srgb, var(--fdash-primary) 8%, #fff);
	border-left: 4px solid var(--fdash-primary);
	padding: 11px 16px;
	border-radius: 0 var(--fdash-radius-sm) var(--fdash-radius-sm) 0;
	font-size: 13px;
	color: var(--fdash-primary-dark);
}

.fdash-help-tip::before {
	content: "💡 Tip: ";
	font-weight: 700;
}

.fdash-help-contact {
	background: color-mix(in srgb, var(--fdash-primary) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--fdash-primary) 25%, var(--fdash-border));
	border-radius: var(--fdash-radius);
	padding: 22px 26px;
	text-align: center;
	margin-top: 28px;
}

.fdash-help-contact h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--fdash-primary-dark);
	margin: 0 0 6px;
}

.fdash-help-contact p {
	font-size: 13px;
	color: var(--fdash-text);
	margin: 0;
	line-height: 1.5;
}

/* Login gate for standalone help shortcode */
.fdash-help-login-notice {
	background: #fffbeb;
	border: 1px solid #fde68a;
	padding: 16px 20px;
	border-radius: var(--fdash-radius-sm);
	font-size: 14px;
	color: var(--fdash-text);
	box-shadow: var(--fdash-shadow);
}

.fdash-help-login-notice a {
	color: var(--fdash-primary);
	font-weight: 700;
}
