/* Premium Client Fitness Dashboard Stylesheet */

/* Design Tokens & Theme Variables */
:root {
	--bg-primary: #0b1329;
	--bg-secondary: #1c2541;
	--bg-tertiary: #3a506b;
	--accent-teal: #06b6d4;
	--accent-emerald: #10b981;
	--accent-coral: #f43f5e;
	--accent-indigo: #6366f1;
	--text-primary: #f8fafc;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;

	--font-primary: 'Inter', sans-serif;
	--font-title: 'Outfit', sans-serif;

	--card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
	--glass-bg: rgba(28, 37, 65, 0.7);
	--glass-border: rgba(255, 255, 255, 0.08);
	--radius-lg: 16px;
	--radius-md: 12px;
	--radius-sm: 8px;
}

/* Standalone Template Body Reset & WP Admin Bar Hider */
html,
body {
	margin: 0 !important;
	padding: 0 !important;
	background-color: var(--bg-primary) !important;
	/* dvh = Dynamic Viewport Height — adjusts as mobile browser toolbar shows/hides.
	   Falls back to 100vh on unsupported browsers. */
	min-height: 100dvh;
	min-height: 100vh;
	/* Fallback */
	width: 100vw;
	overflow-x: hidden;
}

/* Force hide WordPress Admin Bar in fullscreen dashboard mode */
#wpadminbar {
	display: none !important;
}

html {
	margin-top: 0 !important;
}

/* Base Container */
.fitness-dashboard-root {
	box-sizing: border-box;
	font-family: var(--font-primary);
	background-color: var(--bg-primary);
	color: var(--text-primary);
	padding: 24px;
	/* Use dvh so the container auto-adjusts with dynamic toolbar */
	min-height: 100dvh;
	min-height: 100vh;
	/* Fallback */
	width: 100%;
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
}

.fitness-dashboard-root *,
.fitness-dashboard-root *::before,
.fitness-dashboard-root *::after {
	box-sizing: border-box;
}

/* Spinner & Loading */
.fd-loading {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 50vh;
	color: var(--text-secondary);
}

.fd-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(255, 255, 255, 0.1);
	border-top-color: var(--accent-teal);
	border-radius: 50%;
	animation: fd-spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes fd-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Authentication Page Styles */
.fd-login-wrapper {
	max-width: 420px;
	margin: 10vh auto;
	padding: 40px 30px;
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--card-shadow);
	text-align: center;
	animation: fd-fade-up 0.5s ease-out;
}

.fd-login-logo {
	margin-bottom: 25px;
}

.fd-login-logo span.dashicons-lock {
	font-size: 48px;
	color: var(--accent-teal);
	width: 48px;
	height: 48px;
}

.fd-login-wrapper h2 {
	font-family: var(--font-title);
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 10px;
	color: #fff;
	letter-spacing: -0.02em;
}

.fd-login-wrapper p {
	color: var(--text-secondary);
	margin-bottom: 30px;
	font-size: 14px;
	line-height: 1.4;
}

.fd-input-group {
	margin-bottom: 20px;
	text-align: left;
}

.fd-input-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.fd-input-group input[type="text"],
.fd-input-group input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	background: rgba(11, 19, 41, 0.6);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	color: #fff;
	font-size: 16px;
	transition: all 0.2s;
}

.fd-input-group input:focus {
	border-color: var(--accent-teal);
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
	outline: none;
}

.fd-checkbox-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	font-size: 14px;
	color: var(--text-secondary);
}

.fd-checkbox-row label {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.fd-checkbox-row input {
	margin-right: 8px;
}

.fd-login-btn {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
	border: none;
	border-radius: var(--radius-md);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
	transition: all 0.2s;
}

.fd-login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}

.fd-error-msg {
	background: rgba(244, 63, 94, 0.15);
	border: 1px solid rgba(244, 63, 94, 0.3);
	color: #fda4af;
	padding: 12px;
	border-radius: var(--radius-md);
	margin-bottom: 20px;
	font-size: 14px;
	display: none;
}

