/* ── Base / Dark Theme ── */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/montserrat/montserrat-latin-400-normal.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-latin-400-normal.woff') format('woff');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/montserrat/montserrat-latin-500-normal.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-latin-500-normal.woff') format('woff');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/montserrat/montserrat-latin-600-normal.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-latin-600-normal.woff') format('woff');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/montserrat/montserrat-latin-700-normal.woff2') format('woff2'),
		url('../fonts/montserrat/montserrat-latin-700-normal.woff') format('woff');
}

:root {
	--blue: #3477C6;
	--blue-glow: rgba(52,119,198,0.15);
	--blue-bright: #5a9ae0;
	--navy: #0d1117;
	--navy-up: #161b22;
	--navy-card: #1c2333;
	--steel: #7d8590;
	--silver: #c9d1d9;
	--ghost: #e6edf3;
	--white: #f0f6fc;
	--green: #3fb950;
	--red: #f85149;
	--font: 'Montserrat', system-ui, sans-serif;
	--font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px; /* fixed .site-nav is 64px tall + breathing room */
}

body {
	font-family: var(--font);
	background: var(--navy);
	color: var(--silver);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

/* ── Scrollbar ── */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.12) transparent;
}

*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.12);
	border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.2);
}

/* ── UIKit overrides for dark theme ── */

/* Code */
:not(pre) > code,
:not(pre) > kbd,
:not(pre) > samp {
	background: rgba(255,255,255,0.06) !important;
	color: var(--blue-bright) !important;
}

pre {
	background: var(--navy-up) !important;
	color: var(--silver) !important;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 8px;
	padding: 1rem;
}

/* Cards */
.uk-card-default {
	background-color: var(--navy-card) !important;
	color: var(--silver) !important;
	box-shadow: none !important;
	border: 1px solid rgba(255,255,255,0.06);
}

.uk-card-default.uk-card-hover:hover {
	background-color: #232d3f !important;
	box-shadow: none !important;
	border-color: rgba(255,255,255,0.1);
}

.uk-card-title {
	color: var(--white) !important;
}

.uk-card-body {
	color: var(--silver);
}

.uk-card-body .uk-text-meta {
	font-size: 0.8rem;
}

/* Headings & text */
h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-medium, .uk-heading-small,
.uk-heading-large, .uk-heading-xlarge {
	color: var(--white) !important;
}

.uk-text-meta {
	color: var(--steel) !important;
}

.uk-text-muted {
	color: var(--steel) !important;
}

.uk-text-emphasis {
	color: var(--ghost) !important;
}

.uk-text-lead {
	color: var(--silver) !important;
}

/* Description lists */
.uk-description-list > dt {
	color: var(--steel) !important;
}

.uk-description-list > dd {
	color: var(--silver) !important;
}

.uk-description-list-divider > dt:nth-child(n+2) {
	border-top-color: rgba(255,255,255,0.06) !important;
}

/* Breadcrumbs */
.uk-breadcrumb > * > * {
	color: var(--steel) !important;
}

.uk-breadcrumb > * > a {
	color: var(--blue) !important;
}

.uk-breadcrumb > * > a:hover {
	color: var(--blue-bright) !important;
}

.uk-breadcrumb > :last-child > * {
	color: var(--silver) !important;
}

/* Background helpers */
.uk-background-muted {
	background-color: var(--navy-up) !important;
}

/* Links */
.uk-link,
a:not(.uk-button):not(.uk-link-text):not(.uk-link-reset):not(.nav-logo):not(.nav-links a):not(.btn) {
	color: var(--blue);
}

.uk-link:hover,
a:not(.uk-button):not(.uk-link-text):not(.uk-link-reset):not(.nav-logo):not(.nav-links a):not(.btn):hover {
	color: var(--blue-bright);
}

.uk-link-reset,
.uk-link-reset:hover {
	color: var(--silver) !important;
	text-decoration: none !important;
}

/* Sections */
.uk-section {
	background: var(--navy);
	padding-top: 104px;
}

.uk-section-default {
	background: var(--navy) !important;
}

.uk-section-muted {
	background: var(--navy-up) !important;
}

.uk-section-secondary {
	background: var(--navy-up) !important;
}

/* Buttons */
.uk-button-primary {
	background-color: var(--blue) !important;
	color: white !important;
	border-color: var(--blue) !important;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
	background-color: var(--blue-bright) !important;
	color: white !important;
	border-color: var(--blue-bright) !important;
}

.uk-button-default {
	background: var(--navy-card) !important;
	color: var(--silver) !important;
	border-color: rgba(255,255,255,0.1) !important;
}

.uk-button-default:hover {
	background: var(--navy-up) !important;
	color: var(--white) !important;
	border-color: var(--blue) !important;
}

.uk-button-danger {
	background-color: var(--red) !important;
	color: white !important;
	border-color: var(--red) !important;
}

.uk-button-danger:hover,
.uk-button-danger:focus {
	background-color: #e5453d !important;
	color: white !important;
}

.uk-button-warning {
	background-color: #ffa600 !important;
	color: var(--navy) !important;
	border-color: #ffa600 !important;
}

.uk-button-warning:hover,
.uk-button-warning:focus {
	background-color: #e69500 !important;
	color: var(--navy) !important;
}

.uk-button-success {
	background-color: var(--green) !important;
	color: var(--navy) !important;
	border-color: var(--green) !important;
}

