/* ============================================================
   BASE — AVICIENA LAW FIRM (ALF)
   International Editorial + Modern iOS / macOS Design System
   ============================================================ */

:root {
	/* ---------- BRAND PALETTE ---------- */
	--maroon: #8F0008;
	--maroon-hover: #A80A14;
	--maroon-deep: #3B0307;
	--maroon-soft: rgba(143, 0, 8, 0.08);
	--champagne: #E8D5B5;

	/* ---------- NEUTRAL SYSTEM SURFACES ---------- */
	--ink: #161618;
	--ink-secondary: #3C3C43;
	--muted: #68686E;
	--tertiary: #8A8A91;
	--canvas: #F5F5F7;
	--paper: #FFFFFF;
	--surface-subtle: #FAFAFC;
	--hairline: rgba(0, 0, 0, 0.075);
	--hairline-strong: rgba(0, 0, 0, 0.14);

	/* ---------- TACTILE 3D DEPTH SHADOWS ---------- */
	--shadow-card:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 1px 2px rgba(0, 0, 0, 0.03),
		0 10px 24px -8px rgba(15, 10, 12, 0.07);
	--shadow-card-hover:
		0 1px 0 rgba(255, 255, 255, 1) inset,
		0 4px 10px rgba(0, 0, 0, 0.04),
		0 20px 40px -12px rgba(15, 10, 12, 0.12);
	--shadow-window:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 2px 6px rgba(0, 0, 0, 0.04),
		0 20px 44px -12px rgba(15, 10, 12, 0.09);

	/* ---------- STATUS COLORS ---------- */
	--ios-green: #1E7E34;
	--ios-amber: #B25000;

	/* ---------- RADII & MOTION ---------- */
	--radius-card: 18px;
	--radius-window: 16px;
	--radius-group: 12px;
	--radius-pill: 999px;
	--ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--spring: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ============================================================
   RESET & TYPOGRAPHY
   ============================================================ */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--canvas);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	line-height: 1.5;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}


/* ============================================================
   PERFORMANCE & SMOOTH SCROLL REVEALS
   ============================================================ */

.lazy-section {
	content-visibility: auto;
	contain-intrinsic-size: auto 620px;
}

.reveal-up {
	opacity: 0;
	transform: translate3d(0, 18px, 0);
	transition: opacity 0.55s var(--spring), transform 0.55s var(--spring);
	will-change: transform, opacity;
}

.reveal-up.in-view {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	will-change: auto;
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2.5px;
	background: var(--maroon);
	width: 0%;
	z-index: 120;
	transition: width 0.12s linear;
}


/* ============================================================
   EDITORIAL SECTION HEADER BAR
   ============================================================ */

.section-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--hairline);
}

.sec-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sec-num {
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--maroon);
	letter-spacing: 0.03em;
}

.sec-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-secondary);
}

.sec-right {
	font-size: 12px;
	color: var(--tertiary);
}


/* ============================================================
   TACTILE 3D SURFACE ELEVATION
   ============================================================ */

.surface-3d {
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	transition: transform 0.38s var(--spring), box-shadow 0.38s var(--spring), border-color 0.25s var(--ease), background-color 0.24s var(--ease);
}

.surface-3d:hover {
	transform: translate3d(0, -3px, 0);
	border-color: var(--hairline-strong);
	box-shadow: var(--shadow-card-hover);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: var(--radius-pill);
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: -0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--spring), box-shadow 0.22s var(--ease);
}

.btn:active {
	transform: scale(0.98);
}

.btn .arrow {
	display: inline-block;
	transition: transform 0.22s var(--spring);
}

.btn:hover .arrow {
	transform: translateX(3px);
}

.btn-solid {
	background: var(--maroon);
	color: #fff;
	box-shadow: 0 2px 8px rgba(143, 0, 8, 0.28), 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}

.btn-solid:hover {
	background: var(--maroon-hover);
	box-shadow: 0 8px 20px rgba(143, 0, 8, 0.32);
}

