/**
 * WMS Frontend / Public Styles — 10X UI/UX Redesign
 * Warm portal: cream/white surfaces, orange (#EA5A00) accent matches brand theme.
 *
 * @package WarrantyManagement
 */

/* =============================================
   Design Tokens (CSS Custom Properties)
   ============================================= */
:root {
	/* Surfaces — warm off-white scale matching design system */
	--wms-bg:             #F5F2EC;
	--wms-bg-2:           #EEE9DF;
	--wms-surface:        #FFFFFF;
	--wms-surface2:       #FAF8F3;
	--wms-border:         #E4DED1;
	--wms-border-dark:    #D6CEBC;

	/* Ink — warm dark scale */
	--wms-text:           #1F1E1D;
	--wms-text2:          #46443F;
	--wms-muted:          #75716A;
	--wms-faint:          #A29E95;

	/* Accent — use sparingly (orange only) */
	--wms-primary:        #EA5A00;
	--wms-primary-dark:   #B84600;
	--wms-primary-light:  #FDEFE3;

	/* Status — warm muted tones */
	--wms-danger:         #C8553D;
	--wms-danger-bg:      #F7E4DE;
	--wms-warning:        #B7791F;
	--wms-warning-bg:     #F6ECD4;
	--wms-success:        #5A7A4E;
	--wms-success-bg:     #E4ECD9;
	--wms-orange:         #CF6A2A;
	--wms-orange-bg:      #F7E3CF;
	--wms-blue:           #4A6B88;
	--wms-blue-bg:        #DFE7EE;

	/* Radii */
	--wms-radius-sm:      6px;
	--wms-radius-md:      10px;
	--wms-radius-lg:      14px;
	--wms-radius-xl:      20px;

	/* Shadows */
	--wms-shadow-sm:      0 1px 0 rgba(31,30,29,.04), 0 1px 2px rgba(31,30,29,.04);
	--wms-shadow-md:      0 4px 12px rgba(31,30,29,.08);
	--wms-shadow-lg:      0 8px 24px rgba(31,30,29,.10);
	--wms-shadow-xl:      0 10px 30px rgba(31,30,29,.12), 0 2px 6px rgba(31,30,29,.06);

	/* Focus */
	--wms-focus-ring:     0 0 0 3px rgba(234,90,0,.18);

	/* Typography */
	--wms-font-sans:      "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
	--wms-font-serif:     "Fraunces", Georgia, serif;
	--wms-font-mono:      "IBM Plex Mono", ui-monospace, monospace;
}

/* =============================================
   Base typography for WMS portal pages
   ============================================= */
body.wms-portal-page,
.wms-dash-layout {
	font-family: var(--wms-font-sans);
	background: var(--wms-bg);
	color: var(--wms-text);
	-webkit-font-smoothing: antialiased;
}

.wms-dash-layout h1,
.wms-dash-layout h2,
.wms-dash-layout h3 {
	font-family: var(--wms-font-serif);
	font-weight: 400;
	letter-spacing: -0.015em;
}

.wms-dash-layout code,
.wms-dash-layout .mono {
	font-family: var(--wms-font-mono);
}

/* =============================================
   Box Reset Inside .wms-* wrappers
   ============================================= */
.wms-box *,
.wms-box *::before,
.wms-box *::after,
.wms-landing *,
.wms-landing *::before,
.wms-landing *::after {
	box-sizing: border-box;
}

/* =============================================
   Page Wrap
   ============================================= */
.wms-page-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 24px 60px;
}

/* =============================================
   Box / Card base
   ============================================= */
.wms-box {
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 28px 32px;
	width: 100%;
	margin: 0 0 20px;
	box-shadow: var(--wms-shadow-sm);
}

/* Auth boxes (login, register, forgot password) — centered narrow card */
.wms-box.wms-auth-box,
.wms-login-box .wms-box,
.wms-forgot-box .wms-box {
	max-width: 460px;
	margin: 0 auto;
}

.wms-card {
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	padding: 20px;
	box-shadow: var(--wms-shadow-sm);
}

/* =============================================
   Page Header (design's .page-head)
   ============================================= */
.wms-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wms-border);
}

.wms-page-header .wms-page-eyebrow {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--wms-muted);
	text-transform: uppercase;
	margin-bottom: 6px;
	font-family: var(--wms-font-sans, sans-serif);
}

.wms-page-header h1,
.wms-page-header h2 {
	font-family: var(--wms-font-serif, Georgia, serif);
	font-size: 30px;
	font-weight: 400;
	color: var(--wms-text);
	letter-spacing: -0.015em;
	margin: 0;
	line-height: 1.1;
}

.wms-page-header h2 {
	font-size: 24px;
}

.wms-page-header .wms-page-sub {
	color: var(--wms-muted);
	font-size: 13.5px;
	margin-top: 6px;
	max-width: 52ch;
	line-height: 1.5;
}

.wms-page-header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

/* =============================================
   Section Title
   ============================================= */
.wms-section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--wms-muted);
	margin-bottom: 14px;
	display: block;
}

/* =============================================
   Buttons
   ============================================= */
.wms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: var(--wms-radius-sm);
	font-family: var(--wms-font-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid var(--wms-border-dark);
	background: var(--wms-surface);
	color: var(--wms-text);
	transition: background 120ms, border-color 120ms;
	white-space: nowrap;
	vertical-align: middle;
}

.wms-btn:hover {
	background: var(--wms-surface2);
	text-decoration: none;
}

.wms-btn:focus-visible {
	outline: none;
	box-shadow: var(--wms-focus-ring);
}

.wms-btn-primary {
	background: var(--wms-text);
	color: var(--wms-bg);
	border-color: var(--wms-text);
}

.wms-btn-primary:hover {
	background: #2f2d2b;
	border-color: #2f2d2b;
	color: var(--wms-bg);
}

.wms-btn-accent {
	background: var(--wms-primary);
	color: #fff;
	border-color: var(--wms-primary);
}

.wms-btn-accent:hover {
	background: var(--wms-primary-dark);
	border-color: var(--wms-primary-dark);
	color: #fff;
}

.wms-btn-secondary {
	background: var(--wms-surface);
	color: var(--wms-text2);
	border-color: var(--wms-border-dark);
}

.wms-btn-secondary:hover {
	background: var(--wms-surface2);
	color: var(--wms-text);
}

.wms-btn-danger {
	color: var(--wms-danger);
	border-color: var(--wms-danger-bg);
	background: var(--wms-danger-bg);
}

.wms-btn-danger:hover {
	background: #f0ccc4;
	border-color: #f0ccc4;
	color: var(--wms-danger);
}

.wms-btn-warning {
	background: var(--wms-warning-bg);
	color: var(--wms-warning);
	border-color: var(--wms-warning-bg);
}

.wms-btn-warning:hover {
	background: #eed9a4;
	color: var(--wms-warning);
}

.wms-btn-success {
	background: var(--wms-success-bg);
	color: var(--wms-success);
	border-color: var(--wms-success-bg);
}

.wms-btn-success:hover {
	background: #d0dfc8;
	color: var(--wms-success);
}

.wms-btn-ghost {
	background: transparent;
	color: var(--wms-text2);
	border-color: transparent;
}

.wms-btn-ghost:hover {
	background: rgba(31,30,29,.04);
	color: var(--wms-text);
}

.wms-btn-small {
	padding: 4px 10px;
	font-size: 12px;
}