/* Main Dashboard Structure - Mobile First */
.fd-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--glass-border);
	width: 100%;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.fd-logo-area h1 {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 24px;
	margin: 0;
	background: linear-gradient(to right, #fff, var(--accent-teal));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -0.02em;
}

.fd-logo-area p {
	margin: 2px 0 0 0;
	font-size: 12px;
	color: var(--text-secondary);
}

.fd-user-badge {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fd-user-name {
	font-weight: 600;
	font-size: 14px;
	display: none;
}

@media (min-width: 480px) {
	.fd-user-name {
		display: inline;
	}
}

.fd-logout-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--glass-border);
	padding: 8px 16px;
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.fd-logout-btn:hover {
	background: rgba(244, 63, 94, 0.15);
	color: #fff;
	border-color: rgba(244, 63, 94, 0.3);
}

/* Mobile Bottom Navigation */
.fd-mobile-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(11, 19, 41, 0.95);
	backdrop-filter: blur(20px);
	border-top: 1px solid var(--glass-border);
	display: flex;
	justify-content: space-around;
	/* Base padding + env(safe-area-inset-bottom) for notched iPhones.
	   This also prevents the gap when Chrome toolbar disappears. */
	padding: 12px 0 max(12px, env(safe-area-inset-bottom, 12px));
	z-index: 100;
	/* Force GPU compositing layer — prevents Chrome iOS from leaving
	   the nav in a stale/frozen position when the toolbar slides away. */
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	/* Use will-change sparingly here to tell the browser this element
	   is always in the composited layer, avoiding repaint on scroll. */
	will-change: transform;
}

@media (min-width: 768px) {
	.fd-mobile-nav {
		display: none;
		/* Hide on desktop */
	}
}

.fd-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 11px;
	font-weight: 600;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	flex: 1;
	transition: color 0.2s;
}

.fd-nav-item.active {
	color: var(--accent-teal);
}

.fd-nav-item svg {
	width: 22px;
	height: 22px;
	margin-bottom: 4px;
	fill: currentColor;
}

/* Mobile More Menu (Slide-in) */
.fd-mobile-more-menu {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(11, 19, 41, 0.98);
	backdrop-filter: blur(20px);
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 20px 20px calc(80px + env(safe-area-inset-bottom, 12px));
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 99; /* Below the nav bar (which is 100) */
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.fd-mobile-more-menu.open {
	transform: translateY(0);
}

.fd-more-menu-header {
	font-family: var(--font-title);
	font-size: 14px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
	text-align: center;
}

.fd-nav-item-more {
	display: flex;
	align-items: center;
	gap: 15px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	padding: 16px 20px;
	border-radius: var(--radius-md);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s;
}

.fd-nav-item-more:hover, .fd-nav-item-more.active {
	background: rgba(6, 182, 212, 0.15);
	border-color: var(--accent-teal);
	color: #fff;
}

.fd-more-icon {
	font-size: 24px;
}

@media (min-width: 768px) {
	.fd-mobile-more-menu {
		display: none;
	}
}

/* Responsive Dashboard Layout */
.fd-grid-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-bottom: 90px;
	/* Space for mobile nav */
}

.fd-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Toggle displays for tabs on mobile */
.fd-tab-panel {
	display: none;
}

.fd-tab-panel.active {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

@media (min-width: 768px) {
	.fd-header {
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.fd-column {
		align-items: stretch;
	}

	.fd-card {
		max-width: 100%;
	}

	.fd-grid-container {
		display: grid;
		grid-template-columns: 1.15fr 1.35fr 1.5fr;
		gap: 24px;
		padding-bottom: 24px;
	}

	.fd-tab-panel {
		display: flex !important;
		/* Always show all columns on desktop */
		gap: 24px;
	}
}

/* Card Styling (Glassmorphism) */
.fd-card {
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--card-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	max-width: 480px;
}

.fd-card:hover {
	box-shadow: 0 12px 30px -5px rgba(6, 182, 212, 0.15), 0 8px 16px -6px rgba(6, 182, 212, 0.08);
}

/* PROFILE CARD */
.fd-profile-card {
	text-align: center;
}

.fd-belongs-to {
	font-family: var(--font-title);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.15em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.fd-avatar-container {
	position: relative;
	width: 90px;
	height: 90px;
	margin: 0 auto 15px auto;
}

.fd-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent-teal);
	box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.fd-avatar-overlay {
	transition: background 0.2s;
}

.fd-avatar-overlay:hover {
	background: rgba(0,0,0,0.6) !important;
}

.fd-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top: 3px solid #fff;
	border-radius: 50%;
	animation: fd-spin 1s linear infinite;
}

@keyframes fd-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.fd-profile-name {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 24px;
	margin: 0;
	letter-spacing: -0.01em;
}

.fd-profile-meta {
	color: var(--text-secondary);
	font-size: 13px;
	margin: 4px 0 0 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* STAIRCASE JOURNEY */
.fd-staircase-title {
	font-family: var(--font-title);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
	margin-bottom: 20px;
	text-align: center;
}

.fd-staircase {
	display: flex;
	flex-direction: column-reverse;
	/* Climb up the list */
	position: relative;
	padding: 10px 0;
	margin-left: 20px;
}

.fd-stair-step {
	position: relative;
	height: 38px;
	display: flex;
	align-items: center;
	padding-left: 45px;
	border-left: 3px solid rgba(255, 255, 255, 0.05);
	transition: all 0.3s;
}

.fd-stair-step::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 13px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--bg-secondary);
	border: 2px solid var(--text-muted);
	transition: all 0.3s;
}

