@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

/* MotoNexus basic styles */
:root {
	--ink: #101820;
	--steel: #1c2a33;
	--accent: #d84a2c;
	--accent-dark: #b63a1f;
	--ember: #ff7a45;
	--steel-blue: #18222c;
	--panel-dark: #101821;
	--bg: #f7f5f2;
	--card: #ffffff;
	--muted: #6b7280;
	--page-max: 1440px;
	--page-max-wide: 1600px;
	--page-gutter: 2.25rem;
}

* {
	box-sizing: border-box;
}

body {
	font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
	margin: 0;
	background: radial-gradient(circle at top left, #fff4e6 0%, #f7f5f2 35%, #eef2f7 100%);
	color: var(--ink);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header,
.site-footer {
	font-family: "Rajdhani", "Trebuchet MS", sans-serif;
}

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

.site-header {
	position: relative;
	background: linear-gradient(120deg, #0a0f14 0%, #17212b 55%, #0f1b2a 100%);
	color: #f8fafc;
	padding: 1.8rem 2rem 1.4rem;
	overflow: visible;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	z-index: 200;
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 10% 20%, rgba(255, 122, 69, 0.18), transparent 45%),
		linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 10px);
	opacity: 0.9;
	pointer-events: none;
}

.header-inner {
	position: relative;
	max-width: var(--page-max);
	width: 100%;
	margin: 0 auto;
	display: grid;
	gap: 1.1rem;
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.header-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.brand-title {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.brand-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	padding: 6px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.brand-title-text {
	display: inline-block;
}

.brand-subtitle {
	color: rgba(226, 232, 240, 0.85);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.account-menu {
	position: relative;
}

.account-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #f8fafc;
	font-weight: 600;
	cursor: pointer;
}

.account-trigger svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.account-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 180px;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 0.4rem;
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 250;
}

.account-dropdown::before {
	content: "";
	display: block;
	height: 1px;
	margin: 0.1rem 0.4rem 0.35rem;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.account-menu:focus-within .account-dropdown,
.account-menu:hover .account-dropdown {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.account-dropdown a {
	display: block;
	padding: 0.55rem 0.8rem;
	border-radius: 10px;
	color: #e2e8f0;
	font-weight: 600;
}

.account-dropdown a:hover,
.account-dropdown a:focus {
	background: rgba(255, 255, 255, 0.12);
}

.account-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.12);
	margin: 0.35rem 0.2rem;
}

.lang-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(15, 23, 42, 0.6);
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-form select {
	background: transparent;
	color: #f8fafc;
	border: none;
	outline: none;
}

.user-pill {
	background: rgba(15, 23, 42, 0.9);
	color: #f8fafc;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-nav {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
	padding-top: 0.2rem;
}

.primary-nav a {
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.78rem;
	transition: all 0.2s ease;
}

.primary-nav a.active,
.primary-nav a:hover {
	background: linear-gradient(120deg, var(--accent), var(--ember));
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 10px 18px rgba(216, 74, 44, 0.3);
}


.content {
	max-width: var(--page-max);
	width: 100%;
	margin: 2rem auto;
	padding: 0 var(--page-gutter);
	flex: 1;
}

.content.profile-page,
.content.settings-page {
	margin-top: 0;
	padding-top: 1.5rem;
}


.hero {
	background: var(--card);
	padding: 2rem;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(16, 24, 32, 0.08);
	margin-bottom: 2rem;
}

.hero-actions {
	display: flex;
	gap: 0.8rem;
	margin-top: 1.2rem;
	flex-wrap: wrap;
}

.grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
	background: var(--card);
	padding: 1.2rem;
	border-radius: 16px;
	box-shadow: 0 12px 26px rgba(16, 24, 32, 0.08);
}

.card.muted {
	color: var(--muted);
}

.card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.listing {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 32px rgba(16, 24, 32, 0.12);
}

.badge {
	background: #f4f4f5;
	color: #111827;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.8rem;
}

.listing-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.6rem 0;
	flex-wrap: wrap;
}

.profile-page {
	display: grid;
	gap: 1.6rem;
}

.account-tabs-header {
	background: #ffffff;
	border-radius: 0;
	border: 1px solid #e2e8f0;
	border-left: 0;
	border-right: 0;
	box-shadow: 0 12px 26px rgba(16, 24, 32, 0.08);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	padding: 0;
	display: flex;
}