.uk-button-success:hover,
.uk-button-success:focus {
	background-color: #36a146 !important;
	color: var(--navy) !important;
}

.uk-button-small {
	border-radius: 6px;
}

/* Forms */
.uk-input,
.uk-select,
.uk-textarea {
	background-color: var(--navy-up) !important;
	color: var(--silver) !important;
	border-color: rgba(255,255,255,0.08) !important;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
	border-color: var(--blue) !important;
	background-color: var(--navy-up) !important;
	color: var(--white) !important;
}

.uk-input::placeholder,
.uk-textarea::placeholder {
	color: var(--steel) !important;
}

.uk-form-label {
	color: var(--silver) !important;
}

input[type="file"] {
	line-height: normal;
	padding-top: 9px !important;
	padding-bottom: 9px !important;
	color: var(--steel);
}

input[type="file"]::file-selector-button {
	display: none;
}

/* Horizontal rules */
hr, .uk-hr {
	border-top-color: rgba(255,255,255,0.06);
}

/* Tables */
.uk-table th {
	color: var(--white) !important;
}

.uk-table td {
	color: var(--silver);
	border-top-color: rgba(255,255,255,0.06) !important;
}

.uk-table-hover tbody tr:hover {
	background: rgba(255,255,255,0.04) !important;
}

.uk-table-striped tbody tr:nth-of-type(odd),
.uk-table-striped > tr:nth-of-type(odd) {
	background: rgba(255,255,255,0.03) !important;
	border-top-color: rgba(255,255,255,0.06) !important;
	border-bottom-color: rgba(255,255,255,0.06) !important;
}

.uk-table-striped tbody tr:nth-of-type(even),
.uk-table-striped > tr:nth-of-type(even) {
	background: transparent !important;
}

.uk-table-striped tbody tr:nth-of-type(2n):last-child,
.uk-table-striped > tr:nth-of-type(2n):last-child {
	border-bottom-color: rgba(255,255,255,0.06) !important;
}

.uk-table-divider > tr:not(:first-child),
.uk-table-divider > :not(:first-child) > tr,
.uk-table-divider > :first-child > tr:not(:first-child) {
	border-top-color: rgba(255,255,255,0.06) !important;
}

/* Alerts */
.uk-alert {
	background: var(--navy-up) !important;
	color: var(--silver) !important;
	border: 1px solid rgba(255,255,255,0.06);
}

.uk-alert-success {
	background: rgba(63,185,80,0.1) !important;
	color: var(--green) !important;
	border-color: rgba(63,185,80,0.2) !important;
}

.uk-alert-danger {
	background: rgba(248,81,73,0.1) !important;
	color: var(--red) !important;
	border-color: rgba(248,81,73,0.2) !important;
}

.uk-alert-warning {
	background: rgba(255,166,0,0.1) !important;
	color: #ffa600 !important;
	border-color: rgba(255,166,0,0.2) !important;
}

.uk-alert-primary {
	background: rgba(52,119,198,0.1) !important;
	color: var(--blue-bright) !important;
	border-color: rgba(52,119,198,0.2) !important;
}

/* Labels / Badges */
.uk-label {
	background-color: var(--navy-up);
	color: var(--silver);
}

.uk-label-primary {
	background-color: var(--blue) !important;
	color: white !important;
}

.uk-label-success {
	background-color: rgba(63,185,80,0.15) !important;
	color: var(--green) !important;
}

.uk-label-danger {
	background-color: rgba(248,81,73,0.15) !important;
	color: var(--red) !important;
}

/* Modals */
.uk-modal-dialog {
	background: var(--navy-card) !important;
	color: var(--silver) !important;
}

.uk-modal-header {
	border-bottom-color: rgba(255,255,255,0.06) !important;
	background: var(--navy-card) !important;
}

.uk-modal-footer {
	border-top-color: rgba(255,255,255,0.06) !important;
	background: var(--navy-card) !important;
}

.uk-modal-title {
	color: var(--white) !important;
}

/* Pagination */
.uk-pagination > * > * {
	color: var(--steel) !important;
}

.uk-pagination > .uk-active > * {
	color: var(--white) !important;
}

.uk-pagination > * > :hover {
	color: var(--blue-bright) !important;
}

/* Offcanvas */
.uk-offcanvas-bar {
	background: var(--navy-card) !important;
}

/* Navbar */
.uk-navbar-container {
	background: var(--navy) !important;
}

/* Notifications */
.uk-notification-message {
	background: var(--navy-card) !important;
	color: var(--silver) !important;
	border-left: 4px solid var(--steel) !important;
}

/* The neutral card above is close enough to the page background to disappear,
   so each status carries its own solid colour instead. */
.uk-notification-message-danger {
	background: #8c1d18 !important;
	color: var(--white) !important;
	border-left-color: var(--red) !important;
}

.uk-notification-message-success {
	background: #14532d !important;
	color: var(--white) !important;
	border-left-color: var(--green) !important;
}

.uk-notification-message-warning {
	background: #7a4a00 !important;
	color: var(--white) !important;
	border-left-color: #f0a020 !important;
}

.uk-notification-message-primary {
	border-left-color: var(--blue) !important;
}

/* Hover cards (data-uk-drop): they usually open over another card, so they
   need their own lighter background to stand out */
.uk-drop .uk-card-default {
	background-color: #2a3449 !important;
	border-color: rgba(255,255,255,0.14);
	box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}