.fd-stair-step.completed::before {
	background: var(--accent-emerald);
	border-color: var(--accent-emerald);
	box-shadow: 0 0 8px var(--accent-emerald);
}

.fd-stair-step.active::before {
	background: var(--accent-teal);
	border-color: var(--accent-teal);
	box-shadow: 0 0 10px var(--accent-teal);
}

.fd-stair-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	transition: color 0.3s;
}

.fd-stair-step.active .fd-stair-label {
	color: #fff;
	font-weight: 700;
}

.fd-stair-step.completed .fd-stair-label {
	color: var(--text-secondary);
}

/* Runner character icon overlay */
.fd-runner-icon {
	position: absolute;
	left: -18px;
	width: 32px;
	height: 32px;
	background: var(--accent-coral);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	box-shadow: 0 0 12px var(--accent-coral);
	z-index: 10;
	transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
	animation: fd-pulse-glow 2s infinite;
}

@keyframes fd-pulse-glow {

	0%,
	100% {
		box-shadow: 0 0 8px var(--accent-coral);
	}

	50% {
		box-shadow: 0 0 20px rgba(244, 63, 94, 0.8);
	}
}

/* BADGES EARNED */
.fd-badges-title {
	font-family: var(--font-title);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-muted);
	letter-spacing: 0.1em;
	margin-top: 20px;
	margin-bottom: 15px;
	border-top: 1px solid var(--glass-border);
	padding-top: 15px;
}

.fd-badges-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.fd-badges-count {
	text-align: center;
}

.fd-badges-count-num {
	font-family: var(--font-title);
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.fd-badges-count-lbl {
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-top: 4px;
}

.fd-badges-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 1;
}

.fd-badge-icon {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
	color: var(--text-muted);
	position: relative;
	transition: all 0.3s;
}

.fd-badge-icon.unlocked {
	background: rgba(6, 182, 212, 0.15);
	color: #eab308;
	box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.fd-badge-icon.unlocked.bronze {
	color: #b45309;
}

.fd-badge-icon.unlocked.silver {
	color: #94a3b8;
}

.fd-badge-icon.unlocked.gold {
	color: #fbbf24;
}

.fd-badge-icon.unlocked.star {
	color: #38bdf8;
}

.fd-badge-icon.unlocked.trophy {
	color: #a855f7;
}

.fd-badge-icon .fd-tooltip {
	visibility: hidden;
	background-color: #0f172a;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 10px;
	position: absolute;
	z-index: 100;
	bottom: 125%;
	left: 50%;
	margin-left: -60px;
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 10px;
	width: 120px;
	box-shadow: var(--card-shadow);
	pointer-events: none;
}

.fd-badge-icon:hover .fd-tooltip {
	visibility: visible;
	opacity: 1;
}

/* NET GAIN / LOSS */
.fd-net-gain-card {
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(16, 185, 129, 0.05));
	border-color: rgba(6, 182, 212, 0.25);
	text-align: center;
}

.fd-net-title {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent-teal);
	margin-bottom: 8px;
}

.fd-net-val {
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 46px;
	color: #fff;
	line-height: 1;
}

.fd-net-unit {
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	margin-top: 4px;
	letter-spacing: 0.05em;
}

/* DIAL / GAUGE & QUOTE */
.fd-gauge-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 10px 0;
}

.fd-gauge-svg {
	width: 180px;
	height: 110px;
}

.fd-gauge-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.05);
	stroke-width: 12;
	stroke-linecap: round;
}

.fd-gauge-fill {
	fill: none;
	stroke: url(#fd-gauge-gradient);
	stroke-width: 12;
	stroke-linecap: round;
	stroke-dasharray: 220;
	stroke-dashoffset: 220;
	transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.fd-gauge-value {
	position: absolute;
	bottom: 30px;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 26px;
	color: #fff;
}

.fd-quote-block {
	text-align: center;
	margin-top: 10px;
	position: relative;
}

.fd-quote-text {
	font-style: italic;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}

.fd-quote-text::before {
	content: '“';
	font-size: 24px;
	color: var(--accent-teal);
	line-height: 0;
	vertical-align: -5px;
}

.fd-quote-text::after {
	content: '”';
	font-size: 24px;
	color: var(--accent-teal);
	line-height: 0;
	vertical-align: -10px;
}

/* CIRCULAR STATS GRID */
.fd-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

@media (min-width: 480px) {
	.fd-stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fd-stat-circle-card {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-md);
	padding: 15px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.2s;
}

.fd-stat-circle-card:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(6, 182, 212, 0.15);
}

.fd-stat-circle-lbl {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 12px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}

.fd-progress-circle-wrap {
	position: relative;
	width: 66px;
	height: 66px;
}

.fd-circle-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.fd-circle-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.04);
	stroke-width: 6;
}

