:root {
	color-scheme: light;
	--bg-body: #fff7ef;
	--bg-surface: rgba(255, 251, 246, 0.84);
	--bg-card: #ffffff;
	--bg-card-strong: #fffaf4;
	--bg-elevated: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 232, 0.95));
	--bg-hover: #fff1e3;
	--bg-soft: #fff4ea;
	--bg-soft-strong: #ffe8d1;
	--text-main: #2f241d;
	--text-muted: #7f6957;
	--text-faint: #af9278;
	--border: rgba(223, 140, 63, 0.16);
	--border-strong: rgba(223, 140, 63, 0.28);
	--primary: #f58220;
	--primary-dark: #d9650b;
	--primary-strong: #bf5200;
	--primary-soft: rgba(245, 130, 32, 0.12);
	--accent: #ffb35f;
	--success: #119665;
	--danger: #e45757;
	--warning: #eaa022;
	--shadow-sm: 0 12px 26px rgba(188, 110, 37, 0.08);
	--shadow: 0 22px 48px rgba(188, 110, 37, 0.14), 0 8px 24px rgba(54, 31, 16, 0.06);
	--shadow-lg: 0 34px 80px rgba(188, 110, 37, 0.22), 0 18px 38px rgba(54, 31, 16, 0.12);
	--backdrop: rgba(255, 247, 239, 0.84);
	--chart-grid: rgba(205, 152, 102, 0.22);
	--chart-fill: rgba(245, 130, 32, 0.18);
	--table-bg: #ffffff;
	--table-head-bg: #fffaf4;
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg-body: #17110d;
	--bg-surface: rgba(30, 22, 17, 0.84);
	--bg-card: #231914;
	--bg-card-strong: #2b1f19;
	--bg-elevated: linear-gradient(145deg, rgba(35, 25, 20, 0.98), rgba(48, 34, 26, 0.94));
	--bg-hover: #31241d;
	--bg-soft: #382921;
	--bg-soft-strong: #4c3528;
	--text-main: #fff7f0;
	--text-muted: #d1b49b;
	--text-faint: #a5856c;
	--border: rgba(255, 179, 92, 0.13);
	--border-strong: rgba(255, 179, 92, 0.28);
	--primary: #ffa34b;
	--primary-dark: #ff8c1a;
	--primary-strong: #f17300;
	--primary-soft: rgba(255, 163, 75, 0.16);
	--accent: #ffca84;
	--success: #38d39f;
	--danger: #ff7a6b;
	--warning: #ffb648;
	--shadow-sm: 0 14px 28px rgba(0, 0, 0, 0.25);
	--shadow: 0 24px 56px rgba(0, 0, 0, 0.38), 0 8px 22px rgba(0, 0, 0, 0.18);
	--shadow-lg: 0 36px 80px rgba(0, 0, 0, 0.52), 0 16px 34px rgba(0, 0, 0, 0.24);
	--backdrop: rgba(23, 17, 13, 0.82);
	--chart-grid: rgba(255, 179, 92, 0.15);
	--chart-fill: rgba(255, 163, 75, 0.16);
	--table-bg: #231914;
	--table-head-bg: #2b1f19;
}

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

html,
body {
	min-height: 100%;
}

body {
	font-family: 'Inter', sans-serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at top left, rgba(255, 189, 120, 0.22), transparent 28%),
		radial-gradient(circle at bottom right, rgba(255, 138, 65, 0.14), transparent 32%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
		var(--bg-body);
	transition: background-color 0.3s ease, color 0.3s ease;
}

body::before,
body::after {
	content: "";
	position: fixed;
	pointer-events: none;
	border-radius: 999px;
	filter: blur(90px);
	opacity: 0.48;
	z-index: 0;
}

body::before {
	width: 340px;
	height: 340px;
	top: -90px;
	right: -80px;
	background: rgba(255, 176, 96, 0.22);
}

body::after {
	width: 320px;
	height: 320px;
	bottom: -120px;
	left: -100px;
	background: rgba(255, 128, 69, 0.16);
}

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

button,
input,
select,
textarea {
	font: inherit;
}

.dashboard-body {
	display: flex;
	height: 100vh;
	min-height: 100vh;
	overflow: hidden;
}

.overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(23, 17, 13, 0.46);
	backdrop-filter: blur(4px);
	z-index: 15;
}

.overlay.active {
	display: block;
}

.sidebar {
	width: 286px;
	padding: 24px 18px;
	background: var(--bg-surface);
	backdrop-filter: blur(22px);
	border-right: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 20;
	position: relative;
}

.sidebar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
	pointer-events: none;
}

