/* PanelAgent — Yönetim paneli */
.admin-app {
	--admin-sidebar-w: 268px;
	--admin-glow: rgba(21, 94, 232, 0.35);
}

.admin-app.demo-shell {
	--demo-bg: #f0f4fb;
}
html.dark .admin-app.demo-shell {
	--demo-bg: #060912;
}

.admin-bg {
	background-color: var(--demo-bg);
	background-image:
		radial-gradient(ellipse 80% 50% at 0% -10%, rgba(21, 94, 232, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.08), transparent 50%);
}
html.dark .admin-bg {
	background-image:
		radial-gradient(ellipse 80% 50% at 0% -10%, rgba(21, 94, 232, 0.22), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.14), transparent 50%);
}

/* Sidebar */
.admin-sidebar {
	width: var(--admin-sidebar-w);
	background: linear-gradient(180deg, var(--demo-surface) 0%, color-mix(in srgb, var(--demo-surface) 92%, #155ee8 8%) 100%);
	border-right: 1px solid var(--demo-border);
	box-shadow: 4px 0 24px -8px rgba(0, 0, 0, 0.08);
}
html.dark .admin-sidebar {
	box-shadow: 4px 0 32px -8px rgba(0, 0, 0, 0.45);
}

.admin-brand {
	padding: 1.25rem 1rem;
	border-bottom: 1px solid var(--demo-border);
}

.admin-nav-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--demo-muted);
	padding: 0.75rem 0.75rem 0.35rem;
}

.admin-nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.85rem;
	margin: 0.15rem 0.5rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--demo-muted);
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.admin-nav-link:hover {
	color: var(--demo-text);
	background: var(--demo-surface-2);
}
.admin-nav-link.is-active {
	color: #fff;
	background: linear-gradient(135deg, #155ee8 0%, #4f46e5 100%);
	box-shadow: 0 4px 14px -2px var(--admin-glow);
}
.admin-nav-link.is-active .admin-nav-icon {
	opacity: 1;
	color: #fff;
}

.admin-nav-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	opacity: 0.75;
}

.admin-nav-badge {
	margin-left: auto;
	font-size: 10px;
	font-weight: 700;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: #f59e0b;
	color: #fff;
}
.admin-nav-link.is-active .admin-nav-badge {
	background: rgba(255, 255, 255, 0.25);
}

/* Header */
.admin-header {
	height: 3.75rem;
	background: color-mix(in srgb, var(--demo-surface) 85%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--demo-border);
}

.admin-user-chip {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.35rem 0.75rem 0.35rem 0.35rem;
	border-radius: 9999px;
	background: var(--demo-surface-2);
	border: 1px solid var(--demo-border);
}

/* Main content */
.admin-main {
	flex: 1;
	overflow: auto;
	padding: 1.25rem 1.5rem 2rem;
}

.admin-page {
	max-width: 72rem;
	margin: 0 auto;
}

/* Dashboard hero */
.admin-hero {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #155ee8 0%, #6366f1 50%, #8b5cf6 100%);
	color: #fff;
	box-shadow: 0 8px 32px -8px var(--admin-glow);
}
.admin-hero::after {
	content: '';
	position: absolute;
	right: -2rem;
	top: -2rem;
	width: 12rem;
	height: 12rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
.admin-hero h2 {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.admin-hero p {
	font-size: 0.875rem;
	opacity: 0.88;
	margin-top: 0.25rem;
}

/* Stat cards */
.admin-stat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
	.admin-stat-grid { grid-template-columns: repeat(5, 1fr); }
}

.admin-stat {
	position: relative;
	padding: 1.15rem 1.15rem 1rem;
	border-radius: 1rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	box-shadow: var(--demo-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.12);
}
html.dark .admin-stat:hover {
	box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.4);
}

.admin-stat-icon {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.65rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}
.admin-stat-icon svg { width: 1.15rem; height: 1.15rem; }
.admin-stat-icon--blue { background: rgba(21, 94, 232, 0.12); color: #155ee8; }
.admin-stat-icon--green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.admin-stat-icon--amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.admin-stat-icon--violet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.admin-stat-icon--emerald { background: rgba(52, 211, 153, 0.12); color: #34d399; }

.admin-stat-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--demo-muted);
}
.admin-stat-value {
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--demo-text);
	margin-top: 0.15rem;
	line-height: 1.1;
}
.admin-stat-value--amber { color: #d97706; }
html.dark .admin-stat-value--amber { color: #fbbf24; }
.admin-stat-value--green { color: #059669; }
html.dark .admin-stat-value--green { color: #34d399; }

/* Panels */
.admin-panel {
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	border-radius: 1rem;
	box-shadow: var(--demo-shadow);
	overflow: hidden;
}
.admin-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--demo-border);
}
.admin-panel-head h2 {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--demo-text);
}
.admin-panel-link {
	font-size: 11px;
	font-weight: 600;
	color: var(--demo-accent-text);
}
.admin-panel-link:hover { text-decoration: underline; }

.admin-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--demo-border);
	font-size: 0.875rem;
	transition: background 0.12s;
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item:hover { background: var(--demo-surface-2); }