.fd-circle-fill {
	fill: none;
	stroke: var(--accent-teal);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-dasharray: 163.36;
	stroke-dashoffset: 163.36;
	transition: stroke-dashoffset 1s ease-out;
}

.fd-circle-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.fd-circle-subtext {
	font-size: 9px;
	color: var(--text-secondary);
	margin-top: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* WORKOUT SCHEDULE CARD */
.fd-workout-card {
	border-color: rgba(99, 102, 241, 0.2);
}

.fd-workout-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--glass-border);
	padding-bottom: 10px;
}

.fd-workout-title {
	font-family: var(--font-title);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.fd-workout-status-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 12px;
	background: rgba(244, 63, 94, 0.15);
	color: var(--accent-coral);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fd-workout-status-badge.completed {
	background: rgba(16, 185, 129, 0.15);
	color: var(--accent-emerald);
}

.fd-exercise-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fd-exercise-item {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-md);
	padding: 15px;
}

.fd-exercise-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.fd-ex-name {
	font-weight: 600;
	font-size: 15px;
	color: #fff;
}

.fd-ex-check {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.fd-ex-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--accent-emerald);
}

/* WORKOUT BUILDER & ITEM METRICS */
.fd-exercise-target-row {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(11, 19, 41, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.03);
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	margin-top: 10px;
}

.fd-target-badge {
	background: rgba(99, 102, 241, 0.15);
	color: var(--accent-indigo);
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fd-target-text {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
}

.fd-exercise-metrics-inputs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 10px;
}

.fd-metric-input-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fd-metric-input-col label {
	font-size: 9px;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fd-metric-input-col input {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	color: #fff;
	padding: 8px 10px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	width: 100%;
	transition: border-color 0.2s, background-color 0.2s;
}

.fd-metric-input-col input:focus {
	border-color: var(--accent-teal);
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

/* Custom Sets Container */
.fd-exercise-sets-container {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fd-exercise-set-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.02);
	padding: 12px 16px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.fd-set-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fd-set-label {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}

.fd-set-target-hint {
	font-size: 11px;
	color: var(--accent-teal);
	font-weight: 600;
	opacity: 0.9;
}

.fd-set-inputs-wrap {
	display: flex;
	gap: 12px;
}

.fd-set-input-group {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: rgba(0, 0, 0, 0.2);
}

.fd-set-input-prefix {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0 8px;
	display: flex;
	align-items: center;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.fd-set-input-group input {
	width: 50px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	padding: 8px 4px;
}

.fd-set-input-group input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.05);
}

.fd-workout-submit-row {
	margin-top: 20px;
	text-align: right;
}

.fd-workout-save-btn {
	background: linear-gradient(135deg, var(--accent-indigo), var(--accent-teal));
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: var(--radius-md);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
	transition: all 0.2s;
}

.fd-workout-save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.fd-no-workout {
	text-align: center;
	color: var(--text-secondary);
	padding: 30px 10px;
	font-size: 14px;
}

/* DYNAMIC CHARTS PANEL */
.fd-chart-panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fd-chart-card {
	padding: 20px;
}

.fd-chart-card-title {
	font-family: var(--font-title);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
	margin-top: 0;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fd-chart-container {
	position: relative;
	width: 100%;
	height: 200px;
}

/* FLOATING ACTION BUTTON (FAB) & MODAL */
.fd-fab {
	position: fixed;
	bottom: 96px;
	/* Raised from 70px to clear mobile nav completely */
	right: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-coral), var(--accent-indigo));
	color: white;
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
	cursor: pointer;
	z-index: 99;
	transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (min-width: 768px) {
	.fd-fab {
		bottom: 30px;
		right: 30px;
	}
}

.fd-fab:hover {
	transform: scale(1.1) rotate(90deg);
	box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
}

.fd-fab svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Modal Styling */
.fd-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(11, 19, 41, 0.85);
	backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.fd-modal-overlay.open {
	opacity: 1;
	pointer-events: auto;
}

.fd-modal-card {
	background: var(--bg-secondary);
	border: 1px solid var(--glass-border);
	width: 90%;
	max-width: 460px;
	border-radius: var(--radius-lg);
	box-shadow: var(--card-shadow);
	transform: translateY(30px);
	transition: transform 0.3s;
	overflow: hidden;
}

.fd-modal-overlay.open .fd-modal-card {
	transform: translateY(0);
}

.fd-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--glass-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fd-modal-header h3 {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 20px;
}

.fd-modal-close-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.fd-modal-body {
	padding: 24px;
	max-height: 60vh;
	overflow-y: auto;
}

.fd-modal-footer {
	padding: 15px 24px;
	border-top: 1px solid var(--glass-border);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* ================================================================
   LOG DAILY PROGRESS MODAL — Redesigned Premium Layout
   ================================================================ */

/* Wider card for the progress modal */
.fd-progress-modal-card {
	max-width: 500px;
}

/* Gradient header */
.fd-progress-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px 18px;
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.12));
	border-bottom: 1px solid var(--glass-border);
}

