body,
body.bg-body-tertiary {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	background: radial-gradient(circle at top, rgba(13, 110, 253, 0.08), transparent 55%),
			linear-gradient(180deg, rgba(13, 202, 240, 0.08), transparent 40%) !important;
}

.navbar-brand {
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 700;
}

.navbar {
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.app-hero {
	background: linear-gradient(135deg, rgba(13,110,253,.22), rgba(13,202,240,.18));
	border-radius: 1.75rem;
	box-shadow: 0 1.2rem 2.5rem rgba(13, 75, 120, 0.18);
	position: relative;
	overflow: hidden;
}

.app-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -80px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
	filter: blur(0.5px);
}

.app-card-link {
	transition: transform .25s ease, box-shadow .25s ease;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(6px);
}

.app-card-link:hover,
.app-card-link:focus {
	transform: translateY(-6px);
	box-shadow: 0 1.25rem 2.5rem rgba(17, 60, 90, 0.2);
}

.backoffice-header {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(13, 110, 253, 0.12));
	border-radius: 1.5rem;
	padding: clamp(1.6rem, 3vw, 2.4rem);
	box-shadow: 0 1.2rem 2.4rem rgba(13, 75, 110, 0.12);
	display: grid;
	gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.backoffice-header h1 {
	font-size: clamp(1.8rem, 2.4vw, 2.25rem);
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.backoffice-header p {
	margin-bottom: 0;
	color: rgba(33, 37, 41, 0.7);
	max-width: 38rem;
	font-size: 0.98rem;
}

.backoffice-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.backoffice-meta .badge {
	padding-inline: 0.85rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
}

.backoffice-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.backoffice-stats li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	color: rgba(33, 37, 41, 0.75);
}

.backoffice-stats li span {
	flex-shrink: 0;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 0.6rem;
	background: rgba(13, 110, 253, 0.1);
	color: #0d6efd;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.75rem;
}

.action-tile {
	display: block;
	padding: 1.35rem;
	border-radius: 1.2rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(13, 110, 253, 0.12);
	box-shadow: 0 0.9rem 1.6rem rgba(13, 75, 110, 0.08);
	text-decoration: none;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-tile:hover,
.action-tile:focus {
	transform: translateY(-4px);
	box-shadow: 0 1.4rem 2.4rem rgba(13, 75, 110, 0.14);
	border-color: rgba(13, 110, 253, 0.3);
	background: rgba(255, 255, 255, 0.98);
}

.action-icon {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 0.8rem;
	background: rgba(13, 110, 253, 0.12);
	color: #0d6efd;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.8rem;
}

.action-tile h2 {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: rgba(33, 37, 41, 0.88);
}

.action-tile p {
	color: rgba(33, 37, 41, 0.68);
	margin-bottom: 0.9rem;
	font-size: 0.9rem;
}

.action-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 0.82rem;
	font-weight: 600;
}

.action-links a {
	color: #0d6efd;
	text-decoration: none;
	letter-spacing: 0.05em;
}

.action-links a:hover,
.action-links a:focus {
	text-decoration: underline;
}