.btn-outline {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost-light {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.btn-ghost-light:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.45);
}


/* ============================================================
   iOS INSET GROUPED ROWS
   ============================================================ */

.ios-grouped-list {
	background: var(--canvas);
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--radius-group);
	overflow: hidden;
}

.ios-grouped-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	font-size: 13px;
}

.ios-grouped-row + .ios-grouped-row::before {
	content: '';
	position: absolute;
	top: 0;
	left: 14px;
	right: 0;
	height: 1px;
	background: var(--hairline);
}

.ios-grouped-row .row-k {
	color: var(--muted);
}

.ios-grouped-row .row-v {
	color: var(--ink);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.ios-grouped-list.dark {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

.ios-grouped-list.dark .ios-grouped-row + .ios-grouped-row::before {
	background: rgba(255, 255, 255, 0.1);
}

.ios-grouped-list.dark .row-k {
	color: rgba(255, 255, 255, 0.62);
}

.ios-grouped-list.dark .row-v {
	color: #fff;
}


/* ============================================================
   APPLE / iOS / macOS TABLE PANEL + SEGMENTED CONTROLS
   ============================================================ */

.apple-panel {
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-window);
	box-shadow: var(--shadow-window);
	overflow: hidden;
}

.apple-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 13px 18px;
	background: var(--surface-subtle);
	border-bottom: 1px solid var(--hairline);
}

.apple-toolbar-title {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.apple-toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ios-segmented {
	display: inline-flex;
	align-items: center;
	padding: 2.5px;
	background: rgba(118, 118, 128, 0.12);
	border-radius: 9px;
}

.ios-seg-btn {
	border: none;
	background: transparent;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 7px;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ios-seg-btn:hover {
	background: var(--maroon);
	color: #FFFFFF;
}

.ios-seg-btn.active {
	background: #FFFFFF;
	color: var(--ink);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0.5px 1px rgba(0, 0, 0, 0.06);
}

.ios-seg-btn.active:hover {
	background: #FFFFFF;
	color: var(--maroon);
}

.macos-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ios-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 13.5px;
}

.ios-table thead th {
	padding: 11px 18px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--tertiary);
	background: var(--surface-subtle);
	border-bottom: 1px solid var(--hairline);
	white-space: nowrap;
}

.ios-table tbody tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.ios-table td {
	padding: 13px 18px;
	vertical-align: middle;
	color: var(--ink-secondary);
	transition: background-color 0.22s var(--ease), color 0.2s var(--ease);
}

.ios-table tbody tr:hover td {
	background-color: #F3F2F4;
}

.ios-table tbody tr:hover td:first-child {
	background-color: var(--maroon);
	color: #FFFFFF;
}

.ios-cell-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 210px;
}

/* Crisp inline glyph (replaces bulky SaaS boxes) */
.ios-glyph {
	width: 22px;
	height: 22px;
	color: var(--maroon);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: color 0.2s var(--ease);
}

.ios-glyph svg {
	width: 20px;
	height: 20px;
}

.ios-cell-title {
	font-weight: 600;
	font-size: 13.5px;
	color: var(--ink);
	letter-spacing: -0.01em;
	transition: color 0.2s var(--ease);
}

.ios-cell-sub {
	font-size: 11.5px;
	color: var(--tertiary);
	margin-top: 1px;
	transition: color 0.2s var(--ease);
}

.ios-table tbody tr:hover td:first-child .ios-glyph {
	color: var(--champagne);
}

.ios-table tbody tr:hover td:first-child .ios-cell-title {
	color: #FFFFFF;
}

.ios-table tbody tr:hover td:first-child .ios-cell-sub {
	color: rgba(255, 255, 255, 0.84);
}

.ios-table tbody tr:hover td:first-child .team-table-avatar {
	border-color: rgba(255, 255, 255, 0.45);
}

.ios-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.ios-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}

