/**
 * Ripart App — Visual Redesign Layer
 * Soft aurora surfaces, refined glass chrome, premium mobile rhythm.
 * Loaded after app.css; keeps all existing class hooks.
 */

:root {
	--rc-radius: 18px;
	--rc-radius-sm: 12px;
	--rc-radius-lg: 24px;
	--rc-radius-xl: 28px;
	--rc-shadow: 0 10px 30px rgba(8, 28, 58, 0.07);
	--rc-shadow-lg: 0 22px 50px rgba(8, 28, 58, 0.14);
	--rc-shadow-soft: 0 4px 16px rgba(8, 28, 58, 0.05);
	--rc-glass: rgba(255, 255, 255, 0.78);
	--rc-glass-strong: rgba(255, 255, 255, 0.92);
	--rc-ink: #071427;
	--rc-ink-soft: #3d5270;
	--rc-line: rgba(12, 48, 96, 0.1);
	--rc-surface: #ffffff;
	--rc-surface-2: #f3f7fc;
	--rc-aurora-1: rgba(56, 140, 255, 0.22);
	--rc-aurora-2: rgba(0, 80, 160, 0.16);
	--rc-aurora-3: rgba(120, 190, 255, 0.18);
	--rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--rc-header-h: 56px;
	--rc-nav-h: 74px;
}

/* ── App atmosphere ── */
.rc-app {
	color: var(--rc-ink);
	background:
		radial-gradient(120% 80% at 100% -10%, var(--rc-aurora-1), transparent 55%),
		radial-gradient(90% 60% at -10% 20%, var(--rc-aurora-2), transparent 50%),
		radial-gradient(70% 50% at 50% 110%, var(--rc-aurora-3), transparent 55%),
		linear-gradient(180deg, #eef4fb 0%, var(--rc-bg, #f5f8fc) 42%, #eef3f9 100%);
	font-feature-settings: "ss01" on, "kern" on;
}

.rc-app--web {
	background:
		radial-gradient(90% 70% at 15% 0%, rgba(77, 163, 255, 0.28), transparent 55%),
		radial-gradient(70% 50% at 90% 10%, rgba(0, 51, 102, 0.18), transparent 50%),
		linear-gradient(165deg, #dce9f8 0%, #eef4fb 40%, #e8eef6 100%);
	padding: 0 14px;
}

.rc-shell {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 100%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: none;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.rc-app--web .rc-shell {
	border-radius: 28px;
	margin: 20px auto;
	min-height: calc(100vh - 40px);
	box-shadow:
		0 30px 80px rgba(8, 28, 58, 0.14),
		0 0 0 1px rgba(255, 255, 255, 0.65),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(245, 249, 255, 0.92));
	overflow: hidden;
}

.rc-app--mobile .rc-shell,
.rc-app--pwa .rc-shell {
	background: transparent;
	border: none;
	backdrop-filter: none;
}

/* ── Header — Material / Android top app bar ── */
.rc-header {
	--rc-header-h: 56px;
	position: relative;
	height: var(--rc-header-h);
	padding: 0 8px 0 12px;
	gap: 8px;
	background: #003366;
	border-bottom: none;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06),
		0 2px 6px rgba(0, 20, 50, 0.18),
		0 6px 16px rgba(0, 20, 50, 0.12);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.rc-header::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 100%;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%);
}

.rc-header::after {
	display: none;
}

.rc-header__start {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1;
	position: relative;
	z-index: 1;
}

.rc-header__title {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-shadow: none;
	color: #fff;
}

.rc-header__actions {
	position: relative;
	z-index: 2;
	gap: 2px;
	flex-shrink: 0;
}

.rc-header__city {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: auto !important;
	min-height: 32px;
	padding: 4px 10px !important;
	font-size: 0.75rem !important;
	font-weight: 600;
	white-space: nowrap;
	color: #eaf4ff !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: none;
	transition: background 0.15s ease;
}

.rc-header__city:hover,
.rc-header__city:focus-visible {
	background: rgba(255, 255, 255, 0.16) !important;
	transform: none;
}

.rc-notif-btn,
.rc-header-ai-btn {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: #fff;
	box-shadow: none;
	transition: background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.rc-notif-btn:hover,
.rc-header-ai-btn:hover,
.rc-notif-btn.is-active {
	background: rgba(255, 255, 255, 0.12);
	transform: none;
}

.rc-notif-btn.has-unread .rc-notif-btn__icon {
	animation: rc-bell-soft 1.8s ease-in-out infinite;
}

.rc-notif-btn__icon {
	display: block;
}

.rc-notif-btn__badge {
	top: 6px !important;
	left: 6px !important;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	font-size: 9px;
	border: 2px solid #003366;
	box-shadow: none;
}

@keyframes rc-bell-soft {
	0%, 100% { transform: rotate(0); }
	12% { transform: rotate(10deg); }
	24% { transform: rotate(-8deg); }
	36% { transform: rotate(0); }
}

.rc-user-chip {
	height: 40px;
	max-width: 148px;
	gap: 6px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	padding: 3px 8px 3px 3px;
	box-shadow: none;
	transition: background 0.15s ease;
}

.rc-user-chip:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: none;
	border-color: transparent;
}