.fd-progress-modal-title-group {
	display: flex;
	align-items: center;
	gap: 14px;
}

.fd-progress-modal-icon {
	font-size: 32px;
	line-height: 1;
	filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.fd-progress-modal-header h3 {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 800;
	font-size: 20px;
	color: #fff;
}

.fd-progress-modal-date {
	margin: 2px 0 0 0;
	font-size: 12px;
	color: var(--accent-teal);
	font-weight: 500;
}

/* Scrollable body */
.fd-progress-modal-body {
	padding: 20px 22px;
	max-height: 62vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	scrollbar-width: thin;
	scrollbar-color: var(--accent-teal) transparent;
}

/* Each field block */
.fd-plog-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fd-plog-field--full {
	width: 100%;
}

/* 2-column grid */
.fd-plog-2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

/* Label row with emoji icon */
.fd-plog-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-secondary);
}

.fd-plog-icon {
	font-size: 16px;
	line-height: 1;
}

.fd-plog-sublabel {
	font-size: 10px;
	color: var(--text-muted);
	margin-top: -4px;
	text-align: center;
}

/* Base input style */
.fd-plog-input {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 10px 12px;
	width: 100%;
	transition: border-color 0.2s, box-shadow 0.2s;
	-moz-appearance: textfield;
}

.fd-plog-input::-webkit-outer-spin-button,
.fd-plog-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.fd-plog-input:focus {
	outline: none;
	border-color: var(--accent-teal);
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.fd-plog-input--center {
	text-align: center;
}

/* Input with unit badge (KG, min) */
.fd-plog-unit-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color 0.2s;
}

.fd-plog-unit-wrap:focus-within {
	border-color: var(--accent-teal);
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.fd-plog-unit-wrap .fd-plog-input {
	border: none;
	border-radius: 0;
	flex: 1;
	box-shadow: none;
}

.fd-plog-unit-wrap .fd-plog-input:focus {
	box-shadow: none;
}

.fd-plog-unit {
	background: rgba(6, 182, 212, 0.15);
	color: var(--accent-teal);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0 12px;
	display: flex;
	align-items: center;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stepper (+/-) widget */
.fd-plog-stepper {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color 0.2s;
}

.fd-plog-stepper:focus-within {
	border-color: var(--accent-teal);
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.fd-stepper-btn {
	background: rgba(255, 255, 255, 0.05);
	border: none;
	color: var(--accent-teal);
	font-size: 20px;
	font-weight: 300;
	width: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	flex-shrink: 0;
}

.fd-stepper-btn:hover {
	background: rgba(6, 182, 212, 0.15);
}

.fd-stepper-btn:active {
	background: rgba(6, 182, 212, 0.25);
}

.fd-plog-stepper .fd-plog-input {
	border: none;
	border-radius: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: none;
	min-width: 0;
}

.fd-plog-stepper .fd-plog-input:focus {
	box-shadow: none;
}

/* ---- CSS-only 5-Star Rating ----
   Uses flex row-reverse so input[1] is rightmost in DOM order,
   but the :checked ~ label sibling selector lights up correctly. */
.fd-star-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	padding: 6px 0;
}

.fd-star-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.fd-star-label {
	font-size: 32px;
	color: rgba(255, 255, 255, 0.12);
	cursor: pointer;
	transition: color 0.15s, transform 0.15s;
	line-height: 1;
	user-select: none;
}

/* Hover: light up this star and all stars to the right (higher value)
   because of row-reverse, "right" in visual = earlier in DOM */
.fd-star-label:hover,
.fd-star-label:hover~.fd-star-label {
	color: #fbbf24;
	transform: scale(1.15);
}

/* Checked: light up selected star and all higher stars */
.fd-star-radio:checked+.fd-star-label,
.fd-star-radio:checked+.fd-star-label~.fd-star-label {
	color: #fbbf24;
}

/* "Skip" label — shown at the far left after the stars */
.fd-star-skip-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
	cursor: pointer;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	margin-left: 6px;
	transition: all 0.15s;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fd-star-skip-label:hover,
.fd-star-radio:checked+.fd-star-skip-label {
	background: rgba(244, 63, 94, 0.15);
	color: var(--accent-coral);
	border-color: rgba(244, 63, 94, 0.3);
}

/* ---- Mood Slider ---- */
.fd-plog-mood-val {
	margin-left: auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent-teal);
	background: rgba(6, 182, 212, 0.1);
	padding: 2px 8px;
	border-radius: 10px;
}

.fd-plog-mood-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fd-plog-mood-wrap input[type="range"] {
	width: 100%;
	accent-color: var(--accent-teal);
	height: 6px;
	cursor: pointer;
}

.fd-plog-mood-ticks {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--text-muted);
}

