.runner-single {
	position: relative;
	overflow: hidden;
}

.runner-single::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08), transparent 45%),
		radial-gradient(circle at 80% 0, rgba(16, 185, 129, 0.08), transparent 40%);
	pointer-events: none;
}

.runner-single > * {
	position: relative;
	z-index: 1;
}

.runner-single__sidebar {
	gap: 0rem;
}

.runner-about__content {
    margin-top: 2rem;
}

.runner-related-card__link,
.runner-service-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.runner-contact__value[data-copy-success="1"],
.runner-contact__copy-btn[data-copy-success="1"] {
	background: rgba(16, 185, 129, 0.15);
	color: #047857;
}

.runner-contact__value[data-copy-success="0"],
.runner-contact__copy-btn[data-copy-success="0"] {
	background: rgba(239, 68, 68, 0.15);
	color: #991b1b;
}

.runner-diary__link:hover h3,
.runner-service-card:hover h4,
.runner-related-card__link:hover h3 {
	color: var(--runner-accent);
}

.runner-sidebar.card h3 {
	margin-top: 0;
	margin-bottom: 0.85rem;
	color: var(--runner-heading);
}

.runner-service-card-list {
	counter-reset: serviceCards;
}

.runner-service-card {
	position: relative;
	padding-left: 2.5rem;
}

.runner-service-card::before {
	counter-increment: serviceCards;
	content: counter(serviceCards);
	position: absolute;
	left: 1rem;
	top: 1rem;
	font-weight: 700;
	color: var(--runner-accent);
}

.runner-related-card__avatar img,
.runner-related-card__avatar-placeholder {
	border: 3px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.runner-profile__meta {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.runner-profile {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.7), rgba(255, 255, 255, 0.9));
}

