*, *::before, *::after {
	box-sizing: border-box;
}
body {
	margin: 0;
}

:root {
	--app-primary: #2f5ce0;
	--app-primary-dark: #2447b8;
	--app-bg: #f4f6fb;
	--app-card-bg: #ffffff;
	--app-text: #1b2338;
	--app-muted: #6b7385;
	--app-border: #eef0f5;
	--app-radius: 10px;
	--app-info: #2f5ce0;
	--app-info-bg: #e8edfc;
	--app-warning: #e08a1e;
	--app-warning-bg: #fbeed9;
	--app-success: #1ea672;
	--app-success-bg: #e1f5ec;
	--app-danger: #e0432f;
	--app-danger-bg: #fbe3e0;
	--app-neutral: #8a90a2;
	--app-neutral-bg: #eef0f5;
}

html, body {
	overflow-x: hidden;
}

.app-shell {
	background: var(--app-bg);
	color: var(--app-text);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
}

.app-grid {
	display: grid;
	gap: 12px;
	margin-bottom: 14px;
}
.app-grid-2 { grid-template-columns: 1fr 1fr; }
.app-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.app-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.app-grid .app-card {
	margin-bottom: 0;
	text-align: center;
	text-decoration: none;
	display: block;
	padding: 16px 8px;
	min-width: 0;
}
.app-grid .app-card i { font-size: 20px; }
.app-grid .app-card span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--app-text);
}

/* Stat tiles (dashboard KPIs) */
.app-stat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
.app-stat-tile {
	position: relative;
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06);
	padding: 16px;
	overflow: hidden;
}
.app-stat-tile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--app-neutral);
}
.app-stat-tile.is-info::before { background: var(--app-info); }
.app-stat-tile.is-warning::before { background: var(--app-warning); }
.app-stat-tile.is-success::before { background: var(--app-success); }
.app-stat-tile.is-danger::before { background: var(--app-danger); }
.app-stat-tile__icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-bottom: 10px;
	background: var(--app-neutral-bg);
	color: var(--app-neutral);
}
.app-stat-tile.is-info .app-stat-tile__icon { background: var(--app-info-bg); color: var(--app-info); }
.app-stat-tile.is-warning .app-stat-tile__icon { background: var(--app-warning-bg); color: var(--app-warning); }
.app-stat-tile.is-success .app-stat-tile__icon { background: var(--app-success-bg); color: var(--app-success); }
.app-stat-tile.is-danger .app-stat-tile__icon { background: var(--app-danger-bg); color: var(--app-danger); }
.app-stat-tile__value {
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.app-stat-tile__label {
	font-size: 12px;
	color: var(--app-muted);
	margin: 4px 0 0;
	font-weight: 600;
}
.app-stat-tile__sub {
	font-size: 11px;
	color: var(--app-muted);
	margin: 2px 0 0;
}


/* Top bar */
.app-topbar {
	background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(47, 92, 224, 0.25);
}
.app-topbar__inner {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
/* Customer portal only — admin/staff/supplier keep their sidebar-filling full-width topbar */
.app-topbar__inner--capped {
	max-width: 1140px;
	margin: 0 auto;
}

.app-topbar__left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.app-topbar__left > div {
	min-width: 0;
}

.app-topbar__title,
.app-topbar__subtitle {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-topbar__inner > .d-flex {
	flex: 0 0 auto;
}

.app-topbar__icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.app-topbar__title {
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	margin: 0;
}

.app-topbar__subtitle {
	font-size: 12px;
	opacity: 0.85;
	margin: 0;
}

.app-topbar__badge {
	background: rgba(255, 255, 255, 0.18);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.app-topbar__action {
	color: #fff;
	opacity: 0.85;
	margin-left: 14px;
	font-size: 15px;
}
.app-topbar__action:hover {
	opacity: 1;
	color: #fff;
}

/* Topbar nav (customer portal: Home / Workshop / Me, in place of a bottom nav) */
.app-topbar__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	margin-right: 14px;
}
.app-topbar__nav-item {
	padding: 8px 20px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	font-family: inherit;
}
button.app-topbar__nav-item {
	background: none;
	border: none;
	cursor: pointer;
}
.app-topbar__nav-item.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}
.app-topbar__nav-item:hover {
	color: #fff;
	text-decoration: none;
}

/* Light (white-background) topbar variant — used on the marketing homepage
   for logged-in customers, so it can share the exact same header component
   as the rest of the customer portal instead of a separate design. */
.app-topbar--light {
	background: #fff;
	color: var(--app-text);
	box-shadow: none;
	border-bottom: 1px solid var(--app-border);
}
.app-topbar--light .app-topbar__icon {
	background: var(--app-primary);
	color: #fff;
}
.app-topbar--light .app-topbar__nav-item {
	color: var(--app-text);
}
.app-topbar--light .app-topbar__nav-item.active {
	color: var(--app-primary);
	background: var(--app-info-bg);
}
.app-topbar--light .app-topbar__nav-item:hover {
	color: var(--app-primary);
}

/* Content */
.app-content {
	height: auto;
	max-width: 1140px;
	margin: 0 auto;
	padding: 50px 20px;
}

.app-page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 18px;
}

.app-page-header h1 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.app-page-header p {
	font-size: 13px;
	color: var(--app-muted);
	margin: 2px 0 0;
}

.app-fab {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--app-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	box-shadow: 0 4px 12px rgba(47, 92, 224, 0.35);
	flex-shrink: 0;
}
.app-fab:hover {
	background: var(--app-primary-dark);
	color: #fff;
}

/* Search */
.app-search {
	position: relative;
	margin-bottom: 14px;
}
.app-search i {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--app-muted);
}
.app-search input {
	width: 100%;
	border: 1px solid var(--app-border);
	background: var(--app-card-bg);
	border-radius: 12px;
	padding: 12px 14px 12px 42px;
	font-size: 14px;
	box-shadow: 0 1px 3px rgba(20, 30, 60, 0.04);
}
.app-search input:focus {
	outline: none;
	border-color: var(--app-primary);
}