/* Footer */
.fd-progress-modal-footer {
	padding: 16px 22px;
	border-top: 1px solid var(--glass-border);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.fd-plog-cancel-btn {
	background: none;
	border: 1px solid var(--glass-border);
	color: var(--text-secondary);
	padding: 10px 20px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.fd-plog-cancel-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.fd-plog-save-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
	transition: all 0.2s;
}

.fd-plog-save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.fd-plog-save-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.fd-plog-save-btn svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Animations */
@keyframes fd-fade-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* YouTube Button style */
.fd-video-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--accent-coral);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin-left: 8px;
	vertical-align: middle;
	transition: transform 0.2s, color 0.2s;
}

.fd-video-btn:hover {
	transform: scale(1.15);
	color: #ff0000 !important;
}

.fd-video-btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ============================================================
   Native <dialog> Video Player
   Renders in the browser top layer — zero z-index/clip issues.
   ============================================================ */
.fd-video-dialog {
	/* Reset browser dialog defaults */
	border: none;
	padding: 0;
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
	width: min(92vw, 680px);
	max-height: 90vh;
	overflow: hidden;
}

/* Only show as flex when the dialog is actually open */
.fd-video-dialog[open] {
	display: flex;
	flex-direction: column;
}

/* YouTube Shorts Layout Override */
.fd-video-dialog.fd-video-dialog--short {
	width: min(92vw, 360px);
}

.fd-video-dialog.fd-video-dialog--short .fd-video-dialog-body {
	aspect-ratio: 9 / 16;
}

/* Dark blurred backdrop rendered in the top layer alongside the dialog */
.fd-video-dialog::backdrop {
	background: rgba(11, 19, 41, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.fd-video-dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid var(--glass-border);
}

.fd-video-dialog-header h3 {
	margin: 0;
	font-family: var(--font-title);
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 40px);
}

.fd-video-dialog-body {
	/* Responsive 16:9 iframe container */
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.fd-video-dialog-body iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Mobile Header & Breathing Room Overrides (max-width: 480px) ── */
@media (max-width: 480px) {
	.fitness-dashboard-root {
		padding: 16px;
	}

	.fd-header {
		flex-wrap: wrap;
		gap: 12px;
		margin-bottom: 20px;
	}

	.fd-logo-area h1 {
		font-size: 20px;
	}

	.fd-logout-btn {
		padding: 6px 12px;
		font-size: 12px;
	}
}

/* Day Tabs for Client Workout Plan */
.fd-day-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-top: 15px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--glass-border);
	scrollbar-width: none;
}

.fd-day-tabs::-webkit-scrollbar {
	display: none;
}

.fd-day-tab {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--glass-border);
	padding: 8px 16px;
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.fd-day-tab:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.fd-day-tab.active {
	background: var(--accent-teal);
	border-color: var(--accent-teal);
	color: #fff;
	box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.fd-day-tab.completed::after {
	content: '✓';
	font-weight: bold;
	color: var(--accent-emerald);
	margin-left: 2px;
}

.fd-day-tab.active.completed::after {
	color: #fff;
}

.fd-day-tab-completed-badge {
	font-size: 11px;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.fd-day-tab-completed-badge.completed {
	background: rgba(16, 185, 129, 0.15);
	color: var(--accent-emerald);
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.fd-day-tab-completed-badge.pending {
	background: rgba(244, 63, 94, 0.15);
	color: var(--accent-coral);
	border: 1px solid rgba(244, 63, 94, 0.3);
}

.fd-workout-days-summary {
	font-size: 12px;
	color: var(--text-secondary);
	font-weight: 500;
}

/* ── Rest Timer Banner ──────────────────────────────────────── */
.fd-timer-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0 0 0 12px;
	/* right padding handled by dismiss */
	height: 56px;
	background: rgba(10, 17, 32, 0.97);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
	font-family: var(--font-primary);
	transform: translateY(-100%);
	transition: transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
	overflow: hidden;
}

.fd-timer-banner:not(.collapsed) {
	transform: translateY(0);
}

/* Scrollable middle section */
.fd-timer-scroll-track {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE/Edge */
	/* Fade-out right hint */
	-webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
	mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.fd-timer-scroll-track::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

/* Dismiss always pinned at far right */
.fd-timer-dismiss {
	margin-left: 0;
	flex-shrink: 0;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.25);
	font-size: 20px;
	line-height: 1;
	padding: 0 12px;
	height: 56px;
	cursor: pointer;
	transition: color 0.18s, background 0.18s;
	display: flex;
	align-items: center;
}

.fd-timer-dismiss:hover {
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.07);
}



/* ── Left section: ring + time ──────────────────────── */
.fd-timer-banner-left {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 16px;
	flex-shrink: 0;
}

.fd-timer-ring-wrap {
	width: 34px;
	height: 34px;
	position: relative;
	flex-shrink: 0;
}

.fd-timer-ring-wrap .fd-timer-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	position: absolute;
	top: 0;
	left: 0;
}