.wms-btn-large {
	padding: 11px 22px;
	font-size: 14px;
}

.wms-btn-wide {
	width: 100%;
	justify-content: center;
}

.wms-btn-outline {
	background: transparent;
	color: var(--wms-primary);
	border-color: var(--wms-primary);
}

.wms-btn-outline:hover {
	background: var(--wms-primary-light);
	color: var(--wms-primary-dark);
}

.wms-btn:disabled,
.wms-btn[disabled] {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.wms-btn + .wms-btn {
	margin-left: 8px;
}

/* =============================================
   Back Link / Breadcrumb
   ============================================= */
.wms-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--wms-muted);
	text-decoration: none;
	transition: color .15s;
}

.wms-back-link::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	/* Arrow left chevron via mask */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") no-repeat center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	flex-shrink: 0;
}

.wms-back-link:hover {
	color: var(--wms-primary);
	text-decoration: none;
}

/* =============================================
   Form Fields
   ============================================= */
.wms-field {
	margin-bottom: 18px;
}

.wms-field label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--wms-text2);
	letter-spacing: .01em;
}

.wms-field input[type="text"],
.wms-field input[type="email"],
.wms-field input[type="tel"],
.wms-field input[type="password"],
.wms-field input[type="date"],
.wms-field input[type="number"],
.wms-field input[type="file"],
.wms-field select,
.wms-field textarea,
.wms-input-full,
.wms-textarea {
	width: 100%;
	padding: 9px 13px;
	border: 1.5px solid var(--wms-border-dark);
	border-radius: var(--wms-radius-sm);
	font-size: 14px;
	color: var(--wms-text);
	background: var(--wms-surface);
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
	line-height: 1.5;
}

.wms-field input[type="text"]:focus,
.wms-field input[type="email"]:focus,
.wms-field input[type="tel"]:focus,
.wms-field input[type="password"]:focus,
.wms-field input[type="date"]:focus,
.wms-field input[type="number"]:focus,
.wms-field select:focus,
.wms-field textarea:focus,
.wms-input-full:focus,
.wms-textarea:focus {
	outline: none;
	border-color: var(--wms-primary);
	box-shadow: var(--wms-focus-ring);
}

.wms-field input[type="file"] {
	padding: 7px 10px;
	cursor: pointer;
	background: var(--wms-surface2);
}

.wms-field textarea,
.wms-textarea {
	resize: vertical;
	min-height: 96px;
}

.wms-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.wms-field-row .wms-field {
	flex: 1;
	min-width: 120px;
	margin-bottom: 0;
}

.wms-field-grow  { flex: 2 !important; }
.wms-field-small { flex: 0 1 100px !important; }

.wms-field-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
}

.wms-field-checkbox input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--wms-primary);
	cursor: pointer;
}

.wms-field-checkbox label {
	font-weight: 400;
	margin-bottom: 0;
	cursor: pointer;
}

.required {
	color: var(--wms-danger);
}

/* =============================================
   Notices
   ============================================= */
.wms-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: var(--wms-radius-sm);
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.55;
	border: 1px solid transparent;
}

.wms-notice-info {
	background: var(--wms-primary-light);
	color: var(--wms-primary-dark);
	border-color: rgba(234,90,0,.25);
}

.wms-notice-success {
	background: var(--wms-success-bg);
	color: #14532d;
	border-color: #bbf7d0;
}

.wms-notice-warning {
	background: var(--wms-warning-bg);
	color: #78350f;
	border-color: #fde68a;
}

.wms-notice-error {
	background: var(--wms-danger-bg);
	color: #7f1d1d;
	border-color: #fecaca;
}

/* =============================================
   Toast
   ============================================= */
.wms-toast-wrap {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.wms-toast {
	pointer-events: all;
	background: var(--wms-text);
	color: #fff;
	padding: 12px 18px;
	border-radius: var(--wms-radius-md);
	font-size: 14px;
	font-weight: 500;
	box-shadow: var(--wms-shadow-xl);
	min-width: 240px;
	max-width: 360px;
	animation: wms-toast-in .25s ease forwards;
}

.wms-toast-success { background: var(--wms-success); }
.wms-toast-error   { background: var(--wms-danger); }
.wms-toast-warning { background: var(--wms-warning); }
.wms-toast-info    { background: var(--wms-primary); }

@keyframes wms-toast-in {
	from { opacity: 0; transform: translateY(12px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   Status Badges / Pills
   ============================================= */
.wms-badge,
.wms-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
	line-height: 1.6;
}

/* Status variants */
.wms-status-pending   { background: #fef9c3; color: #78350f; border: 1px solid #fde68a; }
.wms-status-approved  { background: var(--wms-success-bg); color: #14532d; border: 1px solid #bbf7d0; }
.wms-status-rejected  { background: var(--wms-danger-bg); color: #7f1d1d; border: 1px solid #fecaca; }
.wms-status-new       { background: var(--wms-danger-bg); color: #7f1d1d; border: 1px solid #fecaca; }
.wms-status-replied   { background: var(--wms-primary-light); color: var(--wms-primary-dark); border: 1px solid rgba(234,90,0,.25); }
.wms-status-escalated { background: #faf5ff; color: #581c87; border: 1px solid #e9d5ff; }
.wms-status-closed    { background: var(--wms-surface2); color: var(--wms-muted); border: 1px solid var(--wms-border); }
.wms-status-in-repair { background: var(--wms-primary-light); color: var(--wms-primary-dark); border: 1px solid rgba(234,90,0,.25); }
.wms-status-complete  { background: var(--wms-success-bg); color: #14532d; border: 1px solid #bbf7d0; }

/* Solid alarm/warning pills */
.wms-badge-alarm {
	display: inline-flex;
	align-items: center;
	background: var(--wms-danger);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.wms-badge-warning {
	display: inline-flex;
	align-items: center;
	background: var(--wms-warning);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* =============================================
   Day Badge
   ============================================= */
.wms-day-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
}

.wms-day-green  { background: var(--wms-success); }
.wms-day-yellow { background: var(--wms-warning); }
.wms-day-orange { background: #ea580c; }
.wms-day-red    { background: var(--wms-danger); }
.wms-day-alarm  { background: #7f1d1d; }

/* =============================================
   Count Badge
   ============================================= */
.wms-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wms-surface2);
	color: var(--wms-muted);
	border: 1px solid var(--wms-border);
	border-radius: 20px;
	padding: 2px 9px;
	font-size: 12px;
	font-weight: 600;
	min-width: 26px;
}

.wms-count-active {
	background: var(--wms-primary);
	color: #fff;
	border-color: var(--wms-primary);
}

/* =============================================
   Empty State
   ============================================= */
.wms-empty-state {
	text-align: center;
	padding: 48px 24px;
	color: var(--wms-muted);
}

.wms-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	color: var(--wms-muted);
	margin: 0 auto 20px;
}

.wms-empty-state h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--wms-text);
	margin: 0 0 8px;
}

.wms-empty-state p {
	font-size: 14px;
	margin: 0 0 20px;
	max-width: 340px;
	margin-left: auto;
	margin-right: auto;
}

.wms-empty {
	color: var(--wms-muted);
	font-style: italic;
	font-size: 14px;
}

/* =============================================
   Table
   ============================================= */
.wms-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--wms-radius-sm);
	border: 1px solid var(--wms-border);
}

.wms-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: var(--wms-text2);
}

.wms-table thead th {
	background: var(--wms-surface2);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--wms-muted);
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid var(--wms-border);
}

.wms-table tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--wms-border);
	vertical-align: middle;
}

.wms-table tbody tr:last-child td {
	border-bottom: none;
}

.wms-table tbody tr:hover td {
	background: var(--wms-surface2);
}

.wms-row-red td    { background: var(--wms-danger-bg) !important; }
.wms-row-orange td { background: var(--wms-warning-bg) !important; }

/* =============================================
   Divider
   ============================================= */
.wms-divider {
	border: none;
	border-top: 1px solid var(--wms-border);
	margin: 24px 0;
}

/* =============================================
   Auth (Login / Register / Reset)
   ============================================= */

/* Outer wrapper — vertically centers the card on screen */
.wms-auth-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 16px 60px;
	min-height: 60vh;
}