.rc-user-chip__meta {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.rc-user-chip__avatar {
	width: 32px;
	height: 32px;
	min-width: 32px;
	box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.rc-user-chip__name {
	font-size: 0.8rem;
	font-weight: 600;
	color: #fff;
}

.rc-user-chip__caret {
	opacity: 0.75;
	color: #fff;
}

@media (max-width: 420px) {
	.rc-user-chip {
		max-width: none;
		width: 40px;
		height: 40px;
		padding: 0;
		justify-content: center;
		background: transparent;
	}

	.rc-user-chip__meta {
		display: none;
	}

	.rc-user-chip__avatar {
		width: 34px;
		height: 34px;
		min-width: 34px;
	}
}

.rc-app--mobile .rc-header,
.rc-app--pwa .rc-header,
html.ach-native-app .rc-header {
	padding-top: env(safe-area-inset-top, 0px);
	height: calc(56px + env(safe-area-inset-top, 0px));
}

/* ── Main ── */
.rc-main {
	padding: 18px 16px calc(var(--rc-nav-h) + 28px);
	animation: rc-view-in 0.38s var(--rc-ease) both;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
	box-sizing: border-box;
}

.rc-app--web .rc-main {
	padding: 24px 28px calc(var(--rc-nav-h) + 32px);
}

.rc-shell {
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

@keyframes rc-view-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Bottom nav — floating glass dock ── */
.rc-bottom-nav {
	--rc-nav-ink: #5b6f8a;
	bottom: max(12px, env(safe-area-inset-bottom, 0px));
	width: min(calc(100% - 28px), 440px);
	padding: 9px 8px 11px;
	border-radius: 30px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 249, 255, 0.9) 100%);
	border: 1px solid rgba(255, 255, 255, 0.75);
	box-shadow:
		0 22px 48px rgba(8, 28, 58, 0.18),
		0 2px 8px rgba(0, 51, 102, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 1);
}

.rc-bottom-nav__item.is-active .rc-bottom-nav__icon {
	background: linear-gradient(145deg, #4da3ff 0%, #1a5cff 42%, #003366 100%);
	box-shadow:
		0 10px 22px rgba(0, 51, 102, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rc-app--web .rc-bottom-nav {
	bottom: 18px;
	border-radius: 30px;
}

/* Compact when 6 tabs (shop + part request) */
.rc-bottom-nav:has(.rc-bottom-nav__item:nth-child(6)) {
	gap: 0;
	padding-inline: 4px;
	width: min(calc(100% - 16px), 520px);
}

.rc-bottom-nav:has(.rc-bottom-nav__item:nth-child(6)) .rc-bottom-nav__label {
	font-size: 0.58rem;
	letter-spacing: -0.02em;
}

.rc-bottom-nav:has(.rc-bottom-nav__item:nth-child(6)) .rc-bottom-nav__icon {
	width: 40px;
	height: 32px;
}

/* ── Home ── */
.rc-home {
	display: grid;
	gap: 18px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rc-home > * {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.rc-home-hero {
	position: relative;
	overflow: hidden;
	padding: 20px 18px 18px;
	border-radius: var(--rc-radius-lg);
	color: #eef6ff;
	background:
		linear-gradient(135deg, #001a33 0%, #003366 52%, #0b5cab 100%);
	box-shadow:
		0 18px 40px rgba(0, 34, 68, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rc-home-hero::before {
	content: "";
	position: absolute;
	inset: -20% -10%;
	background:
		radial-gradient(circle at 20% 20%, rgba(120, 200, 255, 0.35), transparent 42%),
		radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.14), transparent 35%);
	animation: rc-aurora-shift 9s ease-in-out infinite alternate;
	pointer-events: none;
}

.rc-home-hero__text {
	position: relative;
	z-index: 1;
}

.rc-home-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0.82;
}

.rc-home-hero__title {
	margin: 0 0 6px;
	font-size: clamp(1.25rem, 4.5vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.rc-home-hero__sub {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	opacity: 0.88;
}

.rc-home-section,
.rc-section {
	margin: 0;
}

.rc-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.rc-section-head__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--rc-ink);
}

.rc-section-head__link {
	border: none;
	background: transparent;
	color: var(--rc-primary);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 2px;
}

.rc-section-head__link:hover {
	color: var(--rc-accent);
}

/* ── Search ── */
.rc-search {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rc-search::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6f8a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	pointer-events: none;
	opacity: 0.7;
	z-index: 1;
}

.rc-search__input,
.rc-app input.rc-search__input,
.rc-app input[type="search"].rc-search__input {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0;
	padding: 15px 46px 15px 16px;
	border: 1px solid var(--rc-line);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--rc-ink);
	background: var(--rc-glass-strong);
	box-sizing: border-box !important;
	box-shadow:
		var(--rc-shadow-soft),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rc-search__input::placeholder {
	color: #7a8ea8;
}

.rc-search__input:focus {
	outline: none;
	border-color: rgba(26, 92, 255, 0.45);
	box-shadow:
		0 0 0 3px rgba(26, 92, 255, 0.12),
		0 8px 20px rgba(8, 28, 58, 0.08);
}

.rc-search-results {
	display: grid;
	gap: 10px;
	margin: 0;
}

.rc-search-results__title {
	margin: 4px 0 2px;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--rc-ink-soft);
}

.rc-search-results__empty {
	margin: 0;
	padding: 18px;
	text-align: center;
	color: var(--rc-muted);
	background: rgba(255, 255, 255, 0.65);
	border: 1px dashed var(--rc-line);
	border-radius: var(--rc-radius);
}

.rc-specialist-chips {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.rc-specialist-chips::-webkit-scrollbar {
	display: none;
}

.rc-specialist-chip {
	flex: 0 0 auto;
	width: 108px;
	padding: 14px 10px;
	border: 1px solid var(--rc-line);
	border-radius: 18px;
	background: var(--rc-surface);
	cursor: pointer;
	font-family: inherit;
	text-align: center;
	box-shadow: var(--rc-shadow-soft);
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-specialist-chip:hover {
	transform: translateY(-2px);
	box-shadow: var(--rc-shadow);
}

.rc-specialist-chip__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin: 0 auto 8px;
	display: grid;
	place-items: center;
	font-weight: 800;
	color: var(--rc-primary-dark);
	background: linear-gradient(145deg, #e8f0fa, #d7e8ff);
	box-shadow: inset 0 0 0 1px rgba(0, 51, 102, 0.08);
}

.rc-specialist-chip__name {
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rc-specialist-chip__rating {
	margin-top: 4px;
	font-size: 0.7rem;
	color: var(--rc-muted);
}

/* ── Categories ── */
.rc-category-grid {
	gap: 12px;
	margin-bottom: 0;
}

.rc-category-item {
	gap: 10px;
	padding: 16px 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 18px;
	background:
		linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
	box-shadow:
		0 8px 22px rgba(8, 28, 58, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease, border-color 0.2s ease;
}

.rc-category-item:hover,
.rc-category-item:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(26, 92, 255, 0.28);
	box-shadow:
		0 16px 30px rgba(8, 28, 58, 0.12),
		0 0 0 1px rgba(26, 92, 255, 0.08);
	outline: none;
}

.rc-category-item:active {
	transform: translateY(-1px) scale(0.98);
}

.rc-category-item__icon {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	box-shadow:
		0 8px 16px rgba(8, 28, 58, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rc-category-item__title {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--rc-ink);
	line-height: 1.4;
}

/* ── Cards / services ── */
.rc-card {
	position: relative;
	padding: 16px 16px 15px;
	margin-bottom: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
	box-shadow:
		0 10px 28px rgba(8, 28, 58, 0.06),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	box-sizing: border-box;
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-category-grid,
.rc-home-section,
.rc-service-item {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rc-app--web .rc-card:hover {
	transform: translateY(-3px);
	box-shadow:
		0 18px 36px rgba(8, 28, 58, 0.12),
		0 0 0 1px rgba(26, 92, 255, 0.08);
}

.rc-card__title {
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	color: var(--rc-ink);
}

.rc-card__meta {
	color: var(--rc-ink-soft);
}

.rc-card__desc {
	color: #4a5f7a;
	font-size: 0.92rem;
	line-height: 1.65;
}

.rc-service-item {
	width: 100%;
	margin-bottom: 12px;
	text-align: right;
	cursor: pointer;
	border: none;
	font-family: inherit;
	appearance: none;
}

.rc-service-item .rc-card__title,
.rc-service-item strong {
	font-size: 1.05rem !important;
	font-weight: 800 !important;
	color: var(--rc-ink) !important;
}

.rc-service-item .rc-card__desc {
	font-size: 0.9rem !important;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rc-service-item__price,
.rc-service-price {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem !important;
	font-weight: 800;
	color: var(--rc-primary-dark) !important;
	background: linear-gradient(135deg, #e8f0fa, #dcebff);
	white-space: nowrap;
}

.rc-service-item__logo {
	flex: 0 0 68px;
	width: 68px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(145deg, #f7faff, #eef4fb);
	border: 1px solid rgba(12, 48, 96, 0.08);
}

.rc-service-item .rc-btn--sm {
	margin-top: 12px;
	border-width: 1.5px;
	background: rgba(0, 51, 102, 0.03);
}

.rc-part-entry {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 16px 18px;
	margin: 0;
	text-align: right;
	cursor: pointer;
	border: 1px solid rgba(26, 92, 255, 0.16);
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(232, 240, 250, 0.95), rgba(255, 255, 255, 0.98));
	box-shadow: var(--rc-shadow-soft);
	font-family: inherit;
	box-sizing: border-box;
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-part-entry:hover {
	transform: translateY(-2px);
	box-shadow: var(--rc-shadow);
}

.rc-part-entry strong {
	font-size: 1rem;
	color: var(--rc-primary-dark);
}

.rc-part-entry span {
	font-size: 0.84rem;
	color: var(--rc-ink-soft);
}

/* ── Buttons / forms ── */
.rc-btn {
	border-radius: 16px;
	padding: 14px 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	transition:
		transform 0.2s var(--rc-ease),
		box-shadow 0.2s ease,
		opacity 0.2s ease,
		background 0.2s ease;
}

.rc-btn:not(:disabled):hover {
	transform: translateY(-1px);
}

.rc-btn:not(:disabled):active {
	transform: translateY(0) scale(0.98);
}

.rc-btn--primary {
	background: linear-gradient(135deg, #3d8bff 0%, #1a5cff 42%, #003366 100%);
	box-shadow:
		0 12px 24px rgba(0, 51, 102, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rc-btn--outline {
	border-width: 1.5px;
	background: rgba(255, 255, 255, 0.7);
}

.rc-btn--sm {
	border-radius: 999px;
	padding: 9px 14px;
}

.rc-field label,
.rc-field > label {
	margin-bottom: 7px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--rc-ink-soft);
}

.rc-field input,
.rc-field select,
.rc-field textarea {
	padding: 13px 14px;
	border: 1.5px solid rgba(12, 48, 96, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rc-field input:focus,
.rc-field select:focus,
.rc-field textarea:focus {
	border-color: rgba(26, 92, 255, 0.5);
	box-shadow: 0 0 0 4px rgba(26, 92, 255, 0.12);
}

.rc-tabs {
	padding: 5px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--rc-line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rc-tabs__btn {
	border-radius: 12px;
	padding: 11px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--rc-ease);
}

.rc-tabs__btn.is-active {
	background: linear-gradient(135deg, #1a5cff, #003366);
	box-shadow: 0 8px 18px rgba(0, 51, 102, 0.22);
}

.rc-alert {
	border-radius: 14px;
	padding: 13px 15px;
	border: 1px solid transparent;
	box-shadow: var(--rc-shadow-soft);
}

.rc-alert--error {
	background: linear-gradient(135deg, #fff1f2, #ffe4e6);
	border-color: rgba(185, 28, 28, 0.12);
	color: #9f1239;
}

.rc-alert--success {
	background: linear-gradient(135deg, #ecfdf5, #d1fae5);
	border-color: rgba(6, 95, 70, 0.12);
	color: #065f46;
}

.rc-alert--warning {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border-color: rgba(146, 64, 14, 0.12);
	color: #92400e;
}

.rc-badge {
	padding: 5px 11px;
	letter-spacing: -0.01em;
}

.rc-empty {
	padding: 56px 24px;
	border-radius: var(--rc-radius-lg);
	background: rgba(255, 255, 255, 0.55);
	border: 1px dashed var(--rc-line);
}

.rc-stat-mini {
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: linear-gradient(160deg, #fff, #f3f7fc);
	box-shadow: var(--rc-shadow-soft);
}

/* OTP autofill catcher (WebOTP / Android SMS) */
.rc-otp-autofill {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
}

.rc-otp-boxes {
	position: relative;
	gap: 8px;
}

.rc-otp-box {
	flex: 1 1 0;
	min-width: 0;
	max-width: 52px;
	height: 52px;
	border-radius: 14px;
	font-size: 1.25rem;
	font-weight: 800;
}

/* ── Auth gate ── */
.rc-auth-gate {
	background:
		radial-gradient(90% 60% at 10% 0%, rgba(77, 163, 255, 0.45), transparent 50%),
		radial-gradient(70% 50% at 95% 15%, rgba(255, 255, 255, 0.16), transparent 45%),
		linear-gradient(165deg, #001122 0%, #002244 36%, #003366 68%, #0b5cab 100%);
}

.rc-auth-gate__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	pointer-events: none;
	opacity: 0.55;
	animation: rc-particle-float 7s ease-in-out infinite;
}

.rc-auth-gate__orb--1 {
	width: 180px;
	height: 180px;
	top: 8%;
	left: -40px;
	background: radial-gradient(circle, rgba(120, 200, 255, 0.55), transparent 70%);
}

.rc-auth-gate__orb--2 {
	width: 220px;
	height: 220px;
	bottom: 12%;
	right: -60px;
	background: radial-gradient(circle, rgba(26, 92, 255, 0.4), transparent 70%);
	animation-delay: 1.4s;
}

.rc-auth-gate__logo,
.rc-auth-gate__inner .rc-auth__logo {
	width: 104px;
	height: 104px;
	border-radius: 30px;
	box-shadow:
		0 0 0 5px rgba(255, 255, 255, 0.18),
		0 22px 48px rgba(0, 12, 36, 0.45),
		0 0 40px rgba(77, 163, 255, 0.28);
}

.rc-auth-gate__title {
	font-size: clamp(2.55rem, 10vw, 3.2rem);
}

.rc-auth-card {
	padding: 24px 20px 22px;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow:
		0 28px 60px rgba(0, 12, 36, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.rc-auth-form .rc-btn--auth {
	border-radius: 16px;
	min-height: 54px;
	background: linear-gradient(135deg, #3d8bff, #003366);
	box-shadow: 0 14px 30px rgba(0, 51, 102, 0.3);
}

/* ── Modals / sheets ── */
.rc-modal__panel {
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: var(--rc-shadow-lg);
	background: linear-gradient(180deg, #fff, #f7faff);
}

.rc-modal__backdrop {
	background: rgba(4, 16, 36, 0.48);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.rc-book-modal__head {
	margin-bottom: 14px;
}

.rc-book-service {
	border-radius: 18px;
	border: 1px solid var(--rc-line);
	background: linear-gradient(145deg, #f7faff, #fff);
	box-shadow: var(--rc-shadow-soft);
}

.rc-nav-sheet__panel,
.rc-notif-panel--sheet,
.rc-user-sheet .rc-user-menu__panel {
	border-radius: 26px 26px 18px 18px;
	background: linear-gradient(180deg, #fff, #f5f8fc);
	box-shadow: 0 -18px 48px rgba(8, 28, 58, 0.22);
}

.rc-nav-sheet__btn {
	border-radius: 16px;
	background: linear-gradient(135deg, #f5f9ff, #fff);
	border: 1px solid rgba(0, 51, 102, 0.1);
	transition: transform 0.18s var(--rc-ease), box-shadow 0.18s ease;
}

.rc-nav-sheet__btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--rc-shadow-soft);
}

/* ── Order cards ── */
.rc-order-card,
.rc-orders .rc-card {
	border-radius: 20px;
	overflow: hidden;
}

.rc-orders__title {
	font-weight: 800;
	letter-spacing: -0.02em;
}

.rc-order-step.is-done,
.rc-order-step.is-current {
	background: linear-gradient(90deg, #1a5cff, #003366);
}

/* ── Specialist picker ── */
.rc-spec-banner {
	border-radius: 16px;
	padding: 14px 16px;
	background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(26, 92, 255, 0.08));
	border: 1px solid rgba(0, 51, 102, 0.08);
}

.rc-spec-card {
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	background: linear-gradient(165deg, #fff, #f5f9ff);
	box-shadow: var(--rc-shadow-soft);
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-spec-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rc-shadow);
}

.rc-spec-card__btn {
	border-radius: 999px;
	background: linear-gradient(135deg, #1a5cff, #003366);
	color: #fff;
	font-weight: 700;
}

.rc-spec-cats-section {
	margin: 0;
}

.rc-spec-cats-head__title {
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.rc-spec-cat-card {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--rc-shadow-soft);
	border: 1px solid rgba(255, 255, 255, 0.7);
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-spec-cat-card:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: var(--rc-shadow);
}

/* ── Reviews ── */
.rc-review-card .rc-card__head,
.rc-home .rc-card .rc-card__head {
	align-items: center;
}

.rc-review-stars {
	color: #f5a524;
	letter-spacing: 1px;
}

/* ── Profile / admin polish ── */
.rc-profile {
	display: grid;
	gap: 14px;
}

.rc-profile .rc-card,
[data-view="profile"] .rc-card,
.rc-admin-list .rc-card {
	border-radius: 20px;
	margin-bottom: 0;
}

.rc-profile-guest {
	display: grid;
	gap: 16px;
}

.rc-profile-guest__hero {
	text-align: center;
	padding: 28px 18px 22px;
	border-radius: var(--rc-radius-lg);
	color: #eef6ff;
	background: linear-gradient(135deg, #001a33, #003366 55%, #0b5cab);
	box-shadow: 0 18px 40px rgba(0, 34, 68, 0.2);
}

.rc-profile-guest__mark {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	display: grid;
	place-items: center;
	border-radius: 20px;
	font-size: 1.6rem;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.rc-profile-guest__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 800;
}

.rc-profile-guest__sub {
	margin: 0;
	opacity: 0.88;
	font-size: 0.92rem;
}

.rc-profile-id {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rc-profile-id__avatar {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(8, 28, 58, 0.14);
}

.rc-profile-id__avatar--ph {
	display: grid;
	place-items: center;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--rc-primary-dark);
	background: linear-gradient(145deg, #e8f0fa, #d7e8ff);
}

.rc-profile-id__body {
	min-width: 0;
}

.rc-profile-id__role {
	display: inline-flex;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--rc-primary-dark);
	background: linear-gradient(135deg, #e8f0fa, #dcebff);
}

.rc-profile-city-line {
	margin-top: 6px;
	font-weight: 700;
}

.rc-profile__logout {
	margin-top: 4px;
}

.rc-auth-hint {
	margin: 6px 0 0;
}

/* ── Loader refinement ── */
.rc-app__loader {
	background:
		radial-gradient(80% 55% at 20% 10%, rgba(77, 163, 255, 0.4), transparent 50%),
		linear-gradient(165deg, #001122 0%, #003366 50%, #0b5cab 100%);
}

.rc-app__loader-logo {
	border-radius: 28px;
}

.rc-app__loader-brand {
	font-size: clamp(2.15rem, 8vw, 2.8rem);
}

/* ── Chat modal ── */
.rc-modal__panel--chat {
	border-radius: 24px;
	overflow: hidden;
}

/* ── Connectivity gate ── */
.rc-connectivity-gate__card {
	border-radius: 24px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
	.rc-main,
	.rc-home-hero::before,
	.rc-category-item,
	.rc-card,
	.rc-btn,
	.rc-spec-card,
	.rc-spec-cat-card {
		animation: none !important;
		transition: none !important;
	}
}

/* ── Compact mobile tweaks ── */
@media (max-width: 380px) {
	.rc-home-hero {
		padding: 16px 14px;
	}

	.rc-category-item {
		padding: 12px 6px 10px;
	}

	.rc-category-item__icon {
		width: 42px;
		height: 42px;
		border-radius: 14px;
	}
}

/* ══════════════════════════════════════════
   In-app Shop + Visual Image Search
   ══════════════════════════════════════════ */
.rc-shop {
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rc-shop-entry {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid rgba(26, 92, 255, 0.16);
	border-radius: 20px;
	background: linear-gradient(135deg, #e8f2ff, #fff 55%);
	box-shadow: var(--rc-shadow-soft);
	font-family: inherit;
	text-align: right;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-shop-entry:hover {
	transform: translateY(-2px);
	box-shadow: var(--rc-shadow);
}

.rc-shop-entry__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(145deg, #3d8bff, #003366);
	box-shadow: 0 8px 18px rgba(0, 51, 102, 0.25);
}

.rc-shop-entry__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rc-shop-entry__body strong {
	font-size: 0.98rem;
	color: var(--rc-ink);
}

.rc-shop-entry__body span {
	font-size: 0.8rem;
	color: var(--rc-ink-soft);
}

.rc-shop-entry__go {
	font-size: 1.3rem;
	color: var(--rc-primary);
	opacity: 0.7;
}

.rc-shop-hero {
	position: relative;
	overflow: hidden;
	padding: 18px 16px;
	border-radius: 24px;
	color: #eef6ff;
	background: linear-gradient(145deg, #001a33 0%, #003366 48%, #0b5cab 100%);
	box-shadow: 0 18px 40px rgba(0, 34, 68, 0.22);
	display: grid;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.rc-shop-hero__glow {
	position: absolute;
	inset: -30% -20%;
	background:
		radial-gradient(circle at 20% 20%, rgba(120, 200, 255, 0.35), transparent 42%),
		radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 36%);
	pointer-events: none;
	animation: rc-aurora-shift 9s ease-in-out infinite alternate;
}

.rc-shop-hero__content,
.rc-shop-visearch {
	position: relative;
	z-index: 1;
}

.rc-shop-hero__badge {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.rc-shop-hero__title {
	margin: 10px 0 6px;
	font-size: clamp(1.15rem, 4.2vw, 1.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.rc-shop-hero__desc {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.6;
	opacity: 0.9;
}

.rc-shop-hero__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.rc-shop-hero__steps span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.1);
}

.rc-shop-hero__steps em {
	font-style: normal;
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: #003366;
	font-size: 0.7rem;
	font-weight: 800;
}

.rc-shop-visearch {
	padding: 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: grid;
	gap: 12px;
	justify-items: center;
}

.rc-shop-visearch__drop {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.12);
	color: #eaf4ff;
}

.rc-shop-visearch__preview {
	position: relative;
	width: min(180px, 70%);
	aspect-ratio: 1;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.rc-shop-visearch__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-shop-visearch__scan {
	position: absolute;
	left: 0;
	right: 0;
	height: 28%;
	background: linear-gradient(180deg, transparent, rgba(120, 200, 255, 0.45), transparent);
	animation: rc-shop-scan 1.6s ease-in-out infinite;
}

.rc-shop-visearch.is-scanning .rc-shop-visearch__scan {
	opacity: 1;
}

@keyframes rc-shop-scan {
	0% { top: -10%; }
	100% { top: 90%; }
}

.rc-shop-visearch__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	width: 100%;
}

.rc-shop-visearch__actions .rc-btn {
	width: auto;
	min-width: 160px;
}

.rc-shop-visearch__actions .rc-btn--outline {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.08);
}

.rc-shop-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-shop-search {
	flex: 1;
	min-width: 0;
}

.rc-shop-search__input {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding: 13px 16px;
	border: 1px solid var(--rc-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 0.92rem;
	box-sizing: border-box !important;
	box-shadow: var(--rc-shadow-soft);
}

.rc-shop-search__input:focus {
	outline: none;
	border-color: rgba(26, 92, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.12);
}

.rc-shop-cart {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--rc-primary);
	background: #fff;
	border: 1px solid var(--rc-line);
	box-shadow: var(--rc-shadow-soft);
	text-decoration: none;
}

.rc-shop-head {
	margin-bottom: 0;
}

.rc-shop-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	padding: 1px 7px;
	margin-right: 6px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--rc-primary-dark);
	background: #e8f0fa;
	vertical-align: middle;
}

.rc-shop-detect {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border-radius: 18px;
	background: linear-gradient(135deg, #f3f8ff, #fff);
	border: 1px solid rgba(26, 92, 255, 0.14);
	box-shadow: var(--rc-shadow-soft);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.rc-shop-detect.is-warn {
	background: linear-gradient(135deg, #fff8eb, #fff);
	border-color: rgba(180, 120, 20, 0.2);
}

.rc-shop-detect__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden;
}

.rc-shop-detect__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-shop-detect__body {
	flex: 1;
	min-width: 0;
}

.rc-shop-detect__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rc-shop-detect__conf {
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	color: #0b5cab;
	background: #e8f0fa;
}

.rc-shop-detect__summary {
	margin: 6px 0 0;
	font-size: 0.84rem;
	color: var(--rc-ink-soft);
	line-height: 1.55;
}

.rc-shop-detect__tokens {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.rc-shop-detect__tokens code {
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.72rem;
	background: #eef4fb;
	color: #003366;
	border: 1px solid rgba(0, 51, 102, 0.08);
}

.rc-shop-detect__clear {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
	cursor: pointer;
	font-size: 0.9rem;
	color: #667;
}

.rc-shop-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-app--web .rc-shop-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rc-shop-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(12, 48, 96, 0.08);
	box-shadow: 0 8px 22px rgba(8, 28, 58, 0.06);
	transition: transform 0.22s var(--rc-ease), box-shadow 0.22s ease;
}

.rc-app--web .rc-shop-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rc-shadow);
}

.rc-shop-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: linear-gradient(145deg, #f4f7fb, #eef3f9);
	overflow: hidden;
}

.rc-shop-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rc-shop-card__ph {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 2rem;
	opacity: 0.5;
}

.rc-shop-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #ef4444, #dc2626);
}

.rc-shop-card__badge--soft {
	background: rgba(0, 51, 102, 0.82);
}

.rc-shop-card__body {
	padding: 10px 11px 12px;
	display: grid;
	gap: 6px;
	min-width: 0;
}

.rc-shop-card__title {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rc-shop-card__title a {
	color: var(--rc-ink);
	text-decoration: none;
}

.rc-shop-card__meta {
	font-size: 0.72rem;
}

.rc-shop-card__stock {
	color: #059669;
	font-weight: 700;
}

.rc-shop-card__stock.is-out {
	color: #b45309;
}

.rc-shop-card__price {
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--rc-primary-dark);
}

.rc-shop-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rc-shop-card__actions .rc-btn {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	font-size: 0.78rem;
}

.rc-shop-empty {
	background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 360px) {
	.rc-shop-grid {
		grid-template-columns: 1fr;
	}
}

/* ══════════════════════════════════════════
   All roles — Android / narrow overflow containment
   (customer · technician · seller · student · admin)
   ══════════════════════════════════════════ */
.rc-app,
.rc-app *,
.rc-app *::before,
.rc-app *::after {
	box-sizing: border-box;
}

.rc-app img,
.rc-app video,
.rc-app canvas,
.rc-app svg,
.rc-app iframe,
.rc-app table {
	max-width: 100%;
}

.rc-app table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rc-card,
.rc-modal__panel,
.rc-orders,
.rc-profile,
.rc-onboarding,
.rc-part-page,
.rc-part-orders,
.rc-academy,
.rc-wizard,
.rc-seller-page,
.rc-seller-plans,
.rc-seller-form,
.rc-product-card,
.rc-wizard-card,
.rc-doc-card,
.rc-book-modal__actions,
.rc-services,
.rc-available,
.rc-my-jobs {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-field,
.rc-field input,
.rc-field select,
.rc-field textarea,
.rc-field .rc-input,
.rc-field .rc-input--select,
.rc-wizard .rc-alert,
.rc-wizard .rc-card,
.rc-seller-form .rc-field,
.rc-seller-form input,
.rc-seller-form select,
.rc-seller-form textarea,
.rc-wizard-card input,
.rc-wizard-card select,
.rc-wizard-card textarea,
.rc-onboarding input,
.rc-onboarding select,
.rc-onboarding textarea {
	max-width: 100%;
	min-width: 0;
}

/* Wizard steps (seller 5 + technician 3): base flex + min-width:64 overflows */
.rc-wizard-steps,
.rc-wizard-steps--5 {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: start;
	justify-items: center;
	gap: 2px 4px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 12px 0 16px;
	overflow: hidden;
}

.rc-wizard-steps--5 .rc-wizard-steps__line,
.rc-wizard-steps .rc-wizard-steps__line {
	display: none;
}

.rc-wizard-steps .rc-wizard-step,
.rc-wizard-steps--5 .rc-wizard-step {
	min-width: 0 !important;
	max-width: 100%;
	width: 100%;
	gap: 4px;
}

.rc-wizard-steps .rc-wizard-step__num,
.rc-wizard-steps--5 .rc-wizard-step__num {
	width: 28px;
	height: 28px;
	font-size: 0.78rem;
}

.rc-wizard-steps .rc-wizard-step__label,
.rc-wizard-steps--5 .rc-wizard-step__label {
	font-size: 0.62rem;
	line-height: 1.25;
	text-align: center;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rc-wizard-steps:not(.rc-wizard-steps--5) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rc-wizard-actions {
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-wizard-actions .rc-btn {
	min-width: 0;
	flex: 1 1 120px;
}

/* Customer onboarding pills */
.rc-onboarding-steps {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-onboarding-steps__item {
	min-width: 0 !important;
	flex: 1 1 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rc-onboarding__toolbar {
	flex-wrap: wrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* Category / role / stats grids — always allow shrink */
.rc-category-grid,
.rc-categories {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-app--mobile .rc-categories,
.rc-app--pwa .rc-categories,
.rc-app--mobile .rc-category-grid,
.rc-app--pwa .rc-category-grid,
html.ach-native-app .rc-categories,
html.ach-native-app .rc-category-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.rc-category-item,
.rc-category-item__label {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rc-auth-roles,
.rc-role-select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 380px) {
	.rc-auth-roles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rc-otp-boxes {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding-inline: 2px;
}

.rc-otp-box {
	width: auto;
}

.rc-seller-page__hero {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex-wrap: wrap;
}

.rc-seller-page__count {
	margin-right: 0;
}

.rc-seller-form__row,
.rc-plan-grid {
	grid-template-columns: 1fr;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-plan-card,
.rc-product-card {
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.rc-product-card__top {
	min-width: 0;
}

.rc-product-card__body,
.rc-product-card__title {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rc-product-card__footer {
	width: 100%;
	max-width: 100%;
}

.rc-product-card__footer .rc-btn {
	flex: 1 1 calc(50% - 4px);
	min-width: 0;
}

.rc-condition-picks {
	grid-template-columns: 1fr;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 380px) {
	.rc-condition-picks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rc-skill-picker,
.rc-trade-picker,
.rc-chip-picker,
.rc-chip-grid,
.rc-spec-chips {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-skill-chip,
.rc-skill-chip--wide {
	max-width: 100%;
}

.rc-skill-chip span,
.rc-skill-chip--wide span {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rc-map-picker {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	overflow: hidden;
}

.rc-stats-row {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rc-stat-mini {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.rc-doc-card,
.rc-doc-item,
.rc-doc-input {
	max-width: 100%;
	min-width: 0;
}

.rc-price-words {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Part orders / shop (all roles) */
.rc-part-page .rc-part-order-card,
.rc-part-orders .rc-part-order-card {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
}

.rc-part-order-card__media,
.rc-part-order-card__media--empty {
	width: 100%;
	max-width: 88px;
}

.rc-part-order-card__top,
.rc-part-order-card__actions {
	min-width: 0;
	max-width: 100%;
}

.rc-part-order-card__title,
.rc-part-order-card__desc {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rc-part-shop,
.rc-part-shop__searchbar {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-part-shop__searchbar {
	flex-wrap: wrap;
}

.rc-part-shop__brand {
	max-width: 100%;
}

.rc-part-shop__search,
.rc-part-shop__input {
	min-width: 0;
	max-width: 100%;
}

/* Specialists grid — 180px min overflows ~320px phones */
.rc-spec-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-spec-card {
	min-width: 0;
	max-width: 100%;
}

/* Chat / upload — shared across roles */
.rc-chat-bubble--voice {
	min-width: 0 !important;
	width: min(100%, 280px);
	max-width: min(82%, 320px);
}

.rc-upload-action {
	min-width: 0;
	flex: 1 1 calc(50% - 8px);
}

.rc-admin-enroll-row {
	flex-wrap: wrap;
	min-width: 0;
	max-width: 100%;
}

.rc-admin-enroll-row__actions {
	min-width: 0;
	width: 100%;
}

.rc-book-service,
.rc-book-specialist,
.rc-book-brand {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-book-service__body,
.rc-book-service__title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rc-order-fact-row,
.rc-order-facts,
.rc-card__head,
.rc-card__meta {
	min-width: 0;
	max-width: 100%;
}

.rc-card__title,
.rc-card__meta,
.rc-section-head__title {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Bottom nav: 5 tabs (tech/seller) + already-handled 6 */
.rc-bottom-nav:has(.rc-bottom-nav__item:nth-child(5)):not(:has(.rc-bottom-nav__item:nth-child(6))) {
	gap: 1px;
	padding-inline: 6px;
}

.rc-bottom-nav:has(.rc-bottom-nav__item:nth-child(5)):not(:has(.rc-bottom-nav__item:nth-child(6))) .rc-bottom-nav__label {
	font-size: 0.6rem;
}

/* Keep horizontal clip even when base sets overflow:visible on shell */
.rc-app--mobile .rc-shell,
.rc-app--pwa .rc-shell,
html.ach-native-app .rc-shell {
	overflow-x: hidden !important;
	max-width: 100%;
}

.rc-app--mobile .rc-main,
.rc-app--pwa .rc-main,
html.ach-native-app .rc-main {
	overflow-x: clip;
	max-width: 100%;
}

@media (max-width: 360px) {
	.rc-category-grid,
	.rc-categories,
	.rc-app--mobile .rc-categories,
	.rc-app--pwa .rc-categories {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.rc-part-page .rc-part-order-card,
	.rc-part-orders .rc-part-order-card {
		grid-template-columns: 1fr;
	}

	.rc-part-order-card__media,
	.rc-part-order-card__media--empty {
		max-width: 100%;
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.rc-otp-boxes {
		gap: 4px;
	}

	.rc-otp-box {
		height: 46px;
		font-size: 1.1rem;
		max-width: 44px;
	}
}

@media (min-width: 520px) {
	.rc-seller-form__row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.rc-plan-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* Student academy — prevent 250px min-tracks from spilling past frame */
.rc-academy,
.rc-academy__courses,
.rc-academy__stats {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rc-academy__courses {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.rc-ac-rails,
.rc-ac-rail,
.rc-ac-rail__row {
	max-width: 100%;
	min-width: 0;
}

.rc-ac-rail__row {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