/* Filter pills */
.app-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.app-filter-pill {
	border: 1px solid var(--app-border);
	background: #fff;
	color: var(--app-text);
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.app-filter-pill.active {
	background: var(--app-primary);
	border-color: var(--app-primary);
	color: #fff;
}

/* Cards */
.app-card {
	position: relative;
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 6px 16px rgba(20, 30, 60, 0.14);
	padding: 18px 18px 16px;
	margin-bottom: 14px;
	overflow: hidden;
}

.app-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.app-card__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}
.app-card__subtitle {
	font-size: 13px;
	color: var(--app-muted);
	margin: 2px 0 0;
}
.app-card__line {
	font-size: 13px;
	color: var(--app-muted);
	font-family: 'SFMono-Regular', Consolas, monospace;
	margin: 2px 0 0;
}
.app-card hr {
	border-color: var(--app-border);
	margin: 12px 0;
}
.app-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: var(--app-muted);
}
.app-card__value {
	font-size: 15px;
	font-weight: 700;
	color: var(--app-text);
}
.app-card__actions {
	margin-top: 12px;
	display: flex;
	gap: 8px;
}

.app-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}
.app-badge.is-info { background: var(--app-info-bg); color: var(--app-info); }
.app-badge.is-warning { background: var(--app-warning-bg); color: var(--app-warning); }
.app-badge.is-success { background: var(--app-success-bg); color: var(--app-success); }
.app-badge.is-danger { background: var(--app-danger-bg); color: var(--app-danger); }
.app-badge.is-neutral { background: var(--app-neutral-bg); color: var(--app-neutral); }

.app-empty {
	text-align: center;
	color: var(--app-muted);
	padding: 40px 20px;
	font-size: 14px;
}

/* Empty state with icon + message + optional CTA (list pages: vehicles, history, payments, workshops) */
.app-empty-state {
	text-align: center;
	padding: 48px 20px;
}
.app-empty-state__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--app-neutral-bg);
	color: var(--app-neutral);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto 16px;
}
.app-empty-state__text {
	color: var(--app-muted);
	font-size: 14px;
	margin: 0 0 16px;
}