/* Card */
.wms-auth-card {
	width: 100%;
	max-width: 460px;
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	box-shadow: var(--wms-shadow-xl);
	overflow: hidden;
	/* Orange top accent line */
	border-top: 3px solid var(--wms-primary);
}

/* Header */
.wms-auth-header {
	text-align: center;
	padding: 36px 36px 0;
}

.wms-auth-logo-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wms-primary-light);
	color: var(--wms-primary);
	margin: 0 auto 20px;
}

.wms-auth-header h1 {
	font-family: var(--wms-font-serif);
	font-size: 24px;
	font-weight: 400;
	color: var(--wms-text);
	margin: 0 0 8px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.wms-auth-header p {
	color: var(--wms-muted);
	font-size: 14px;
	margin: 0 0 28px;
	line-height: 1.5;
}

/* Form body */
.wms-auth-form {
	padding: 0 36px 28px;
}

/* Password label row (label + forgot-password link on same line) */
.wms-field-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.wms-field-label-row label {
	margin-bottom: 0 !important;
}

.wms-field-link {
	font-size: 12px;
	color: var(--wms-primary);
	text-decoration: none;
	font-weight: 500;
	transition: color .15s;
}

.wms-field-link:hover {
	color: var(--wms-primary-dark);
	text-decoration: underline;
}

/* Full-width submit button */
.wms-auth-submit {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
	padding: 13px 20px;
	font-size: 15px;
	gap: 8px;
}

/* Footer row (sign-up / back links) */
.wms-auth-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 36px 28px;
	border-top: 1px solid var(--wms-border);
	font-size: 13px;
	color: var(--wms-muted);
}

.wms-auth-footer a {
	color: var(--wms-primary);
	font-weight: 600;
	text-decoration: none;
}

.wms-auth-footer a:hover {
	text-decoration: underline;
}

/* Back link (← arrow + text) */
.wms-auth-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--wms-muted) !important;
	font-weight: 500 !important;
	text-decoration: none;
	transition: color .15s;
}

.wms-auth-back-link:hover {
	color: var(--wms-text) !important;
	text-decoration: none !important;
}

/* Reveal button (SVG eye icon) */
.wms-reveal-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 6px;
	color: var(--wms-muted);
	transition: color .15s;
	flex-shrink: 0;
}

.wms-reveal-btn:hover {
	color: var(--wms-text);
}

/* Password strength bar */
.wms-pw-meter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.wms-pw-meter-track {
	flex: 1;
	height: 4px;
	background: var(--wms-border);
	border-radius: 99px;
	overflow: hidden;
}

.wms-pw-meter-fill {
	height: 100%;
	border-radius: 99px;
	transition: width .3s ease, background-color .3s ease;
}

.wms-pw-weak   { background: var(--wms-danger); }
.wms-pw-fair   { background: var(--wms-warning); }
.wms-pw-strong { background: var(--wms-success); }

.wms-pw-strength-label {
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

/* Legacy compat — keep old selectors working */
.wms-login-box,
.wms-password-box {
	/* replaced by .wms-auth-wrap + .wms-auth-card — kept for JS targeting */
}

.wms-form-link {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
	color: var(--wms-muted);
}

.wms-form-link a {
	color: var(--wms-primary);
	font-weight: 600;
	text-decoration: none;
}

.wms-form-link a:hover {
	text-decoration: underline;
}

/* =============================================
   Wizard (Registration)
   ============================================= */
.wms-wizard-progress {
	display: flex;
	align-items: flex-start;
	position: relative;
	margin-bottom: 36px;
	padding-bottom: 4px;
}

.wms-wizard-progress::before {
	content: '';
	position: absolute;
	top: 20px;
	left: calc(12.5%);
	right: calc(12.5%);
	height: 2px;
	background: var(--wms-border);
	z-index: 0;
}

.wms-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	position: relative;
	z-index: 1;
}

.wms-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wms-surface2);
	border: 2px solid var(--wms-border-dark);
	font-size: 14px;
	font-weight: 700;
	color: var(--wms-muted);
	transition: background .2s, border-color .2s, color .2s;
}

.wms-step-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--wms-muted);
	transition: color .2s;
}

.wms-step-active .wms-step-num {
	background: var(--wms-primary);
	border-color: var(--wms-primary);
	color: #fff;
	box-shadow: 0 0 0 4px var(--wms-primary-light);
}

.wms-step-active .wms-step-label {
	color: var(--wms-primary);
	font-weight: 700;
}

.wms-step-done .wms-step-num {
	background: var(--wms-success);
	border-color: var(--wms-success);
	color: #fff;
}

.wms-step-done .wms-step-label {
	color: var(--wms-success);
}

@keyframes wms-panel-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wms-wizard-panel {
	animation: wms-panel-in .22s ease;
}

.wms-wizard-panel h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--wms-text);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wms-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wms-border);
	gap: 12px;
}

.wms-wizard-nav .wms-btn {
	min-width: 120px;
}

.wms-summary-box {
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	padding: 20px 24px;
	margin-bottom: 20px;
	font-size: 13px;
}

.wms-summary-box dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 24px;
	margin: 0;
}

.wms-summary-box dt {
	font-weight: 600;
	color: var(--wms-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.wms-summary-box dd {
	margin: 0;
	color: var(--wms-text);
	font-weight: 500;
}

.wms-thumb-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.wms-thumb-preview img {
	max-width: 120px;
	max-height: 90px;
	object-fit: cover;
	border-radius: var(--wms-radius-sm);
	border: 1.5px solid var(--wms-border);
	box-shadow: var(--wms-shadow-sm);
}

/* Drag-drop hint for file inputs */
.wms-upload-hint {
	display: block;
	font-size: 12px;
	color: var(--wms-muted);
	margin-top: 6px;
	padding: 8px 12px;
	background: var(--wms-surface2);
	border: 1.5px dashed var(--wms-border-dark);
	border-radius: var(--wms-radius-sm);
	text-align: center;
}

/* =============================================
   Landing Page — Full redesign
   Intercom-inspired: warm portal, orange accent,
   full-bleed hero, contained content sections.
   ============================================= */
.wms-landing {
	width: 100%;
	padding: 0;
	margin: 0;
}

/* ── Hero — full viewport width ── */
.wms-landing-hero {
	background: linear-gradient(145deg, #1a0800 0%, #5c1c00 45%, #c44d00 80%, #EA5A00 100%);
	padding: 100px 0 80px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}

/* Decorative glow */
.wms-landing-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,140,60,.18) 0%, transparent 70%);
	pointer-events: none;
}

.wms-hero-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.wms-hero-deco-1 {
	position: absolute;
	top: -80px;
	right: -80px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(255,180,100,.12) 0%, transparent 65%);
	border-radius: 50%;
}

