/* ============================================================
   DRFT Barbershop — pure black + silver theme
   ============================================================ */

:root {
	--bg: #000000;
	--bg-soft: #0b0b0d;
	--bg-elev: #141416;
	--line: #26262a;
	--line-hi: #3a3a40;
	--text: #f4f4f6;
	--text-warm: #f0ece6;
	--text-dim: #b0b0b6;
	--text-mid: #d4d4d8;
	--silver: #d6d6da;
	--silver-hi: #ffffff;
	--danger: #d05a5a;
	--success: #5d9d6d;
}

* {
	box-sizing: border-box;
}

/* Force-hidden rows stay hidden, even inside display:block tables on mobile */
[hidden] {
	display: none !important;
}

html {
	scrollbar-gutter: stable;
	background: var(--bg);
}

body {
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 19px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.fade-in {
	animation: pageFade 0.5s ease-out both;
}

@keyframes pageFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ============================================================
   Background texture
   ============================================================ */

html::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.25;
	background-image: url('/static/asfalt-dark.png');
	background-repeat: repeat;
	background-size: 400px 400px;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(900px circle at 15% -5%, rgba(201, 164, 104, 0.05), transparent 55%),
		radial-gradient(800px circle at 90% 100%, rgba(214, 214, 218, 0.04), transparent 60%);
}

body>* {
	position: relative;
	z-index: 1;
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3 {
	margin: 0;
	font-weight: 800;
	letter-spacing: 0.02em;
}

h1 {
	font-size: 3.2em;
	line-height: 1.05;
}

h2 {
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--silver);
	margin: 88px 0 16px;
	display: flex;
	align-items: center;
	gap: 16px;
}

h2::before {
	content: "◆";
	font-size: 0.6em;
	color: var(--silver);
	opacity: 0.7;
}

h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, var(--silver) 0%, transparent 100%);
	opacity: 0.3;
}

h3 {
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin: 32px 0 12px;
}

a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--silver-hi);
}

/* ============================================================
   Public page — nav
   ============================================================ */

.nav-band {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	padding: 24px 0;
}

.nav-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.nav-brand {
	font-weight: 900;
	letter-spacing: 0.3em;
	font-size: 1.15em;
	color: var(--silver-hi);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin: 0;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--silver-hi);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
	display: flex;
	gap: 32px;
	align-items: center;
	font-size: 0.95em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-mid);
}

.nav-links a {
	color: var(--text-mid);
	position: relative;
}