.uk-drop .uk-card-default .uk-text-meta,
.uk-drop .uk-card-default .uk-text-muted {
	color: #9aa4b2 !important;
}

/* Dropdowns */
.uk-dropdown {
	background: var(--navy-card) !important;
	color: var(--silver) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

/* Submit button styled as the input icon (parts/table_filters.php) */
.form-icon-button {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.form-icon-button:hover {
	color: var(--white);
}

/* Searchable selects (select[data-searchable], enhanced in script.js) */
/* Plan picker list in the organization plan dialog */
.plan-options {
	position: relative;
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
}

.plan-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	cursor: pointer;
}

.plan-option:last-child {
	border-bottom: 0;
}

.plan-option:hover {
	background: var(--navy-up);
}

.plan-option:has(input:checked) {
	background: var(--blue-glow);
}

.plan-option > .uk-radio {
	margin: 0;
	flex-shrink: 0;
}

.plan-option-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.plan-option-name {
	color: var(--white);
}

.plan-option-details {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	font-size: 12px;
}

.plan-option-details:empty {
	display: none;
}

.plan-option-current {
	color: var(--blue-bright);
}

.plan-option.is-hidden .plan-option-name {
	color: var(--silver);
}

.plan-option-key {
	color: var(--steel);
	font-family: monospace;
	font-size: 11px;
}

.plan-option-flag {
	color: #faa05a;
}

.plan-option-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
	color: var(--silver);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.plan-option-client {
	color: var(--steel);
	font-size: 12px;
}

/* Renewal icon next to the plan end date */
.plan-renew-icon {
	margin-left: 6px;
	font-size: 0.6em;
	vertical-align: middle;
	cursor: help;
}

.plan-renew-icon.is-off {
	opacity: 0.5;
}

/* Scheduled plan change details on the organization page */
.plan-next-drop {
	width: auto;
	min-width: 240px;
}

.plan-next-amounts {
	display: grid;
	grid-template-columns: auto auto;
	gap: 4px 20px;
	margin-top: 8px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.plan-next-amounts.is-prorated {
	grid-template-columns: auto auto auto;
}

.plan-next-amounts > span:not(:first-child) {
	text-align: right;
}

.plan-next-amounts.is-prorated > span:nth-child(3n+1) {
	text-align: left;
}

.plan-next-amounts:not(.is-prorated) > span:nth-child(odd) {
	text-align: left;
}

/* Datepicker: calendar dropdown for <input data-datepicker> */
.datepicker {
	position: relative;
}

.datepicker-calendar {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	width: 272px;
	padding: 12px;
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
	z-index: 1020;
	user-select: none;
}

.datepicker.is-open .datepicker-calendar {
	display: block;
}

.datepicker-calendar button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.datepicker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.datepicker-title {
	color: var(--white);
	font-weight: 600;
	text-transform: capitalize;
}

.datepicker-nav {
	width: 30px;
	height: 30px;
	border-radius: 6px;
	color: var(--silver);
	font-size: 20px;
	line-height: 1;
}

.datepicker-nav:hover {
	background: var(--navy-up);
	color: var(--white);
}

.datepicker-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.datepicker-weekday {
	padding: 4px 0;
	text-align: center;
	color: var(--steel);
	font-size: 12px;
	text-transform: uppercase;
}

.datepicker-day {
	height: 34px;
	border-radius: 6px;
	color: var(--silver);
	font-size: 14px;
}

.datepicker-day:hover {
	background: var(--navy-up);
	color: var(--white);
}

.datepicker-day.is-other {
	color: var(--steel);
	opacity: 0.6;
}

.datepicker-day.is-today {
	box-shadow: inset 0 0 0 1px var(--blue);
}

.datepicker-day.is-selected {
	background: var(--blue);
	color: var(--white);
	opacity: 1;
}

.datepicker-footer {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.06);
	text-align: right;
}

.datepicker-today {
	padding: 4px 10px;
	border-radius: 6px;
	color: var(--blue-bright) !important;
	font-size: 13px;
}

.datepicker-today:hover {
	background: var(--navy-up);
}

.searchable-select {
	position: relative;
	min-width: 220px;
}

.searchable-select > select {
	/* UIKit's .uk-select:not([multiple]):not([size]) outranks this selector */
	display: none !important;
}

.searchable-select > .uk-input {
	width: 100%;
	padding-right: 30px;
}

.searchable-select::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	margin-top: -5px;
	border-right: 1px solid var(--steel);
	border-bottom: 1px solid var(--steel);
	transform: rotate(45deg);
	pointer-events: none;
}

.searchable-select-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	max-height: 280px;
	overflow-y: auto;
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.4);
	z-index: 1020;
}

.searchable-select.is-open .searchable-select-dropdown {
	display: block;
}

.searchable-select-option {
	padding: 8px 12px;
	color: var(--silver);
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.searchable-select-option.is-active {
	background: var(--navy-up);
	color: var(--white);
}

.searchable-select-option.is-selected {
	color: var(--blue);
}

/* Multi-select: chips sit above the search box */
.searchable-select.is-multiple::after {
	display: none;
}

.searchable-select-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.searchable-select-chips-empty {
	color: var(--steel);
	font-size: 0.875rem;
}

.searchable-select-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	border: 1px solid var(--blue);
	border-radius: 3px;
	background: var(--navy-up);
	color: var(--ghost);
	font-size: 0.8125rem;
}