.wms-hero-deco-2 {
	position: absolute;
	bottom: -60px;
	left: -60px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255,100,0,.1) 0%, transparent 65%);
	border-radius: 50%;
}

.wms-landing-hero-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.wms-landing-hero-content {
	max-width: 680px;
	margin: 0 auto;
	animation: wt-fade-up .5s ease both;
}

.wms-landing-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	color: rgba(255,255,255,.9);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
	backdrop-filter: blur(6px);
}

.wms-brand-dot {
	width: 7px;
	height: 7px;
	background: #EA5A00;
	border-radius: 50%;
	animation: wt-pulse-ring 2s ease infinite;
	display: inline-block;
	flex-shrink: 0;
}

.wms-landing-hero-content h1 {
	font-size: clamp( 2rem, 5vw, 3.2rem );
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 18px;
	letter-spacing: -.02em;
}

.wms-landing-hero-content p {
	font-size: clamp( 1rem, 2vw, 1.15rem );
	color: rgba(255,255,255,.8);
	max-width: 540px;
	margin: 0 auto 32px;
	line-height: 1.65;
}

/* Hero CTA buttons */
.wms-landing-cta {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.wms-btn-hero-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: #fff;
	color: var(--wms-primary-dark);
	border: 2px solid #fff;
	border-radius: var(--wms-radius-md);
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s, transform .15s, box-shadow .15s;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.wms-btn-hero-primary:hover {
	background: #fff3ed;
	border-color: #fff3ed;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0,0,0,.3);
}

.wms-btn-hero-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	background: rgba(255,255,255,.1);
	color: #fff;
	border: 2px solid rgba(255,255,255,.35);
	border-radius: var(--wms-radius-md);
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	backdrop-filter: blur(6px);
	transition: background .15s, border-color .15s, transform .15s;
}

.wms-btn-hero-secondary:hover {
	background: rgba(255,255,255,.2);
	border-color: rgba(255,255,255,.6);
	color: #fff;
	transform: translateY(-2px);
}

/* Brand pills */
.wms-landing-brands {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.wms-landing-brands-label {
	font-size: 12px;
	color: rgba(255,255,255,.55);
	margin-right: 2px;
}

.wms-brand-pill {
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.2);
	color: rgba(255,255,255,.88);
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: .03em;
}

/* ── Stats strip ── */
.wms-landing-stats-wrap {
	background: #fff;
	border-bottom: 1px solid var(--wms-border);
}

.wms-landing-stats {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.wms-landing-stat {
	padding: 28px 24px;
	text-align: center;
	border-right: 1px solid var(--wms-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.wms-landing-stat:last-child {
	border-right: none;
}

.wms-stat-number {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--wms-primary);
	line-height: 1;
	letter-spacing: -.03em;
}

.wms-stat-unit {
	font-size: .75rem;
	font-weight: 600;
	color: var(--wms-muted);
	text-transform: lowercase;
	min-height: 16px;
}

.wms-stat-label {
	font-size: .8rem;
	color: var(--wms-text2);
	font-weight: 500;
	margin-top: 4px;
}

/* ── Shared section styling ── */
.wms-landing-section {
	padding: 72px 0;
}

.wms-landing-section-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.wms-landing-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.wms-section-tag {
	display: inline-block;
	background: var(--wms-primary-light);
	color: var(--wms-primary);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.wms-landing-section-header h2 {
	font-size: clamp( 1.6rem, 3.5vw, 2.2rem );
	font-weight: 800;
	color: var(--wms-text);
	margin: 0 0 10px;
	letter-spacing: -.02em;
}

.wms-landing-section-header p {
	font-size: 1rem;
	color: var(--wms-muted);
	margin: 0;
	max-width: 480px;
	margin: 0 auto;
}

/* ── How it works steps ── */
.wms-landing-how {
	background: var(--wms-bg);
}

.wms-how-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	position: relative;
}

/* Connecting line between steps */
.wms-how-steps::before {
	content: '';
	position: absolute;
	top: 30px;
	left: calc(16.66% + 16px);
	right: calc(16.66% + 16px);
	height: 2px;
	background: linear-gradient(90deg, var(--wms-border) 0%, var(--wms-primary) 50%, var(--wms-border) 100%);
	z-index: 0;
}

.wms-how-step {
	text-align: center;
	padding: 0 16px;
	position: relative;
	z-index: 1;
}

.wms-how-step-num {
	font-size: .7rem;
	font-weight: 800;
	color: var(--wms-primary);
	letter-spacing: .1em;
	margin-bottom: 12px;
}

.wms-how-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: #fff;
	border: 2px solid var(--wms-border);
	border-radius: 50%;
	color: var(--wms-primary);
	margin-bottom: 18px;
	box-shadow: var(--wms-shadow-sm);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.wms-how-step:hover .wms-how-step-icon {
	border-color: var(--wms-primary);
	box-shadow: 0 0 0 4px var(--wms-primary-light), var(--wms-shadow-md);
	transform: translateY(-3px);
}

.wms-how-step h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wms-text);
	margin: 0 0 8px;
}

.wms-how-step p {
	font-size: .875rem;
	color: var(--wms-muted);
	line-height: 1.6;
	margin: 0;
}

/* ── Feature cards ── */
.wms-landing-features-wrap {
	background: #fff;
}

.wms-landing-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.wms-feature {
	background: var(--wms-bg);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	padding: 28px 24px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.wms-feature:hover {
	transform: translateY(-3px);
	box-shadow: var(--wms-shadow-md);
	border-color: var(--wms-border-dark);
}

.wms-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--wms-primary-light);
	border-radius: var(--wms-radius-sm);
	color: var(--wms-primary);
	margin-bottom: 16px;
}

.wms-feature h3 {
	font-size: .95rem;
	font-weight: 700;
	color: var(--wms-text);
	margin: 0 0 8px;
}

.wms-feature p {
	font-size: .85rem;
	color: var(--wms-muted);
	line-height: 1.6;
	margin: 0;
}

/* ── CTA Banner ── */
.wms-landing-cta-banner {
	background: linear-gradient(135deg, #1a0800 0%, #7a2500 100%);
	padding: 64px 0;
}

.wms-cta-banner-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.wms-cta-banner-content h2 {
	font-size: clamp( 1.3rem, 3vw, 1.8rem );
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
}

.wms-cta-banner-content p {
	font-size: .9rem;
	color: rgba(255,255,255,.7);
	margin: 0;
}

.wms-cta-banner-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

/* =============================================
   Filter Bar (product list, etc.)
   ============================================= */
.wms-filter-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.wms-filter-search {
	position: relative;
	flex: 1;
	min-width: 180px;
}

.wms-filter-search-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wms-muted);
	pointer-events: none;
	display: flex;
}

.wms-filter-search input {
	width: 100%;
	padding: 7px 12px 7px 32px;
	border: 1.5px solid var(--wms-border-dark);
	border-radius: var(--wms-radius-sm);
	font-size: 13px;
	background: var(--wms-surface);
	color: var(--wms-text);
	font-family: var(--wms-font-sans);
	transition: border-color .15s, box-shadow .15s;
}

.wms-filter-search input:focus {
	outline: none;
	border-color: var(--wms-primary);
	box-shadow: var(--wms-focus-ring);
}