/* Pagination */
.app-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 8px 0 20px;
}
.app-pagination__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--app-border);
	background: #fff;
	color: var(--app-text);
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	flex-shrink: 0;
}
.app-pagination__btn:hover {
	border-color: var(--app-primary);
	color: var(--app-primary);
	text-decoration: none;
}
.app-pagination__btn.is-disabled {
	color: var(--app-muted);
	opacity: 0.5;
	cursor: default;
}
.app-pagination__status {
	font-size: 13px;
	color: var(--app-muted);
	font-weight: 600;
	white-space: nowrap;
}

/* Buttons */
.app-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
}
.app-btn:hover { text-decoration: none; }
.app-btn-primary { background: var(--app-primary); color: #fff; }
.app-btn-primary:hover { background: var(--app-primary-dark); color: #fff; }
.app-btn-outline { background: #fff; border-color: var(--app-border); color: var(--app-text); }
.app-btn-outline:hover { border-color: var(--app-primary); color: var(--app-primary); }
.app-btn-danger-outline { background: #fff; border-color: var(--app-danger-bg); color: var(--app-danger); }
.app-btn-danger-outline:hover { background: var(--app-danger-bg); }
.app-btn-sm { padding: 7px 14px; font-size: 13px; }
.app-btn-block { width: 100%; }

/* Forms */
.app-form-card { background: var(--app-card-bg); border-radius: var(--app-radius); box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06); padding: 20px; }
.app-form-group { margin-bottom: 16px; }
.app-form-group label { font-size: 13px; font-weight: 600; color: var(--app-text); margin-bottom: 6px; display: block; }
.app-form-group .app-hint { font-weight: 400; color: var(--app-muted); }
.app-input, select.app-input, textarea.app-input {
	width: 100%;
	border: 1px solid var(--app-border);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
	background: #fff;
	color: var(--app-text);
}
.app-input:focus { outline: none; border-color: var(--app-primary); }
.app-input.is-invalid { border-color: var(--app-danger); }
.app-invalid-feedback { color: var(--app-danger); font-size: 12px; margin-top: 4px; display: block; }
.app-alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.app-alert-success { background: var(--app-success-bg); color: var(--app-success); }
.app-alert-danger { background: var(--app-danger-bg); color: var(--app-danger); }
.app-alert-warning { background: var(--app-warning-bg); color: var(--app-warning); }
.app-alert-info { background: var(--app-info-bg); color: var(--app-info); }


/* Sidebar shell (admin/staff): topbar fixed height, sidebar + content each scroll independently */
.app-shell--sidebar {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	padding-bottom: 0;
}
.app-shell--sidebar .app-topbar {
	flex-shrink: 0;
}
.app-body {
	flex: 1;
	display: flex;
	min-height: 0;
}
.app-sidebar {
	width: 64px;
	flex-shrink: 0;
	overflow-y: auto;
	background: var(--app-card-bg);
	border-right: 1px solid var(--app-border);
	padding: 10px 0;
}
.app-sidebar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 12px 4px;
	color: var(--app-muted);
	text-decoration: none;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	border-left: 3px solid transparent;
}
.app-sidebar__item i { font-size: 17px; }
.app-sidebar__item span {
	display: none;
}
.app-sidebar__item.active {
	color: var(--app-primary);
	background: var(--app-info-bg);
	border-left-color: var(--app-primary);
}
.app-sidebar__item:hover {
	color: var(--app-primary);
	text-decoration: none;
}
.app-shell--sidebar .app-content {
	flex: 1;
	max-width: none;
	overflow-y: auto;
	margin: 0;
}

@media (min-width: 768px) {
	.app-sidebar {
		width: 240px;
	}
	.app-sidebar__item {
		flex-direction: row;
		justify-content: flex-start;
		gap: 12px;
		padding: 12px 20px;
		font-size: 14px;
	}
	.app-sidebar__item span {
		display: inline;
	}
}

/* Photo gallery */
.app-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 4px;
}
.app-photo-grid a {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--app-neutral-bg);
}
.app-photo-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Notes timeline */
.app-timeline-item {
	border-left: 2px solid var(--app-border);
	padding: 0 0 14px 16px;
	margin-left: 4px;
	position: relative;
}
.app-timeline-item::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--app-primary);
}
.app-timeline-item:last-child { padding-bottom: 0; }
.app-timeline-item__meta {
	font-size: 12px;
	color: var(--app-muted);
	margin: 0 0 3px;
}
.app-timeline-item__text {
	font-size: 14px;
	margin: 0;
	white-space: pre-line;
}

