/* SalonX Luxury Client Portal Shell */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
	--sx-bg: #FAF7F2;
	--sx-surface: #FFFFFF;
	--sx-surface-alt: #F3EFE6;
	--sx-obsidian: #0B111E;
	--sx-indigo: #1E295E;
	--sx-gold: #C69C3A;
	--sx-gold-light: #FBF6E8;
	--sx-ink: #111827;
	--sx-muted: #5B6474;
	--sx-line: rgba(17, 24, 39, 0.10);
	--sx-serif: "Cormorant Garamond", Georgia, serif;
	--sx-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sx-portal-body,
body:has(.sx-portal-shell) {
	background: var(--sx-bg) !important;
	color: var(--sx-ink) !important;
	font-family: var(--sx-sans) !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow-x: hidden;
}

body:has(.sx-portal-shell) > .navbar,
body:has(.sx-portal-shell) > .web-footer,
body:has(.sx-portal-shell) .page-breadcrumbs,
body:has(.sx-portal-shell) .page-header-wrapper {
	display: none !important;
}

body:has(.sx-portal-shell) .page-content-wrapper,
body:has(.sx-portal-shell) main.container,
body:has(.sx-portal-shell) .page_content,
body:has(.sx-portal-shell) .container {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sx-portal-shell {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	min-height: 100svh;
	background:
		radial-gradient(circle at 12% 8%, rgba(198, 156, 58, 0.08), transparent 36%),
		radial-gradient(circle at 90% 90%, rgba(30, 41, 94, 0.05), transparent 40%),
		var(--sx-bg);
}

.sx-portal-rail {
	position: sticky;
	top: 0;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--sx-surface);
	border-right: 1px solid var(--sx-line);
	padding: 28px 20px 24px;
	z-index: 30;
}

.sx-portal-rail-top {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.sx-portal-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 18px;
	border-bottom: 1px solid var(--sx-line);
	text-decoration: none !important;
}

.sx-portal-brand img {
	height: 42px;
	width: auto;
	max-width: 150px;
	object-fit: contain;
}

.sx-portal-brand-text {
	font-family: var(--sx-serif);
	font-size: 26px;
	font-weight: 700;
	color: var(--sx-obsidian);
	line-height: 1;
}

.sx-portal-user-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--sx-bg);
	border: 1px solid var(--sx-line);
}

.sx-portal-avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--sx-obsidian) 0%, var(--sx-indigo) 100%);
	border: 1.5px solid var(--sx-gold);
	color: #FFFFFF;
	font-family: var(--sx-serif);
	font-size: 17px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sx-portal-user-meta { min-width: 0; flex: 1; }
.sx-portal-user-name { font-size: 13.5px; font-weight: 700; color: var(--sx-obsidian); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-portal-user-email { font-size: 11.5px; font-weight: 500; color: var(--sx-muted); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sx-portal-book-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--sx-obsidian) 0%, var(--sx-indigo) 100%);
	border: 1px solid rgba(198, 156, 58, 0.45);
	color: #FFFFFF !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(11, 17, 30, 0.16);
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sx-portal-book-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(11, 17, 30, 0.22); }
.sx-portal-nav { display: flex; flex-direction: column; gap: 4px; }
.sx-portal-nav-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sx-muted); padding: 0 12px 6px; margin: 0; }

.sx-portal-nav-link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sx-muted) !important;
	text-decoration: none !important;
	transition: all 0.16s ease;
}

.sx-portal-nav-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.85; fill: none; flex-shrink: 0; }
.sx-portal-nav-link:hover { background: var(--sx-gold-light); color: var(--sx-obsidian) !important; }
.sx-portal-nav-link.is-active { background: var(--sx-obsidian); color: #FFFFFF !important; font-weight: 700; box-shadow: 0 8px 20px rgba(11, 17, 30, 0.14); }
.sx-portal-nav-link.is-active svg { stroke: var(--sx-gold); }

.sx-portal-rail-bottom { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--sx-line); }
.sx-portal-nav-link.is-logout { color: #991B1B !important; }
.sx-portal-nav-link.is-logout:hover { background: #FEF2F2; color: #7F1D1D !important; }

.sx-portal-main { min-width: 0; padding: 42px clamp(24px, 4vw, 60px) 72px; max-width: 1080px; }
.sx-portal-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--sx-line); }
.sx-portal-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.10em; color: var(--sx-gold); margin: 0 0 6px; }
.sx-portal-page-title { font-family: var(--sx-serif); font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--sx-obsidian); line-height: 1.05; margin: 0; }
.sx-portal-page-sub { font-size: 14px; color: var(--sx-muted); margin: 6px 0 0; }