.wms-pill-tabs {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.wms-pill-tab {
	padding: 5px 13px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid var(--wms-border-dark);
	background: var(--wms-surface);
	color: var(--wms-text2);
	transition: background .12s, color .12s, border-color .12s;
	font-family: var(--wms-font-sans);
	white-space: nowrap;
}

.wms-pill-tab:hover {
	background: var(--wms-surface2);
	color: var(--wms-text);
}

.wms-pill-tab.is-active {
	background: var(--wms-text);
	color: var(--wms-bg);
	border-color: var(--wms-text);
}

.wms-filter-count {
	font-size: 12.5px;
	color: var(--wms-muted);
	margin-left: auto;
	white-space: nowrap;
}

/* =============================================
   Product Cards / Grid
   ============================================= */
.wms-product-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wms-product-card {
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	overflow: hidden;
	box-shadow: var(--wms-shadow-sm);
	display: flex;
	transition: box-shadow .15s;
}

.wms-product-card:hover {
	box-shadow: var(--wms-shadow-md);
}

/* Status accent — top border strip */
.wms-card-active   { border-top: 2px solid var(--wms-success, #5A7A4E); }
.wms-card-expired  { opacity: .75; }
.wms-card-pending  { border-top: 2px solid var(--wms-warning, #B7791F); }
.wms-card-rejected { border-top: 2px solid var(--wms-danger, #C8553D); }

/* Thumb column */
.wms-product-thumb {
	width: 88px;
	flex-shrink: 0;
	background: var(--wms-surface2);
	border-right: 1px solid var(--wms-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wms-faint);
	padding: 16px;
}

/* Body column */
.wms-product-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wms-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 18px 10px;
}

.wms-card-brand {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wms-muted);
	margin-bottom: 2px;
}

.wms-card-title {
	font-family: var(--wms-font-serif, Georgia, serif);
	font-size: 15.5px;
	font-weight: 400;
	color: var(--wms-text);
	letter-spacing: -0.01em;
}

.wms-card-serial {
	font-family: var(--wms-font-mono);
	font-size: 11.5px;
	color: var(--wms-muted);
	margin-top: 3px;
}

.wms-card-meta {
	padding: 0 18px 10px;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.wms-card-meta-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wms-card-meta-label {
	font-size: 11px;
	color: var(--wms-muted);
	letter-spacing: 0.04em;
}

.wms-card-meta-value {
	font-size: 13px;
	color: var(--wms-text2);
	font-weight: 500;
}

.wms-warranty-bar-wrap {
	padding: 0 18px 10px;
}

.wms-warranty-bar-track {
	background: var(--wms-border);
	border-radius: 4px;
	height: 4px;
	overflow: hidden;
	margin-bottom: 6px;
}

.wms-warranty-bar-fill {
	height: 100%;
	border-radius: 4px;
	background: var(--wms-success, #5A7A4E);
	transition: width .4s ease;
}

.wms-bar-warn   { background: var(--wms-warning, #B7791F); }
.wms-bar-danger { background: var(--wms-danger, #C8553D); }

.wms-bar-label,
.wms-warranty-bar-label {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	color: var(--wms-muted);
	margin-bottom: 5px;
}

.wms-card-alerts {
	padding: 0 18px 4px;
}

.wms-card-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding: 10px 18px 14px;
	border-top: 1px solid var(--wms-border);
	margin-top: auto;
}

/* =============================================
   FAQ
   ============================================= */
.wms-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px;
}

.wms-faq-item {
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	overflow: hidden;
	transition: border-color .18s, box-shadow .18s;
}

.wms-faq-item:has(.wms-faq-question[aria-expanded="true"]) {
	border-color: var(--wms-primary);
	box-shadow: 0 0 0 3px rgba(234,90,0,.1);
}

.wms-faq-question {
	width: 100%;
	background: none;
	border: none;
	text-align: left;
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wms-text2);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	transition: background .15s, color .15s;
	line-height: 1.45;
}

.wms-faq-question:hover {
	background: var(--wms-surface2);
}

.wms-faq-question[aria-expanded="true"] {
	background: var(--wms-primary-light);
	color: var(--wms-primary);
}

.wms-faq-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--wms-border);
	flex-shrink: 0;
	transition: background .15s, color .15s;
	color: var(--wms-muted);
}

.wms-faq-question[aria-expanded="true"] .wms-faq-icon {
	background: var(--wms-primary);
	color: #fff;
}

.wms-faq-answer {
	padding: 0 20px 20px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--wms-text2);
	border-top: 1px solid var(--wms-border);
}

/* =============================================
   Ticket Thread
   ============================================= */
.wms-thread {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 20px 0;
}

.wms-message {
	display: flex;
	gap: 12px;
	max-width: 90%;
}

.wms-msg-out {
	align-self: flex-end;
	flex-direction: row-reverse;
	max-width: 80%;
}

.wms-msg-in {
	align-self: flex-start;
}

.wms-msg-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wms-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	text-transform: uppercase;
}

.wms-msg-out .wms-msg-avatar {
	background: var(--wms-muted);
}

.wms-msg-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wms-msg-bubble {
	padding: 12px 16px;
	border-radius: var(--wms-radius-lg);
	font-size: 14px;
	line-height: 1.6;
}

.wms-msg-in .wms-msg-bubble {
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-bottom-left-radius: 4px;
	color: var(--wms-text2);
}

.wms-msg-out .wms-msg-bubble {
	background: var(--wms-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.wms-msg-meta {
	font-size: 11px;
	color: var(--wms-faint);
	display: flex;
	gap: 8px;
	align-items: center;
}

.wms-msg-out .wms-msg-meta {
	justify-content: flex-end;
}

.wms-reply-composer {
	background: var(--wms-surface2);
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 20px;
	margin-top: 16px;
}

.wms-reply-composer textarea {
	width: 100%;
	border: 1.5px solid var(--wms-border-dark);
	border-radius: var(--wms-radius-sm);
	padding: 10px 14px;
	font-size: 14px;
	resize: vertical;
	min-height: 100px;
	background: var(--wms-surface);
	color: var(--wms-text);
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}

.wms-reply-composer textarea:focus {
	outline: none;
	border-color: var(--wms-primary);
	box-shadow: var(--wms-focus-ring);
}

.wms-reply-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* =============================================
   Support Dashboard Columns
   ============================================= */
.wms-support-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.wms-support-col {
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	overflow: hidden;
}

.wms-support-col-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--wms-border);
	font-weight: 600;
	font-size: 13px;
	color: var(--wms-text2);
}

.wms-support-col-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.wms-col-new       .wms-support-col-dot { background: var(--wms-danger); }
.wms-col-replied   .wms-support-col-dot { background: var(--wms-primary); }
.wms-col-escalated .wms-support-col-dot { background: #7c3aed; }
.wms-col-closed    .wms-support-col-dot { background: var(--wms-faint); }

.wms-support-col-body {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 80px;
}

.wms-ticket-card {
	display: block;
	background: var(--wms-surface);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-sm);
	padding: 12px 14px;
	text-decoration: none;
	color: var(--wms-text2);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.wms-ticket-card:hover {
	border-color: var(--wms-primary);
	box-shadow: var(--wms-shadow-sm);
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--wms-text);
}

.wms-ticket-card-num {
	font-size: 11px;
	font-weight: 700;
	color: var(--wms-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.wms-ticket-card-subject {
	font-size: 13px;
	font-weight: 600;
	color: var(--wms-text);
	margin: 3px 0 6px;
	line-height: 1.35;
}

.wms-ticket-card-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	color: var(--wms-muted);
	flex-wrap: wrap;
	gap: 4px;
}

/* =============================================
   Timeline
   ============================================= */
.wms-timeline {
	display: flex;
	flex-direction: column;
	margin: 20px 0;
}

.wms-timeline-step {
	display: flex;
	gap: 16px;
	position: relative;
}

.wms-timeline-step:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 19px;
	top: 42px;
	bottom: 0;
	width: 2px;
	background: var(--wms-border);
}

.wms-timeline-dot {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	transition: box-shadow .2s;
}

.wms-timeline-dot.wms-done {
	background: var(--wms-success);
	color: #fff;
}

.wms-timeline-dot.wms-active {
	background: var(--wms-primary);
	color: #fff;
	box-shadow: 0 0 0 5px var(--wms-primary-light);
}

.wms-timeline-dot.wms-pending {
	background: var(--wms-surface2);
	color: var(--wms-faint);
	border: 2px solid var(--wms-border);
}

.wms-timeline-content {
	flex: 1;
	padding: 6px 0 28px;
}

.wms-timeline-content h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--wms-text);
	margin: 0 0 4px;
}

.wms-timeline-content h4.wms-timeline-faint {
	color: var(--wms-faint);
}

.wms-timeline-content p {
	font-size: 13px;
	color: var(--wms-muted);
	margin: 0;
	line-height: 1.5;
}

/* ─── Horizontal timeline variant (service portal) ────────────────────────── */

.wms-timeline--h {
	flex-direction: row;
	align-items: flex-start;
	gap: 0;
	overflow-x: auto;
	padding: 8px 0 20px;
	scrollbar-width: none;
}
.wms-timeline--h::-webkit-scrollbar { display: none; }

.wms-timeline--h .wms-timeline-step {
	flex: 1;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 88px;
	position: relative;
	gap: 10px;
}

/* Horizontal connector line between steps */
.wms-timeline--h .wms-timeline-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 20px; /* half of dot height (40px / 2) */
	left: calc(50% + 20px);
	right: calc(-50% + 20px);
	height: 2px;
	background: var(--wms-border);
	z-index: 0;
}
.wms-timeline--h .wms-timeline-step:not(:last-child)::before { display: none; }

/* Completed connector turns green */
.wms-timeline--h .wms-timeline-step:has(.wms-done):not(:last-child)::after {
	background: var(--wms-success);
}

.wms-timeline--h .wms-timeline-dot {
	z-index: 1;
	flex-shrink: 0;
}

/* Active step: orange ring */
.wms-timeline--h .wms-timeline-dot.wms-active {
	box-shadow: 0 0 0 4px var(--wms-primary-light), 0 0 0 6px rgba(234,90,0,.2);
}

.wms-timeline--h .wms-timeline-content {
	padding: 0;
	flex: none;
}

.wms-timeline--h .wms-timeline-content h4 {
	font-size: 12px;
	margin: 0 0 2px;
}

.wms-timeline--h .wms-timeline-content p {
	font-size: 11px;
}

/* Pulsing dot inside active timeline step */
.wms-timeline-pulse {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	animation: wms-pulse 1.4s ease-in-out infinite;
}

@keyframes wms-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%       { transform: scale(1.5); opacity: .6; }
}