.account-tabs-inner {
	width: 100%;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 1.2rem var(--page-gutter) 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.account-tabs-title h2 {
	margin: 0;
	font-size: 1.7rem;
	color: var(--ink);
}

.profile-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	border-top: 1px solid #e2e8f0;
	padding-top: 0.8rem;
	padding-bottom: 0.2rem;
}

.profile-tab {
	font-weight: 600;
	color: #64748b;
	padding: 0.4rem 0;
	position: relative;
}

.profile-tab.is-active {
	color: var(--ink);
}

.profile-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.35rem;
	height: 2px;
	background: var(--ink);
}

.profile-tab.is-muted {
	color: #94a3b8;
}

.profile-hero {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	background: #f1f5f9;
	border-radius: 18px;
	padding: 1.6rem;
}

.profile-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #a7f3d0;
	color: #0f766e;
	font-size: 2.4rem;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.profile-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #e2f5f2;
	color: #0f766e;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	text-transform: uppercase;
}

.profile-hero h3 {
	margin: 0.6rem 0 0.2rem;
	font-size: 1.8rem;
}

.profile-link {
	color: #0f766e;
	font-weight: 600;
}

.profile-card {
	background: var(--card);
	border-radius: 16px;
	box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
	padding: 1.4rem 1.6rem;
	border: 1px solid #e2e8f0;
}

.profile-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.profile-card-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.profile-info-grid {
	display: grid;
	gap: 1rem;
}

.profile-info-row {
	display: grid;
	gap: 0.4rem;
}

.profile-info-label {
	font-size: 0.85rem;
	color: #64748b;
}

.profile-info-input {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.6rem 0.7rem;
	font-weight: 600;
}

.settings-page {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	align-items: stretch;
}

.settings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.settings-accordion {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	overflow: hidden;
	padding: 0;
	margin: 0;
}

.settings-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 52px;
	padding: 0 1rem;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0));
	border: none;
	font-size: 1.25rem;
	line-height: 1;
	font-weight: 600;
	cursor: pointer;
	color: #0f172a;
	transition: background 0.2s ease, color 0.2s ease;
}

.settings-accordion-trigger:hover {
	background: rgba(15, 23, 42, 0.04);
}

.settings-accordion-trigger:focus-visible {
	outline: 2px solid rgba(13, 148, 136, 0.6);
	outline-offset: -2px;
}

.settings-chevron {
	font-size: 1.1rem;
	color: #64748b;
	transition: transform 0.2s ease;
}

.settings-accordion-trigger[aria-expanded="true"] .settings-chevron {
	transform: rotate(180deg);
}

.settings-accordion-panel {
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 1.2rem 1.4rem 1.4rem;
	display: none;
}

.settings-accordion-panel.is-open {
	display: block;
}

.settings-form {
	display: grid;
	gap: 1rem;
}

.settings-label {
	display: grid;
	gap: 0.5rem;
	font-weight: 600;
	color: #475569;
}

.settings-label input {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	background: #ffffff;
}

.settings-invite-list {
	display: grid;
	gap: 0.8rem;
	margin-top: 1rem;
}

.settings-invite-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.8rem 1rem;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.settings-invite-code {
	font-weight: 700;
}

@media (max-width: 720px) {
	.profile-hero {
		flex-direction: column;
		align-items: flex-start;
	}
}

.form-stack {
	display: grid;
	gap: 1rem;
}