.sx-surface-card {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-top: 3px solid var(--sx-gold);
	border-radius: 22px;
	padding: 32px 34px;
	box-shadow: 0 18px 44px rgba(11, 17, 30, 0.05), 0 2px 8px rgba(198, 156, 58, 0.05);
	margin-bottom: 24px;
}

.sx-surface-card-title { font-family: var(--sx-serif); font-size: 26px; font-weight: 700; color: var(--sx-obsidian); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(17, 24, 39, 0.08); }
.sx-surface-card-title.mt-section { margin-top: 32px; }

.sx-list-stack { display: grid; gap: 16px; }
.sx-item-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	border-radius: 18px;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	box-shadow: 0 10px 28px rgba(11, 17, 30, 0.04);
	transition: transform 0.15s ease, border-color 0.15s ease;
	text-decoration: none !important;
	color: inherit !important;
}
.sx-item-card:hover { border-color: rgba(198, 156, 58, 0.45); transform: translateY(-1px); }
.sx-item-meta-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.sx-ref-pill { font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--sx-gold-light); border: 1px solid rgba(198, 156, 58, 0.35); color: #8A6518; }
.sx-sub-meta { font-size: 12.5px; font-weight: 600; color: var(--sx-muted); }
.sx-item-heading { font-family: var(--sx-serif); font-size: 26px; font-weight: 700; color: var(--sx-obsidian); margin: 0; }
.sx-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sx-tag-chip { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 8px; background: var(--sx-bg); border: 1px solid var(--sx-line); color: var(--sx-obsidian); }
.sx-status-pill { padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: #ECFDF5; color: #047857; }
.sx-status-pill.is-cancelled, .sx-status-pill.is-unpaid { background: #F1F5F9; color: #64748B; }

.sx-empty-box { background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: 22px; padding: 64px 28px; text-align: center; box-shadow: 0 14px 36px rgba(11, 17, 30, 0.04); }
.sx-empty-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 999px; background: var(--sx-gold-light); border: 1px solid rgba(198, 156, 58, 0.35); display: flex; align-items: center; justify-content: center; color: var(--sx-gold); }
.sx-empty-box h3 { font-family: var(--sx-serif); font-size: 28px; font-weight: 700; color: var(--sx-obsidian); margin: 0 0 6px; }
.sx-empty-box p { font-size: 14px; color: var(--sx-muted); margin: 0 0 20px; }

.sx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.sx-field label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sx-obsidian); margin-bottom: 7px; }
.sx-input { width: 100%; height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(17, 24, 39, 0.14); background: var(--sx-bg); color: var(--sx-ink); font-family: var(--sx-sans); font-size: 14px; font-weight: 500; transition: all 0.18s ease; }
.sx-input:focus { background: #FFFFFF; border-color: var(--sx-gold); box-shadow: 0 0 0 3px rgba(198, 156, 58, 0.18); outline: none; }
.sx-input[readonly] { background: #F3EFE6; color: #475569; cursor: not-allowed; border-color: rgba(17, 24, 39, 0.09); }
.sx-verified-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--sx-gold-light); border: 1px solid rgba(198, 156, 58, 0.4); color: #8A6518; font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.sx-hint { font-size: 12px; color: var(--sx-muted); margin: 5px 0 0; }
.sx-err { font-size: 12px; font-weight: 600; color: #B91C1C; margin: 5px 0 0; display: none; }
.sx-alert { display: none; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 20px; }
.sx-alert.is-success { display: block; background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.sx-alert.is-error { display: block; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.sx-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(17, 24, 39, 0.08); }

.sx-btn-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 24px; border-radius: 999px;
	background: linear-gradient(135deg, var(--sx-obsidian) 0%, var(--sx-indigo) 100%);
	border: 1px solid rgba(198, 156, 58, 0.4); color: #FFFFFF !important;
	font-family: var(--sx-sans); font-size: 13.5px; font-weight: 700;
	text-decoration: none !important; cursor: pointer;
	box-shadow: 0 10px 22px rgba(11, 17, 30, 0.14);
}
.sx-btn-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 18px; border-radius: 999px;
	background: var(--sx-bg); border: 1px solid var(--sx-line);
	color: var(--sx-obsidian) !important; font-family: var(--sx-sans);
	font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer;
}
.sx-btn-secondary:hover { background: var(--sx-gold-light); border-color: var(--sx-gold); }

@media (max-width: 960px) {
	.sx-portal-shell { grid-template-columns: 1fr; }
	.sx-portal-rail {
		position: sticky; top: 0; height: auto; padding: 14px 16px 12px;
		border-right: none; border-bottom: 1px solid var(--sx-line);
		background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); gap: 12px;
	}
	.sx-portal-rail-top { gap: 12px; }
	.sx-portal-brand { padding: 0; border-bottom: none; justify-content: space-between; }
	.sx-portal-user-card, .sx-portal-nav-label, .sx-portal-book-cta, .sx-portal-rail-bottom { display: none; }
	.sx-portal-nav { flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.sx-portal-nav::-webkit-scrollbar { display: none; }
	.sx-portal-nav-link { white-space: nowrap; padding: 9px 14px; font-size: 13px; }
	.sx-portal-mobile-only { display: flex !important; }
	.sx-portal-main { padding: 24px 16px 56px; }
	.sx-surface-card { padding: 24px 18px; border-radius: 18px; }
	.sx-form-grid { grid-template-columns: 1fr; gap: 16px; }
	.sx-item-card { padding: 18px; }
	.sx-card-footer { flex-direction: column-reverse; align-items: stretch; }
	.sx-card-footer .sx-btn-primary, .sx-card-footer .sx-btn-secondary { width: 100%; }
}

@media (min-width: 960.02px) {
	.sx-portal-mobile-only { display: none !important; }
}

/* Manage Reservation Modal on /confirmed-booking */
.sx-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(11, 17, 30, 0.52);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sx-modal-backdrop.is-open {
	display: flex;
}

.sx-modal-card {
	width: 100%;
	max-width: 480px;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-top: 3px solid var(--sx-gold);
	border-radius: 24px;
	padding: 30px 30px 26px;
	box-shadow: 0 28px 64px rgba(11, 17, 30, 0.22);
}

.sx-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sx-line);
}