.admin-empty {
	padding: 2.5rem 1.25rem;
	text-align: center;
}
.admin-empty-icon {
	width: 3rem;
	height: 3rem;
	margin: 0 auto 0.75rem;
	border-radius: 1rem;
	background: var(--demo-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--demo-muted);
}
.admin-empty p { font-size: 0.875rem; color: var(--demo-muted); }

.admin-status {
	font-size: 10px;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
	border-radius: 0.375rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.admin-status--paid { background: rgba(16, 185, 129, 0.15); color: #059669; }
.admin-status--pending { background: rgba(245, 158, 11, 0.15); color: #d97706; }
html.dark .admin-status--paid { color: #34d399; }
html.dark .admin-status--pending { color: #fbbf24; }

/* Login */
.admin-login-page {
	min-height: 100vh;
	margin: 0;
	background: var(--demo-bg, #f0f4fb);
	color: var(--demo-text);
}
html.dark .admin-login-page {
	background: #060912;
}

.admin-login-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
	.admin-login-shell { grid-template-columns: 1.05fr 1fr; }
}

.admin-login-brand {
	display: none;
	position: relative;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 2rem;
	background: linear-gradient(145deg, #0b1224 0%, #155ee8 42%, #6366f1 78%, #8b5cf6 100%);
	color: #fff;
}
@media (min-width: 1024px) {
	.admin-login-brand {
		display: flex;
		min-height: 100vh;
		padding: 3rem;
		justify-content: flex-start;
	}
}
.admin-login-brand::before,
.admin-login-brand::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.admin-login-brand::before {
	width: 22rem;
	height: 22rem;
	right: -6rem;
	top: -6rem;
	background: rgba(255, 255, 255, 0.1);
}
.admin-login-brand::after {
	width: 14rem;
	height: 14rem;
	left: -4rem;
	bottom: -3rem;
	background: rgba(255, 255, 255, 0.06);
}
.admin-login-brand-inner {
	position: relative;
	z-index: 1;
	max-width: 26rem;
	width: 100%;
}
.admin-login-logo {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.35);
	margin-bottom: 1.5rem;
	background: rgba(255, 255, 255, 0.12);
}
.admin-login-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-login-logo--sm {
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 auto 1rem;
}
.admin-login-eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	opacity: 0.75;
	margin-bottom: 0.5rem;
}
.admin-login-brand h1 {
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
}
.admin-login-lead {
	margin-top: 0.85rem;
	font-size: 0.9375rem;
	opacity: 0.88;
	line-height: 1.65;
	max-width: 22rem;
}
.admin-login-features {
	margin-top: 1.75rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.65rem;
}
.admin-login-features li {
	font-size: 0.8125rem;
	opacity: 0.9;
	padding-left: 1.25rem;
	position: relative;
}
.admin-login-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
}

.admin-login-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1.25rem 2.5rem;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(21, 94, 232, 0.06), transparent 60%);
}
@media (min-width: 1024px) {
	.admin-login-main { min-height: 100vh; }
}
html.dark .admin-login-main {
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(21, 94, 232, 0.14), transparent 60%);
}
.admin-login-main-inner {
	width: 100%;
	max-width: 26rem;
}