/* Collapse to vertical on narrow screens */
@media (max-width: 680px) {
	.wms-timeline--h {
		flex-direction: column;
		overflow-x: visible;
		padding: 0;
	}
	.wms-timeline--h .wms-timeline-step {
		flex-direction: row;
		text-align: left;
		min-width: 0;
		gap: 16px;
	}
	.wms-timeline--h .wms-timeline-step:not(:last-child)::after { display: none; }
	.wms-timeline--h .wms-timeline-step:not(:last-child)::before {
		display: block;
		left: 19px;
		top: 42px;
		bottom: 0;
		width: 2px;
		height: auto;
		background: var(--wms-border);
	}
	.wms-timeline--h .wms-timeline-content {
		padding: 6px 0 28px;
	}
	.wms-timeline--h .wms-timeline-content h4 {
		font-size: 14px;
	}
}

/* ─── Case Info Card (service portal) ─────────────────────────────────────── */

.wms-case-info-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	padding: 16px 20px;
	margin: 0 0 24px;
}

.wms-case-info-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wms-case-info-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--wms-faint);
}

.wms-case-info-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--wms-text);
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.wms-case-info-sub {
	font-size: 12px;
	font-weight: 400;
	color: var(--wms-muted);
}

/* ─── Service portal — reduce top whitespace (A.7.2) ──────────────────────── */

.wms-service-portal > .wms-page-header:first-child {
	padding-top: 0;
	margin-top: 0;
}

/* ─── Service portal locked state — centered (A.7.3) ──────────────────────── */

.wms-service-portal-locked {
	max-width: 560px;
	margin: 48px auto;
	text-align: center;
}
.wms-service-portal-locked h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--wms-text);
}
.wms-service-portal-locked .wms-empty {
	color: var(--wms-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 24px;
}
.wms-service-portal-locked .wms-btn {
	display: inline-flex;
}

/* ─── Page header sub-line ─────────────────────────────────────────────────── */

.wms-page-header-sub {
	font-size: 13px;
	color: var(--wms-muted);
	margin-bottom: 4px;
}

/* ─── Account save banner ──────────────────────────────────────────────────── */

.wms-account-banner {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	border-radius: var(--wms-radius-sm);
	font-size: 14px;
	font-weight: 500;
	transition: max-height .25s ease, padding .25s ease, margin .25s ease;
	margin-bottom: 0;
}

.wms-account-banner.is-visible {
	max-height: 56px;
	padding: 14px 20px;
	margin-bottom: 16px;
}

.wms-account-banner.wms-banner-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.wms-account-banner.wms-banner-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* ─── Track another button ─────────────────────────────────────────────────── */

.wms-track-another {
	margin-top: 16px;
}

/* =============================================
   Service Portal
   ============================================= */
.wms-portal-action {
	background: var(--wms-surface2);
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 24px;
	margin-bottom: 16px;
}

.wms-portal-action h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--wms-text);
	margin-bottom: 10px;
}

.wms-portal-info {
	background: var(--wms-primary-light);
	border: 1.5px solid rgba(234,90,0,.25);
	border-radius: var(--wms-radius-md);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.wms-portal-info h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--wms-primary-dark);
	margin-bottom: 8px;
}

.wms-portal-info.wms-notice-success {
	background: var(--wms-success-bg);
	border-color: #bbf7d0;
}

.wms-portal-info.wms-notice-success h3 {
	color: #14532d;
}

.wms-payment-box {
	background: var(--wms-warning-bg);
	border-color: #fde68a;
}

.wms-payment-box h3 {
	color: #78350f;
}

/* Payment amount display */
.wms-payment-amount {
	font-size: 28px;
	font-weight: 800;
	color: var(--wms-warning);
	margin: 8px 0;
}

.wms-payment-iban {
	font-size: 13px;
	color: var(--wms-muted);
	margin: 0 0 16px;
}

.wms-payment-iban code {
	font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
	font-size: 13px;
	background: var(--wms-border);
	padding: 2px 6px;
	border-radius: 4px;
	color: var(--wms-text);
}

/* Service case info bar */
.wms-case-info-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 16px;
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	margin-bottom: 20px;
}

.wms-case-info-bar-product {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--wms-muted);
	margin-bottom: 3px;
}