.logo-block {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 8px 18px;
	margin-bottom: 4px;
}

.logo-mark {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	font-weight: 800;
	letter-spacing: 0.04em;
	box-shadow: 0 12px 26px rgba(245, 130, 32, 0.28);
}

.logo-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.logo-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--text-main);
}

.logo-title span {
	color: var(--primary);
}

.logo-subtitle {
	font-size: 12px;
	color: var(--text-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav-header {
	padding: 18px 12px 6px;
	color: var(--text-faint);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 18px;
	color: var(--text-muted);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	border: 1px solid transparent;
}

.nav-item:hover {
	background: var(--bg-hover);
	color: var(--text-main);
	border-color: var(--border);
	transform: translateX(2px);
}

.nav-item.active {
	background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.08));
	color: var(--primary-dark);
	border-color: var(--border-strong);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .nav-item.active {
	color: var(--accent);
}

.nav-icon {
	width: 38px;
	height: 38px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	font-size: 18px;
	flex-shrink: 0;
}

.nav-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-title {
	font-size: 14px;
	font-weight: 700;
}

.nav-meta {
	font-size: 11px;
	color: var(--text-faint);
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 10px;
}

.main {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 18px 28px;
	border-bottom: 1px solid var(--border);
	background: var(--backdrop);
	backdrop-filter: blur(18px);
}

.header-left,
.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header-title-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.header h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--text-main);
}

.page-content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	width: 100%;
	max-width: 1540px;
	margin: 0 auto;
	padding: 28px;
}

.page {
	display: none;
	min-height: min-content;
}

.page.active {
	display: block;
	animation: fadeIn 0.35s ease;
}

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

.hero-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
	gap: 24px;
	padding: 28px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 228, 0.92));
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}

[data-theme="dark"] .hero-panel {
	background: linear-gradient(135deg, rgba(44, 31, 24, 0.98), rgba(31, 22, 17, 0.94));
}

.hero-panel::after {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	right: -60px;
	top: -90px;
	background: rgba(245, 130, 32, 0.18);
	filter: blur(8px);
}

.hero-copy,
.hero-summary {
	position: relative;
	z-index: 1;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

[data-theme="dark"] .hero-kicker {
	color: var(--accent);
}

.hero-panel h1 {
	max-width: 780px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.08;
	margin-bottom: 14px;
	font-weight: 800;
}

.hero-panel p {
	max-width: 760px;
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.75;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.hero-summary {
	display: grid;
	gap: 14px;
	align-content: start;
}

.summary-card {
	padding: 18px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.54);
	border: 1px solid rgba(255, 255, 255, 0.42);
	box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .summary-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.06);
}

.summary-card strong,
.summary-card span {
	display: block;
}

.summary-card strong {
	font-size: 13px;
	color: var(--text-faint);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.summary-card span {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.55;
}

.dashboard-top {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	gap: 24px;
	margin-bottom: 28px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.card,
.table-wrapper,
.modal-content,
.auth-card,
.auth-showcase {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
}

.card {
	border-radius: 24px;
	padding: 22px;
	overflow: hidden;
	position: relative;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent);
	pointer-events: none;
}

.chart-card {
	padding: 24px;
}

.chart-header,
.chart-footer,
.panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.chart-header {
	margin-bottom: 18px;
}

.panel-kicker {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-faint);
	margin-bottom: 8px;
}

.chart-header h3,
.panel-header h3,
.modal-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-main);
}

.chart-header p,
.panel-header p,
.modal-subtitle {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.65;
}

.live-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(17, 150, 101, 0.12);
	color: var(--success);
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 0 0 0 6px rgba(17, 150, 101, 0.12);
}

.chart-container {
	position: relative;
	height: 280px;
	width: 100%;
}

.chart-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	flex-wrap: wrap;
}

.chart-footer > div {
	display: grid;
	gap: 4px;
}

.chart-footer strong {
	font-size: 12px;
	color: var(--text-faint);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.chart-footer span {
	font-size: 14px;
	color: var(--text-main);
	font-weight: 700;
}

.stat-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 168px;
}