.searchable-select-chip.is-locked {
	border-color: var(--steel);
	color: var(--steel);
}

/* Still selected, but outside the group of the default organization, so it
   will be dropped on save. Kept visible instead of silently removed. */
.searchable-select-chip.is-out-of-group {
	border-color: var(--red);
	color: var(--steel);
	text-decoration: line-through;
}

.searchable-select-chip-remove {
	padding: 0;
	border: none;
	background: none;
	color: var(--steel);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.searchable-select-chip-remove:hover {
	color: var(--red);
}

.searchable-select-empty {
	padding: 8px 12px;
	color: var(--steel);
}

/* Nav */
.uk-nav-primary > li > a {
	color: var(--silver) !important;
}

.uk-nav-primary > li.uk-active > a,
.uk-nav-primary > li > a:hover {
	color: var(--white) !important;
}

/* Tabs */
.uk-tab > * > a {
	color: var(--steel) !important;
	border-bottom-color: transparent !important;
}

.uk-tab > .uk-active > a {
	color: var(--white) !important;
	border-bottom-color: var(--blue) !important;
}

.uk-tab > * > a:hover {
	color: var(--silver) !important;
}

/* ── Nav ── */
.site-nav {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
	background: rgba(13,17,23,0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-inner {
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo,
.nav-logo:hover {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: 2rem;
	flex-shrink: 0;
	text-decoration: none;
	color: var(--white) !important;
	font-family: var(--font);
	font-weight: 700;
	font-size: 1.1rem;
	opacity: 1;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	white-space: nowrap;
}

.nav-links a {
	text-decoration: none;
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 500;
	transition: opacity 0.2s;
}

.nav-links a:hover {
	opacity: 0.7;
	color: var(--white);
}


.nav-links a.btn:hover {
	opacity: 1;
}

.mobile-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.2rem;
	color: var(--white);
	cursor: pointer;
}

/* ── Mobile menu ── */
.mobile-menu {
	display: none;
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	z-index: 99;
	background: rgba(13,17,23,0.97);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	padding: 1rem 0;
}

.mobile-menu.open {
	display: block;
}

.mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu li {
	border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-menu li:last-child {
	border-bottom: none;
}

.mobile-menu a {
	display: block;
	padding: 0.85rem 2rem;
	color: var(--silver);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
	background: rgba(255,255,255,0.03);
	color: var(--white);
}

/* ── Buttons ── */
.btn,
.btn:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 8px;
	font-family: var(--font);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: all 0.25s;
}

.btn-glow {
	background: var(--blue);
	color: white;
	box-shadow: 0 0 20px var(--blue-glow);
}

.btn-glow:hover {
	box-shadow: 0 0 40px rgba(52,119,198,0.3);
	transform: translateY(-1px);
	color: white;
}

.btn-ghost {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.1);
	color: var(--silver);
}

.btn-ghost:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.btn-lg {
	padding: 14px 30px;
	font-size: 0.95rem;
	border-radius: 10px;
}

.btn-white {
	background: var(--white);
	color: var(--navy);
}

.btn-white:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(240,246,252,0.2);
	color: var(--navy);
}

/* ── Hero ── */
.hero {
	padding: 160px 2rem 100px;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: var(--navy);
	color: var(--silver);
	border-radius: 0;
	box-shadow: none;
	margin: 0;
}

.hero::before {
	content: '';
	position: absolute;
	top: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 600px;
	background: radial-gradient(ellipse, rgba(52,119,198,0.08) 0%, transparent 70%);
	pointer-events: none;
}

.hero h2 {
	color: var(--white);
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.hero-problem {
	font-size: 1.05rem;
	color: var(--steel);
	max-width: 580px;
	margin: 0 auto 2rem;
	animation: fadeIn 0.6s ease both;
}

.hero-problem .strike {
	text-decoration: line-through;
	color: var(--red);
	opacity: 0.7;
}

.hero h1 {
	font-family: var(--font);
	font-size: clamp(2.5rem, 5.5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--white);
	max-width: 800px;
	margin: 0 auto 1.75rem;
	animation: fadeIn 0.6s 0.1s ease both;
}

.hero h1 .glow {
	color: var(--blue-bright);
}

.hero-sub {
	font-size: 1.1rem;
	color: var(--steel);
	max-width: 520px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
	animation: fadeIn 0.6s 0.2s ease both;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 5rem;
	animation: fadeIn 0.6s 0.3s ease both;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Section shared ── */
.section-dark {
	padding: 100px 2rem;
	background: var(--navy-up);
}

.section-default {
	padding: 100px 2rem;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--blue);
	margin-bottom: 0.75rem;
}

.section-header h2 {
	font-family: var(--font);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	color: var(--white);
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.section-header p {
	color: var(--steel);
	font-size: 1rem;
	max-width: 600px;
	margin: 0 auto;
}

/* ── How it works ── */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	position: relative;
}

.steps::before {
	content: '';
	position: absolute;
	top: 40px;
	left: calc(16.66% + 40px);
	right: calc(16.66% + 40px);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(52,119,198,0.3), transparent);
}

.step {
	text-align: center;
	position: relative;
}

.step-number {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--navy-card);
	border: 1px solid rgba(52,119,198,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	font-family: var(--font);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--blue-bright);
	position: relative;
	z-index: 1;
}