.wms-case-info-bar-number {
	font-weight: 700;
	font-size: 15px;
	color: var(--wms-text);
}

/* =============================================
   Tech Workspace
   ============================================= */
.wms-workspace-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

.wms-workspace-section {
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 20px;
}

.wms-workspace-section h3 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--wms-muted);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--wms-border);
}

.wms-workspace-action {
	background: var(--wms-surface);
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 20px;
	margin-bottom: 16px;
}

.wms-workspace-action h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--wms-text);
	margin-bottom: 12px;
}

.wms-action-warning {
	border-color: var(--wms-warning);
	background: var(--wms-warning-bg);
}

.wms-action-complete {
	border-color: var(--wms-success);
	background: var(--wms-success-bg);
}

.wms-action-danger {
	border-color: var(--wms-danger);
	background: var(--wms-danger-bg);
}

.wms-meta-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.wms-meta-table th {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--wms-muted);
	padding: 5px 0;
	text-align: left;
	width: 38%;
	vertical-align: top;
}

.wms-meta-table td {
	padding: 5px 0;
	color: var(--wms-text2);
	font-weight: 500;
}

.wms-doc-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* =============================================
   My Account
   ============================================= */
.wms-account-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wms-account-panel {
	background: var(--wms-surface2);
	border: 1px solid var(--wms-border);
	border-radius: var(--wms-radius-lg);
	padding: 22px 24px;
}

.wms-account-panel h3 {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--wms-muted);
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wms-border);
}

.wms-account-danger {
	grid-column: span 2;
	background: var(--wms-danger-bg);
	border-color: #fecaca;
}

.wms-account-danger h3 {
	color: #7f1d1d;
	border-color: #fecaca;
}

/* =============================================
   Access Denied
   ============================================= */
.wms-access-denied {
	text-align: center;
	padding: 60px 24px;
	color: var(--wms-muted);
}

.wms-icon-lock {
	font-size: 52px;
	display: block;
	margin-bottom: 20px;
	color: var(--wms-faint);
}

/* =============================================
   Misc helpers
   ============================================= */
.wms-muted { color: var(--wms-muted); font-size: 13px; }

/* =============================================
   Responsive — 768px
   ============================================= */
@media (max-width: 768px) {
	.wms-box {
		padding: 22px 20px;
		border-radius: var(--wms-radius-md);
	}

	.wms-landing-hero {
		padding: 48px 28px;
		border-radius: var(--wms-radius-lg);
	}

	.wms-landing-hero h1 {
		font-size: 30px;
	}

	.wms-landing-hero p {
		font-size: 16px;
	}

	.wms-workspace-grid,
	.wms-account-grid {
		grid-template-columns: 1fr;
	}

	.wms-account-danger {
		grid-column: span 1;
	}

	.wms-support-cols {
		grid-template-columns: 1fr;
	}
}

/* =============================================
   Responsive — 480px
   ============================================= */
@media (max-width: 480px) {
	.wms-landing-hero {
		padding: 32px 18px;
	}

	.wms-landing-hero h1 {
		font-size: 24px;
	}

	.wms-landing-hero p {
		font-size: 14px;
	}

	.wms-landing-cta {
		flex-direction: column;
		align-items: center;
	}

	.wms-landing-cta .wms-btn {
		width: 100%;
		max-width: 320px;
	}

	.wms-step-label {
		display: none;
	}

	/* On very small screens, hide the thumb column to save space */
	.wms-product-thumb {
		display: none;
	}

	.wms-filter-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.wms-filter-search {
		min-width: 0;
	}

	.wms-filter-count {
		margin-left: 0;
	}

	.wms-card-actions {
		flex-wrap: wrap;
	}

	.wms-field-row {
		flex-direction: column;
	}

	.wms-field-row .wms-field {
		min-width: 0;
	}

	.wms-trust-items {
		gap: 24px;
	}

	.wms-page-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.wms-wizard-nav .wms-btn {
		min-width: 0;
		flex: 1;
	}
}

/* =============================================
   Portal Tab Navigation — iOS segmented control
   ============================================= */
.wms-portal-wrap {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	width: 100%;
	margin: 0 0 24px;
	overflow: visible;
}

/* Segmented control pill container */
.wms-portal-nav {
	display: flex;
	align-items: center;
	background: rgba(118,118,128,.14);
	border-radius: 12px;
	padding: 3px;
	gap: 2px;
	margin-bottom: 20px;
	border-bottom: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.wms-portal-nav::-webkit-scrollbar { display: none; }

.wms-tab-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	border-bottom: none;
	margin-bottom: 0;
	border-radius: 9px;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	color: rgba(60,60,67,.65);
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
	flex-shrink: 0;
	min-width: 0;
}
.wms-tab-btn:hover {
	color: #1c1c1e;
	background: rgba(118,118,128,.10);
}
.wms-tab-btn.wms-tab-active {
	background: #1c1c1e;
	color: #ffffff;
	border-bottom: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.10);
}

/* Tab icon */
.wms-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	opacity: .65;
	transition: opacity .15s;
}
.wms-tab-btn.wms-tab-active .wms-tab-icon { opacity: 1; color: #fff; }
.wms-tab-btn:hover .wms-tab-icon { opacity: 1; }

/* Count badge inside tab */
.wms-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 700;
	background: rgba(118,118,128,.22);
	color: rgba(60,60,67,.8);
	transition: background .2s, color .2s;
}
.wms-tab-btn.wms-tab-active .wms-tab-count {
	background: rgba(255,255,255,.28);
	color: #ffffff;
}
.wms-tab-count.wms-count-danger  { background: var(--wms-danger);  color: #fff; }
.wms-tab-count.wms-count-warning { background: var(--wms-warning); color: #fff; }
.wms-tab-count.wms-count-purple  { background: #7c3aed; color: #fff; }

/* Tab panel content — no extra padding, white cards manage their own */
.wms-tab-panels {
	padding: 0;
}
.wms-tab-panel {
	display: none;
}
.wms-tab-panel.wms-tab-active {
	display: block;
	animation: wms-tab-fade .18s ease;
}
@keyframes wms-tab-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Panel section headers */
.wms-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}
.wms-panel-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--wms-text);
	letter-spacing: -.01em;
}
.wms-panel-header-sub {
	color: var(--wms-muted);
	font-size: 13px;
	margin: 5px 0 0;
}

/* ── Tracking form ────────────────────────────────────────────── */
.wms-tracking-form {
	margin-bottom: 28px;
}
.wms-tracking-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--wms-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 8px;
}
.wms-tracking-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: stretch;
}
.wms-tracking-field {
	flex: 1;
	min-width: 200px;
	position: relative;
	display: flex;
	align-items: center;
}
.wms-tracking-field-icon {
	position: absolute;
	left: 12px;
	color: var(--wms-muted);
	pointer-events: none;
}
.wms-track-input {
	width: 100%;
	padding: 11px 12px 11px 38px;
	border: 1px solid var(--wms-border-dark);
	border-radius: var(--wms-radius-md);
	font-size: 15px;
	background: var(--wms-surface);
	color: var(--wms-text);
	transition: border-color .15s, box-shadow .15s;
}
.wms-track-input:focus {
	outline: none;
	border-color: var(--wms-primary);
	box-shadow: var(--wms-focus-ring);
}
.wms-track-btn {
	white-space: nowrap;
	gap: 7px;
	display: inline-flex;
	align-items: center;
}