.ios-status.ready { color: var(--ios-green); }
.ios-status.ready .ios-status-dot { background: #28A745; }

.ios-status.priority { color: var(--ios-amber); }
.ios-status.priority .ios-status-dot { background: #E68A00; }

.ios-status.consult { color: var(--maroon); }
.ios-status.consult .ios-status-dot { background: var(--maroon); }

.ios-tabular {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
}

.ios-row-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-secondary);
	background-color: #EFEFF2;
	white-space: nowrap;
	padding: 6px 13px;
	border-radius: var(--radius-pill);
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--spring);
}

.ios-table tbody tr:hover .ios-row-action,
.ios-row-action:hover {
	background-color: var(--maroon);
	color: #FFFFFF;
	transform: translateX(2px);
}

.apple-statusbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 18px;
	font-size: 11.5px;
	color: var(--tertiary);
	background: var(--surface-subtle);
	border-top: 1px solid var(--hairline);
}


/* ============================================================
   ARTICLE READER MODAL
   ============================================================ */

.ios-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1200;
	transform: translateZ(0);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s var(--ease);
}

.ios-modal-backdrop.open {
	opacity: 1;
	pointer-events: auto;
}

.ios-modal {
	width: 100%;
	max-width: 560px;
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
	overflow: hidden;
	transform: scale(0.96) translateY(10px);
	transition: transform 0.3s var(--spring);
}

.ios-modal-backdrop.open .ios-modal {
	transform: scale(1) translateY(0);
}

.ios-modal-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--surface-subtle);
	border-bottom: 1px solid var(--hairline);
}

.ios-modal-close {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(118, 118, 128, 0.14);
	color: var(--ink);
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s var(--ease);
}

.ios-modal-close:hover {
	background: rgba(118, 118, 128, 0.24);
}

.ios-modal-body {
	padding: 24px 26px 26px;
}

.ios-modal-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 12px;
	color: var(--muted);
}

.ios-modal-tag {
	font-weight: 600;
	color: var(--maroon);
}

.ios-modal-body h3 {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin-bottom: 12px;
	color: var(--ink);
}

.ios-modal-body p {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ink-secondary);
	margin-bottom: 20px;
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	border: 1px solid var(--hairline-strong);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	z-index: 60;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.22s var(--ease), transform 0.22s var(--spring), background 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top.show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.to-top:hover {
	background: var(--maroon);
	color: #fff;
	border-color: var(--maroon);
}


/* ============================================================
   MODERN EDITORIAL FOOTER (Clean Light-First + Glass/Dark Ready)
   ============================================================ */

.site-footer {
	background:
		radial-gradient(640px 280px at 82% 18%, rgba(143, 0, 8, 0.38), transparent 72%),
		linear-gradient(96deg, #160305 0%, #340609 48%, #1C0406 100%);
	color: #FFFFFF;
	padding: 64px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-top {
	display: grid;
	grid-template-columns: 1.25fr 0.78fr 0.88fr 1.48fr;
	gap: 36px;
	align-items: start;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 100%;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #F4E4CC;
	margin-bottom: 14px;
}

.footer-logo-pill {
	background: #FFFFFF;
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 8px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.footer-brand img {
	height: 24px;
	width: auto;
	display: block;
}

.footer-desc {
	font-size: 13.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.78);
	max-width: 280px;
}

.footer-brand-tag {
	margin-top: 26px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(244, 228, 204, 0.76);
}

.footer-heading {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #F4E4CC;
	margin-bottom: 16px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 13.5px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.78);
	width: fit-content;
	transition: color 0.18s var(--ease);
}

.footer-links a:hover {
	color: #FFFFFF;
}

/* Newsletter Column */
.footer-nl-label {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.76);
	margin-bottom: 10px;
}

.footer-nl-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 18px;
}

.footer-nl-input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	font-size: 13.5px;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-nl-input::placeholder {
	color: rgba(255, 255, 255, 0.52);
}