.step h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 0.5rem;
}

.step p {
	font-size: 0.9rem;
	color: var(--steel);
	line-height: 1.65;
	max-width: 300px;
	margin: 0 auto;
}

/* ── Deploy cards ── */
.deploy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.deploy-card {
	background: var(--navy-up);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 16px;
	padding: 2.5rem;
	transition: border-color 0.3s;
}

.deploy-card:hover {
	border-color: rgba(52,119,198,0.25);
}

.deploy-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 1.25rem;
}

.deploy-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(52,119,198,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue-bright);
	font-size: 1.1rem;
}

.deploy-card-header h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--white);
	margin: 0;
}

.deploy-card > p {
	font-size: 0.92rem;
	color: var(--steel);
	margin-bottom: 1.5rem;
	line-height: 1.65;
}

.deploy-mockup {
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 10px;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--steel);
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	margin-bottom: 1.5rem;
}

.deploy-features {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.deploy-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: var(--steel);
}

.deploy-features i {
	color: var(--blue);
	font-size: 0.7rem;
}

/* ── Security badges ── */
.security-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.security-badge {
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 12px;
	padding: 2rem 1.5rem;
	text-align: center;
	transition: border-color 0.3s;
}

.security-badge:hover {
	border-color: rgba(52,119,198,0.2);
}

.security-badge-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(52,119,198,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	color: var(--blue-bright);
	font-size: 1.15rem;
}

.security-badge h4 {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 0.35rem;
}

.security-badge p {
	font-size: 0.78rem;
	color: var(--steel);
	line-height: 1.55;
}

/* ── Integration section ── */
.integrate-layout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 3rem;
	align-items: center;
}

.integrate-text h2 {
	font-family: var(--font);
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--white);
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
}

.integrate-text > p {
	font-size: 1rem;
	color: var(--steel);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.integrate-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.integrate-list li {
	font-size: 1rem;
	color: var(--silver);
	display: flex;
	align-items: center;
	gap: 14px;
}

.integrate-list li i {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(52,119,198,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue-bright);
	font-size: 0.9rem;
	flex-shrink: 0;
}

.integrate-list li strong {
	color: var(--white);
}

/* ── Contact section ── */
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: start;
}

.contact-info h2 {
	font-family: var(--font);
	font-size: 2rem;
	font-weight: 700;
	color: var(--white);
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

.contact-info > p {
	color: var(--steel);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.contact-detail {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 0.9rem;
}

.contact-detail i {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(52,119,198,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue-bright);
	font-size: 0.85rem;
}

.contact-detail a {
	color: var(--silver);
	text-decoration: none;
}

.contact-detail a:hover {
	color: var(--blue-bright);
}

.contact-form {
	background: var(--navy);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 16px;
	padding: 2.5rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-group label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--silver);
	margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px 14px;
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 8px;
	color: var(--silver);
	font-family: var(--font);
	font-size: 0.88rem;
	transition: border-color 0.2s;
	outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: var(--blue);
}

.form-group textarea {
	height: 100px;
	resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--steel);
	opacity: 0.6;
}

.form-submit {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Keeps the label centred when the button stretches full width on mobile */
.form-submit .btn {
	justify-content: center;
}

.btn-send-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* Two-class selectors: FontAwesome loads after this file and its .fas rule
   would otherwise win the display battle at equal specificity. */
.btn .btn-spinner {
	display: none;
}

.btn.is-sending .btn-send-icon {
	display: none;
}

.btn.is-sending .btn-spinner {
	display: inline-block;
}

/* Form status messages */
.form-status {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.85rem;
	margin-bottom: 1.25rem;
	display: none;
}

.form-status.success {
	display: block;
	background: rgba(63,185,80,0.1);
	border: 1px solid rgba(63,185,80,0.2);
	color: var(--green);
}

.form-status.error {
	display: block;
	background: rgba(248,81,73,0.1);
	border: 1px solid rgba(248,81,73,0.2);
	color: var(--red);
}

/* ── Footer ── */
footer, .footer-main {
	padding: 60px 2rem 40px;
	border-top: 1px solid rgba(255,255,255,0.04);
	background: var(--navy);
	color: var(--silver);
	text-align: center;
}

footer a, .footer-main a {
	color: var(--steel) !important;
	text-decoration: none;
	transition: color 0.2s;
}

footer a:hover, .footer-main a:hover {
	color: var(--white) !important;
	text-decoration: none;
}

.footer-desc {
	font-size: 0.85rem;
	color: var(--silver);
	margin-bottom: 1rem;
}

.footer-line {
	font-size: 0.82rem;
	color: var(--steel);
}

/* ── Content pages (privacy, terms, etc) ── */
main.content-page {
	background: var(--navy);
	padding: 3rem 2rem;
	padding-top: 100px;
}

main.content-page h2 {
	color: var(--white);
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

main.content-page h3 {
	color: var(--white);
	font-size: 1.2rem;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

main.content-page p {
	color: var(--silver);
	margin-bottom: 1rem;
}

main.content-page ul {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

main.content-page li {
	color: var(--silver);
	margin-bottom: 0.5rem;
}

/* Docs tables wrap their text (the admin tables below don't) */
main.content-page .uk-table td,
main.content-page .uk-table th {
	white-space: normal;
	vertical-align: top;
}

main.content-page .uk-table code {
	white-space: nowrap;
}

main.content-page .contact-info {
	background: var(--navy-card);
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
	border: 1px solid rgba(255,255,255,0.05);
}

main.content-page .last-updated {
	color: var(--steel);
	text-align: center;
	font-style: italic;
}

/* ── Login page dark ── */
/* ── Login ── */
.login {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 76vh;
	padding: 140px 20px 90px;
}

/* Same glow language as the hero, so the page belongs to the site */
.login::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	max-width: 120%;
	height: 640px;
	background: radial-gradient(ellipse, rgba(52,119,198,0.10) 0%, transparent 70%);
	pointer-events: none;
}

.login-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	background: var(--navy-up);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.45);
	overflow: hidden;
}

/* One pass of the scanner across the document, on load only */
.login-scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: var(--blue);
	box-shadow: 0 0 18px 2px rgba(52,119,198,0.45);
	opacity: 0;
	animation: login-scan 1.7s cubic-bezier(.4,0,.2,1) .1s 1;
}

