/* Unlinkify Night — shared token layer (spec §1.1). Loaded by every layout
   after the template CSS. */
:root {
	--ux-bg: #0B0E17;
	--ux-surface: #131828;
	--ux-surface-2: #1A2136;
	--ux-border: rgba(148, 163, 204, .14);
	--ux-primary: #7C5CFF;
	--ux-primary-2: #6847F0;
	--ux-accent: #22D3EE;
	--ux-grad: linear-gradient(135deg, #7C5CFF, #22D3EE);
	--ux-success: #2DD4A7;
	--ux-warning: #F9BF59;
	--ux-danger: #F7577E;
	--ux-info: #5BC3E1;
	--ux-text: #E8ECF4;
	--ux-muted: #8A94AD;
}

/* ---- Porto dark-page defaults ---------------------------------------- */
body.ux-dark {
	background: var(--ux-bg);
	color: var(--ux-text);
	--bs-body-bg: var(--ux-bg);
	--bs-body-color: var(--ux-text);
	--bs-secondary-color: var(--ux-muted);
	--bs-border-color: var(--ux-border);
}
/* Porto ships light sections + dark headings; the design is dark-only. */
/* Sticky footer: fill the viewport so the footer sits at the bottom on short
   pages instead of floating mid-screen. */
.ux-dark .body {
	background-color: transparent; /* theme.css paints it var(--light) */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.ux-dark .body > [role=main],
.ux-dark .body > .main { flex: 1 0 auto; }
.ux-dark .body > #footer,
.ux-dark .body > footer { flex-shrink: 0; }
.ux-dark .feature-box .feature-box-info h4,
.ux-dark .feature-box .feature-box-info h5,
.ux-dark .process .process-step-content h4,
.ux-dark .toggle > section > a.toggle-title,
.ux-dark .counters .counter label { color: var(--ux-text); }
/* Process steps: theme-elements paints numbers var(--dark) (invisible here). */
.ux-dark .process .process-step-circle { border-color: rgba(124, 92, 255, .45); }
.ux-dark .process .process-step-circle-content { color: var(--ux-primary); }
.ux-dark .process .process-step:hover .process-step-circle {
	background-color: var(--ux-primary);
	border-color: var(--ux-primary);
}
.ux-dark .process .process-step:hover .process-step-circle .process-step-circle-content { color: #fff; }
.ux-dark .process-connecting-line .connecting-line { background: var(--ux-border); }
.ux-dark h1, .ux-dark h2, .ux-dark h3, .ux-dark h4, .ux-dark h5, .ux-dark h6 { color: var(--ux-text); }
.ux-dark section.section {
	background: transparent;
	border-top-color: var(--ux-border);
}
.ux-dark .card {
	background: var(--ux-surface);
	border: 1px solid var(--ux-border);
	color: var(--ux-text);
}
.ux-dark .card .card-body { color: var(--ux-text); }
/* Interactive cards (links / hover-effect-2) lift on hover. */
.ux-dark a.card,
.ux-dark .hover-effect-2 { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ux-dark a.card:hover,
.ux-dark .hover-effect-2:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 92, 255, .4);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 1px rgba(124, 92, 255, .15);
}

/* ---- Button hover motion (Porto btn-modern flattened by our overrides) - */
.ux-dark .btn { transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.ux-dark .btn-primary:hover,
.ux-dark .btn-ux-grad:hover { transform: translateY(-2px); }
.ux-dark .btn-primary:active,
.ux-dark .btn-ux-grad:active { transform: translateY(0); }
.ux-dark .btn-primary:hover { box-shadow: 0 8px 20px rgba(124, 92, 255, .35); }
.ux-dark .btn-outline-secondary:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, .5); color: var(--ux-text); }
.ux-dark .modal-content,
.ux-dark .dropdown-menu {
	background: var(--ux-surface-2);
	border: 1px solid var(--ux-border);
	color: var(--ux-text);
}
.ux-dark .form-control,
.ux-dark .form-select,
.ux-dark .input-group-text {
	background: var(--ux-surface-2);
	border-color: var(--ux-border);
	color: var(--ux-text);
}
.ux-dark .form-control::placeholder { color: var(--ux-muted); }
.ux-dark .form-control:focus,
.ux-dark .form-select:focus {
	background: var(--ux-surface-2);
	color: var(--ux-text);
	border-color: var(--ux-accent);
	box-shadow: 0 0 0 .2rem rgba(34, 211, 238, .15);
}
.ux-dark .table {
	color: var(--ux-text);
	--bs-table-bg: transparent;
	--bs-table-color: var(--ux-text);
	/* Without these, table-hover falls back to the dark emphasis color → black text on hover. */
	--bs-table-hover-bg: var(--ux-surface-2);
	--bs-table-hover-color: var(--ux-text);
	--bs-table-active-bg: var(--ux-surface-2);
	--bs-table-active-color: var(--ux-text);
}
.ux-dark .table > :not(caption) > * > * { border-color: var(--ux-border); }

/* ---- Porto shell on dark --------------------------------------------- */
/* Solid header: the shell is position:absolute, so a translucent bar +
   backdrop-filter blurs the page-header heading behind it into a smudge. */
.ux-dark #header .header-body {
	background: var(--ux-bg);
	border-bottom: 1px solid var(--ux-border);
}
.ux-dark #header .header-nav-main nav > ul > li > a { color: var(--ux-text); }
.ux-dark #header .header-btn-collapse-nav { background: var(--ux-primary); }