.sx-modal-head h3 {
	font-family: var(--sx-serif);
	font-size: 30px;
	font-weight: 700;
	color: var(--sx-obsidian);
	margin: 2px 0 0;
	line-height: 1.1;
}

.sx-modal-close {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--sx-line);
	background: var(--sx-bg);
	color: var(--sx-obsidian);
	font-size: 18px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sx-modal-summary {
	background: var(--sx-bg);
	border: 1px solid var(--sx-line);
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.sx-modal-summary p {
	margin: 0 0 4px;
	font-size: 13.5px;
	color: var(--sx-ink);
}

.sx-modal-summary p:last-child {
	margin-bottom: 0;
}

.sx-modal-actions-grid {
	display: grid;
	gap: 10px;
}

.sx-modal-option-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid var(--sx-line);
	background: var(--sx-surface);
	color: var(--sx-obsidian) !important;
	font-family: var(--sx-sans);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: left;
}

.sx-modal-option-btn:hover:not(:disabled) {
	background: var(--sx-gold-light);
	border-color: var(--sx-gold);
}

.sx-modal-option-btn.is-danger {
	color: #991B1B !important;
}

.sx-modal-option-btn.is-danger:hover:not(:disabled) {
	background: #FEF2F2;
	border-color: #FECACA;
}

.sx-modal-option-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sx-modal-option-sub {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--sx-muted);
	margin-top: 2px;
}

.sx-btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border-radius: 999px;
	background: #991B1B;
	border: 1px solid #7F1D1D;
	color: #FFFFFF !important;
	font-family: var(--sx-sans);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