.app-section-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--app-muted);
	margin: 0 0 10px;
}

.app-job-number {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: 13px;
	color: var(--app-muted);
}

/* Auth pages (login / role select) */
.auth-shell {
	background: linear-gradient(160deg, var(--app-primary), var(--app-primary-dark) 60%, #1a3aa8);
	height: 100vh;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	overflow: hidden;
}
.auth-page {
	width: 100%;
	max-width: 400px;
	max-height: 100%;
	overflow-y: auto;
}
.auth-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: left;
	margin-bottom: 16px;
	color: #fff;
}
.auth-hero__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}
.auth-hero__title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.02em;
}
.auth-hero__subtitle {
	font-size: 13px;
	opacity: 0.85;
	margin: 2px 0 0;
}

.auth-panel {
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 20px 50px rgba(15, 30, 80, 0.25);
	padding: 22px 22px;
}
.auth-panel__heading {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	text-align: center;
}
.auth-panel__hint {
	font-size: 12.5px;
	color: var(--app-muted);
	text-align: center;
	margin: 0 0 10px;
	line-height: 1.4;
}

/* Auth forms are typically taller than the rest of the app's forms —
   keep them compact so pages like Register fit without scrolling. */
.auth-panel .app-form-group { margin-bottom: 9px; }
.auth-panel .app-form-group label { margin-bottom: 3px; }
.auth-panel .app-input { padding: 8px 14px; }

.auth-role-list {
	display: flex;
	flex-direction: column;
}
.auth-role-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 6px;
	border-top: 1px solid var(--app-border);
	text-decoration: none;
	color: var(--app-text);
}
.auth-role-item:first-child { border-top: none; }
.auth-role-item:hover { text-decoration: none; color: var(--app-text); }
.auth-role-item__icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
	background: var(--app-info-bg);
	color: var(--app-info);
}
.auth-role-item__body { flex: 1; min-width: 0; }
.auth-role-item__title { font-size: 15px; font-weight: 700; margin: 0; }
.auth-role-item__desc { font-size: 12px; color: var(--app-muted); margin: 1px 0 0; }
.auth-role-item__chevron { color: var(--app-muted); flex-shrink: 0; }

.auth-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--app-muted);
	text-decoration: none;
	margin-bottom: 12px;
}
.auth-back:hover { color: var(--app-primary); text-decoration: none; }

.auth-footer {
	text-align: center;
	margin-top: 18px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}
.auth-footer a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ============================================================
   Customer Portal — Tuhu-style redesign
   (hero vehicle card, icon-grid quick actions, avatar list rows,
   workshop banner, "Me" profile hub)
   ============================================================ */

/* Hero vehicle card */
.app-hero-vehicle {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06);
	padding: 12px 16px;
	margin-bottom: 12px;
	text-decoration: none;
	color: inherit;
}
.app-hero-vehicle:hover { text-decoration: none; color: inherit; }
.app-hero-vehicle__icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--app-info-bg);
	color: var(--app-info);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.app-hero-vehicle__body { flex: 1; min-width: 0; }