/* Monospace value in cards (case/ticket numbers) */
.wms-monospace {
	font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
	font-size: 13px;
	letter-spacing: .04em;
}

/* Ticket status column labels */
.wms-status-section {
	margin-bottom: 32px;
}
.wms-status-section:last-child { margin-bottom: 0; }
.wms-status-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--wms-muted);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wms-border);
}
.wms-status-label-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Superuser overview stats grid */
.wms-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.wms-stat-card {
	background: var(--wms-surface2);
	border: 1.5px solid var(--wms-border);
	border-radius: var(--wms-radius-md);
	padding: 20px 18px;
	text-align: center;
}
.wms-stat-card-value {
	font-size: 32px;
	font-weight: 800;
	color: var(--wms-primary);
	line-height: 1;
	margin-bottom: 6px;
}
.wms-stat-card-value.wms-stat-danger  { color: var(--wms-danger); }
.wms-stat-card-value.wms-stat-warning { color: var(--wms-warning); }
.wms-stat-card-value.wms-stat-success { color: var(--wms-success); }
.wms-stat-card-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--wms-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}

/* Responsive tabs */
@media (max-width: 600px) {
	.wms-tab-btn { padding: 11px 14px; font-size: 13px; }
	.wms-tab-panels { padding: 18px 16px 24px; }
	.wms-portal-wrap { border-radius: var(--wms-radius-md); }
}

/* ============================================================
   Password Strength Meter (Alpine wmsPasswordStrength)
   ============================================================ */
.wms-pw-meter { display: flex; flex-direction: column; gap: 4px; }
.wms-pw-meter-track {
	height: 5px;
	background: var(--wms-border, #e5e7eb);
	border-radius: 99px;
	overflow: hidden;
}
.wms-pw-meter-fill {
	height: 100%;
	border-radius: 99px;
	transition: width .3s ease, background .3s;
	background: var(--wms-muted, #9ca3af);
}
.wms-pw-meter-fill.wms-pw-weak   { background: var(--wms-danger,  #ef4444); }
.wms-pw-meter-fill.wms-pw-fair   { background: var(--wms-warning, #f59e0b); }
.wms-pw-meter-fill.wms-pw-strong { background: var(--wms-success, #22c55e); }
.wms-pw-meter-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--wms-muted, #6b7280);
}
.wms-pw-meter-label.wms-pw-weak   { color: var(--wms-danger,  #ef4444); }
.wms-pw-meter-label.wms-pw-fair   { color: var(--wms-warning, #f59e0b); }
.wms-pw-meter-label.wms-pw-strong { color: var(--wms-success, #22c55e); }

.wms-field-hint        { font-size: 12px; margin-top: 4px; }
.wms-hint-error        { color: var(--wms-danger, #ef4444); }
.wms-input-error       { border-color: var(--wms-danger, #ef4444) !important; }

/* Alpine x-cloak — hide before init */
[x-cloak] { display: none !important; }

/* =============================================
   Input: reveal password toggle
   ============================================= */
.wms-input-reveal {
	position: relative;
	display: flex;
	align-items: center;
}
.wms-input-reveal input {
	flex: 1;
	padding-right: 2.75rem;
}
.wms-reveal-btn {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wms-muted);
	font-size: 16px;
	line-height: 1;
	padding: 0;
	transition: color .15s;
}
.wms-reveal-btn:hover { color: var(--wms-text); }
.wms-reveal-btn:focus-visible {
	outline: 2px solid var(--wms-primary);
	outline-offset: 2px;
	border-radius: var(--wms-radius-sm);
}

/* hint colors for password strength context */
.wms-hint-warn { color: var(--wms-warning, #d97706); }
.wms-hint-ok   { color: var(--wms-success, #16a34a); }

/* ── FAQ — filter bar, accordion, highlights (Phase 28) ────────── */
.wms-faq-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
}
.wms-faq-search-wrap { flex: 1 1 220px; }
.wms-faq-search {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--wms-border, #e5e7eb);
	border-radius: var(--wms-radius-sm, 6px);
	font-size: 0.9rem;
}
.wms-faq-brand-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.wms-faq-brand-btn {
	padding: 5px 14px;
	border: 1px solid var(--wms-border, #e5e7eb);
	border-radius: 999px;
	background: #fff;
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wms-faq-brand-btn.is-active,
.wms-faq-brand-btn:hover {
	background: var(--wms-accent, #ea5a00);
	border-color: var(--wms-accent, #ea5a00);
	color: #fff;
}
.wms-faq-count {
	font-size: 0.82rem;
	color: var(--wms-text-muted, #6b7280);
	margin: 0 0 12px;
}
.wms-faq-item {
	border-bottom: 1px solid var(--wms-border, #e5e7eb);
}
.wms-faq-item:first-child { border-top: 1px solid var(--wms-border, #e5e7eb); }
.wms-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 0;
	background: none;
	border: none;
	text-align: left;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wms-text, #111827);
	cursor: pointer;
	line-height: 1.4;
}
.wms-faq-question:hover { color: var(--wms-accent, #ea5a00); }
.wms-faq-icon {
	flex-shrink: 0;
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--wms-accent, #ea5a00);
}
.wms-faq-answer { overflow: hidden; }
.wms-faq-answer-body {
	padding: 0 0 18px;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--wms-text-secondary, #374151);
}
.wms-faq-enter { transition: max-height 0.25s ease, opacity 0.2s ease; }
.wms-faq-enter-start { max-height: 0; opacity: 0; }
.wms-faq-enter-end   { max-height: 600px; opacity: 1; }
.wms-faq-brand-tag {
	font-size: 0.78rem;
	color: var(--wms-text-muted, #6b7280);
	margin: 0 0 16px;
}
.wms-faq-brand-tag span { margin-right: 4px; }
mark.wms-faq-hl {
	background: #fef3c7;
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}

/* ── Product card alert banners (Phase 31.4) ───────────────────── */
.wms-card-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	border-radius: var(--wms-radius-sm, 6px);
	font-size: 0.85rem;
	line-height: 1.45;
	margin: 10px 0 0;
}
.wms-alert-expiry {
	background: #fff7ed;
	border-left: 4px solid #ea5a00;
	color: #7c2d00;
}
.wms-alert-inspection {
	background: var(--wms-primary-light);
	border-left: 4px solid var(--wms-primary);
	color: var(--wms-primary-dark);
}
.wms-alert-info {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	color: #1e3a8a;
}
.wms-alert-danger {
	background: #fef2f2;
	border-left: 4px solid #dc2626;
	color: #7f1d1d;
}
.wms-alert-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	margin-top: 1px;
}
.wms-alert-link {
	margin-left: 4px;
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}

/* ── Button loading state ────────────────────────────────────────────────────
   Add .wms-btn-loading to any .wms-btn to show an inline spinner.
   JS sets this class on click and removes it on success/error.
   ────────────────────────────────────────────────────────────────────────── */
@keyframes wms-spin {
	to { transform: rotate(360deg); }
}
.wms-btn-loading {
	position: relative;
	pointer-events: none;
	opacity: .75;
}
.wms-btn-loading::after {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: wms-spin .6s linear infinite;
	margin-left: 6px;
	vertical-align: -2px;
	flex-shrink: 0;
}

/* Optimistic message bubble — pending/sending state */
.wms-msg-pending { transition: opacity .15s; }
.wms-msg-sending { font-size: .75em; color: var(--wms-muted, #888); font-style: italic; }