.stat-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.stat-label {
	font-size: 12px;
	color: var(--text-faint);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.stat-val {
	margin-top: 10px;
	font-size: 30px;
	line-height: 1.05;
	font-weight: 800;
	color: var(--text-main);
}

.stat-foot {
	margin-top: auto;
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.5;
}

.stat-icon {
	width: 54px;
	height: 54px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-size: 24px;
	background: var(--primary-soft);
	color: var(--primary-dark);
	flex-shrink: 0;
}

[data-theme="dark"] .stat-icon {
	color: var(--accent);
}

.tone-success .stat-icon {
	background: rgba(17, 150, 101, 0.14);
	color: var(--success);
}

.tone-danger .stat-icon {
	background: rgba(228, 87, 87, 0.14);
	color: var(--danger);
}

.tone-warning .stat-icon {
	background: rgba(234, 160, 34, 0.16);
	color: var(--warning);
}

.table-wrapper {
	border-radius: 28px;
	overflow: hidden;
}

.panel-header {
	padding: 24px 24px 18px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
}

.panel-header p {
	margin-top: 8px;
	max-width: 780px;
}

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

.table-scroll {
	overflow-x: auto;
	background: var(--table-bg);
}

.client-table td[data-label]::before {
	content: attr(data-label);
	display: none;
}

.backup-table td[data-label]::before {
	content: attr(data-label);
	display: none;
}

.mobile-client-head,
.mobile-metric-card,
.mobile-card-actions {
	display: none;
}

.client-status-pill {
	white-space: nowrap;
	align-self: flex-start;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
	background: var(--table-bg);
}

thead th {
	padding: 16px 22px;
	text-align: left;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--text-faint);
	background: var(--table-head-bg);
}

tbody td {
	padding: 18px 22px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	vertical-align: middle;
}

tbody tr {
	background: var(--table-bg);
	transition: background-color 0.22s ease, transform 0.22s ease;
}

tbody tr:hover {
	background: var(--bg-hover);
	cursor: pointer;
}

.table-id {
	font-size: 13px;
	font-weight: 800;
	color: var(--primary-dark);
}

[data-theme="dark"] .table-id {
	color: var(--accent);
}

.table-domain {
	display: grid;
	gap: 4px;
}

.table-domain strong {
	font-size: 14px;
	color: var(--text-main);
}

.table-sub {
	font-size: 12px;
	color: var(--text-muted);
}

.plan-pill,
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.plan-pill {
	background: var(--primary-soft);
	color: var(--primary-dark);
}

[data-theme="dark"] .plan-pill {
	color: var(--accent);
}

.badge-success {
	background: rgba(17, 150, 101, 0.13);
	color: var(--success);
}

.badge-danger {
	background: rgba(228, 87, 87, 0.13);
	color: var(--danger);
}

.badge-warning {
	background: rgba(234, 160, 34, 0.14);
	color: var(--warning);
}

.badge-neutral {
	background: rgba(127, 105, 87, 0.14);
	color: var(--text-muted);
}

.usage-stack {
	display: grid;
	gap: 5px;
}

.usage-stack strong {
	font-size: 14px;
	color: var(--text-main);
}

.usage-stack span {
	font-size: 12px;
	color: var(--text-muted);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 16px;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	color: white;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	box-shadow: 0 14px 28px rgba(245, 130, 32, 0.24);
}

.btn-outline {
	background: rgba(255, 255, 255, 0.22);
	color: var(--text-main);
	border-color: var(--border);
}

[data-theme="dark"] .btn-outline {
	background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
	color: white;
	background: linear-gradient(135deg, var(--danger), #cf4949);
	box-shadow: 0 14px 28px rgba(228, 87, 87, 0.22);
}

.btn-sm {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 12px;
}

.menu-btn,
.theme-toggle,
.icon-btn {
	width: 46px;
	height: 46px;
	display: inline-grid;
	place-items: center;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text-main);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.menu-btn:hover,
.theme-toggle:hover,
.icon-btn:hover {
	transform: translateY(-1px);
	border-color: var(--border-strong);
}

.menu-btn {
	display: none;
	background: transparent;
	box-shadow: none;
}

.modal {
	display: none;
	position: fixed;
	inset: 0;
	padding: 24px;
	background: rgba(16, 11, 8, 0.56);
	backdrop-filter: blur(10px);
	z-index: 100;
	align-items: center;
	justify-content: center;
}

.modal.show {
	display: flex;
}

.modal-content {
	width: min(920px, 100%);
	max-height: 92vh;
	min-height: 0;
	border-radius: 28px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-content.narrow {
	width: min(760px, 100%);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 24px;
	border-bottom: 1px solid var(--border);
}

.modal-body {
	padding: 24px;
	min-height: 0;
	overflow-y: auto;
}

.profile-shell,
.modal-form {
	display: grid;
	gap: 20px;
}

.profile-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.profile-domain {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary-dark);
	margin-bottom: 8px;
}

[data-theme="dark"] .profile-domain {
	color: var(--accent);
}

.profile-meta {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
}

.profile-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.profile-kpi {
	padding: 18px;
	border-radius: 20px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
}

.profile-kpi strong {
	display: block;
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--text-main);
}