@keyframes login-scan {
	0% { top: 0; opacity: 0; }
	12% { opacity: .85; }
	85% { opacity: .85; }
	100% { top: 100%; opacity: 0; }
}

/* Flex column so stray whitespace between the blocks stops generating line
   boxes, and so the help line can sit against the bottom of the card. */
.login-body {
	display: flex;
	flex-direction: column;
	padding: 34px 34px 26px;
}

.login-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.login-mark {
	width: 30px;
	height: 30px;
}

.login-eyebrow {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--steel);
}

.login-title {
	margin-top: 26px;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--white);
}

.login-sub {
	margin-top: 8px;
	font-size: 0.9375rem;
	color: var(--steel);
}


.login-actions {
	margin-top: 26px;
}

.login-provider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: 100%;
	padding: 14px 20px;
	background: var(--navy-card);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	color: var(--ghost);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.login-provider:hover,
.login-provider:focus-visible {
	border-color: var(--blue);
	color: var(--white);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.login-or {
	position: relative;
	margin: 20px 0;
	text-align: center;
}

.login-or::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255,255,255,0.08);
}

.login-or span {
	position: relative;
	padding: 0 12px;
	background: var(--navy-up);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--steel);
}

.login-label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--silver);
}

.login-row {
	display: flex;
	gap: 8px;
}

.login-input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	background: var(--navy);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	color: var(--white);
	font-family: inherit;
	font-size: 0.9375rem;
}

.login-input::placeholder {
	color: var(--steel);
}

.login-input:focus,
.login-code:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(52,119,198,0.18);
}

/* The code is read off a phone and typed, so it gets room to breathe */
.login-code {
	width: 100%;
	padding: 14px;
	background: var(--navy);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	color: var(--white);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-align: center;
	text-indent: 0.4em;
}

.login-submit {
	flex-shrink: 0;
	padding: 12px 20px;
	background: var(--blue);
	border: 1px solid var(--blue);
	border-radius: 10px;
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
	background: var(--blue-bright);
	border-color: var(--blue-bright);
	box-shadow: 0 0 24px rgba(52,119,198,0.28);
}

.login-submit-block {
	display: block;
	width: 100%;
	padding: 14px 20px;
}

.login-code + .login-submit {
	margin-top: 12px;
	width: 100%;
}

.login-address {
	color: var(--ghost);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Bots fill this, people never see it */
.login-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* UIKit gives every <p> a 20px bottom margin, and the `*` reset loses to it on
   specificity, so the card's paragraphs have to zero it themselves. */
.login-sub,
.login-note,
.login-help,
.login-legal {
	margin-bottom: 0;
}

.login-note {
	margin-top: 22px;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--steel);
}

/* Quiet offer at the foot of the card: present for whoever needs it, invisible
   to everyone who just wants to sign in. `auto` pins it to the bottom whenever
   the card has spare height. */
.login-help {
	margin-top: auto;
	padding-top: 26px;
	font-size: 0.8125rem;
	text-align: center;
}

/* !important because the global `a:not(...)` link rule outranks anything
   reasonable here, same reason the UIKit overrides above use it */
.login-help a {
	color: var(--steel) !important;
	text-decoration: none;
}

.login-help a:hover {
	color: var(--silver) !important;
	text-decoration: underline;
}

/* Full-bleed foot of the card, the way an MRZ sits on a passport */
.login-mrz {
	padding: 13px 0 15px;
	background: var(--navy);
	border-top: 1px solid rgba(255,255,255,0.06);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	line-height: 1.75;
	letter-spacing: 0.1em;
	color: rgba(125,133,144,0.5);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	user-select: none;
}

.login-mrz span {
	display: block;
}

.login-legal {
	position: relative;
	z-index: 1;
	margin-top: 22px;
	font-size: 0.8125rem;
	color: var(--steel);
	text-align: center;
}

/* The privacy link stays the site's link blue, like every other legal link */

@media (max-width: 480px) {
	.login {
		padding: 110px 16px 70px;
	}

	.login-body {
		padding: 28px 22px 26px;
	}

	.login-mrz {
		font-size: 0.5625rem;
		letter-spacing: 0.06em;
	}
}

@media (prefers-reduced-motion: reduce) {
	/* Kept, not removed: it settles at the top edge as a static accent so the
	   card still reads as something a scanner just passed over. */
	.login-scan {
		animation: none;
		opacity: .55;
	}

}