.footer-nl-input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.16);
	border-color: #F4E4CC;
	box-shadow: 0 0 0 3px rgba(244, 228, 204, 0.16);
}

.footer-nl-btn {
	height: 44px;
	padding: 0 22px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: var(--maroon);
	color: #FFFFFF;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease, transform 0.18s var(--spring);
}

.footer-nl-btn:hover {
	background: #A9000A;
	transform: translateY(-1px);
}

.footer-nl-msg {
	font-size: 12.5px;
	color: #86EFAC;
	font-weight: 500;
	margin: -10px 0 14px;
}

.footer-nl-msg.is-hidden {
	display: none;
}

.footer-meta-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
}

.footer-meta-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-meta-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

a.footer-meta-item:hover .footer-meta-v {
	color: #F4E4CC;
}

.footer-meta-k {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.68);
	white-space: nowrap;
}

.footer-meta-v {
	color: #FFFFFF;
	font-weight: 500;
	text-align: right;
	transition: color 0.2s var(--ease);
}

.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.social-dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--spring);
}

.social-dot svg {
	width: 16px;
	height: 16px;
}

.social-dot:hover {
	background: var(--maroon);
	border-color: var(--maroon);
	transform: translateY(-2px);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 24px 0 30px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}

.footer-contact-strip {
	display: none;
}

.footer-bottom-links {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 12.5px;
}

.footer-bottom-links a {
	color: rgba(255, 255, 255, 0.72);
	transition: color 0.18s ease;
}

.footer-bottom-links a:hover {
	color: #FFFFFF;
}

::selection {
	background: var(--maroon);
	color: #fff;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
	.wrap {
		padding: 0 20px;
	}

	.footer-top {
		grid-template-columns: 1fr 1fr;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.footer-top {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-bottom: 28px;
	}

	.site-footer {
		padding-top: 38px;
	}

	.apple-toolbar {
		padding: 12px 14px;
	}

	.to-top {
		right: 16px;
		bottom: 16px;
	}
}

/* ============================================================
   @react-bits/Stepper-JS-CSS — Multi-Step Consultation Stepper
   ============================================================ */
.stepper {
	--stepper-frame: rgba(244, 244, 247, 0.86);
	--stepper-frame-edge: rgba(24, 24, 27, 0.08);
	--stepper-frame-highlight: rgba(255, 255, 255, 0.96);
	--stepper-frame-shadow: 0 22px 44px -22px rgba(24, 24, 27, 0.22), 0 6px 16px -10px rgba(24, 24, 27, 0.14);
	--stepper-tile: linear-gradient(180deg, #ffffff 0%, #f6f6f8 100%);
	--stepper-tile-edge: rgba(24, 24, 27, 0.08);
	--stepper-tile-highlight: rgba(255, 255, 255, 1);
	--stepper-tile-shadow: 0 4px 10px -5px rgba(24, 24, 27, 0.22);
	--stepper-well: rgba(24, 24, 27, 0.055);
	--stepper-track: rgba(24, 24, 27, 0.08);
	--stepper-ink: #18181b;
	--stepper-muted: rgba(39, 39, 42, 0.56);
	--stepper-faint: rgba(24, 24, 27, 0.18);
	--stepper-ring: rgba(143, 0, 8, 0.28);
	--stepper-solid: #8F0008;
	--stepper-solid-ink: #ffffff;
	--stepper-hover: brightness(0.97);
	--stepper-hover-fill: rgba(24, 24, 27, 0.035);
	--stepper-solid-hover: brightness(1.12);
	--stepper-press: brightness(0.92);
	--stepper-radius: 18px;
	--stepper-width: 100%;
	--stepper-spring: linear(0, 0.0603, 0.2033, 0.3821, 0.5633, 0.7258, 0.8584, 0.9574, 1.0242, 1.0634, 1.0809, 1.0828, 1.0747, 1.0613, 1.046, 1.0313, 1.0186, 1.0085, 1.0012, 0.9965, 0.994, 0.9931, 0.9933, 0.9941, 0.9953, 0.9966, 0.9978, 0.9988, 1);
	--stepper-pad: 0px;
	--stepper-inset: 0px;
	--stepper-bleed: 8px;
	--stepper-well-radius: max(6px, calc(var(--stepper-radius) - 6px));
	--stepper-tile-radius: max(4px, calc(var(--stepper-well-radius) - 4px));
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, var(--stepper-width));
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: var(--stepper-radius);
	color: var(--stepper-ink);
	-webkit-tap-highlight-color: transparent;
}

html.dark-theme .stepper,
html[data-theme="dark"] .stepper {
	--stepper-frame: rgba(34, 34, 42, 0.78);
	--stepper-frame-edge: rgba(255, 255, 255, 0.1);
	--stepper-frame-highlight: rgba(255, 255, 255, 0.08);
	--stepper-frame-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.8), 0 6px 16px -8px rgba(0, 0, 0, 0.5);
	--stepper-tile: linear-gradient(180deg, #343440 0%, #24242d 100%);
	--stepper-tile-edge: rgba(255, 255, 255, 0.09);
	--stepper-tile-highlight: rgba(255, 255, 255, 0.14);
	--stepper-tile-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.7);
	--stepper-well: rgba(255, 255, 255, 0.07);
	--stepper-track: rgba(255, 255, 255, 0.1);
	--stepper-ink: #f4f4f5;
	--stepper-muted: rgba(244, 244, 245, 0.58);
	--stepper-faint: rgba(255, 255, 255, 0.22);
	--stepper-ring: rgba(244, 244, 245, 0.3);
	--stepper-solid: #b91c1c;
	--stepper-solid-ink: #ffffff;
}