.fd-timer-time-block {
	display: flex;
	flex-direction: column;
	line-height: 1;
	gap: 2px;
}

.fd-timer-banner .fd-timer-display {
	font-family: var(--font-title);
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.03em;
	line-height: 1;
}

.fd-timer-banner .fd-timer-label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--text-muted);
	text-transform: uppercase;
}

/* ── Visual separator ───────────────────────────────── */
.fd-timer-sep {
	width: 1px;
	height: 28px;
	background: rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
	margin: 0 12px;
}

/* ── Preset chips ───────────────────────────────────── */
.fd-timer-banner .fd-timer-presets {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.fd-timer-banner .fd-timer-preset-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 20px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
	font-weight: 600;
	padding: 5px 11px;
	cursor: pointer;
	transition: all 0.18s;
	font-family: var(--font-primary);
	white-space: nowrap;
}

.fd-timer-banner .fd-timer-preset-btn:hover {
	background: rgba(6, 182, 212, 0.14);
	color: var(--accent-teal);
	border-color: rgba(6, 182, 212, 0.35);
}

.fd-timer-banner .fd-timer-preset-btn.active {
	background: rgba(6, 182, 212, 0.2);
	color: var(--accent-teal);
	border-color: rgba(6, 182, 212, 0.5);
}

/* ── Nudge buttons ──────────────────────────────────── */
.fd-timer-nudge {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.fd-timer-nudge-btn {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-weight: 600;
	padding: 5px 9px;
	cursor: pointer;
	transition: all 0.18s;
	font-family: var(--font-primary);
}

.fd-timer-nudge-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* ── Action buttons ─────────────────────────────────── */
.fd-timer-banner-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.fd-timer-play-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	background: linear-gradient(135deg, var(--accent-teal), var(--accent-indigo));
	color: #fff;
	transition: opacity 0.2s, transform 0.15s;
	font-family: var(--font-primary);
	letter-spacing: 0.01em;
}

.fd-timer-play-btn:hover {
	opacity: 0.88;
	transform: scale(1.03);
}

.fd-timer-play-btn svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
	flex-shrink: 0;
}

.fd-timer-reset-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.18s;
}

.fd-timer-reset-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
}

.fd-timer-reset-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}


/* ── SVG ring paths ─────────────────────────────────── */
.fd-timer-circle-bg {
	fill: none;
	stroke: rgba(255, 255, 255, 0.07);
	stroke-width: 3;
}

.fd-timer-circle-fill {
	fill: none;
	stroke: var(--accent-teal);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 100, 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 0.5s linear;
}

/* ── Running / completed state ──────────────────────── */
.fd-timer-banner.running {
	border-bottom-color: rgba(6, 182, 212, 0.3);
}

.fd-timer-banner.running .fd-timer-circle-fill {
	stroke: var(--accent-teal);
}

.fd-timer-banner.completed {
	border-bottom-color: rgba(16, 185, 129, 0.4);
}

.fd-timer-banner.completed .fd-timer-circle-fill {
	stroke: var(--accent-emerald);
	animation: fd-timer-flash 0.8s infinite alternate;
}

.fd-timer-banner.completed .fd-timer-display {
	color: var(--accent-emerald);
}

@keyframes fd-timer-flash {
	0% {
		opacity: 0.4;
	}

	100% {
		opacity: 1;
	}
}

/* Exercise item timer button */
.fd-exercise-timer-btn {
	background: rgba(6, 182, 212, 0.08);
	border: 1px solid rgba(6, 182, 212, 0.15);
	border-radius: 12px;
	color: var(--accent-teal);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
	margin-left: 8px;
	border-style: solid;
}

.fd-exercise-timer-btn:hover {
	background: rgba(6, 182, 212, 0.15);
	border-color: rgba(6, 182, 212, 0.3);
	transform: translateY(-1px);
}

/* ================================================================
   MACROS CALCULATOR STYLES
   ================================================================ */