.profile-kpi span {
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.section-card {
	padding: 22px;
	border-radius: 24px;
	border: 1px solid var(--border);
	background: var(--bg-card-strong);
}

.section-card h4 {
	font-size: 17px;
	font-weight: 800;
	color: var(--text-main);
	margin-bottom: 8px;
}

.section-card p {
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.7;
	margin-bottom: 16px;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-muted);
	margin-bottom: 8px;
}

input,
select,
textarea {
	width: 100%;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: var(--bg-soft);
	color: var(--text-main);
	padding: 14px 16px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

textarea {
	min-height: 138px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.14);
}

input[readonly] {
	background: rgba(255, 255, 255, 0.4);
	cursor: not-allowed;
}

[data-theme="dark"] input[readonly] {
	background: rgba(255, 255, 255, 0.05);
}

.field-hint {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.6;
}

.warning-box {
	padding: 16px 18px;
	border-radius: 20px;
	background: rgba(234, 160, 34, 0.1);
	border: 1px solid rgba(234, 160, 34, 0.18);
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.7;
}

.warning-box strong {
	color: var(--warning);
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.destructive-note {
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(228, 87, 87, 0.08);
	border: 1px solid rgba(228, 87, 87, 0.18);
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.7;
	text-align: center;
}

.readonly-copy {
	cursor: pointer !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
	font-weight: 700;
	text-align: center;
}

.auth-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
}

.auth-shell {
	position: relative;
	width: min(1080px, 100%);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
	gap: 24px;
	z-index: 1;
}

.auth-showcase,
.auth-card {
	border-radius: 30px;
	padding: 34px;
	position: relative;
	overflow: hidden;
}

.auth-showcase::after {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	right: -90px;
	bottom: -120px;
	background: rgba(245, 130, 32, 0.16);
	filter: blur(10px);
}

.auth-showcase > * {
	position: relative;
	z-index: 1;
}

.auth-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 20px;
}

[data-theme="dark"] .auth-badge {
	color: var(--accent);
}

.auth-showcase h1 {
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.08;
	font-weight: 800;
	margin-bottom: 16px;
}

.auth-showcase p {
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.8;
	max-width: 580px;
}

.auth-highlights {
	list-style: none;
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.auth-highlights li {
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--text-main);
	font-size: 14px;
	line-height: 1.7;
}

[data-theme="dark"] .auth-highlights li {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.06);
}

.auth-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

.auth-card .logo-mark {
	margin-bottom: 8px;
}

.auth-card h2 {
	font-size: 30px;
	font-weight: 800;
	color: var(--text-main);
}

.auth-card p {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
}

.auth-form {
	display: grid;
	gap: 16px;
	margin-top: 8px;
}

.auth-field {
	display: grid;
	gap: 8px;
}

.error-banner {
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(228, 87, 87, 0.1);
	border: 1px solid rgba(228, 87, 87, 0.16);
	color: var(--danger);
	font-size: 13px;
	font-weight: 700;
}

.auth-footer {
	color: var(--text-faint);
	font-size: 12px;
	line-height: 1.7;
}

.auth-theme {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 2;
}

.empty-row {
	text-align: center;
	color: var(--text-muted);
	padding: 30px 16px !important;
}