.action-meta {
	font-size: 0.78rem;
	color: rgba(33, 37, 41, 0.55);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.support-card {
	border-radius: 1.2rem;
	background: rgba(13, 110, 253, 0.08);
	border: 1px dashed rgba(13, 110, 253, 0.35);
	padding: 1.3rem;
	color: rgba(13, 60, 110, 0.9);
	box-shadow: 0 0.6rem 1.2rem rgba(13, 60, 110, 0.1);
}

.support-card strong {
	display: block;
	font-size: 0.95rem;
	margin-bottom: 0.3rem;
}

.support-card a {
	color: #0d6efd;
	font-weight: 600;
}

@media (min-width: 992px) {
	.backoffice-header {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
		align-items: center;
	}
	.backoffice-stats {
		justify-self: end;
	}
}

@media (max-width: 767.98px) {
	.backoffice-header {
		padding: 1.4rem;
	}
	.backoffice-stats {
		gap: 0.5rem;
	}
	.action-tile {
		padding: 1.15rem;
	}
}

.badge-rounded {
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.badge-chip {
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.9rem;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid transparent;
	box-shadow: 0 0.4rem 1.1rem rgba(13, 75, 110, 0.16);
}

.badge-chip-muted {
	background: rgba(108, 117, 125, 0.26);
	border-color: rgba(108, 117, 125, 0.42);
	color: rgba(33, 37, 41, 0.78);
}

.badge-age-junior {
	background: rgba(13, 202, 240, 0.35);
	border-color: rgba(13, 202, 240, 0.58);
	color: #055160;
}

.badge-age-senior {
	background: rgba(13, 110, 253, 0.32);
	border-color: rgba(13, 110, 253, 0.54);
	color: #0a53be;
}

.badge-age-master-junior {
	background: rgba(111, 66, 193, 0.34);
	border-color: rgba(111, 66, 193, 0.55);
	color: #5b2a9c;
}

.badge-age-master {
	background: rgba(102, 16, 242, 0.32);
	border-color: rgba(102, 16, 242, 0.52);
	color: #4c12a7;
}

.badge-age-grand {
	background: rgba(255, 193, 7, 0.36);
	border-color: rgba(255, 193, 7, 0.58);
	color: #7f5f00;
}

.badge-age-legend {
	background: rgba(220, 53, 69, 0.34);
	border-color: rgba(220, 53, 69, 0.54);
	color: #8a1c26;
}

.badge-perm-admin {
	background: rgba(214, 51, 132, 0.36);
	border-color: rgba(214, 51, 132, 0.6);
	color: #7a0d3b;
}

.badge-perm-editor {
	background: rgba(25, 135, 84, 0.34);
	border-color: rgba(25, 135, 84, 0.56);
	color: #0f5132;
}

.badge-perm-viewer {
	background: rgba(73, 80, 87, 0.28);
	border-color: rgba(73, 80, 87, 0.46);
	color: #2b3035;
}

.badge-board-segretario {
	background: rgba(255, 193, 7, 0.38);
	border-color: rgba(255, 193, 7, 0.6);
	color: #8c6f00;
}

.badge-board-vicesegretario {
	background: rgba(13, 202, 240, 0.38);
	border-color: rgba(13, 202, 240, 0.6);
	color: #065c6f;
}

.badge-board-tesoriere {
	background: rgba(25, 135, 84, 0.36);
	border-color: rgba(25, 135, 84, 0.56);
	color: #0f5132;
}

.badge-board-member {
	background: rgba(111, 66, 193, 0.36);
	border-color: rgba(111, 66, 193, 0.58);
	color: #5429a6;
}

.badge-sail {
	background: rgba(32, 201, 151, 0.38);
	border-color: rgba(32, 201, 151, 0.62);
	color: #0f5132;
}

.badge-country {
	background: rgba(13, 110, 253, 0.28);
	border-color: rgba(13, 110, 253, 0.48);
	color: #0c4da2;
}

.badge-fleet {
	background: rgba(108, 117, 125, 0.32);
	border-color: rgba(108, 117, 125, 0.52);
	color: #2b3035;
}

.badge-role-owner {
	background: rgba(32, 201, 151, 0.38);
	border-color: rgba(32, 201, 151, 0.62);
	color: #0f5132;
}

.badge-role-captain {
	background: rgba(255, 193, 7, 0.38);
	border-color: rgba(255, 193, 7, 0.6);
	color: #7f5f00;
}

.badge-renew-confirmed {
	background: rgba(25, 135, 84, 0.36);
	border-color: rgba(25, 135, 84, 0.58);
	color: #0f5132;
}

.badge-renew-pending {
	background: rgba(255, 193, 7, 0.38);
	border-color: rgba(255, 193, 7, 0.6);
	color: #7f5f00;
}

.badge-renew-missing {
	background: rgba(73, 80, 87, 0.28);
	border-color: rgba(73, 80, 87, 0.46);
	color: #2b3035;
}

.email-col {
	max-width: 13rem;
	width: 13rem;
}

.email-link {
	display: inline-block;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.email-link:hover,
.email-link:focus {
	color: #0d6efd;
	text-decoration: underline;
}

.cell-truncate {
	display: inline-block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

th.id-col,
td.id-col {
	width: 4.5rem;
}

th.name-col,
td.name-col {
	width: 14rem;
}

th.category-col,
td.category-col {
	width: 10rem;
}

th.boats-col,
td.boats-col {
	width: 10.5rem;
}

th.fleet-col,
td.fleet-col {
	width: 11rem;
}

th.perm-col,
td.perm-col,
th.board-col,
td.board-col,
th.captain-col,
td.captain-col,
th.renewal-col,
td.renewal-col {
	width: 9.5rem;
}

th.joined-col,
td.joined-col {
	width: 8.5rem;
}

@media (max-width: 991.98px) {
	th.id-col,
	td.id-col,
	th.name-col,
	td.name-col,
	th.category-col,
	td.category-col,
	th.email-col,
	td.email-col,
	th.boats-col,
	td.boats-col,
	th.fleet-col,
	td.fleet-col,
	th.perm-col,
	td.perm-col,
	th.board-col,
	td.board-col,
	th.captain-col,
	td.captain-col,
	th.renewal-col,
	td.renewal-col,
	th.joined-col,
	td.joined-col {
		width: auto;
		max-width: none;
	}
}

.table thead th {
	text-transform: uppercase;
	font-size: .73rem;
	letter-spacing: 0.06em;
	color: rgba(33, 37, 41, 0.6);
	border-bottom: 1px solid rgba(13, 110, 253, 0.18);
}

.table-hover tbody tr {
	transition: transform .18s ease, box-shadow .18s ease;
}

.table-hover tbody tr:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.75rem 1.5rem rgba(13, 75, 110, 0.12);
	background: rgba(13, 202, 240, 0.08);
}

.table-modern-wrapper {
	position: relative;
	border-radius: 1.5rem;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1.75rem 3rem rgba(13, 75, 110, 0.12);
	padding: 1.25rem;
	overflow: hidden;
}

.table-modern-wrapper::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.05);
}

.table-modern {
	border-collapse: separate;
	border-spacing: 0;
	min-width: 100%;
}

.table-modern thead th {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(248, 249, 250, 0.9);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(13, 110, 253, 0.12) !important;
	padding-block: 0.85rem;
}

.table-modern tbody td {
	border-top: 1px solid rgba(13, 110, 253, 0.08);
	padding-block: 0.9rem;
}

.table-modern tbody tr:first-child td {
	border-top: none;
}

.navbar .nav-welcome {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.94);
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 500;
}