.admin-login-card {
	padding: 2rem 1.75rem;
	border-radius: 1.35rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	box-shadow: 0 16px 48px -20px rgba(15, 23, 42, 0.25);
}
html.dark .admin-login-card {
	box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.55);
}
.admin-login-card-head {
	margin-bottom: 1.5rem;
	text-align: center;
}
@media (min-width: 1024px) {
	.admin-login-card-head { text-align: left; }
}
.admin-login-card-head h2 {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--demo-text);
}
.admin-login-card-head p {
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: var(--demo-muted);
}
.admin-login-form {
	display: grid;
	gap: 1rem;
}
.admin-login-form .admin-field { margin: 0; }
.admin-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 0.15rem;
	padding: 0.65rem 0.85rem;
	border-radius: 0.75rem;
	background: var(--demo-surface-2);
	border: 1px solid var(--demo-border);
}
.admin-switch {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	width: 100%;
	cursor: pointer;
	user-select: none;
}
.admin-switch-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--demo-text);
}
.admin-switch-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.admin-switch-track {
	position: relative;
	width: 3rem;
	height: 1.65rem;
	flex-shrink: 0;
	border-radius: 9999px;
	background: #cbd5e1;
	border: 1px solid #94a3b8;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
.admin-switch-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
html.dark .admin-login-options {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.14);
}
html.dark .admin-switch-track {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.32);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
html.dark .admin-switch-thumb {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
html.dark .admin-switch-label {
	color: #f8fafc;
}
.admin-switch-input:focus-visible + .admin-switch-track {
	box-shadow: 0 0 0 3px rgba(21, 94, 232, 0.28);
	border-color: #155ee8;
}
html.dark .admin-switch-input:focus-visible + .admin-switch-track {
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
	border-color: #8fb5fe;
}
.admin-switch-input:checked + .admin-switch-track {
	background: linear-gradient(135deg, #155ee8, #4f46e5);
	border-color: #155ee8;
	box-shadow: 0 2px 10px rgba(21, 94, 232, 0.35);
}
html.dark .admin-switch-input:checked + .admin-switch-track {
	background: linear-gradient(135deg, #3b82f6, #6366f1);
	border-color: #93c5fd;
	box-shadow:
		0 0 0 1px rgba(147, 197, 253, 0.35),
		0 4px 16px rgba(59, 130, 246, 0.45);
}
.admin-switch-input:checked + .admin-switch-track .admin-switch-thumb {
	transform: translateX(1.35rem);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}
html.dark .admin-switch-input:checked + .admin-switch-track .admin-switch-thumb {
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.admin-switch:hover .admin-switch-track {
	border-color: #155ee8;
}
html.dark .admin-switch:hover .admin-switch-track {
	border-color: rgba(147, 197, 253, 0.65);
}
.admin-switch-input:checked:hover + .admin-switch-track {
	filter: brightness(1.06);
}
.admin-btn-primary--login {
	margin-top: 0.25rem;
}
.admin-login-footer {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--demo-border);
	text-align: center;
	font-size: 0.8125rem;
}
.admin-login-footer a {
	color: var(--demo-muted);
	font-weight: 600;
}
.admin-login-footer a:hover { color: var(--demo-text); }
.admin-login-card .admin-alert { margin-bottom: 1rem; }

.admin-btn-primary {
	width: 100%;
	padding: 0.7rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #155ee8, #4f46e5);
	box-shadow: 0 4px 14px -2px var(--admin-glow);
	transition: transform 0.15s, box-shadow 0.15s;
	border: none;
	cursor: pointer;
}
.admin-btn-primary--inline {
	width: auto;
	min-width: 8rem;
	padding: 0.65rem 1.5rem;
}
.admin-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px -2px var(--admin-glow);
}

/* Inner pages — demo-card polish inside admin */
.admin-app .demo-card {
	border-radius: 1rem;
	transition: box-shadow 0.2s;
}
.admin-app .demo-input:focus {
	border-color: #155ee8;
	box-shadow: 0 0 0 3px rgba(21, 94, 232, 0.15);
	outline: none;
}

.admin-alert {
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}
.admin-alert--success {
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.25);
	color: #047857;
}
html.dark .admin-alert--success { color: #6ee7b7; }
.admin-alert--error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	color: #b91c1c;
}
html.dark .admin-alert--error { color: #fca5a5; }

/* Tabs */
.admin-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	padding: 0.35rem;
	border-radius: 0.875rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
}
.admin-tab {
	padding: 0.5rem 0.9rem;
	border-radius: 0.625rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--demo-muted);
	transition: background 0.15s, color 0.15s;
}
.admin-tab:hover { color: var(--demo-text); background: var(--demo-surface-2); }
.admin-tab.is-active {
	color: #fff;
	background: linear-gradient(135deg, #155ee8, #4f46e5);
	box-shadow: 0 2px 10px -2px var(--admin-glow);
}
.admin-tab--ghost {
	font-weight: 500;
	font-size: 0.75rem;
	opacity: 0.85;
}

.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; }