.stepper--framed {
	--stepper-pad: 8px;
	--stepper-inset: 10px;
	--stepper-bleed: 16px;
	padding: var(--stepper-pad);
	background: var(--stepper-frame);
	box-shadow: var(--stepper-frame-shadow);
	-webkit-backdrop-filter: blur(20px) saturate(1.6);
	backdrop-filter: blur(20px) saturate(1.6);
}

.stepper__rim {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 1px var(--stepper-frame-edge),
		inset 0 1px 0 var(--stepper-frame-highlight);
	pointer-events: none;
}

.stepper__track {
	position: relative;
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: var(--stepper-well-radius);
	background: var(--stepper-well);
}

.stepper__glider {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: var(--stepper-tile-radius);
	background: var(--stepper-tile);
	box-shadow:
		inset 0 0 0 1px var(--stepper-tile-edge),
		inset 0 1px 0 var(--stepper-tile-highlight),
		var(--stepper-tile-shadow);
	opacity: 1;
	pointer-events: none;
}

.stepper__segment {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	height: 40px;
	padding: 0 10px;
	box-sizing: border-box;
	border: none;
	border-radius: var(--stepper-tile-radius);
	background: none;
	color: var(--stepper-muted);
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.stepper__segment:disabled {
	cursor: default;
}

.stepper__badge {
	display: grid;
	flex: none;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--stepper-faint);
	color: var(--stepper-muted);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition:
		background-color 0.15s ease,
		box-shadow 0.15s ease,
		color 0.15s ease;
}

.stepper__badge[data-status='active'] {
	box-shadow: inset 0 0 0 1.5px var(--stepper-solid);
	color: var(--stepper-solid);
}

.stepper__badge[data-status='complete'] {
	background: var(--stepper-solid);
	box-shadow: none;
	color: var(--stepper-solid-ink);
}

.stepper__glyph,
.stepper__check {
	display: grid;
	place-items: center;
}

.stepper__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	text-align: left;
}

.stepper__title {
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--stepper-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.stepper__title:not([data-status='upcoming']) {
	color: var(--stepper-ink);
}

.stepper__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px var(--stepper-inset) var(--stepper-inset);
}