@media (max-width: 1180px) {
	.hero-panel,
	.dashboard-top,
	.auth-shell {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 920px) {
	.profile-kpi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.field-grid,
	.action-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.sidebar {
		position: fixed;
		top: 0;
		left: -306px;
		height: 100%;
		transition: transform 0.3s ease;
	}

	.sidebar.active {
		transform: translateX(306px);
	}

	.menu-btn {
		display: inline-grid;
	}

	.header {
		padding: 16px 18px;
	}

	.main {
		min-height: 100vh;
	}

	.page-content {
		padding: 18px;
	}

	.hero-panel,
	.card,
	.modal-body,
	.modal-header,
	.auth-showcase,
	.auth-card {
		padding: 22px;
	}

	.hero-actions,
	.table-toolbar,
	.header-actions,
	.chart-header,
	.panel-header {
		align-items: flex-start;
	}

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

	.modal {
		padding: 14px;
	}

	.client-table-scroll {
		overflow: visible;
		padding: 12px 14px 16px;
	}

	.table-scroll > .client-table,
	.table-scroll > .backup-table {
		min-width: 0;
	}

	.client-table,
	.client-table tbody,
	.client-table td {
		display: block;
		width: 100%;
	}

	.client-table thead {
		display: none;
	}

	.client-table tbody {
		display: grid;
		gap: 16px;
	}

	.client-table tbody tr.client-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"header header"
			"usage due"
			"actions actions";
		gap: 12px;
		padding: 16px;
		border: 1px solid var(--border);
		border-radius: 28px;
		background: var(--table-bg);
		box-shadow: var(--shadow-sm);
		overflow: hidden;
	}

	.client-table tbody tr.client-row:hover {
		transform: translateY(-1px);
	}

	.client-table tbody td[data-label] {
		padding: 0;
		border-top: 0;
	}

	.client-table td[data-label]::before {
		display: none;
	}

	.client-cell-id,
	.client-cell-plan,
	.desktop-domain,
	.desktop-usage,
	.desktop-due,
	.desktop-state {
		display: none !important;
	}

	.client-cell-domain {
		grid-area: header;
	}

	.client-cell-usage {
		grid-area: usage;
	}

	.client-cell-due {
		grid-area: due;
	}

	.client-cell-state {
		grid-area: actions;
	}

	.mobile-client-head {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
	}

	.mobile-client-avatar {
		width: 48px;
		height: 48px;
		border-radius: 14px;
		display: grid;
		place-items: center;
		background: var(--bg-soft);
		border: 1px solid var(--border);
		font-size: 22px;
		font-weight: 800;
		color: var(--text-main);
		flex-shrink: 0;
	}

	.mobile-client-copy {
		display: grid;
		gap: 4px;
		min-width: 0;
	}

	.mobile-client-copy strong {
		font-size: 16px;
		font-weight: 800;
		line-height: 1.35;
		color: var(--text-main);
		word-break: break-word;
	}

	.mobile-client-copy span {
		font-size: 12px;
		line-height: 1.5;
		color: var(--text-muted);
	}

	.mobile-metric-card {
		display: block;
		padding: 16px;
		border-radius: 18px;
		border: 1px solid var(--border);
		background: var(--bg-soft);
		min-height: 100%;
	}

	.mobile-metric-label {
		display: block;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.4;
		color: var(--text-muted);
		margin-bottom: 8px;
	}

	.mobile-metric-card strong {
		display: block;
		font-size: 30px;
		font-weight: 800;
		line-height: 1.1;
		color: var(--text-main);
		margin-bottom: 8px;
	}

	.client-cell-due .mobile-metric-card strong {
		font-size: 22px;
		line-height: 1.2;
	}

	.mobile-metric-sub {
		display: block;
		font-size: 12px;
		line-height: 1.55;
		color: var(--text-muted);
	}

	.mobile-card-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.mobile-action-btn {
		width: 100%;
		min-height: 44px;
	}

	.client-cell-state .btn-outline {
		background: var(--bg-soft);
	}

	.client-table tbody tr.empty-state-row {
		display: block;
		border: 0;
		background: transparent;
		box-shadow: none;
		padding: 0;
	}

	.client-table .empty-state-row td {
		display: block;
		width: 100%;
		padding: 24px 16px !important;
		border-top: 0 !important;
	}

	.backup-table,
	.backup-table tbody,
	.backup-table tr,
	.backup-table td {
		display: block;
		width: 100%;
	}

	.backup-table thead {
		display: none;
	}

	.backup-table tbody {
		display: grid;
		gap: 14px;
		padding: 14px;
	}

	.backup-table tbody tr.backup-row {
		border: 1px solid var(--border);
		border-radius: 24px;
		background: var(--table-bg);
		box-shadow: var(--shadow-sm);
		overflow: hidden;
	}

	.backup-table tbody td[data-label] {
		display: grid;
		grid-template-columns: minmax(74px, 92px) minmax(0, 1fr);
		gap: 12px;
		align-items: start;
		padding: 14px 16px;
		border-top: 1px solid var(--border);
	}

	.backup-table tbody td[data-label]:first-child {
		border-top: 0;
	}

	.backup-table td[data-label]::before {
		display: block;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--text-faint);
		line-height: 1.45;
	}

	.backup-table tbody td[data-label="Action"] a {
		width: 100%;
	}

	.backup-table tbody tr.empty-state-row {
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.backup-table .empty-row {
		padding: 24px 16px !important;
		text-align: center;
		border-top: 0 !important;
	}
}

@media (max-width: 640px) {
	.stats-grid,
	.profile-kpi-grid {
		grid-template-columns: 1fr;
	}

	.hero-panel h1,
	.auth-showcase h1 {
		font-size: 30px;
	}

	.header-title-group h2 {
		font-size: 20px;
	}

	.auth-body {
		padding: 16px;
	}

	.hero-actions .btn,
	.table-toolbar .btn,
	.header-actions .btn {
		width: 100%;
	}
}