.login-footer {
	border-top: 1px solid rgba(255,255,255,0.06);
	padding-top: 24px;
}

.privacy-link {
	color: var(--blue) !important;
}

.privacy-link:hover {
	color: var(--blue-bright) !important;
}

/* ── Error page dark ── */
.error-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 40px 20px;
	padding-top: 100px;
}

.error-content {
	text-align: center;
	max-width: 500px;
}

.error-icon {
	margin-bottom: 32px;
}

.error-icon i {
	font-size: 80px;
	color: var(--blue);
}

.error-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--white);
	margin: 0 0 16px 0;
}

.error-message {
	font-size: 18px;
	color: var(--steel);
	line-height: 1.6;
	margin: 0 auto 32px;
	max-width: 400px;
}

.error-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.error-actions .uk-button {
	padding: 12px 24px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ── Tables (admin) ── */
.uk-table td,
.uk-table th {
	white-space: nowrap;
	vertical-align: middle;
}

.uk-table .uk-text-wrap,
.uk-table .allow-wrap {
	white-space: normal;
}

.uk-overflow-auto {
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
	.uk-table td,
	.uk-table th {
		min-width: 80px;
		padding: 8px 12px;
	}

	.uk-table-small td,
	.uk-table-small th {
		min-width: 60px;
		padding: 6px 10px;
	}
}

.doc-screenshot {
	max-width: 300px;
	margin: 0 auto;
	display: block;
}

.back-link {
	color: var(--blue);
	text-decoration: none;
	margin-left: auto;
}

.back-link:hover {
	text-decoration: underline;
}

.table-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.table-pagination__pages {
	width: 100%;
	order: 2;
	margin-top: 5px;
}

.table-pagination__pages .uk-pagination {
	justify-content: center;
}

.table-pagination__perpage {
	order: 1;
}

@media (min-width: 640px) {
	.table-pagination__pages {
		width: auto;
		order: 1;
		margin-top: 0;
	}

	.table-pagination__perpage {
		order: 2;
	}
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.deploy-grid,
	.integrate-layout,
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nav-links { display: none; }
	.mobile-toggle { display: block; }

	.hero { padding: 130px 1.5rem 60px; }

	.steps {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.steps::before { display: none; }

	.security-grid {
		grid-template-columns: 1fr 1fr;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-submit {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.hero-actions {
		flex-direction: column;
		align-items: center;
	}

	.error-title {
		font-size: 36px;
	}

	.error-icon i {
		font-size: 60px;
	}

	.error-actions {
		flex-direction: column;
		align-items: center;
	}

	.login-card {
		padding: 32px 24px;
	}
}

/* Language switcher */
.lang-switch a {
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	opacity: 0.7;
	transition: opacity 0.2s, border-color 0.2s;
}

.lang-switch a:hover {
	opacity: 1 !important;
	border-color: rgba(255, 255, 255, 0.6);
}

.mobile-menu .lang-switch a {
	border-color: rgba(255, 255, 255, 0.2);
}

/* ── Documentation ── */
.docs-layout {
	padding: 100px 2rem 60px;
	min-height: 60vh;
}

.docs-page-content {
	max-width: 800px;
	margin: 0 auto;
}

.docs-index {
	max-width: 800px;
	margin: 0 auto;
}

.docs-index h1 {
	font-size: 2rem;
	font-weight: 700;
	color: #f0f6fc;
	margin: 0 0 8px;
}

.docs-index-desc {
	color: #8b949e;
	margin: 0 0 32px;
}

.docs-section-group {
	margin-bottom: 32px;
}

.docs-section-group h2 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #c9d1d9;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #21262d;
}

.docs-topic-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.docs-topic-list li {
	margin: 0;
}

.docs-topic-list a {
	display: block;
	padding: 8px 12px;
	color: #58a6ff;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s;
}

.docs-topic-list a:hover {
	background: rgba(88, 166, 255, 0.06);
}

.docs-content h1 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 24px;
	color: #f0f6fc;
}

.docs-breadcrumb,
.docs-back {
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: var(--steel);
}

.docs-breadcrumb a,
.docs-back a {
	color: var(--blue-bright);
	text-decoration: none;
}

.docs-breadcrumb a:hover,
.docs-back a:hover {
	text-decoration: underline;
}

/* Docs breadcrumb dropdown */
.docs-breadcrumb__dropdown {
	position: relative;
	display: inline-block;
}

.docs-breadcrumb__current {
	all: unset;
	color: var(--silver);
	cursor: pointer;
	font: inherit;
}

.docs-breadcrumb__menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	padding: 6px 0;
	min-width: 180px;
	background: var(--bg-card, #161b22);
	border: 1px solid #30363d;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	z-index: 10;
}

.docs-breadcrumb__dropdown:hover .docs-breadcrumb__menu,
.docs-breadcrumb__dropdown:focus-within .docs-breadcrumb__menu {
	display: flex;
	flex-direction: column;
}

.docs-breadcrumb__menu a {
	padding: 6px 14px;
	color: var(--steel);
	white-space: nowrap;
}

.docs-breadcrumb__menu a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #f0f6fc;
	text-decoration: none;
}

/* Docs related-section divider at the bottom of subpages */
.docs-related {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid #21262d;
}

.docs-related > h2:first-child {
	margin-top: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel);
	margin-bottom: 16px;
}

/* Docs screenshots */
.docs-screenshot {
	margin: 1.75em auto;
}