.runner-diaries.card {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.runner-diaries__footer {
	margin-top: 1.5rem;
	text-align: center;
}

.runner-diaries__grid article,
.runner-related__grid article,
.runner-service-card-list article {
	height: 100%;
}

.runner-related-card__body p {
	color: var(--runner-muted);
	margin: 0;
	line-height: 1.5;
}

.runner-profile__meta .runner-chips {
	margin-top: 0.5rem;
}

/* Contact section enhancements */
.runner-contact__row {
	position: relative;
	overflow: hidden;
}

.runner-contact__row-content {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.runner-contact__gate-message {
	margin-top: 0.75rem;
	padding: 1rem;
	background: rgba(37, 99, 235, 0.05);
	border: 1px dashed rgba(37, 99, 235, 0.3);
	border-radius: var(--runner-radius-sm);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.runner-contact__gate-text {
	margin: 0 0 0.75rem 0;
	font-size: 0.9rem;
	color: var(--runner-heading);
	line-height: 1.5;
}

.runner-contact__gate-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.runner-contact__gate-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: var(--runner-radius-sm);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
}

.runner-contact__gate-btn--primary {
	background: var(--runner-accent) !important;
	color: #fff !important;
	border: 1px solid var(--runner-accent);
}

.runner-contact__gate-btn--primary:hover {
	background: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.runner-contact__gate-btn--secondary {
	background: transparent !important;
	color: var(--runner-accent) !important;
	border: 1px solid var(--runner-accent);
}

.runner-contact__gate-btn--secondary:hover {
	background: rgba(37, 99, 235, 0.08) !important;
	color: var(--runner-accent) !important;
	transform: translateY(-1px);
}

/* Member/Admin state: Keep same visual style as non-member state */
.runner-contact__row-content .runner-contact__value-text {
	background: #f1f5f9;
	border-radius: var(--runner-radius-sm);
	padding: 0.65rem 0.85rem;
	font-weight: 500;
	display: inline-block;
	transition: all 0.2s ease;
	border: 1px solid transparent;
	min-width: 120px;
	text-align: center;
}

.runner-contact__row-content .runner-contact__value-text:not(.runner-contact__value-text--masked) {
	color: var(--runner-heading);
}

.runner-contact__row-content .runner-contact__value-text--masked {
	background: #f1f5f9;
	border-radius: var(--runner-radius-sm);
	padding: 0.65rem 0.85rem;
}

.runner-contact__row-content .runner-contact__value-text--link:not(.runner-contact__value-text--masked) {
	color: var(--runner-accent) !important;
	background: rgba(37, 99, 235, 0.05);
}

.runner-contact__row-content .runner-contact__value-text--link:not(.runner-contact__value-text--masked):hover {
	background: rgba(37, 99, 235, 0.1);
	text-decoration: underline !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.runner-contact__row .runner-contact__copy-btn {
	background: rgba(37, 99, 235, 0.08) !important;
	border: 1px solid var(--runner-accent) !important;
	color: var(--runner-accent) !important;
	font-weight: 500;
	transition: all 0.2s ease;
}

.runner-contact__row .runner-contact__copy-btn:hover {
	background: var(--runner-accent) !important;
	color: #fff !important;
	border-color: var(--runner-accent) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Link colors with !important to override errand-frontend.css */
.runner-contact__value-text--link {
	color: var(--runner-accent) !important;
}

.runner-contact__value-text--link:hover {
	color: #1d4ed8 !important;
}

/* Animation for smooth transitions */
.runner-contact__row-content {
	opacity: 1;
	transform: translateY(0);
}

.runner-contact__row-content.fade-out {
	opacity: 0;
	transform: translateY(-5px);
}

.runner-contact__gate-message {
	opacity: 0;
	transform: translateY(5px);
}

.runner-contact__gate-message.fade-in {
	opacity: 1;
	transform: translateY(0);
}

/* Hover effects for interactive elements */

/* 1. View services anchor hover effect */
.runner-stat__anchor {
	transition: all var(--runner-transition);
	position: relative;
}

.runner-stat__anchor:hover {
	color: #1d4ed8 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

/* 2. Service chip link hover effect */
.runner-chip--link {
	transition: all var(--runner-transition);
	position: relative;
}

.runner-chip--link:hover {
	background: var(--runner-accent) !important;
	color: #fff !important;
	border-color: var(--runner-accent) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
	text-decoration: underline !important;
	text-decoration-color: rgba(255, 255, 255, 0.6);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 2px;
}

/* 3. Featured runner card hover effect */
.runner-featured-card {
	transition: all var(--runner-transition);
}

.runner-featured-card:hover {
	border-color: rgba(37, 99, 235, 0.4);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	transform: translateY(-4px);
}

.runner-featured-card:hover .runner-featured-card__name {
	color: var(--runner-accent);
}

.runner-featured-card:hover .runner-featured-card__avatar {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.runner-featured-card__avatar {
	transition: transform var(--runner-transition), box-shadow var(--runner-transition);
}

/* 4. Runner stat hover effect */
.runner-stat {
	transition: all var(--runner-transition);
	cursor: default;
}

.runner-stat:hover {
	border-color: rgba(37, 99, 235, 0.4);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
	transform: translateY(-2px);
	background: #fff;
}

.runner-stat:hover .runner-hero__stat-label {
	color: var(--runner-accent);
}

.runner-stat:hover strong {
	color: var(--runner-accent);
}

/* Services Offered section responsive layout */
.runner-profile__services .runner-section-header {
	flex-wrap: wrap;
}

.runner-section-header__title {
	flex: 1 1 100%;
	min-width: 0;
}

@media (min-width: 720px) {
	.runner-profile__services .runner-section-header {
		flex-wrap: nowrap;
	}

	.runner-section-header__title {
		flex: 0 1 auto;
	}
}

/* Runner profile disabled state */
.runner-profile__disabled {
	text-align: center;
	padding: 3rem 2rem;
}

.runner-profile__disabled-icon {
	font-size: 4rem;
	color: var(--runner-muted);
	margin-bottom: 1.5rem;
	opacity: 0.5;
}

.runner-profile__disabled-title {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	color: var(--runner-heading);
}

.runner-profile__disabled-message {
	margin: 0;
	color: var(--runner-muted);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