.stepper__viewport {
	position: relative;
	margin: -6px calc(var(--stepper-bleed) * -1);
	overflow: hidden;
}

.stepper__pane {
	box-sizing: border-box;
	padding: 6px var(--stepper-bleed);
	outline: none;
}

.stepper__pane[hidden] {
	display: none !important;
}

.stepper__step {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stepper__step-head {
	margin-bottom: 2px;
}

.stepper__step-tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--stepper-solid);
	margin-bottom: 2px;
}

.stepper__step-sub {
	font-size: 12.5px;
	color: var(--stepper-muted);
}

.stepper__summary-card {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--stepper-frame-edge);
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
}

html.dark-theme .stepper__summary-card,
html[data-theme="dark"] .stepper__summary-card {
	background: rgba(20, 20, 26, 0.65);
}

.stepper__summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px dashed var(--stepper-frame-edge);
	padding-bottom: 6px;
}

.stepper__summary-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
	flex-direction: column;
	gap: 4px;
}

.stepper__summary-k {
	color: var(--stepper-muted);
	font-size: 12px;
	flex-shrink: 0;
}

.stepper__summary-v {
	color: var(--stepper-ink);
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

.stepper__summary-row:last-child .stepper__summary-v {
	text-align: left;
	font-weight: 500;
	line-height: 1.45;
}

.stepper__footer-wrap {
	display: grid;
	grid-template-rows: 1fr;
	transition:
		grid-template-rows 480ms var(--stepper-spring),
		opacity 0.2s ease;
}

.stepper__footer-wrap[data-hidden] {
	grid-template-rows: 0fr;
	opacity: 0;
	pointer-events: none;
}

.stepper__footer-clip {
	min-height: 0;
}

.stepper__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
}

.stepper__button {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border: none;
	border-radius: max(8px, calc(var(--stepper-radius) * 0.55));
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition:
		filter 0.2s ease,
		transform 0.2s ease,
		opacity 0.2s ease;
}

.stepper__button--back {
	padding-left: 11px;
	background: var(--stepper-tile);
	box-shadow:
		inset 0 0 0 1px var(--stepper-tile-edge),
		inset 0 1px 0 var(--stepper-tile-highlight),
		var(--stepper-tile-shadow);
	color: var(--stepper-ink);
}

.stepper__button--back[data-hidden] {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.stepper__button--next {
	margin-left: auto;
	padding-right: 13px;
	background: var(--stepper-solid);
	box-shadow: 0 6px 16px -6px rgba(143, 0, 8, 0.55);
	color: var(--stepper-solid-ink);
}

.stepper__button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.stepper__button:not(:disabled):active {
	filter: var(--stepper-press);
	transform: scale(0.96);
	transition-duration: 0s;
}

/* ============================================================
   SIMPLE JUDGE GAVEL LOADING OVERLAY TO GAME
   ============================================================ */
.alf-gavel-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #08080a;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.alf-gavel-overlay.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.alf-gavel-stage {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 4vw, 52px);
	user-select: none;
}

.alf-gavel-svg {
	width: clamp(128px, 14vw, 164px);
	height: auto;
	overflow: visible;
	flex-shrink: 0;
}

.alf-gavel-striker {
	transform-origin: 114px 62px;
	animation: alfGavelStrike 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	will-change: transform;
}

@keyframes alfGavelStrike {
	0%, 14% { transform: rotate(0deg); }
	52%, 68% { transform: rotate(44deg); }
	86%, 100% { transform: rotate(0deg); }
}

.alf-gavel-text {
	font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #9e9ea6;
	line-height: 1;
	white-space: nowrap;
}

.alf-gavel-dots span {
	display: inline-block;
	animation: alfGavelDot 1.15s infinite;
}

.alf-gavel-dots span:nth-child(2) { animation-delay: 0.18s; }
.alf-gavel-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes alfGavelDot {
	0%, 20% { opacity: 0.25; }
	50%, 100% { opacity: 1; }
}