.docs-screenshot img,
.docs-screenshot video {
	display: block;
	width: 100%;
	height: auto;
}

/* Mobile: phone-frame look with limited width */
.docs-screenshot-mobile {
	max-width: 280px;
	padding: 14px 8px 18px;
	background: #1c2128;
	border-radius: 36px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.5),
		0 4px 8px rgba(0, 0, 0, 0.3);
	position: relative;
}

/* Punch-hole camera (Android-style), centred in the status bar */
.docs-screenshot-mobile::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 12px;
	height: 12px;
	background: #050608;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	z-index: 2;
}

.docs-screenshot-mobile-screen {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: #121212;
}

/* Android status bar, drawn instead of captured (the app's dark background) */
.docs-screenshot-mobile-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 26px;
	padding: 0 20px 0 22px;
	color: #fff;
	font-family: var(--font-system);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.docs-screenshot-mobile-status-icons {
	display: flex;
	align-items: center;
	gap: 4px;
}

.docs-screenshot-mobile-status svg {
	display: block;
}

.docs-screenshot-mobile img,
.docs-screenshot-mobile video {
	background: #000;
}

/* Landscape mobile capture — phone laid on its side, same physical size as portrait */
.docs-screenshot-mobile-landscape {
	max-width: 480px;
	padding: 8px 18px 8px 14px;
	border-radius: 36px;
}

.docs-screenshot-mobile-landscape::before {
	top: 50%;
	left: 26px;
	transform: translateY(-50%);
}

/* Landscape captures are the camera, so the status bar is black */
.docs-screenshot-mobile-landscape .docs-screenshot-mobile-status {
	height: 22px;
	padding: 0 18px 0 30px;
	background: #000;
}

/* Desktop: browser-chrome look */
.docs-screenshot-desktop {
	background: var(--navy-up);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	width: fit-content;
	max-width: 100%;
}

.docs-screenshot-desktop img,
.docs-screenshot-desktop video {
	width: auto;
	max-width: 100%;
}

.docs-screenshot-desktop-chrome {
	height: 32px;
	background: var(--navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.docs-screenshot-desktop-chrome::after {
	content: '';
	position: absolute;
	top: 0;
	right: 12px;
	bottom: 0;
	width: 56px;
	background:
		radial-gradient(circle at 8px 50%, #484f58 5px, transparent 5.5px),
		radial-gradient(circle at 28px 50%, #484f58 5px, transparent 5.5px),
		radial-gradient(circle at 48px 50%, #484f58 5px, transparent 5.5px);
}

.docs-screenshot-desktop-chrome-title {
	color: var(--steel);
	font-size: 13px;
	font-family: var(--font-system);
}

/* Presentation video: 16:9 player with its own controls */
.docs-presentation {
	margin: 1.75em 0 2.25em;
	aspect-ratio: 16 / 9;
	background: var(--navy);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.docs-presentation video {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--navy);
}

/* Docs body (markdown rendered content) */
.docs-body { color: #c9d1d9; line-height: 1.7; }
.docs-body h2 { font-size: 1.5em; margin: 1.2em 0 0.4em; font-weight: 600; color: #f0f6fc; border-bottom: 1px solid #21262d; padding-bottom: 0.3em; }
.docs-body h3 { font-size: 1.25em; margin: 1em 0 0.4em; font-weight: 600; color: #f0f6fc; }
.docs-body h4 { font-size: 1.1em; margin: 0.8em 0 0.3em; font-weight: 600; color: #f0f6fc; }
.docs-body p { margin: 0.6em 0; }
.docs-body a { color: #58a6ff; text-decoration: none; }
.docs-body a:hover { text-decoration: underline; }
.docs-body code { background: rgba(110,118,129,0.2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; font-family: 'SF Mono','Consolas',monospace; }
.docs-body pre { background: #161b22; padding: 16px; border-radius: 6px; overflow-x: auto; margin: 1em 0; border: 1px solid #21262d; }
.docs-body pre code { background: none; padding: 0; color: #c9d1d9; font-size: 13px; }
.docs-body ul, .docs-body ol { padding-left: 1.5em; margin: 0.6em 0; }
.docs-body li { margin: 0.3em 0; }
.docs-body blockquote { border-left: 4px solid #58a6ff; margin: 1em 0; padding: 0.5em 1em; background: rgba(88,166,255,0.05); color: #8b949e; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.docs-body th, .docs-body td { border: 1px solid #21262d; padding: 8px 12px; text-align: left; }
.docs-body th { background: #161b22; font-weight: 600; color: #f0f6fc; }
.docs-body img { display: block; max-width: 100%; height: auto; border-radius: 4px; margin: 1em auto; }
.docs-body hr { border: none; border-top: 1px solid #21262d; margin: 1.5em 0; }

/* Analytics chart tooltip, HTML so long lists are not clipped by the canvas */
.analytics-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	max-width: calc(100vw - 24px);
	padding: 8px 10px;
	background: rgba(0,0,0,0.85);
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.1s;
	z-index: 1030;
}

.analytics-tooltip-title {
	font-weight: bold;
	margin-bottom: 4px;
}

.analytics-tooltip-items {
	column-gap: 16px;
}

.analytics-tooltip-item {
	white-space: nowrap;
	break-inside: avoid;
}

.analytics-tooltip-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border: 1px solid #fff;
	vertical-align: -1px;
}