@keyframes ux-bell-swing {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(14deg); }
	40% { transform: rotate(-11deg); }
	60% { transform: rotate(7deg); }
	80% { transform: rotate(-4deg); }
}
@keyframes ux-drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Custom account menu (self-contained; does not use Porto dropdown) - */
.ux-account { position: relative; margin-left: .35rem; }
.ux-account-toggle {
	display: flex;
	align-items: center;
	gap: .55rem;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 2rem;
	padding: .3rem .7rem .3rem .3rem;
	color: #fff;
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ux-account-toggle:hover,
.ux-account.open .ux-account-toggle { background: var(--ux-surface-2); border-color: var(--ux-border); }
.ux-account-toggle:hover .ux-account-name,
.ux-account.open .ux-account-name { color: var(--ux-primary); }
.ux-account-avatar {
	width: 32px; height: 32px;
	flex: 0 0 32px;
	border-radius: 50%;
	background: var(--ux-grad);
	color: #0B0E17;
	font-weight: 800;
	font-size: .95rem;
	display: flex; align-items: center; justify-content: center;
	line-height: 1;
}
.ux-account-avatar-lg { width: 42px; height: 42px; flex-basis: 42px; font-size: 1.15rem; }
.ux-account-name { color: #fff; transition: color .2s ease; }
.ux-account-caret { font-size: .7rem; color: var(--ux-muted); transition: transform .2s ease; }
.ux-account.open .ux-account-caret { transform: rotate(180deg); }

.ux-account-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 290px;
	background: var(--ux-surface);
	border: 1px solid var(--ux-border);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
	padding: .5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(.98);
	transform-origin: top right;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 1100;
}
.ux-account.open .ux-account-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ux-account-head { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .75rem; }
.ux-account-id { min-width: 0; }
.ux-account-id strong { display: block; color: var(--ux-text); font-size: .95rem; line-height: 1.2; }
.ux-account-id span { display: block; color: var(--ux-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-account-balance {
	display: flex; align-items: center; justify-content: space-between;
	padding: .6rem .75rem;
	margin: 0 .1rem .4rem;
	border-radius: .6rem;
	background: var(--ux-surface-2);
	border: 1px solid var(--ux-border);
	color: var(--ux-muted);
	font-size: .85rem;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease;
}
.ux-account-balance:hover { border-color: rgba(124, 92, 255, .4); color: var(--ux-text); }
.ux-account-balance i.fa-wallet { color: var(--ux-primary); margin-right: .4rem; }
.ux-account-balance-amt { color: var(--ux-text); font-weight: 700; }
.ux-account-balance-amt i { color: var(--ux-muted); font-size: .7rem; }
.ux-account-list { border-top: 1px solid var(--ux-border); padding-top: .35rem; margin-top: .1rem; }
.ux-account-menu a[role=menuitem]:not(.ux-account-balance),
.ux-account-logout button {
	display: flex; align-items: center; gap: .7rem;
	width: 100%;
	padding: .6rem .75rem;
	border-radius: .6rem;
	color: var(--ux-muted);
	font-size: .9rem;
	font-weight: 500;
	text-decoration: none;
	background: transparent;
	border: 0;
	text-align: left;
	transition: background-color .16s ease, color .16s ease, padding-left .16s ease;
}
.ux-account-list a i { width: 1.1rem; text-align: center; color: var(--ux-muted); transition: color .16s ease; }
.ux-account-list a:hover {
	background: rgba(124, 92, 255, .14);
	color: var(--ux-text);
	padding-left: 1.05rem;
}
.ux-account-list a:hover i { color: var(--ux-primary); }
.ux-account-list a.active { background: rgba(124, 92, 255, .1); color: var(--ux-text); }
.ux-account-list a.active i { color: var(--ux-primary); }
.ux-account-logout { border-top: 1px solid var(--ux-border); margin-top: .35rem; padding-top: .35rem; }
.ux-account-logout button i { width: 1.1rem; text-align: center; color: var(--ux-danger); }
.ux-account-logout button:hover { background: rgba(247, 87, 126, .12); color: var(--ux-danger); padding-left: 1.05rem; }
@media (max-width: 991.98px) {
	.ux-account-menu { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
}

/* Customer panel sidebar */
.ux-sidenav {
	background: var(--ux-surface);
	border: 1px solid var(--ux-border);
	border-radius: .85rem;
	padding: .5rem;
	position: sticky;
	top: 90px;
}
.ux-sidenav-list { list-style: none; margin: 0; padding: 0; }
.ux-sidenav-link {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .7rem .8rem;
	border-radius: .6rem;
	color: var(--ux-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: .92rem;
	position: relative;
	transition: background-color .18s ease, color .18s ease;
}
.ux-sidenav-link i { width: 1.15rem; text-align: center; font-size: 1rem; opacity: .85; }
.ux-sidenav-link:hover { background: var(--ux-surface-2); color: var(--ux-text); }
.ux-sidenav-link.active { background: rgba(124, 92, 255, .14); color: var(--ux-text); }
.ux-sidenav-link.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 20%;
	bottom: 20%;
	width: 3px;
	border-radius: 3px;
	background: var(--ux-grad);
}
.ux-sidenav-link.active i { color: var(--ux-primary); opacity: 1; }
.ux-dark .page-header-modern { background-color: var(--ux-surface) !important; border-top: 0; }
.ux-dark .page-header-modern h1 { color: var(--ux-text) !important; }
.ux-dark .page-header-modern .breadcrumb li { color: var(--ux-muted); }
.ux-dark .page-header-modern .breadcrumb a { color: var(--ux-muted); }
.ux-dark #footer { background: var(--ux-surface); border-top: 1px solid var(--ux-border); color: var(--ux-muted); }
.ux-dark #footer a { color: var(--ux-muted); }
.ux-dark #footer a:hover { color: var(--ux-text); }

/* ---- Brand wordmark --------------------------------------------------- */
.ux-brand { color: var(--ux-text); font-weight: 700; letter-spacing: -.02em; }
.ux-brand > span { color: var(--ux-primary); }

/* ---- Soft status badges (spec §1.1 rules) ---------------------------- */
.badge-ux { display: inline-block; padding: .28em .7em; border-radius: 2em; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.badge-ux-success { background: rgba(45, 212, 167, .14); color: #2DD4A7; border: 1px solid rgba(45, 212, 167, .25); }
.badge-ux-warning { background: rgba(249, 191, 89, .14); color: #F9BF59; border: 1px solid rgba(249, 191, 89, .25); }
.badge-ux-danger { background: rgba(247, 87, 126, .14); color: #F7577E; border: 1px solid rgba(247, 87, 126, .25); }
.badge-ux-info { background: rgba(91, 195, 225, .14); color: #5BC3E1; border: 1px solid rgba(91, 195, 225, .25); }
.badge-ux-primary { background: rgba(124, 92, 255, .14); color: #7C5CFF; border: 1px solid rgba(124, 92, 255, .25); }
.badge-ux-muted { background: rgba(138, 148, 173, .14); color: #8A94AD; border: 1px solid rgba(138, 148, 173, .25); }

/* ---- Gradient CTA (hero/checkout only) ------------------------------- */
.btn-ux-grad { background: linear-gradient(135deg, #7C5CFF, #22D3EE); border: 0; color: #0B0E17; font-weight: 600; }
.btn-ux-grad:hover { filter: brightness(1.08); box-shadow: 0 0 24px rgba(34, 211, 238, .35); color: #0B0E17; }

/* ---- Reveal card (secrets & generated codes) ------------------------- */
.ux-reveal-card { background: var(--ux-surface-2); border: 1px solid var(--ux-border); border-radius: .5rem; font-family: ui-monospace, monospace; }
.ux-reveal-card .ux-reveal-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .9rem; border-bottom: 1px solid var(--ux-border); }
.ux-reveal-card .ux-reveal-row:last-child { border-bottom: 0; }

/* ---- Table skeleton + empty state ------------------------------------ */
.ux-skeleton-row td > span { display: block; height: .9em; border-radius: .25em; background: linear-gradient(90deg, var(--ux-surface), var(--ux-surface-2), var(--ux-surface)); background-size: 200% 100%; animation: ux-shimmer 1.2s linear infinite; }
@keyframes ux-shimmer { to { background-position: -200% 0; } }
.ux-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 1rem; color: var(--ux-muted); }
.ux-empty i { font-size: 2rem; margin-bottom: .75rem; opacity: .6; }

/* ---- Numbers --------------------------------------------------------- */
.ux-num { font-variant-numeric: tabular-nums; }

/* ---- CTA band -------------------------------------------------------- */
.ux-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	padding: 2.75rem 3rem;
	border-radius: 1rem;
	background:
		radial-gradient(120% 160% at 0% 0%, rgba(124, 92, 255, .22), transparent 55%),
		radial-gradient(120% 160% at 100% 100%, rgba(34, 211, 238, .18), transparent 55%),
		var(--ux-surface);
	border: 1px solid var(--ux-border);
	position: relative;
	overflow: hidden;
}
.ux-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--ux-grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: .5;
	pointer-events: none;
}
.ux-cta-content { min-width: 0; }
.ux-cta-content h3 { color: var(--ux-text); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.ux-cta-content p { color: var(--ux-muted); font-size: 1.05rem; }
.ux-cta-accent {
	background: var(--ux-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 800;
}
.ux-cta-action { flex-shrink: 0; }
.ux-cta-action .btn { padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 767.98px) {
	.ux-cta { padding: 2rem 1.5rem; text-align: center; justify-content: center; }
	.ux-cta-content, .ux-cta-action { width: 100%; }
	.ux-cta-action .btn { width: 100%; }
}

/* ---- Order step rail (spec §4.3) ------------------------------------- */
.ux-steps { display: flex; align-items: flex-start; gap: 0; padding: 0; margin: 0; list-style: none; }
.ux-steps .ux-step { flex: 1; text-align: center; position: relative; color: var(--ux-muted); font-size: .8rem; font-weight: 600; }
.ux-steps .ux-step-dot { width: 2rem; height: 2rem; border-radius: 50%; margin: 0 auto .45rem; display: flex; align-items: center; justify-content: center; background: var(--ux-surface-2); border: 1px solid var(--ux-border); position: relative; z-index: 1; }
.ux-steps .ux-step::before { content: ''; position: absolute; top: 1rem; left: -50%; width: 100%; height: 2px; background: var(--ux-border); }
.ux-steps .ux-step:first-child::before { display: none; }
.ux-steps .ux-step.done { color: var(--ux-text); }
.ux-steps .ux-step.done .ux-step-dot { background: var(--ux-primary); border-color: var(--ux-primary); color: #fff; }
.ux-steps .ux-step.done::before { background: var(--ux-grad); }
.ux-steps .ux-step.current { color: var(--ux-text); }
.ux-steps .ux-step.current .ux-step-dot { border-color: var(--ux-accent); color: var(--ux-accent); animation: ux-pulse 2s infinite; }
.ux-steps .ux-step.current::before { background: var(--ux-grad); }
@keyframes ux-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .45); }
	70% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
@media (max-width: 575.98px) {
	.ux-steps { flex-direction: column; gap: .9rem; }
	.ux-steps .ux-step { text-align: left; display: flex; align-items: center; gap: .75rem; }
	.ux-steps .ux-step-dot { margin: 0; }
	.ux-steps .ux-step::before { display: none; }
}

/* ---- Product price (summary) ----------------------------------------- */
.ux-price {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	background: var(--ux-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.ux-price .ux-price-from {
	-webkit-text-fill-color: var(--ux-muted);
	font-size: 1rem;
	font-weight: 600;
	vertical-align: middle;
}

/* ---- Product info panel (Description / FAQ / Reviews) ---------------- */
.ux-product-panel {
	background: var(--ux-surface);
	border: 1px solid var(--ux-border);
	border-radius: 1rem;
	overflow: hidden;
}
.ux-product-panel .ux-product-tabnav {
	display: flex;
	gap: .35rem;
	border-bottom: 1px solid var(--ux-border);
	padding: .6rem .6rem 0;
	margin: 0;
	background: rgba(11, 14, 23, .35);
}
.ux-product-panel .ux-product-tabnav .nav-link {
	border: 0 !important;
	background: transparent;
	color: var(--ux-muted);
	font-weight: 600;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: .7rem 1.1rem;
	border-radius: .6rem .6rem 0 0;
	position: relative;
	transition: color .18s ease, background-color .18s ease;
}
.ux-product-panel .ux-product-tabnav .nav-link:hover { color: var(--ux-text); background: var(--ux-surface-2); }
.ux-product-panel .ux-product-tabnav .nav-link.active {
	color: var(--ux-text) !important;
	background: var(--ux-surface);
}
.ux-product-panel .ux-product-tabnav .nav-link.active::after {
	content: '';
	position: absolute;
	left: .5rem;
	right: .5rem;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: var(--ux-grad);
}
.ux-product-panel .ux-product-tabcontent { padding: 1.75rem; }
.ux-product-panel .ux-product-tabcontent .tab-pane > p { color: var(--ux-text); opacity: .85; line-height: 1.7; }
/* FAQ toggles inside the panel — rounded rows on the raised surface */
.ux-product-panel .toggle > section { background: var(--ux-surface-2); border: 1px solid var(--ux-border); border-radius: .6rem; margin-bottom: .6rem; overflow: hidden; }
.ux-product-panel .toggle > section > .toggle-title { color: var(--ux-text); font-weight: 600; padding: .9rem 2.5rem .9rem 1rem; }
.ux-product-panel .toggle > section.active { border-color: rgba(124, 92, 255, .35); }
.ux-product-panel .toggle > section > .toggle-content { padding: 0 1rem 1rem; color: var(--ux-muted); }
.ux-product-panel .toggle.toggle-primary > section > .toggle-title::after { color: var(--ux-primary); }
@media (max-width: 575.98px) {
	.ux-product-panel .ux-product-tabnav { overflow-x: auto; flex-wrap: nowrap; }
	.ux-product-panel .ux-product-tabnav .nav-link { white-space: nowrap; }
	.ux-product-panel .ux-product-tabcontent { padding: 1.1rem; }
}

/* ---- Chat bubbles (spec §4.5) ---------------------------------------- */
.ux-msg { max-width: 78%; background: var(--ux-surface); border: 1px solid var(--ux-border); border-radius: .75rem; padding: .7rem 1rem; margin-bottom: .8rem; color: var(--ux-text); }
.ux-msg-mine { margin-left: auto; background: var(--ux-surface-2); border-color: rgba(124, 92, 255, .35); }
.ux-msg .ux-msg-meta { font-size: .72rem; color: var(--ux-muted); margin-bottom: .25rem; }

/* ---- Ticket attachments (thumbnails on the thread) ------------------- */
.ux-attachments { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.ux-attach-thumb { display: block; width: 76px; height: 76px; border-radius: .5rem; overflow: hidden; border: 1px solid var(--ux-border); background: var(--ux-surface); }
.ux-attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ux-attach-thumb:hover { border-color: rgba(124, 92, 255, .55); }

/* ---- Image drag & drop dropzone (new-ticket form) -------------------- */
.ux-dropzone { border: 1px dashed var(--ux-border); border-radius: .6rem; background: var(--ux-surface-2); color: var(--ux-muted); padding: 1.4rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ux-dropzone:hover { border-color: rgba(124, 92, 255, .45); color: var(--ux-text); }
.ux-dropzone.ux-dropzone-over { border-color: var(--ux-accent); background: rgba(34, 211, 238, .07); color: var(--ux-text); }
.ux-dropzone i { font-size: 1.4rem; display: block; margin-bottom: .35rem; opacity: .8; }
.ux-dropzone-hint { font-size: .74rem; opacity: .7; }
.ux-dropzone-previews { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ux-preview { position: relative; width: 76px; height: 76px; border-radius: .5rem; overflow: hidden; border: 1px solid var(--ux-border); background: var(--ux-surface); }
.ux-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ux-preview-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px; text-align: center; border: 0; border-radius: 50%; background: rgba(11, 14, 23, .82); color: #fff; font-size: .7rem; cursor: pointer; padding: 0; }
.ux-preview-remove:hover { background: var(--ux-danger); }

/* ---- Auth (guest layout) --------------------------------------------- */
.ux-auth-bg { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(1000px 500px at 75% -10%, rgba(124, 92, 255, .22), transparent 60%), var(--ux-bg); }
.ux-auth-card { width: 100%; max-width: 420px; }
.ux-auth-card .ux-auth-brand { font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--ux-text); }
.ux-auth-card .ux-auth-brand span { color: var(--ux-primary); }
/* Legacy auth views use bare inputs/buttons — style them until T15 restyles. */
.ux-auth-card label { display: block; font-size: .82rem; color: var(--ux-muted); margin: .9rem 0 .35rem; }
.ux-auth-card input[type=text], .ux-auth-card input[type=email], .ux-auth-card input[type=password] { width: 100%; background: var(--ux-surface-2); border: 1px solid var(--ux-border); border-radius: .5rem; color: var(--ux-text); padding: .65rem .8rem; font-size: .9rem; }
.ux-auth-card input:focus { outline: none; border-color: var(--ux-accent); }
.ux-auth-card button[type=submit] { width: 100%; margin-top: 1.2rem; background: var(--ux-primary); color: #fff; border: 0; border-radius: .5rem; padding: .7rem; font-weight: 600; }
.ux-auth-card button[type=submit]:hover { background: var(--ux-primary-2); }
.ux-auth-card .alt { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--ux-muted); }
.ux-auth-card .alt a, .ux-auth-card .row a { color: var(--ux-accent); }
.ux-auth-card .cf-turnstile { margin-top: 1rem; }
.ux-auth-card pre { color: var(--ux-text); background: var(--ux-surface-2); border-radius: .5rem; padding: .75rem; }

/* ---- Customer sidebar → pills under lg (spec §9) --------------------- */
@media (max-width: 991.98px) {
	.ux-sidenav { position: static; }
	.ux-sidenav-list { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding-bottom: .25rem; }
	.ux-sidenav-list > li { flex: 0 0 auto; }
	.ux-sidenav-link { white-space: nowrap; }
	.ux-sidenav-link.active::before { display: none; }
}

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.appear-animation, [data-appear-animation] { animation: none !important; opacity: 1 !important; transform: none !important; }
	.ux-skeleton-row td > span { animation: none; }
	.ux-steps .ux-step.current .ux-step-dot { animation: none; }
}

/* ====================================================================== */
/* Notification bell (spec §7) — shared across Paces + Porto flavors.     */
/* ====================================================================== */
.dropdown-menu-lg { min-width: 320px; }
/* ---- Notification bell (custom dropdown, both shells) ---------------- */
.ux-bell { position: relative; display: inline-flex; }
.ux-bell-btn {
	position: relative;
	background: transparent;
	border: 1px solid transparent;
	border-radius: .6rem;
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ux-bell-btn i { font-size: 1.15rem; }
.ux-bell-btn:hover, .ux-bell.open .ux-bell-btn { background: var(--ux-surface-2); border-color: var(--ux-border); color: var(--ux-primary); }
.ux-bell.open .ux-bell-btn i, .ux-bell-btn:hover i { animation: ux-bell-swing .6s ease; transform-origin: top center; }
.ux-bell-badge {
	position: absolute; top: 2px; right: 2px;
	min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 9px;
	background: var(--ux-danger);
	color: #fff;
	font-size: .64rem; font-weight: 700; line-height: 17px; text-align: center;
	box-shadow: 0 0 0 2px var(--ux-bg);
}

.ux-bell-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 360px;
	max-width: calc(100vw - 24px);
	background: var(--ux-surface);
	border: 1px solid var(--ux-border);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
	overflow: hidden;
	opacity: 0; visibility: hidden;
	transform: translateY(-8px) scale(.98);
	transform-origin: top right;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 1100;
}
.ux-bell.open .ux-bell-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ux-bell-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--ux-border);
}
.ux-bell-head strong { color: var(--ux-text); font-size: .95rem; }
.ux-bell-readall { color: var(--ux-muted); font-size: .78rem; text-decoration: none; transition: color .16s ease; }
.ux-bell-readall:hover { color: var(--ux-primary); }
.ux-bell-scroll { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
.ux-bell-scroll::-webkit-scrollbar { width: 8px; }
.ux-bell-scroll::-webkit-scrollbar-thumb { background: var(--ux-surface-2); border-radius: 8px; }

.ux-bell-item {
	display: flex; align-items: flex-start; gap: .8rem;
	padding: .8rem 1rem;
	border-bottom: 1px solid var(--ux-border);
	text-decoration: none;
	position: relative;
	transition: background-color .15s ease;
}
.ux-bell-item:last-child { border-bottom: 0; }
.ux-bell-item:hover { background: var(--ux-surface-2); }
.ux-bell-unread { background: rgba(124, 92, 255, .07); }
.ux-bell-unread::before {
	content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
	background: var(--ux-grad);
}
.ux-bell-ic {
	flex: 0 0 34px; width: 34px; height: 34px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: .85rem; margin-top: 1px;
}
.ux-bell-ic-success { background: rgba(45, 212, 167, .15); color: var(--ux-success); }
.ux-bell-ic-danger  { background: rgba(247, 87, 126, .15); color: var(--ux-danger); }
.ux-bell-ic-primary { background: rgba(124, 92, 255, .15); color: var(--ux-primary); }
.ux-bell-ic-info    { background: rgba(91, 195, 225, .15); color: var(--ux-info); }
.ux-bell-ic-muted   { background: rgba(138, 148, 173, .15); color: var(--ux-muted); }
.ux-bell-body { min-width: 0; flex: 1; }
.ux-bell-title { font-weight: 600; font-size: .86rem; color: var(--ux-text); line-height: 1.3; }
.ux-bell-msg { font-size: .8rem; color: var(--ux-muted); margin-top: 1px; line-height: 1.35; }
.ux-bell-time { font-size: .7rem; color: var(--ux-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.ux-bell-empty { text-align: center; padding: 2.5rem 1rem; color: var(--ux-muted); font-size: .85rem; }
@media (max-width: 991.98px) {
	.ux-bell-panel { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
}
.animate-ring { animation: ux-ring 1s ease-in-out 0s 2; transform-origin: 50% 0; }
@keyframes ux-ring { 0% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .animate-ring { animation: none; } }

/* Interactive star rating (order-detail review CTA, spec §3.4) */
.ux-stars { display: inline-flex; gap: .25rem; font-size: 1.6rem; line-height: 1; }
.ux-star { background: none; border: 0; padding: 0 .05rem; cursor: pointer; color: var(--ux-border); transition: color .12s ease; }
.ux-star.active { color: var(--ux-warning); }
.ux-star:hover { color: var(--ux-warning); }

/* Phone-removal 2FA warning banner (input-form partial). */
.ux-2fa-notice { background: rgba(249, 191, 89, .1); border: 1px solid rgba(249, 191, 89, .3); border-radius: .6rem; padding: .8rem 1rem; }
.ux-2fa-notice i { color: var(--ux-warning); }
.ux-2fa-notice p { color: var(--ux-text); font-size: .88rem; line-height: 1.45; }
.ux-2fa-notice strong { color: var(--ux-warning); }