.app-hero-vehicle__eyebrow {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--app-muted);
	margin: 0 0 1px;
}
.app-hero-vehicle__title {
	font-size: 15px;
	font-weight: 800;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.app-hero-vehicle__subtitle {
	font-size: 12px;
	color: var(--app-muted);
	margin: 1px 0 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.app-hero-vehicle__chevron { color: var(--app-muted); flex-shrink: 0; }

/* Icon-grid quick actions */
.app-icon-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 30px;
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06);
	padding: 30px;
	margin-bottom: 16px;
}
.app-icon-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--app-text);
	min-width: 0;
}
.app-icon-grid__item:hover { text-decoration: none; color: var(--app-text); }
.app-icon-grid__icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	background: var(--app-neutral-bg);
	color: var(--app-neutral);
}
.app-icon-grid__icon.is-info { background: var(--app-info-bg); color: var(--app-info); }
.app-icon-grid__icon.is-warning { background: var(--app-warning-bg); color: var(--app-warning); }
.app-icon-grid__icon.is-success { background: var(--app-success-bg); color: var(--app-success); }
.app-icon-grid__icon.is-danger { background: var(--app-danger-bg); color: var(--app-danger); }
.app-icon-grid__label {
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* Avatar list rows (service history / payments / vehicles) */
.app-card--row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.app-card__avatar {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	background: var(--app-info-bg);
	color: var(--app-info);
}
.app-card__avatar.is-success { background: var(--app-success-bg); color: var(--app-success); }
.app-card__avatar.is-warning { background: var(--app-warning-bg); color: var(--app-warning); }
.app-card__avatar.is-danger { background: var(--app-danger-bg); color: var(--app-danger); }
.app-card__avatar.is-neutral { background: var(--app-neutral-bg); color: var(--app-neutral); }
.app-card--row .app-card__top { flex: 1; min-width: 0; }

/* Workshop banner (hero image substitute + rating overlay) */
.app-workshop-banner {
	position: relative;
	height: 140px;
	border-radius: var(--app-radius);
	background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	overflow: hidden;
}
.app-workshop-banner i {
	font-size: 44px;
	color: rgba(255, 255, 255, 0.85);
}
.app-workshop-banner__rating {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--app-text);
	border-radius: 10px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 4px;
}
.app-workshop-banner__rating i { font-size: 12px; color: #f5a623; }
.app-workshop-banner__status {
	position: absolute;
	top: 12px;
	right: 12px;
}

/* Underline tabs (e.g. workshop service categories) */
.app-tabs {
	display: flex;
	gap: 20px;
	border-bottom: 1px solid var(--app-border);
	margin-bottom: 4px;
	overflow-x: auto;
}
.app-tabs__item {
	background: none;
	border: none;
	padding: 4px 2px 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--app-muted);
	white-space: nowrap;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.app-tabs__item.active {
	color: var(--app-primary);
	border-bottom-color: var(--app-primary);
	font-weight: 700;
}

/* "Me" profile hub */
.app-me-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 2px 20px;
}
.app-me-header__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--app-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 800;
	flex-shrink: 0;
}
.app-me-header__name {
	font-size: 19px;
	font-weight: 800;
	margin: 0;
}
.app-me-header__sub {
	font-size: 13px;
	color: var(--app-muted);
	margin: 2px 0 0;
}
.app-me-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
.app-me-stats__tile {
	background: var(--app-card-bg);
	border-radius: var(--app-radius);
	box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06);
	padding: 16px;
	text-align: center;
	text-decoration: none;
	color: inherit;
}
.app-me-stats__tile:hover { text-decoration: none; color: inherit; }
.app-me-stats__value { font-size: 22px; font-weight: 800; margin: 0; }
.app-me-stats__label { font-size: 12px; color: var(--app-muted); margin: 2px 0 0; font-weight: 600; }

/* Small phones */
@media (max-width: 400px) {
	.app-topbar { padding: 14px 14px; }
	.app-topbar__icon { width: 34px; height: 34px; font-size: 15px; }
	.app-topbar__title { font-size: 15px; }
	.app-topbar__subtitle { font-size: 10.5px; }
	.app-topbar__badge { padding: 5px 10px; font-size: 11px; }
	.app-topbar__nav { margin-right: 0; gap: 0; }
	.app-topbar__nav-item { padding: 5px 6px; font-size: 10px; }
	.app-content { padding: 16px 12px 8px; }
	.app-grid-3, .app-grid-4 { gap: 8px; grid-template-columns: 1fr 1fr; }
	.app-grid .app-card { padding: 12px 4px; }
	.app-card { padding: 14px 14px 12px; }
	.auth-shell { padding: 14px 16px; }
	.auth-panel { padding: 16px 16px; }
	.auth-hero { margin-bottom: 12px; }
	.auth-hero__icon { width: 40px; height: 40px; font-size: 17px; }
	.auth-hero__title { font-size: 19px; }
	.app-stat-grid { gap: 8px; }
	.app-stat-tile { padding: 12px; }
	.app-stat-tile__value { font-size: 20px; }
	.app-icon-grid { grid-template-columns: repeat(4, 1fr); gap: 12px 2px; padding: 14px 6px; }
	.app-icon-grid__icon { width: 38px; height: 38px; font-size: 15px; }
	.app-icon-grid__label { font-size: 10.5px; }
}