.fd-macros-config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}
.fd-macro-input-group {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fd-macro-input-group label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
}
.fd-macro-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0 10px;
}
.fd-macro-input-wrap input, .fd-macro-input-wrap select {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-size: 14px;
}
.fd-macro-input-wrap select option {
	background: var(--bg-card);
	color: #fff;
}
.fd-macro-input-wrap span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: bold;
}
.fd-macros-divider {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.fd-macros-div-section {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.fd-macros-div-section label {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: bold;
}
.fd-macro-pct-wrap {
	display: inline-flex;
	align-items: center;
	background: rgba(0,0,0,0.2);
	border-radius: 4px;
	padding: 2px 6px;
}
.fd-macro-pct-wrap input {
	width: 40px;
	background: transparent;
	border: none;
	color: #fff;
	text-align: center;
	font-weight: bold;
}
.fd-macro-pct-wrap input:focus {
	outline: none;
	background: rgba(255,255,255,0.1);
}
.fd-macro-pct-wrap span {
	font-size: 12px;
	color: var(--text-muted);
}
.fd-macros-results-row {
    display: flex;
    gap: 15px;
}
.fd-macro-result-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 10px;
    text-align: center;
    transition: transform 0.2s;
}
.fd-macro-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.fd-macro-result-card h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #f87171;
    letter-spacing: 1px;
}
.fd-m-calories-lbl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: bold;
}
.fd-m-calories-val .fd-manual-override-input {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 5px 0 15px 0;
	background: transparent;
	border: none;
	text-align: center;
	width: 100%;
	max-width: 100px;
	border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.fd-m-calories-val .fd-manual-override-input:focus {
	outline: none;
	border-bottom-color: var(--accent-teal);
	background: rgba(255,255,255,0.05);
}
.fd-m-macros-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.fd-m-macros-list div {
    display: flex;
    justify-content: space-between;
	align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
}
.fd-m-macros-list .fd-manual-override-input {
	background: transparent;
	border: none;
	color: #fff;
	text-align: right;
	width: 50px;
	font-weight: bold;
	border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.fd-m-macros-list .fd-manual-override-input:focus {
	outline: none;
	border-bottom-color: var(--accent-teal);
	background: rgba(255,255,255,0.05);
}

/* ================================================================
   VISUAL PROGRESS GRID STYLES
   ================================================================ */
.fd-vp-month-section {
    margin-bottom: 30px;
}
.fd-vp-month-title {
    font-size: 14px;
    color: var(--accent-teal);
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.fd-vp-weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
.fd-vp-week-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}
.fd-vp-week-lbl {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.fd-vp-img-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
}
.fd-vp-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fd-vp-placeholder {
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
}
.fd-vp-weight-lbl {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 4px;
}

/* ================================================================
   CUSTOM SELECT DROPDOWN
   ================================================================ */
.fd-custom-select-wrapper {
	position: relative;
	width: 100%;
}
.fd-select-hidden {
	display: none !important;
}
.fd-custom-select {
	position: relative;
	user-select: none;
	width: 100%;
}
.fd-custom-select-trigger {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 14px;
	color: #fff;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: color 0.2s;
	width: 100%;
}
.fd-custom-select-trigger span {
	font-weight: 500;
	flex: 1;
	text-align: left;
}
.fd-custom-select.open .fd-custom-select-trigger {
	color: var(--accent-teal);
}
.fd-custom-select-options {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin-top: 5px;
	background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	overflow: hidden;
}
.fd-custom-select.open .fd-custom-select-options {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.fd-custom-select-option {
	padding: 12px 16px;
	font-size: 14px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	text-align: left;
}
.fd-custom-select-option:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}
.fd-custom-select-option.selected {
	background: rgba(6, 182, 212, 0.1);
	color: var(--accent-teal);
	font-weight: 600;
}
.fd-custom-select-trigger svg {
	transition: transform 0.2s;
	fill: currentColor;
	margin-left: 10px;
}
.fd-custom-select.open .fd-custom-select-trigger svg {
	transform: rotate(180deg);
}

@media (max-width: 768px) {
    .fd-macros-config-row {
        flex-direction: column;
    }
    .fd-macro-input-group {
        flex: 1 1 100%;
    }
    .fd-macros-results-row {
        flex-direction: column;
    }
}

/* Workout Plan Notes Styling */
.fd-week-note-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: rgba(6, 182, 212, 0.08);
	border: 1px solid rgba(6, 182, 212, 0.2);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	margin-top: 15px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
	animation: fd-fade-up 0.4s ease-out;
}
.fd-week-note-icon {
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 1px;
}
.fd-week-note-text {
	color: var(--text-primary);
	font-weight: 500;
}

.fd-day-note-banner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--glass-border);
	border-radius: 30px;
	padding: 6px 14px;
	margin-bottom: 20px;
	font-size: 13px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	animation: fd-fade-up 0.4s ease-out;
}
.fd-day-note-badge {
	background: var(--accent-teal);
	color: var(--bg-primary);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.08em;
	padding: 2px 8px;
	border-radius: 20px;
	line-height: 1;
}
.fd-day-note-text {
	color: var(--text-primary);
	font-weight: 500;
}