.navbar .nav-welcome strong {
	color: #fff;
	font-weight: 600;
}

.nav-welcome-inline {
	align-items: center;
}

.badge-perm {
	background: linear-gradient(135deg, #0dcaf0, #0d6efd);
	color: #fff;
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.7rem;
	box-shadow: 0 0.6rem 1.6rem rgba(13, 110, 253, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 767.98px) {
	.navbar .nav-welcome {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
		margin-top: 0.75rem;
	}
}

.form-section {
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1.5rem 3rem rgba(15,75,110,0.15);
	backdrop-filter: blur(10px);
}

input.form-control,
select.form-select,
textarea.form-control {
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
	border-color: rgba(13,110,253,0.6);
	box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.15);
	transform: translateY(-1px);
}

.btn {
	border-radius: 999px;
	padding-inline: 1.6rem;
	transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover,
.btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 0.75rem 1.5rem rgba(13,110,253,0.25);
}

.app-footer-note {
	max-width: 460px;
	opacity: .85;
}

@media (max-width: 768px) {
	.app-hero {
		border-radius: 1.25rem;
		padding: 1.5rem !important;
	}

	.app-card-link {
		border-radius: 1rem;
	}

	.table-hover tbody tr:hover {
		transform: none;
		box-shadow: none;
	}

	.table-modern-wrapper {
		padding: 0;
		background: transparent;
		box-shadow: none;
	}

	.table-modern {
		border: 0;
	}

	.table-modern thead {
		display: none;
	}

	.table-modern tbody {
		display: grid;
		gap: 1.1rem;
	}

	.table-modern tbody tr {
		display: flex;
		flex-direction: column;
		gap: 0.6rem;
		padding: 1.25rem;
		border-radius: 1.35rem;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 1.1rem 2.1rem rgba(13, 75, 110, 0.16);
		border: 1px solid rgba(13, 110, 253, 0.06);
	}

	.table-modern tbody tr td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 0.75rem;
		border: 0;
		padding: 0.25rem 0;
		font-size: 0.97rem;
	}

	.table-modern tbody tr td::before {
		content: attr(data-label);
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		font-size: 0.72rem;
		color: rgba(33, 37, 41, 0.55);
	}

	.table-modern tbody tr td:last-child {
		padding-bottom: 0;
	}
}