/* Forms */
.admin-form-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--demo-text);
	margin-bottom: 1rem;
}
.admin-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) {
	.admin-form-grid { grid-template-columns: repeat(2, 1fr); }
}
.admin-field label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--demo-muted);
	margin-bottom: 0.35rem;
}
.admin-input,
.admin-select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 0.625rem;
	font-size: 0.875rem;
	background: var(--demo-surface-2);
	border: 1px solid var(--demo-border);
	color: var(--demo-text);
}
.admin-select--sm { font-size: 0.75rem; padding: 0.45rem 0.55rem; }
.admin-input:focus,
.admin-select:focus {
	border-color: #155ee8;
	box-shadow: 0 0 0 3px rgba(21, 94, 232, 0.15);
	outline: none;
}
.admin-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
}
.admin-panel .admin-form-actions,
.admin-form-actions--panel {
	margin-top: 0;
	padding: 1.25rem 1.5rem 1.5rem;
	border-top: 1px solid var(--demo-border);
	background: var(--demo-surface);
}
.admin-btn-danger {
	padding: 0.65rem 1.25rem;
	border-radius: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #dc2626;
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.25);
	cursor: pointer;
}
.admin-btn-danger:hover { background: rgba(239, 68, 68, 0.15); }
.admin-info-box {
	padding: 1rem 1.15rem;
	border-radius: 0.75rem;
	background: var(--demo-surface-2);
	border: 1px solid var(--demo-border);
}
.admin-check {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: var(--demo-muted);
	cursor: pointer;
}
.admin-btn-sm {
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 0.35rem 0.65rem;
	border-radius: 0.5rem;
	background: var(--demo-surface-2);
	border: 1px solid var(--demo-border);
	color: var(--demo-text);
}
.admin-btn-sm--primary {
	background: linear-gradient(135deg, #155ee8, #4f46e5);
	color: #fff;
	border-color: transparent;
}

/* Master / detail */
.admin-master-detail {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 1024px) {
	.admin-master-detail { grid-template-columns: 280px 1fr; }
}
.admin-detail {
	min-width: 0;
}
.admin-detail .admin-panel {
	display: flex;
	flex-direction: column;
}
.admin-detail .admin-panel > .p-6,
.admin-detail .admin-panel > [class*="space-y"] {
	flex: 1;
}
.admin-master {
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: var(--demo-shadow);
	align-self: start;
}
.admin-master-list { max-height: calc(100vh - 12rem); overflow-y: auto; }
.admin-master-item {
	display: block;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--demo-border);
	transition: background 0.12s;
}
.admin-master-item:last-child { border-bottom: none; }
.admin-master-item:hover { background: var(--demo-surface-2); }
.admin-master-item.is-active {
	background: rgba(21, 94, 232, 0.08);
	border-left: 3px solid #155ee8;
}
.admin-tag {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.15rem 0.4rem;
	border-radius: 0.3rem;
}
.admin-tag--violet { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.admin-tag--muted { background: var(--demo-surface-2); color: var(--demo-muted); }

/* Table */
.admin-table {
	width: 100%;
	font-size: 0.8125rem;
	border-collapse: collapse;
}
.admin-table th {
	text-align: left;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--demo-muted);
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
}
.admin-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--demo-border);
	vertical-align: top;
}
.admin-table tbody tr:hover { background: var(--demo-surface-2); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Customer detail */
.admin-customer-page { space-y: 1.25rem; }
.admin-back-link {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--demo-muted);
	margin-bottom: 1rem;
}
.admin-back-link:hover { color: var(--demo-text); }

.admin-customer-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	border-radius: 1.25rem;
	margin-bottom: 1.25rem;
	background: linear-gradient(135deg, #155ee8 0%, #6366f1 55%, #8b5cf6 100%);
	color: #fff;
	box-shadow: 0 8px 32px -8px var(--admin-glow);
	position: relative;
	overflow: hidden;
}
.admin-customer-hero::after {
	content: '';
	position: absolute;
	right: -3rem;
	top: -3rem;
	width: 10rem;
	height: 10rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	pointer-events: none;
}
.admin-customer-hero-main {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	position: relative;
	z-index: 1;
	min-width: 0;
}
.admin-customer-avatar {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 800;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
}
.admin-customer-name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.admin-customer-email {
	font-size: 0.875rem;
	opacity: 0.92;
	margin-top: 0.2rem;
}
.admin-customer-meta {
	font-size: 0.8125rem;
	opacity: 0.82;
	margin-top: 0.25rem;
}
.admin-customer-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	position: relative;
	z-index: 1;
}
.admin-customer-hero .admin-status--paid {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}
.admin-customer-hero .admin-btn-sm {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}
.admin-customer-hero .admin-btn-sm--primary {
	background: #fff;
	color: #155ee8;
	border-color: #fff;
}

.admin-customer-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
	.admin-customer-stats { grid-template-columns: repeat(4, 1fr); }
}
.admin-customer-stat {
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	box-shadow: var(--demo-shadow);
}
.admin-customer-stat-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--demo-muted);
}
.admin-customer-stat-value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--demo-text);
	margin-top: 0.2rem;
	line-height: 1.2;
}

.admin-kv {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.875rem;
}
.admin-kv span:first-child { color: var(--demo-muted); }
.admin-kv strong { color: var(--demo-text); text-align: right; }

.admin-panel--accent {
	border-color: rgba(21, 94, 232, 0.25);
	box-shadow: 0 4px 24px -8px var(--admin-glow);
}
.admin-ai-active {
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	background: var(--demo-surface-2);
	border: 1px dashed var(--demo-border);
}
.admin-ai-chip {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
}
.admin-ai-chip-icon { flex-shrink: 0; font-size: 0.875rem; }
