/**
 * Premium Noir — Live Show Booking UI
 *
 * @package Noxora\Apps\Pro
 */

:root {
	--nx-live-bg: var(--nx-bg, #050508);
	--nx-live-surface: var(--nx-bg-elevated, #0c0c12);
	--nx-live-surface-2: color-mix(in srgb, var(--nx-bg-elevated, #0c0c12) 88%, var(--nx-text, #f4f4f8));
	--nx-live-border: var(--nx-border, rgba(255, 255, 255, 0.08));
	--nx-live-text: var(--nx-text, #f4f4f8);
	--nx-live-muted: var(--nx-text-muted, #6b6b7b);
	--nx-live-cyan: var(--nx-info, #60a5fa);
	--nx-live-gold: var(--nx-gold, #d4af37);
	--nx-live-purple: var(--nx-disc-accent, #8b5cf6);
	--nx-live-crimson: var(--nx-danger, #f87171);
	--nx-live-glass: var(--nx-surface, rgba(18, 18, 26, 0.72));
	--nx-live-radius: var(--nx-radius-md, 12px);
	--nx-live-font: var(--nx-font-sans, Inter, system-ui, sans-serif);
}

.nx-live-premium {
	color: var(--nx-live-text);
	font-family: var(--nx-live-font);
}

.nx-live-premium__head {
	margin-bottom: 1.5rem;
}

.nx-live-premium__kicker {
	display: inline-block;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nx-live-cyan);
	margin-bottom: 0.35rem;
}

.nx-live-premium__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	font-weight: 700;
}

.nx-live-premium__sub {
	margin: 0;
	color: var(--nx-live-muted);
}

.nx-live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 1rem;
}

.nx-live-card {
	position: relative;
	background: linear-gradient(145deg, var(--nx-live-surface), var(--nx-live-surface-2));
	border: 1px solid var(--nx-live-border);
	border-radius: var(--nx-live-radius);
	padding: 1rem 1.1rem 1.1rem;
	backdrop-filter: blur(14px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nx-live-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.35), rgba(167, 139, 250, 0.15), transparent 60%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.nx-live-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.nx-live-card.is-updating {
	opacity: 0.65;
	pointer-events: none;
}

.nx-live-card__top {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.85rem;
}

.nx-live-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(34, 211, 238, 0.35);
	background: #222;
}

.nx-live-card__avatar--fallback {
	display: grid;
	place-items: center;
	font-weight: 700;
	color: var(--nx-live-cyan);
}

.nx-live-card__meta strong {
	display: block;
	font-size: 0.95rem;
}

.nx-live-card__ref {
	font-size: 0.75rem;
	color: var(--nx-live-muted);
}

.nx-live-card__ref code {
	color: var(--nx-live-gold);
	background: transparent;
}

.nx-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid transparent;
}

.nx-live-badge--pending_host,
.nx-live-badge--awaiting_payment {
	color: var(--nx-live-gold);
	border-color: rgba(251, 191, 36, 0.35);
	background: rgba(251, 191, 36, 0.08);
}

.nx-live-badge--pending_admin {
	color: var(--nx-live-cyan);
	border-color: rgba(34, 211, 238, 0.35);
	background: rgba(34, 211, 238, 0.08);
}

.nx-live-badge--confirmed {
	color: var(--nx-live-purple);
	border-color: rgba(167, 139, 250, 0.35);
	background: rgba(167, 139, 250, 0.08);
}

.nx-live-badge--cancelled {
	color: var(--nx-live-crimson);
	border-color: rgba(248, 113, 113, 0.35);
	background: rgba(248, 113, 113, 0.08);
}

.nx-live-card__datetime {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	color: #fff;
}

.nx-live-card__price {
	margin: 0 0 0.65rem;
	color: var(--nx-live-gold);
	font-weight: 600;
}

.nx-live-card__price--net {
	font-size: 0.9rem;
	color: var(--nx-live-cyan);
}

.nx-live-card__channel {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: var(--nx-live-muted);
	margin-bottom: 0.85rem;
}

.nx-live-card__actions {
	display: flex;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.nx-live-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 110px;
	padding: 0.55rem 1rem;
	border: 0;
	border-radius: 10px;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nx-live-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.nx-live-btn--approve {
	color: #041016;
	background: linear-gradient(135deg, #22d3ee, #0891b2);
	box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

.nx-live-btn--approve:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(34, 211, 238, 0.35);
}

.nx-live-btn--decline {
	color: #fff;
	background: linear-gradient(135deg, #374151, #111827);
	border: 1px solid rgba(248, 113, 113, 0.35);
}

.nx-live-btn__spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nx-live-spin 0.7s linear infinite;
}

@keyframes nx-live-spin {
	to { transform: rotate(360deg); }
}

.nx-live-section {
	margin: 2rem 0;
	padding: 1.25rem;
	border-radius: var(--nx-live-radius);
	background: var(--nx-live-glass);
	border: 1px solid var(--nx-live-border);
}

.nx-live-section--orders {
	margin-top: 2.5rem;
}

.nx-live-timeline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.35rem;
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}

.nx-live-timeline__step {
	flex: 1;
	text-align: center;
	position: relative;
}

.nx-live-timeline__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 14px;
	left: calc(50% + 18px);
	width: calc(100% - 36px);
	height: 2px;
	background: rgba(255, 255, 255, 0.12);
}

.nx-live-timeline__step.is-done:not(:last-child)::after {
	background: linear-gradient(90deg, var(--nx-live-cyan), rgba(34, 211, 238, 0.2));
}

.nx-live-timeline__dot {
	width: 28px;
	height: 28px;
	margin: 0 auto 0.35rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--nx-live-border);
}

.nx-live-timeline__step.is-done .nx-live-timeline__dot {
	background: rgba(34, 211, 238, 0.15);
	border-color: rgba(34, 211, 238, 0.45);
	color: var(--nx-live-cyan);
}

.nx-live-timeline__step.is-active .nx-live-timeline__dot {
	background: rgba(251, 191, 36, 0.15);
	border-color: rgba(251, 191, 36, 0.55);
	box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

.nx-live-timeline__step.is-locked .nx-live-timeline__dot {
	opacity: 0.45;
}

.nx-live-timeline__label {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nx-live-muted);
}

.nx-live-instruction {
	margin-top: 1rem;
	padding: 1rem 1.1rem;
	border-radius: var(--nx-live-radius);
	background: rgba(167, 139, 250, 0.06);
	border: 1px solid rgba(167, 139, 250, 0.35);
	box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.nx-live-instruction__title {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--nx-live-purple);
}

.nx-live-instruction__copy {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.65rem;
	padding: 0.35rem 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(34, 211, 238, 0.35);
	background: transparent;
	color: var(--nx-live-cyan);
	cursor: pointer;
	font-size: 0.78rem;
}

.nx-live-skeleton {
	animation: nx-live-pulse 1.2s ease-in-out infinite;
	background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
	background-size: 200% 100%;
	border-radius: 8px;
	min-height: 120px;
}

@keyframes nx-live-pulse {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

.nx-live-host-dashboard {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border-radius: 16px;
	background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 45%), var(--nx-live-bg);
	border: 1px solid var(--nx-live-border);
}

.nx-live-host-dashboard--notice {
	padding: 2rem;
	text-align: center;
}

/* Neon/glass enhancements for vitrine and profile tabs */
.nx-live-card:hover {
	border-color: rgba(34, 211, 238, 0.35);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.45),
		0 0 24px rgba(34, 211, 238, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nx-live-card::before {
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(167, 139, 250, 0.2), transparent 60%);
}

.nx-live-host-dashboard {
	background:
		radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 45%),
		radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.06), transparent 45%),
		var(--nx-live-bg);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nx-live-premium__stats {
	display: grid;
	gap: clamp(0.75rem, 2vw, 1rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	margin-bottom: 1.5rem;
}

.nx-live-stat-card {
	position: relative;
	padding: 1.15rem 1.25rem;
	border-radius: var(--nx-live-radius);
	background: linear-gradient(145deg, rgba(26, 26, 36, 0.9), rgba(20, 20, 28, 0.9));
	border: 1px solid var(--nx-live-border);
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.nx-live-stat-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--nx-live-cyan), transparent);
}

.nx-live-stat-card--coins::before {
	background: linear-gradient(90deg, var(--nx-live-gold), transparent);
}

.nx-live-stat-card__value {
	display: block;
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 800;
	color: #fff;
	margin-top: 0.35rem;
}

.nx-live-stat-card--tl .nx-live-stat-card__value {
	color: var(--nx-live-cyan);
	text-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.nx-live-stat-card--coins .nx-live-stat-card__value {
	color: var(--nx-live-gold);
	text-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.nx-live-btn--approve {
	box-shadow:
		0 8px 24px rgba(34, 211, 238, 0.25),
		0 0 18px rgba(34, 211, 238, 0.2);
}

.nx-live-btn--approve:hover:not(:disabled) {
	box-shadow:
		0 12px 28px rgba(34, 211, 238, 0.35),
		0 0 24px rgba(34, 211, 238, 0.3);
}

/* Live vitrine status ring glow */
.ns-pro-live-card__status-ring--live {
	box-shadow: 0 0 0 2px rgba(255, 45, 85, 0.25), 0 0 18px rgba(255, 45, 85, 0.55);
}

.ns-pro-live-card__status-ring--available {
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 14px rgba(34, 197, 94, 0.45);
}

/* Homepage strip card hover neon gold */
.premium-host-card:hover {
	border-color: rgba(212, 175, 55, 0.45);
	box-shadow:
		0 24px 56px rgba(0, 0, 0, 0.35),
		0 0 32px rgba(212, 175, 55, 0.15),
		0 0 0 1px rgba(212, 175, 55, 0.08);
}

/* Live profile tab neon active state */
.ns-pro-live-profile__embedded .ns-pro-live-profile__tab.is-active {
	background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.1));
	color: var(--nx-live-cyan);
	box-shadow:
		0 0 18px rgba(34, 211, 238, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

@media (max-width: 640px) {
	.nx-live-timeline {
		flex-direction: column;
		align-items: stretch;
	}

	.nx-live-timeline__step:not(:last-child)::after {
		display: none;
	}
}

/* Live vitrine service filters */
.ns-pro-live-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nx-space-2);
	padding: var(--nx-space-3);
	margin-bottom: var(--nx-space-4);
	border-radius: var(--nx-radius-md);
	border: 1px solid var(--nx-live-border);
	background: var(--nx-live-glass);
	backdrop-filter: blur(12px);
}

.ns-pro-live-filter {
	appearance: none;
	border: 1px solid var(--nx-live-border);
	background: transparent;
	color: var(--nx-live-muted);
	font: inherit;
	font-size: var(--nx-text-sm);
	font-weight: var(--nx-weight-semibold, 600);
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ns-pro-live-filter:hover,
.ns-pro-live-filter.is-active {
	color: var(--nx-live-text);
	border-color: color-mix(in srgb, var(--nx-live-cyan) 45%, transparent);
	background: color-mix(in srgb, var(--nx-live-cyan) 12%, transparent);
	box-shadow: 0 0 18px color-mix(in srgb, var(--nx-live-cyan) 22%, transparent);
}

/* Creator landing — gallery left, booking sidebar right */
.ns-pro-live-profile--landing .ns-pro-live-profile__landing {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: var(--nx-space-6);
	align-items: start;
}

.ns-pro-live-profile__landing-main {
	display: flex;
	flex-direction: column;
	gap: var(--nx-space-4);
	min-width: 0;
}

.ns-pro-live-profile__landing-sidebar {
	position: sticky;
	top: calc(var(--nx-header-height, 64px) + var(--nx-space-4));
	display: flex;
	flex-direction: column;
	gap: var(--nx-space-4);
	padding: var(--nx-space-4);
	border-radius: var(--nx-radius-lg);
	border: 1px solid var(--nx-live-border);
	background: var(--nx-live-glass);
	backdrop-filter: blur(16px);
}

.ns-pro-live-profile__sidebar-head h2 {
	margin: 0 0 var(--nx-space-2);
	font-size: var(--nx-text-xl);
	font-weight: var(--nx-weight-bold, 700);
}

.ns-pro-live-grid--strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(260px, 300px);
	overflow-x: auto;
	gap: var(--nx-space-4);
	padding-bottom: var(--nx-space-2);
	scroll-snap-type: x mandatory;
}

.ns-pro-live-grid--strip .ns-pro-live-card {
	scroll-snap-align: start;
}

@media (max-width: 960px) {
	.ns-pro-live-profile--landing .ns-pro-live-profile__landing {
		grid-template-columns: 1fr;
	}

	.ns-pro-live-profile__landing-sidebar {
		position: static;
		order: -1;
	}
}