.nav-links a:hover {
	color: var(--silver-hi);
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 1px;
	background: var(--silver-hi);
	transition: width 0.25s ease;
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-links a.active {
	color: var(--silver-hi);
}

.nav-links a.active::after {
	width: 100%;
}

.nav-links form {
	display: inline;
	margin: 0;
	padding: 0;
}

.nav-links button {
	background: transparent;
	border: none;
	color: var(--text-mid);
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	padding: 0;
}

.nav-links button:hover {
	background: transparent;
	color: var(--silver-hi);
}

/* ============================================================
   Public page — hero
   ============================================================ */

.hero-band {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 32px 60px;
	position: relative;
	overflow: hidden;
}

.hero-inner {
	max-width: 720px;
	position: relative;
	z-index: 1;
}

.hero-logo {
	max-width: 340px;
	margin: 0 auto 40px;
	display: block;
	filter: drop-shadow(0 12px 60px rgba(214, 214, 218, 0.18)) drop-shadow(0 0 24px rgba(214, 214, 218, 0.10));
	animation: heroEnter 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroEnter {
	0% {
		opacity: 0;
		transform: translateY(24px);
		filter: blur(6px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

.hero-line {
	font-size: 1.9em;
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.005em;
	line-height: 1.3;
	color: var(--text);
	margin: 0 0 40px;
	animation: heroEnter 1.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-hero {
	display: inline-block;
	background: var(--silver-hi);
	color: #000000;
	padding: 18px 36px;
	font-size: 0.9em;
	font-weight: 800;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
	animation: heroEnter 1.6s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.btn-hero:hover {
	background: var(--silver);
	color: #000000;
	transform: translateY(-1px);
	text-decoration: none;
}

.hero-band-photo {
	background-image: url('/static/hero.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero-band-photo .hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg,
			rgba(0, 0, 0, 0.7) 0%,
			rgba(0, 0, 0, 0.45) 40%,
			rgba(0, 0, 0, 0.75) 100%);
	pointer-events: none;
	z-index: 0;
}

.hero-band-photo .hero-inner {
	position: relative;
	z-index: 1;
}

/* ============================================================
   Public page — text panels
   ============================================================ */

.text-band {
	background: transparent;
	padding: 96px 32px;
}

.text-band-inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.text-band p {
	font-size: 1.75em;
	line-height: 1.7;
	color: var(--text-warm);
	margin: 0;
	letter-spacing: 0.005em;
}

/* ============================================================
   Public page — wide photo band
   ============================================================ */

.wide-band {
	position: relative;
	width: 100%;
	height: 45vh;
	min-height: 360px;
	background: radial-gradient(circle at 50% 50%, #141416 0%, #000000 70%);
	overflow: hidden;
}

.wide-band-photo {
	background-image: url('/static/shop.png');
	background-size: cover;
	background-position: center 40%;
	background-repeat: no-repeat;
	position: relative;
}

.wide-band-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
			rgba(0, 0, 0, 0.45) 0%,
			rgba(0, 0, 0, 0.3) 50%,
			rgba(0, 0, 0, 0.5) 100%);
	pointer-events: none;
}

/* ============================================================
   Public page — menu
   ============================================================ */

.menu-band {
	background: transparent;
	padding: 80px 32px 120px;
}

.menu-inner {
	max-width: 1000px;
	margin: 0 auto;
}

.menu-band h2 {
	margin-top: 72px;
}

.menu-band h2:first-of-type {
	margin-top: 0;
}

.svc-list {
	border-top: 1px solid var(--line);
}

.svc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 28px 12px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	transition: padding 0.25s ease, background 0.25s ease;
	position: relative;
	background: transparent;
}

.svc-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--silver-hi);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.25s ease;
}

.svc-row:hover {
	background: var(--bg-soft);
	padding-left: 24px;
	padding-right: 24px;
}

.svc-row:hover .svc-price {
	color: var(--silver-hi);
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.svc-row.selected {
	background: var(--bg-soft);
	padding-left: 24px;
	padding-right: 24px;
}

.svc-row.selected::before {
	transform: scaleY(1);
}

.svc-row.selected .svc-price {
	color: var(--silver-hi);
}

.svc-row.selected .svc-name {
	color: var(--silver-hi);
}

.svc-row input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.svc-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.svc-name {
	font-size: 1.7em;
	font-weight: 700;
	color: var(--text);
	margin: 0;
	transition: color 0.2s ease;
}

.svc-price {
	font-size: 2.3em;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: var(--silver-hi);
	white-space: nowrap;
	transition: color 0.2s ease;
}

/* ============================================================
   Public page — total bar
   ============================================================ */

.total-bar {
	position: sticky;
	bottom: 24px;
	margin: 72px 0 40px;
	padding: 26px 34px;
	background: rgba(0, 0, 0, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--line-hi);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 10;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8),
		0 0 0 1px rgba(214, 214, 218, 0.06) inset;
}

.total-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 60px;
	height: 1px;
	background: var(--silver-hi);
}

.total-bar .label {
	font-size: 0.85em;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 6px;
}

.total-bar .amount {
	font-size: 2.6em;
	font-weight: 900;
	color: var(--silver-hi);
	line-height: 1;
	transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
	transform-origin: left center;
}

.total-bar button {
	background: var(--silver-hi);
	color: #000000;
	border: none;
	padding: 18px 36px;
	font: inherit;
	font-weight: 800;
	font-size: 0.9em;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.total-bar button:hover {
	background: var(--silver);
	transform: translateY(-1px);
}

/* ============================================================
   Public page — closing band
   ============================================================ */

.closing-band {
	background: transparent;
	padding: 80px 32px;
	text-align: center;
	border-top: 1px solid var(--line);
}

.closing-band p {
	font-size: 1.4em;
	line-height: 1.7;
	color: var(--text-dim);
	margin: 0 auto;
	max-width: 640px;
	text-align: center;
}

.closing-band a {
	color: var(--text);
	border-bottom: 1px solid var(--line-hi);
	padding-bottom: 1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.closing-band a:hover {
	color: var(--silver-hi);
	border-bottom-color: var(--silver-hi);
}

/* ============================================================
   Public page — testimonials
   ============================================================ */

.testimonials-band {
	background: transparent;
	padding: 96px 32px;
	border-top: 1px solid var(--line);
}

.testimonials-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.testimonials-band h2 {
	margin: 0 0 48px;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.testimonial {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 32px 28px 26px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial:hover {
	border-color: var(--line-hi);
	transform: translateY(-2px);
	box-shadow:
		0 12px 40px -12px rgba(0, 0, 0, 0.7),
		0 0 0 1px rgba(214, 214, 218, 0.08),
		0 0 24px rgba(214, 214, 218, 0.06);
}

.testimonial::before {
	content: "\201C";
	position: absolute;
	top: 12px;
	left: 20px;
	font-size: 4em;
	line-height: 1;
	font-family: Georgia, serif;
	color: var(--line-hi);
	opacity: 0.5;
	pointer-events: none;
	user-select: none;
}

.testimonial-quote {
	font-size: 1.4em;
	line-height: 1.6;
	color: var(--text-warm);
	margin: 0 0 24px;
	position: relative;
	z-index: 1;
}

.testimonial-name {
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

/* ============================================================
   Public page — footer
   ============================================================ */

.site-footer {
	background: transparent;
	padding: 96px 32px 40px;
	border-top: 1px solid var(--line);
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.footer-brand {
	text-align: center;
	margin-bottom: 72px;
}

.footer-logo {
	max-width: 120px;
	display: block;
	margin: 0 auto 24px;
	opacity: 0.9;
}

.footer-tagline {
	font-size: 0.95em;
	letter-spacing: 0.45em;
	text-transform: uppercase;
	color: var(--silver);
	margin: 0;
}

.footer-socials {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 32px;
}

.footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	color: var(--text-dim);
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer-socials a:hover {
	color: var(--silver-hi);
	border-color: var(--silver-hi);
	transform: translateY(-2px);
}

.footer-socials svg {
	width: 22px;
	height: 22px;
	display: block;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
	padding: 56px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.footer-col {
	text-align: left;
}

.footer-heading {
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--silver);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-heading::before {
	content: "◆";
	font-size: 0.7em;
	opacity: 0.6;
}

.footer-col p {
	font-size: 1.15em;
	line-height: 1.8;
	color: var(--text);
	margin: 0;
}

.footer-col a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-col a:hover {
	color: var(--silver-hi);
	border-bottom-color: var(--silver-hi);
}

.footer-col small {
	display: inline-block;
	font-size: 0.85em;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-top: 4px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 32px;
	font-size: 0.9em;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.footer-directions {
	display: inline-block;
	font-size: 0.95em;
	color: var(--silver);
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-directions:hover {
	color: var(--silver-hi);
	border-bottom-color: var(--silver-hi);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom a {
	color: var(--text-dim);
}

.footer-bottom a:hover {
	color: var(--silver-hi);
}

/* ============================================================
   Global — reveal on scroll
   ============================================================ */

[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
	opacity: 1;
	transform: none;
}

/* ============================================================
   Global — forms
   ============================================================ */

label {
	display: inline-block;
	margin-right: 16px;
	margin-bottom: 10px;
	font-size: 0.9em;
	color: var(--text-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

input,
select,
textarea {
	background: var(--bg-soft);
	color: var(--text);
	border: 1px solid var(--line);
	padding: 12px 15px;
	font: inherit;
	font-size: 1em;
	margin-left: 8px;
	text-transform: none;
	letter-spacing: 0;
	transition: border-color 0.15s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--silver-hi);
}

input[type=number] {
	width: 120px;
}

input[type=date] {
	width: 180px;
}

/* Animated focus ring */
input.has-focus,
select.has-focus,
textarea.has-focus {
	border-color: var(--silver-hi);
	box-shadow:
		0 0 0 1px var(--silver-hi),
		0 0 16px -4px rgba(214, 214, 218, 0.35);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-text-fill-color: var(--text);
	-webkit-box-shadow: 0 0 0 1000px var(--bg-soft) inset;
	box-shadow: 0 0 0 1000px var(--bg-soft) inset;
	transition: background-color 5000s ease-in-out 0s;
	caret-color: var(--text);
}

button {
	background: var(--silver-hi);
	color: #000000;
	border: none;
	padding: 14px 28px;
	font: inherit;
	font-weight: 800;
	font-size: 0.92em;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

button:hover {
	background: var(--silver);
}

button.danger {
	background: var(--danger);
	color: #fff;
}

button.danger:hover {
	background: #e07070;
}

.error {
	color: #e88a8a;
	margin: 12px 0;
	font-size: 1.05em;
}

.success {
	color: var(--success);
	margin: 12px 0;
	font-size: 1.05em;
}

small {
	color: var(--text-dim);
	font-size: 0.9em;
}

/* ============================================================
   Global — scroll progress bar
   ============================================================ */

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--silver-hi);
	transform-origin: left;
	transform: scaleX(0);
	z-index: 100;
	transition: transform 0.05s linear;
	pointer-events: none;
	opacity: 0.7;
}

/* ============================================================
   Auth page (login)
   ============================================================ */

.auth-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background: radial-gradient(circle at 50% 40%, #141416 0%, #000000 70%);
}

.auth-card {
	width: 100%;
	max-width: 460px;
	text-align: center;
}

.auth-logo-link {
	display: inline-block;
	margin-bottom: 36px;
}

.auth-logo {
	width: 170px;
	display: block;
	filter: drop-shadow(0 8px 40px rgba(214, 214, 218, 0.15));
	transition: filter 0.3s ease;
}

.auth-logo-link:hover .auth-logo {
	filter: drop-shadow(0 8px 40px rgba(214, 214, 218, 0.25));
}

.auth-tagline {
	font-size: 1em;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--silver);
	margin: 0 0 40px;
}

.auth-error {
	font-size: 1.05em;
	text-align: center;
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid rgba(208, 90, 90, 0.4);
	background: rgba(208, 90, 90, 0.08);
	color: #e88a8a;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
	text-align: left;
	margin: 0;
}

.auth-label {
	display: block;
	margin: 0;
	font-size: 0.95em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.auth-label span {
	display: block;
	margin-bottom: 10px;
}

.auth-label input {
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	font-size: 1.1em;
	text-transform: none;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	color: var(--text);
	transition: border-color 0.15s ease;
}

.auth-label input:focus {
	outline: none;
	border-color: var(--silver-hi);
}

.auth-submit {
	width: 100%;
	margin: 10px 0 0;
	padding: 18px 20px;
	background: var(--silver-hi);
	color: #000000;
	border: none;
	font-weight: 800;
	font-size: 1.05em;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
	background: var(--silver);
	transform: translateY(-1px);
}

.auth-back {
	display: inline-block;
	margin-top: 40px;
	font-size: 1em;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.15s ease;
}

.auth-back:hover {
	color: var(--silver-hi);
}

/* ============================================================
   App pages (admin / counter / barber)
   ============================================================ */

.app-page {
	min-height: 100vh;
	background: transparent;
}

.app-shell {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 32px 80px;
}

.app-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.app-nav-brand {
	font-weight: 900;
	letter-spacing: 0.3em;
	font-size: 1.1em;
	color: var(--silver-hi);
}

.app-nav-tabs {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.app-nav-tabs a {
	padding: 10px 20px;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-dim);
	border-radius: 2px;
	transition: color 0.15s ease, background 0.15s ease;
}

.app-nav-tabs a:hover {
	color: var(--silver-hi);
	background: var(--bg-soft);
}

.app-nav-tabs a.active {
	color: var(--silver-hi);
	background: var(--bg-elev);
}

.app-nav-user {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 0.95em;
	letter-spacing: 0.1em;
	color: var(--text-dim);
}

.app-nav-user span {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-nav-user form {
	display: inline;
	margin: 0;
	padding: 0;
}

.app-nav-user button {
	background: transparent;
	border: none;
	color: var(--text-dim);
	font: inherit;
	font-size: 0.9em;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	padding: 0;
}

.app-nav-user button:hover {
	background: transparent;
	color: var(--silver-hi);
}

.app-header {
	margin-bottom: 40px;
}

.app-title {
	font-size: 2.9em;
	font-weight: 900;
	margin: 0 0 8px;
	color: var(--silver-hi);
}

.app-sub {
	font-size: 1em;
	color: var(--text-dim);
	margin: 0;
	letter-spacing: 0.05em;
}

.app-sub strong {
	color: var(--text);
	font-weight: 700;
}

/* ============================================================
   Section tabs (admin page)
   ============================================================ */

.section-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--line);
	padding-bottom: 0;
	flex-wrap: wrap;
}

.section-tabs a {
	padding: 12px 24px;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-dim);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.section-tabs a:hover {
	color: var(--silver-hi);
}

.section-tabs a.active {
	color: var(--silver-hi);
	border-bottom-color: var(--silver-hi);
}

@media (max-width: 720px) {
	.section-tabs {
		gap: 0;
	}

	.section-tabs a {
		flex: 1;
		text-align: center;
		padding: 12px 12px;
		font-size: 0.78em;
		letter-spacing: 0.15em;
	}
}

/* ============================================================
   App pages — panels
   ============================================================ */

.panel {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	margin-bottom: 40px;
	overflow: hidden;
}

.panel-head {
	padding: 24px 26px 20px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.panel-title {
	font-size: 0.95em;
	font-weight: 800;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--silver);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.panel-title::before {
	content: "◆";
	font-size: 0.65em;
	opacity: 0.7;
}

.panel-sub {
	font-size: 0.9em;
	color: var(--text-dim);
	margin: 0;
	letter-spacing: 0.1em;
}

.panel-body {
	padding: 24px;
}

.panel-body-flush {
	padding: 0;
}

.panel-foot {
	padding: 22px 26px;
	border-top: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   App pages — data tables
   ============================================================ */

.data-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 1.02em;
	table-layout: auto;
}

.data-table thead th {
	background: rgba(0, 0, 0, 0.6);
	padding: 16px 18px;
	font-weight: 700;
	font-size: 0.78em;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-dim);
	text-align: left;
	border-bottom: 1px solid var(--line-hi);
	position: sticky;
	top: 0;
	z-index: 1;
}

.data-table tbody td {
	padding: 18px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	vertical-align: middle;
	line-height: 1.5;
}

.data-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
	background: rgba(214, 214, 218, 0.03);
}

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

.data-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
	min-width: 200px;
}

.data-mono {
	font-variant-numeric: tabular-nums;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.95em;
	color: var(--text-dim);
}

.data-dim {
	color: var(--text-dim);
}

.data-strong {
	font-weight: 700;
	color: var(--silver-hi);
}

/* ============================================================
   Absent row styling
   ============================================================ */

.row-absent {
	background: rgba(208, 90, 90, 0.03);
}

.row-absent:hover {
	background: rgba(208, 90, 90, 0.05);
}

.absent-tag {
	display: inline-block;
	padding: 2px 10px;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--text-dim);
	border: 1px solid var(--line-hi);
	border-radius: 2px;
	opacity: 0.8;
}

/* ============================================================
   Salary — expandable day rows
   ============================================================ */

.day-summary {
	cursor: pointer;
	transition: background 0.15s ease;
}

.day-summary:hover {
	background: rgba(214, 214, 218, 0.04);
}

.day-toggle {
	display: inline-block;
	width: 20px;
	margin-right: 6px;
	color: var(--text-dim);
	font-size: 0.85em;
	transition: transform 0.2s ease, color 0.15s ease;
}

.day-summary.open .day-toggle {
	transform: rotate(90deg);
	color: var(--silver-hi);
}

.day-detail td {
	padding: 0 !important;
	border-bottom: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.4);
}

.day-detail-empty {
	margin: 0;
	padding: 16px 24px;
	color: var(--text-dim);
	font-style: italic;
	font-size: 0.95em;
}

.day-detail-table {
	width: calc(100% - 48px);
	margin: 16px 24px 20px;
	border-collapse: collapse;
	font-size: 0.95em;
}

.day-detail-table th {
	text-align: left;
	padding: 8px 12px;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-dim);
	border-bottom: 1px solid var(--line-hi);
	background: transparent;
}

.day-detail-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
}

.day-detail-table tr:last-child td {
	border-bottom: none;
}

/* ============================================================
   App pages — role badges
   ============================================================ */

.role-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border-radius: 2px;
}

.role-admin {
	background: var(--bg-elev);
	color: var(--silver-hi);
	border: 1px solid var(--line-hi);
}

.role-barber {
	background: transparent;
	color: var(--text-dim);
	border: 1px solid var(--line);
}

/* ============================================================
   App pages — row actions and icon buttons
   ============================================================ */

.row-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.row-form {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.row-input {
	margin: 0;
	padding: 9px 13px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	color: var(--text);
	font: inherit;
	font-size: 0.95em;
	width: 100%;
	min-width: 200px;
	transition: border-color 0.15s ease;
}

.row-input:focus {
	outline: none;
	border-color: var(--silver-hi);
}

.data-table .row-form .row-input {
	min-width: 200px;
	max-width: 240px;
}

.btn-secondary {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--line-hi);
	padding: 9px 18px;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
	background: var(--bg-elev);
	border-color: var(--silver-hi);
	color: var(--silver-hi);
}

.btn-danger {
	background: transparent;
	color: var(--danger);
	border: 1px solid var(--line);
	padding: 9px 18px;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-danger:hover {
	background: rgba(208, 90, 90, 0.1);
	border-color: var(--danger);
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	color: var(--text-dim);
	border: 1px solid var(--line);
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	margin-left: 0;
	flex-shrink: 0;
}

.btn-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.btn-icon:hover {
	background: var(--bg-elev);
	border-color: var(--silver-hi);
	color: var(--silver-hi);
}

.btn-icon-danger:hover {
	background: rgba(208, 90, 90, 0.08);
	border-color: rgba(208, 90, 90, 0.5);
	color: var(--danger);
}

/* ============================================================
   App pages — inline forms
   ============================================================ */

.inline-form {
	display: flex;
	gap: 20px;
	align-items: flex-end;
	flex-wrap: wrap;
	margin: 0;
}

.inline-form button {
	margin-left: auto;
}

.inline-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 0.85em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.inline-label span {
	display: block;
}

.inline-label input,
.inline-label select {
	margin: 0;
	padding: 11px 13px;
	font-size: 1em;
	text-transform: none;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	color: var(--text);
	min-width: 200px;
	transition: border-color 0.15s ease;
}

.inline-label input:focus,
.inline-label select:focus {
	outline: none;
	border-color: var(--silver-hi);
}

.inline-label input[type=number] {
	min-width: 140px;
	width: 140px;
}

.inline-label textarea {
	width: 100%;
	min-width: 0;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	color: var(--text);
	padding: 11px 13px;
	font: inherit;
	font-size: 1em;
	resize: vertical;
	min-height: 70px;
	transition: border-color 0.15s ease;
}

.inline-label textarea:focus {
	outline: none;
	border-color: var(--silver-hi);
}

/* ============================================================
   App pages — empty state
   ============================================================ */

.empty-state {
	padding: 48px 24px;
	text-align: center;
	color: var(--text-dim);
	font-size: 1.05em;
	letter-spacing: 0.05em;
}

/* ============================================================
   Counter form
   ============================================================ */

.counter-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
}

.form-row {
	display: flex;
	gap: 20px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.form-row-payments {
	gap: 24px;
}

.form-row-discount {
	align-items: flex-start;
}

.form-actions {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	justify-content: flex-end;
}

.counter-form .inline-label {
	flex: 0 1 auto;
	min-width: 220px;
}

.counter-form .inline-label-grow {
	flex: 1 1 340px;
}

.counter-form .inline-label input,
.counter-form .inline-label select {
	min-width: 220px;
}

.counter-form .inline-label-grow input {
	min-width: 100%;
	width: 100%;
}

.counter-form .form-row-payments .inline-label {
	min-width: 170px;
	flex: 0 1 190px;
}

.counter-form .form-row-payments input {
	width: 100%;
	min-width: 0;
}

.inline-label-reason {
	flex: 1 1 400px;
}

.pay-tag {
	display: inline-block;
	padding: 2px 10px;
	margin-right: 6px;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-dim);
	border: 1px solid var(--line);
	border-radius: 2px;
}

/* ============================================================
   Counter — quick discount buttons
   ============================================================ */

.quick-discount {
	display: flex;
	gap: 6px;
	align-items: flex-end;
	padding-bottom: 1px;
	flex-wrap: wrap;
}

.quick-discount-label {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-right: 4px;
	align-self: center;
}

.quick-btn {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--line);
	padding: 10px 16px;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	margin: 0;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quick-btn:hover {
	background: var(--bg-elev);
	border-color: var(--silver-hi);
	color: var(--silver-hi);
}

.quick-btn-free {
	color: var(--danger);
	border-color: rgba(208, 90, 90, 0.4);
}

.quick-btn-free:hover {
	background: rgba(208, 90, 90, 0.08);
	border-color: var(--danger);
	color: var(--danger);
}

.quick-btn-clear {
	color: var(--text-dim);
}

.quick-btn-clear:hover {
	color: var(--text);
}

/* ============================================================
   Counter — payment cards
   ============================================================ */

.payment-section {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.payment-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 16px;
	gap: 12px;
	flex-wrap: wrap;
}

.payment-head-label {
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.payment-head-hint {
	font-size: 0.85em;
	color: var(--text-dim);
	opacity: 0.7;
}

.payment-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.pay-card {
	position: relative;
	display: block;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 16px 18px 14px;
	margin: 0;
	cursor: text;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pay-card:hover {
	border-color: var(--line-hi);
}

.pay-card:focus-within {
	border-color: var(--silver-hi);
	box-shadow: 0 0 0 1px var(--silver-hi),
		0 8px 24px -8px rgba(214, 214, 218, 0.15);
}

.pay-card.has-value {
	border-color: var(--line-hi);
	background: #181820;
}

.pay-card-name {
	display: block;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 8px;
}

.pay-card-currency {
	position: absolute;
	left: 18px;
	bottom: 14px;
	font-size: 1.4em;
	font-weight: 800;
	color: var(--text-dim);
	pointer-events: none;
}

.pay-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 0 0 26px;
	background: transparent;
	border: none;
	color: var(--silver-hi);
	font: inherit;
	font-size: 1.8em;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-align: left;
	outline: none;
}

.pay-input::-webkit-outer-spin-button,
.pay-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pay-input[type=number] {
	-moz-appearance: textfield;
}

.payment-totals {
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 14px 18px;
}

.pay-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 6px 0;
	font-size: 1em;
}

.pay-total-label {
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.pay-total-value {
	font-size: 1.15em;
	font-weight: 800;
	color: var(--silver-hi);
	font-variant-numeric: tabular-nums;
}

.pay-total-final {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.pay-total-final .pay-total-value {
	font-size: 1.4em;
	font-weight: 900;
}

.payment-totals.complete {
	border-color: var(--success);
	background: rgba(93, 157, 109, 0.06);
}

.payment-totals.complete .pay-total-final .pay-total-value {
	color: var(--success);
}

.payment-totals.short .pay-total-final .pay-total-value {
	color: #d0a05a;
}

.payment-totals.over .pay-total-final .pay-total-value {
	color: var(--danger);
}

/* ============================================================
   Counter — attendance panel
   ============================================================ */

.attendance-form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.attendance-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	width: 100%;
}

.attendance-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: 6px;
	cursor: pointer;
	margin: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.attendance-card:hover {
	border-color: var(--line-hi);
}

.attendance-card input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--silver-hi);
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.attendance-name {
	font-size: 1em;
	font-weight: 600;
	color: var(--text);
	transition: color 0.15s ease;
}

.attendance-card input[type="checkbox"]:checked~.attendance-name {
	color: var(--silver-hi);
}

.attendance-save {
	margin: 0;
}

/* ============================================================
   Stats cards
   ============================================================ */

.stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.stat-card {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 24px 24px 22px;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 1px;
	background: var(--silver-hi);
	opacity: 0.5;
}

.stat-label {
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 12px;
}

.stat-value {
	font-size: 2.1em;
	font-weight: 900;
	color: var(--silver-hi);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.stat-card-accent {
	border-color: var(--line-hi);
}

.stat-card-accent::before {
	background: var(--silver-hi);
	opacity: 1;
}

/* ============================================================
   Salary totals
   ============================================================ */

.totals-box {
	margin-top: 8px;
	margin-bottom: 40px;
	padding: 24px 28px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.totals-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 1px;
	background: var(--silver-hi);
	opacity: 0.6;
}

.totals-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 12px 0;
	font-size: 1.1em;
	color: var(--text);
}

.totals-row span {
	color: var(--text-dim);
	font-size: 0.95em;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.totals-row strong {
	font-size: 1.2em;
	color: var(--silver-hi);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.totals-row-final {
	margin-top: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--line-hi);
}

.totals-row-final span {
	color: var(--silver);
	font-size: 1em;
}

.totals-row-final strong {
	font-size: 2.2em;
	font-weight: 900;
}

.floor-tag {
	color: var(--text-dim);
	font-style: italic;
	font-size: 0.9em;
}

/* ============================================================
   Confirm modal
   ============================================================ */

.confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 24px;
}

.confirm-overlay.open {
	display: flex;
	animation: confirmFade 0.15s ease-out;
}

@keyframes confirmFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.confirm-box {
	background: var(--bg-elev);
	border: 1px solid var(--line-hi);
	border-radius: 6px;
	padding: 28px 28px 22px;
	max-width: 460px;
	width: 100%;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9),
		0 0 0 1px rgba(214, 214, 218, 0.06) inset;
}

.confirm-message {
	font-size: 1.1em;
	line-height: 1.55;
	color: var(--text);
	margin: 0 0 24px;
}

.confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.confirm-actions .btn-secondary,
.confirm-actions .btn-danger {
	padding: 12px 22px;
	font-size: 0.85em;
}

.confirm-actions .btn-danger {
	background: var(--danger);
	color: #fff;
	border: 1px solid var(--danger);
}

.confirm-actions .btn-danger:hover {
	background: #e07070;
	border-color: #e07070;
}

/* ============================================================
   Skeleton loading
   ============================================================ */

.skeleton-row td {
	padding: 18px;
	border-bottom: 1px solid var(--line);
}

.skeleton-bar {
	display: block;
	height: 16px;
	background: linear-gradient(90deg,
			rgba(214, 214, 218, 0.06) 0%,
			rgba(214, 214, 218, 0.12) 50%,
			rgba(214, 214, 218, 0.06) 100%);
	background-size: 200% 100%;
	border-radius: 2px;
	animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-bar.w-30 {
	width: 30%;
}

.skeleton-bar.w-50 {
	width: 50%;
}

.skeleton-bar.w-70 {
	width: 70%;
}

.skeleton-bar.w-100 {
	width: 100%;
}

@keyframes skeletonShimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

body.loaded .skeleton-only {
	display: none;
}

body:not(.loaded) .real-content {
	display: none;
}

.skeleton-only {
	opacity: 1;
	transition: opacity 0.3s ease;
}

body.loaded .skeleton-only {
	opacity: 0;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
	body.fade-in {
		animation: none;
	}

	.hero-logo,
	.hero-line,
	.btn-hero,
	[data-reveal] {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.scroll-progress {
		display: none;
	}

	input.has-focus,
	select.has-focus,
	textarea.has-focus {
		transition: none;
	}
}

/* ============================================================
   Responsive — tablet (721–960px)
   ============================================================ */

@media (max-width: 960px) and (min-width: 721px) {
	.footer-cols {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px;
	}

	.testimonial-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.testimonial-grid .testimonial:nth-child(3) {
		grid-column: span 2;
		max-width: 50%;
		margin: 0 auto;
	}
}

/* ============================================================
   Responsive — mobile (≤ 720px)
   ============================================================ */

@media (max-width: 720px) {

	html,
	body {
		font-size: 17px;
	}

	html::before {
		opacity: 0.2;
	}

	/* Nav */
	.nav-band {
		padding: 16px 0;
		background: rgba(0, 0, 0, 0.85);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	.nav-inner {
		padding: 0 20px;
	}

	.nav-brand {
		font-size: 1em;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.98);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 0 20px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease, padding 0.3s ease;
		border-bottom: 1px solid transparent;
	}

	.nav-band.open .nav-links {
		max-height: 500px;
		padding: 16px 20px 24px;
		border-bottom-color: var(--line);
	}

	.nav-band.open .nav-toggle span:nth-child(1) {
		transform: translateY(6.5px) rotate(45deg);
	}

	.nav-band.open .nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	.nav-band.open .nav-toggle span:nth-child(3) {
		transform: translateY(-6.5px) rotate(-45deg);
	}

	.nav-links a {
		padding: 18px 0;
		font-size: 1.05em;
		letter-spacing: 0.25em;
		width: 100%;
		border-bottom: 1px solid var(--line);
	}

	.nav-links a:last-of-type {
		border-bottom: none;
	}

	.nav-links a::after {
		display: none;
	}

	.nav-links form {
		display: block;
		width: 100%;
		margin: 0;
	}

	.nav-links form button {
		padding: 18px 0;
		font-size: 1.05em;
		letter-spacing: 0.25em;
		width: 100%;
		text-align: left;
	}

	/* Hero */
	.hero-band {
		min-height: 80vh;
		padding: 100px 24px 60px;
	}

	.hero-band-photo {
		background-position: center 30%;
	}

	.hero-logo {
		max-width: 240px;
		margin-bottom: 32px;
	}

	.hero-line {
		font-size: 1.4em;
		margin-bottom: 32px;
	}

	.btn-hero {
		padding: 16px 28px;
		font-size: 0.9em;
	}

	/* Text bands */
	.text-band {
		padding: 72px 24px;
	}

	.text-band p {
		font-size: 1.45em;
	}

	/* Wide photo band */
	.wide-band {
		height: 40vh;
		min-height: 240px;
	}

	.wide-band-photo {
		background-position: center 30%;
	}

	/* Menu */
	.menu-band {
		padding: 60px 20px 100px;
	}

	.svc-row {
		padding: 22px 8px;
	}

	.svc-name {
		font-size: 1.25em;
	}

	.svc-price {
		font-size: 1.5em;
	}

	.svc-row:hover,
	.svc-row.selected {
		padding-left: 12px;
		padding-right: 12px;
	}

	/* Total bar */
	.total-bar {
		padding: 20px 24px;
		margin: 48px 0 24px;
	}

	.total-bar .amount {
		font-size: 1.9em;
	}

	.total-bar button {
		padding: 15px 24px;
		font-size: 0.9em;
		letter-spacing: 0.2em;
	}

	/* Closing band */
	.closing-band {
		padding: 60px 24px;
	}

	.closing-band p {
		font-size: 1.3em;
	}

	/* Testimonials */
	.testimonials-band {
		padding: 64px 24px;
	}

	.testimonials-band h2 {
		margin-bottom: 32px;
	}

	.testimonial-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.testimonial {
		padding: 28px 24px 24px;
	}

	.testimonial-quote {
		font-size: 1.3em;
	}

	.testimonial::before {
		font-size: 3em;
		top: 8px;
		left: 14px;
	}

	/* Footer */
	.site-footer {
		padding: 64px 24px 32px;
	}

	.footer-brand {
		margin-bottom: 48px;
	}

	.footer-cols {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 40px 0;
	}

	.footer-col {
		text-align: center;
	}

	.footer-heading {
		justify-content: center;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 16px;
		text-align: center;
		padding-top: 24px;
	}

	/* Auth */
	.auth-page {
		padding: 32px 20px;
	}

	.auth-logo {
		width: 140px;
	}

	.auth-tagline {
		margin-bottom: 32px;
	}

	/* App shell */
	.app-shell {
		padding: 0 20px 60px;
	}

	.app-nav {
		padding: 16px 0;
		margin-bottom: 24px;
	}

	.app-nav-tabs {
		order: 3;
		width: 100%;
		gap: 2px;
	}

	.app-nav-tabs a {
		padding: 10px 14px;
		font-size: 0.85em;
		letter-spacing: 0.15em;
	}

	.app-title {
		font-size: 2.2em;
	}

	/* Panels */
	.panel-body {
		padding: 16px;
	}

	.panel-head {
		padding: 20px 20px 16px;
	}

	.panel-foot {
		padding: 20px;
	}

	/* Data tables → cards */
	.data-table,
	.data-table thead,
	.data-table tbody,
	.data-table tr,
	.data-table td {
		display: block;
		width: 100%;
	}

	.data-table thead {
		display: none;
	}

	.data-table {
		border-collapse: separate;
		border-spacing: 0;
		background: transparent;
		font-size: 1em;
	}

	.data-table tbody tr {
		background: var(--bg-elev);
		border: 1px solid var(--line);
		border-radius: 6px;
		margin-bottom: 16px;
		padding: 18px;
	}

	.data-table tbody tr:hover,
	.data-table tbody tr:nth-child(even) {
		background: var(--bg-elev);
	}

	.data-table tbody td {
		padding: 10px 0;
		border: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		font-size: 1.05em;
		text-align: left;
		min-width: 0;
	}

	.data-table tbody td[data-label]::before {
		content: attr(data-label);
		font-size: 0.8em;
		font-weight: 700;
		letter-spacing: 0.22em;
		text-transform: uppercase;
		color: var(--text-dim);
		flex-shrink: 0;
	}

	.data-table tbody td:has(input),
	.data-table tbody td:has(select),
	.data-table tbody td:has(.row-form),
	.data-table tbody td:has(.row-actions) {
		flex-direction: column;
		align-items: stretch;
		padding-top: 14px;
	}

	.data-table tbody td:has(input)::before,
	.data-table tbody td:has(select)::before,
	.data-table tbody td:has(.row-form)::before {
		margin-bottom: 10px;
	}

	.data-table .row-input {
		width: 100%;
		max-width: none;
		min-width: 0;
		margin: 0;
		font-size: 1em;
		padding: 12px 14px;
	}

	.data-table .row-form {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.data-table .row-actions {
		justify-content: flex-end;
		gap: 10px;
		padding-top: 8px;
	}

	.data-table .row-actions .btn-icon {
		width: 48px;
		height: 48px;
	}

	.data-table .row-actions .btn-icon svg {
		width: 22px;
		height: 22px;
	}

	.data-table .num {
		text-align: right;
	}

	/* Absent row on mobile — the colspan cell fills the card */
	.row-absent td[colspan] {
		text-align: right;
	}

	/* Day detail on mobile — nested table becomes a stack of mini-cards */
	.day-detail td {
		background: transparent;
	}

	.day-detail-table {
		width: 100%;
		margin: 8px 0 0;
		border: none;
	}

	.day-detail-table thead {
		display: none;
	}

	.day-detail-table tbody tr {
		display: block;
		background: rgba(0, 0, 0, 0.5);
		border: 1px solid var(--line);
		border-radius: 4px;
		margin-bottom: 8px;
		padding: 12px 14px;
	}

	.day-detail-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 4px 0;
		border: none;
		font-size: 0.95em;
	}

	.day-detail-table tbody td:first-child::before {
		content: "Time";
	}

	.day-detail-table tbody td:nth-child(2)::before {
		content: "Service";
	}

	.day-detail-table tbody td:nth-child(3)::before {
		content: "Price";
	}

	.day-detail-table tbody td:nth-child(4)::before {
		content: "Discount";
	}

	.day-detail-table tbody td:nth-child(5)::before {
		content: "Net";
	}

	.day-detail-table tbody td::before {
		font-size: 0.75em;
		font-weight: 700;
		letter-spacing: 0.18em;
		text-transform: uppercase;
		color: var(--text-dim);
	}

	/* Inline forms */
	.inline-form {
		gap: 14px;
	}

	.inline-label {
		flex: 1 1 100%;
		font-size: 0.9em;
	}

	.inline-label input,
	.inline-label select {
		min-width: 0;
		width: 100%;
		font-size: 1.05em;
		padding: 13px 14px;
	}

	.inline-form button {
		width: 100%;
		margin-left: 0;
		padding: 15px 24px;
	}

	/* Counter form */
	.form-row {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.counter-form .inline-label,
	.counter-form .form-row-payments .inline-label {
		flex: 1 1 100%;
		min-width: 0;
		width: 100%;
	}

	.counter-form .inline-label input,
	.counter-form .inline-label select {
		width: 100%;
		min-width: 0;
	}

	.form-actions {
		justify-content: stretch;
	}

	.form-actions button {
		width: 100%;
	}

	.counter-form .form-actions {
		position: sticky;
		bottom: 0;
		background: var(--bg);
		padding: 14px 0;
		margin-top: 12px;
		z-index: 5;
		border-top: 1px solid var(--line);
	}

	/* Discount row */
	.form-row-discount {
		flex-direction: column;
		align-items: stretch;
	}

	.inline-label-reason {
		flex: 1 1 100%;
	}

	.quick-discount {
		width: 100%;
		justify-content: flex-start;
	}

	.quick-btn {
		flex: 1;
		text-align: center;
	}

	/* Payment cards */
	.payment-cards {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.pay-card {
		padding: 14px 16px 12px;
	}

	.pay-card-currency {
		left: 16px;
		bottom: 12px;
		font-size: 1.2em;
	}

	.pay-input {
		font-size: 1.6em;
		padding-left: 22px;
	}

	.payment-head-hint {
		display: none;
	}

	/* Attendance */
	.attendance-grid {
		grid-template-columns: 1fr;
	}

	.attendance-card {
		padding: 16px;
	}

	.attendance-save {
		width: 100%;
	}

	/* Stats & totals */
	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-value {
		font-size: 1.8em;
	}

	.totals-box {
		padding: 22px;
	}

	.totals-row {
		font-size: 1em;
	}

	.totals-row-final strong {
		font-size: 1.8em;
	}

	/* Confirm modal */
	.confirm-box {
		padding: 22px 20px 18px;
	}

	.confirm-message {
		font-size: 1em;
	}

	.confirm-actions .btn-secondary,
	.confirm-actions .btn-danger {
		padding: 12px 18px;
	}
}

/* ============================================================
   Responsive — small mobile (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
	.stats-row {
		grid-template-columns: 1fr;
	}

	.stat-card {
		padding: 22px;
	}

	.stat-value {
		font-size: 1.7em;
	}

	.data-table tbody td {
		font-size: 1em;
	}
}

/* ============================================================
   Responsive — extra small (≤ 400px)
   ============================================================ */

@media (max-width: 400px) {
	.hero-line {
		font-size: 1.2em;
	}

	.svc-name {
		font-size: 1.15em;
	}

	.svc-price {
		font-size: 1.35em;
	}

	.total-bar .amount {
		font-size: 1.7em;
	}
}

/* ============================================================
   Barber /me — summary line
   ============================================================ */

.me-summary {
	padding: 24px 28px;
	margin-bottom: 32px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.me-summary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 1px;
	background: var(--silver-hi);
	opacity: 0.6;
}

.me-summary-line {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.me-summary-label {
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.me-summary-value {
	font-size: 2em;
	font-weight: 900;
	color: var(--silver-hi);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.me-summary-note {
	margin: 8px 0 0;
	font-size: 0.9em;
	color: var(--text-dim);
	font-style: italic;
	letter-spacing: 0.02em;
}

@media (max-width: 720px) {
	.me-summary {
		padding: 20px 22px;
	}

	.me-summary-value {
		font-size: 1.6em;
	}
}