.form-stack input:not([type="checkbox"]):not([type="radio"]),
.form-stack textarea,
.form-stack select {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.form-stack input[type="checkbox"],
.form-stack input[type="radio"] {
	width: auto;
	padding: 0;
}

.checkbox {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.btn-solid,
.btn-outline,
.btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	padding: 0.55rem 1.2rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
}

.btn-solid {
	background: var(--accent);
	color: #fff;
}

.btn-solid:hover {
	background: var(--accent-dark);
}

.btn-outline {
	border: 1px solid var(--accent);
	color: var(--accent);
	background: transparent;
}

.btn-danger {
	background: #dc2626;
	color: #fff;
}

.alert {
	padding: 0.8rem 1rem;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.alert.success {
	background: #ecfdf3;
	color: #065f46;
}

.alert.error {
	background: #fee2e2;
	color: #991b1b;
}

.site-footer {
	position: relative;
	padding: 1.6rem 2rem 1.8rem;
	background: linear-gradient(120deg, #0b1017 0%, #131c26 100%);
	color: #e2e8f0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 90% 0%, rgba(255, 122, 69, 0.12), transparent 55%);
	pointer-events: none;
}

.footer-inner {
	position: relative;
	max-width: var(--page-max);
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-left {
	display: grid;
	gap: 0.3rem;
}

.footer-stat {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.footer-tagline {
	font-size: 0.85rem;
	color: rgba(226, 232, 240, 0.7);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-copy {
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.muted {
	color: var(--muted);
}

.content.admin-shell {
	max-width: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex: 1;
}

.admin-shell {
	max-width: none;
}

.admin-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 0;
	flex: 1;
}

.admin-sidebar {
	position: sticky;
	top: 0;
	align-self: stretch;
	height: 100%;
}

.admin-sidebar-inner {
	background: var(--card);
	border: 1px solid #e2e8f0;
	border-radius: 0;
	padding: 1.4rem 1.2rem;
	box-shadow: 0 10px 20px rgba(16, 24, 32, 0.06);
	min-height: 100%;
	height: 100%;
}

.admin-content {
	padding: 2rem 2.5rem 2.5rem 2rem;
	min-height: 100%;
}

.admin-sidebar-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.8rem;
}

.admin-sidebar-subtitle {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin: 0.6rem 0 0.4rem;
}

.admin-sidebar-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 0.9rem 0;
}

.admin-nav {
	display: grid;
	gap: 0.4rem;
}

.admin-nav-link {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	font-weight: 600;
	color: var(--steel);
	background: #f8fafc;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.admin-nav-link:hover {
	background: #eef2f7;
}

.admin-nav-link.active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent-dark);
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: middle;
}

.admin-table th {
	font-weight: 700;
	color: #475569;
	background: #f8fafc;
}

.admin-inline-form {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 0.5rem;
}

.admin-inline-form input,
.admin-inline-form select {
	padding: 0.4rem 0.5rem;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.admin-content h2 {
	margin-top: 0;
}

@media (max-width: 900px) {
	:root {
		--page-gutter: 1.6rem;
	}
	.admin-layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.admin-sidebar {
		position: static;
		align-self: start;
	}

	.admin-sidebar-inner {
		border-radius: 14px;
		min-height: 0;
	}

	.admin-content {
		padding: 0;
	}

	.content.admin-shell {
		margin: 2rem auto;
		padding: 0 1.5rem;
		max-width: 1000px;
	}
}

.progress {
	margin-top: 1rem;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.progress-bar {
	height: 10px;
	background: var(--accent);
}

.logs {
	background: #111827;
	color: #e5e7eb;
	padding: 1rem;
	border-radius: 12px;
	overflow: auto;
}

.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 300;
}

.modal.is-open {
	display: flex;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.modal-dialog {
	position: relative;
	width: min(520px, 92vw);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 22px 50px rgba(15, 23, 42, 0.35);
	z-index: 1;
}

.modal-content {
	display: grid;
	gap: 1rem;
	padding: 1.4rem 1.6rem 1.6rem;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.modal-header h3 {
	margin: 0;
}

.modal-close {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--muted);
}

.modal-body {
	display: grid;
	gap: 0.9rem;
}

.modal-body label {
	display: grid;
	gap: 0.4rem;
	font-weight: 600;
	color: #475569;
}

.modal-body input {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border-radius: 10px;
	border: 1px solid #d1d5db;
	background: #ffffff;
}

.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
}

@media (max-width: 720px) {
	.site-header {
		padding: 1.3rem 1.2rem 1.1rem;
	}

	.brand-title {
		font-size: 1.7rem;
	}

	.content {
		margin: 1.2rem auto;
		padding: 0 var(--page-gutter);
	}

	.header-top,
	.header-bottom {
		align-items: flex-start;
	}

	.primary-nav {
		gap: 0.5rem;
	}

	.primary-nav a {
		font-size: 0.72rem;
		padding: 0.45rem 0.8rem;
	}

	.footer-inner {
		align-items: flex-start;
	}
}
