/* ============================================================
   Ph13 Admin Panel — Security Console design system
   RTL (Farsi) · Dark · Anti-nuke command center
   ============================================================ */

:root {
	/* Palette — Discord-family dark with a cyan→blurple energy */
	--bg-0: #05060a;
	--bg-1: #0b0d16;
	--bg-2: #111422;
	--bg-card: #12152a;
	--bg-card-2: #171a33;
	--bg-inset: #0a0c16;
	--border: #232848;
	--border-soft: rgba(132, 145, 200, 0.14);

	--text: #eef0fb;
	--text-2: #b6bdd8;
	--text-muted: #838ab0;

	--brand: #6775f5;
	--brand-2: #20b7ff;
	--accent: #27d3ff;
	--success: #3af29b;
	--danger: #ff5d73;
	--warning: #ffc857;

	--brand-glow: rgba(103, 117, 245, 0.28);
	--cyan-glow: rgba(32, 183, 255, 0.2);

	--font-fa: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
	--font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;
	--font-display: 'Rajdhani', 'Vazirmatn', sans-serif;

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 18px;
	--radius-xl: 26px;

	--shadow-1: 0 10px 30px rgba(3, 4, 10, 0.55);
	--shadow-2: 0 24px 60px rgba(2, 3, 8, 0.6);
	--shadow-glow: 0 0 0 1px rgba(103, 117, 245, 0.25), 0 12px 40px rgba(70, 80, 200, 0.22);
}

* {
	box-sizing: border-box;
}

html {
	scrollbar-color: #2b3057 var(--bg-0);
}

body {
	margin: 0;
	background-color: var(--bg-0);
	background-image:
		radial-gradient(1100px 620px at 88% -12%, rgba(103, 117, 245, 0.16), transparent 62%),
		radial-gradient(900px 540px at -8% 8%, rgba(32, 183, 255, 0.1), transparent 60%),
		radial-gradient(800px 500px at 50% 118%, rgba(58, 242, 155, 0.06), transparent 62%),
		linear-gradient(180deg, #07080f 0%, #05060a 100%);
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font-fa);
	direction: rtl;
	min-height: 100vh;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(120, 135, 220, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 135, 220, 0.035) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 0%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 0%, transparent 78%);
}

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

img {
	max-width: 100%;
}

::selection {
	background: rgba(103, 117, 245, 0.4);
}

/* ---------- Typography ---------- */
.mono,
code {
	font-family: var(--font-mono);
}

.display {
	font-family: var(--font-display);
	letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4 {
	margin-top: 0;
}

/* ---------- Layout ---------- */
.container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 22px 96px;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 700;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.page-title .badge {
	margin-inline-start: 2px;
}

.page-subtitle {
	color: var(--text-2);
	margin: 0 0 30px;
}

/* ---------- Topbar ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 26px;
	background: rgba(7, 8, 15, 0.72);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	border-bottom: 1px solid var(--border-soft);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.03em;
}

.brand .mark {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: linear-gradient(135deg, #3a47cf 0%, #5b9bf5 100%);
	box-shadow: 0 0 22px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
	font-size: 17px;
}

.brand .mark svg {
	width: 18px;
	height: 18px;
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg-card);
	padding: 6px 12px 6px 16px;
	border-radius: 999px;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-1);
}

.user-chip img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(103, 117, 245, 0.4);
}

.user-chip .chip-name {
	font-size: 14px;
	font-weight: 600;
}

.logout-link {
	color: var(--text-muted);
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: all 0.18s ease;
}

.logout-link:hover {
	color: var(--danger);
	border-color: rgba(255, 93, 115, 0.35);
	background: rgba(255, 93, 115, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: linear-gradient(180deg, #7885ff 0%, #5865f2 100%);
	color: #fff;
	border: none;
	padding: 11px 24px;
	border-radius: 12px;
	font-family: var(--font-fa);
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(88, 101, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(88, 101, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn:active {
	transform: translateY(0);
}

.btn.secondary {
	background: linear-gradient(180deg, #1b1f3a 0%, #141830 100%);
	border: 1px solid var(--border);
	color: var(--text-2);
	box-shadow: none;
}

.btn.secondary:hover {
	border-color: #3a4173;
	color: var(--text);
	filter: none;
	box-shadow: 0 6px 18px rgba(6, 7, 14, 0.4);
}

.btn.danger {
	background: linear-gradient(180deg, #ff6d81 0%, #e23b54 100%);
	box-shadow: 0 6px 20px rgba(226, 59, 84, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.danger:hover {
	box-shadow: 0 10px 26px rgba(226, 59, 84, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn .btn-icon {
	font-size: 16px;
}

.btn.discord {
	background: #5865f2;
	box-shadow: 0 10px 34px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.discord:hover {
	background: #6672f4;
	box-shadow: 0 16px 44px rgba(88, 101, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transform: translateY(-3px) scale(1.02);
}

.btn.discord .btn-icon {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* ---------- Cards / grid ---------- */
.guild-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.guild-card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 14px;
	background: linear-gradient(180deg, rgba(23, 26, 51, 0.85) 0%, rgba(18, 21, 42, 0.95) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px;
	transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guild-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(600px 160px at 50% -30%, rgba(103, 117, 245, 0.12), transparent 70%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.guild-card:hover {
	transform: translateY(-3px);
	border-color: rgba(103, 117, 245, 0.6);
	box-shadow: var(--shadow-2), 0 0 0 1px rgba(103, 117, 245, 0.15);
}

.guild-card:hover::after {
	opacity: 1;
}

.guild-card img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	object-fit: cover;
	box-shadow: 0 4px 14px rgba(3, 4, 10, 0.5);
}

.guild-card .placeholder-icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #3a47cf 0%, #5b9bf5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 22px;
	box-shadow: 0 4px 14px rgba(58, 71, 207, 0.45);
}

.guild-card .guild-meta {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.guild-card .name {
	font-weight: 700;
	font-size: 15px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Protection status pill ---------- */
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--text-2);
	background: rgba(131, 138, 176, 0.06);
}

.status-pill .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-muted);
	box-shadow: 0 0 0 3px rgba(131, 138, 176, 0.12);
}

.status-pill.low .dot {
	background: var(--danger);
	box-shadow: 0 0 0 3px rgba(255, 93, 115, 0.18);
	animation: pulse 1.8s ease infinite;
}

.status-pill.medium .dot {
	background: var(--warning);
	box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.18);
	animation: pulse 2.4s ease infinite;
}

.status-pill.high .dot {
	background: var(--success);
	box-shadow: 0 0 0 3px rgba(58, 242, 155, 0.18);
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.35);
	}
}

/* ---------- Tabs ---------- */
.tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.tab {
	padding: 11px 20px;
	color: var(--text-muted);
	border-bottom: 2px solid transparent;
	font-weight: 600;
	font-size: 14px;
	border-radius: 10px 10px 0 0;
	transition: color 0.18s ease, background 0.18s ease;
}

.tab:hover {
	color: var(--text);
	background: rgba(131, 138, 176, 0.07);
}

.tab.active {
	color: #cdd3ff;
	border-color: var(--brand);
	background: linear-gradient(180deg, rgba(103, 117, 245, 0.12) 0%, transparent 100%);
}

/* ---------- Module cards ---------- */
.module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}

.module-card {
	position: relative;
	background: linear-gradient(180deg, rgba(23, 26, 51, 0.7) 0%, rgba(18, 21, 42, 0.9) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
	border-color: rgba(103, 117, 245, 0.4);
}

.module-card.enabled {
	border-color: rgba(58, 242, 155, 0.4);
	background: linear-gradient(180deg, rgba(25, 38, 48, 0.65) 0%, rgba(16, 30, 33, 0.9) 100%);
	box-shadow: 0 0 0 1px rgba(58, 242, 155, 0.08), 0 14px 34px rgba(3, 4, 10, 0.4);
}

.module-card.enabled::before {
	content: '';
	position: absolute;
	inset-block-start: 0;
	inset-inline: 20px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, var(--success), transparent);
	opacity: 0.7;
}

.module-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.module-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	font-size: 14.5px;
}

.module-title .module-ico {
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 9px;
	font-size: 15px;
	background: rgba(103, 117, 245, 0.12);
	border: 1px solid rgba(103, 117, 245, 0.18);
}

.module-card.enabled .module-ico {
	background: rgba(58, 242, 155, 0.1);
	border-color: rgba(58, 242, 155, 0.22);
}

.module-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--bg-inset);
	color: var(--text-muted);
	border: 1px solid var(--border);
	white-space: nowrap;
}

.module-badge.instant {
	color: var(--warning);
	border-color: rgba(255, 200, 87, 0.3);
	background: rgba(255, 200, 87, 0.06);
}

.module-badge.detect {
	color: var(--accent);
	border-color: rgba(32, 183, 255, 0.3);
	background: rgba(32, 183, 255, 0.06);
}

.module-badge.limit {
	color: var(--brand-2);
	border-color: rgba(103, 117, 245, 0.32);
	background: rgba(103, 117, 245, 0.08);
}

.module-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.field-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.field-row label {
	font-size: 12.5px;
	color: var(--text-muted);
}

input[type='number'],
input[type='text'],
input[type='color'],
select,
textarea {
	background: var(--bg-inset);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 8px 11px;
	border-radius: 10px;
	font-family: var(--font-fa);
	font-size: 13px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
	width: 100%;
	resize: vertical;
	line-height: 1.8;
}

select[multiple] {
	height: auto;
	min-height: 120px;
	padding: 6px;
}

select[multiple] option {
	padding: 5px 8px;
	border-radius: 6px;
}

select[multiple] option:checked {
	background: var(--brand);
	color: #fff;
}

input[type='number']:focus,
input[type='text']:focus,
input[type='color']:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(103, 117, 245, 0.15);
}

input[type='color'] {
	width: 60px;
	padding: 3px;
	cursor: pointer;
}

input[type='number'] {
	font-family: var(--font-mono);
	text-align: center;
}

/* toggle switch */
.switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 25px;
	flex-shrink: 0;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #2b3057;
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: 0.22s cubic-bezier(0.65, 0, 0.35, 1);
}

.slider::before {
	content: '';
	position: absolute;
	height: 19px;
	width: 19px;
	right: 2.5px;
	bottom: 2.5px;
	background: #d8dcf2;
	border-radius: 50%;
	transition: 0.22s cubic-bezier(0.65, 0, 0.35, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
	background: linear-gradient(90deg, #22c48a, var(--success));
	border-color: transparent;
	box-shadow: 0 0 16px rgba(58, 242, 155, 0.4);
}

input:checked + .slider::before {
	transform: translateX(-19px);
	background: #fff;
}

/* ---------- Panel sections ---------- */
.panel-section {
	background: linear-gradient(180deg, rgba(23, 26, 51, 0.6) 0%, rgba(18, 21, 42, 0.85) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-bottom: 22px;
	box-shadow: var(--shadow-1);
}

.panel-section h3 {
	margin: 0 0 18px;
	font-size: 16.5px;
	display: flex;
	align-items: center;
	gap: 9px;
}

.panel-section h3 .hint {
	margin-inline-start: auto;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--bg-inset);
	border: 1px solid var(--border);
	padding: 3px 10px;
	border-radius: 999px;
}

.section-title {
	margin: 30px 0 16px;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 9px;
}

.section-title .count-badge {
	font-family: var(--font-mono);
	font-size: 12px;
	background: rgba(103, 117, 245, 0.12);
	color: #9aa8ff;
	border: 1px solid rgba(103, 117, 245, 0.25);
	padding: 2px 10px;
	border-radius: 999px;
}

.form-group {
	margin-bottom: 14px;
}

.form-group label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	color: var(--text-2);
}

.inline-form {
	display: flex;
	gap: 12px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.list-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--bg-inset);
	border: 1px solid var(--border);
	border-radius: 12px;
	margin-bottom: 9px;
	transition: border-color 0.16s ease;
}

.list-row:hover {
	border-color: rgba(103, 117, 245, 0.35);
}

.list-row .remove-btn {
	background: transparent;
	border: 1px solid rgba(255, 93, 115, 0.28);
	color: var(--danger);
	padding: 5px 13px;
	border-radius: 9px;
	font-family: var(--font-fa);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.16s ease;
}

.list-row .remove-btn:hover {
	background: rgba(255, 93, 115, 0.12);
	border-color: var(--danger);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	background: rgba(88, 101, 242, 0.12);
	color: #a3b0ff;
	border: 1px solid rgba(88, 101, 242, 0.24);
}

.save-btn {
	margin-top: 2px;
	width: 100%;
	padding: 9px;
	border-radius: 10px;
	border: 1px solid var(--border);
	background: var(--bg-inset);
	color: var(--text-2);
	cursor: pointer;
	font-family: var(--font-fa);
	font-size: 12.5px;
	font-weight: 700;
	transition: all 0.16s ease;
}

.save-btn:hover {
	border-color: var(--brand);
	color: var(--brand-2);
	background: rgba(103, 117, 245, 0.08);
}

/* ---------- Toast ---------- */
.saved-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(58, 242, 155, 0.08);
	border: 1px solid rgba(58, 242, 155, 0.32);
	color: var(--success);
	padding: 12px 18px;
	border-radius: 14px;
	margin-bottom: 22px;
	font-size: 14px;
	font-weight: 600;
	animation: toast-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) both;
	box-shadow: 0 10px 30px rgba(58, 242, 155, 0.1);
}

@keyframes toast-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Empty state ---------- */
.empty-state {
	text-align: center;
	color: var(--text-muted);
	padding: 80px 20px;
}

.empty-state .empty-ico {
	font-size: 52px;
	margin-bottom: 14px;
	opacity: 0.85;
}

.empty-state h2 {
	margin-bottom: 8px;
}

/* ---------- Login ---------- */
.login-screen {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	position: relative;
	overflow: hidden;
}

.login-screen::before,
.login-screen::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
}

.login-screen::before {
	width: 520px;
	height: 520px;
	inset-block-start: -160px;
	inset-inline-start: -120px;
	background: rgba(103, 117, 245, 0.22);
}

.login-screen::after {
	width: 480px;
	height: 480px;
	inset-block-end: -180px;
	inset-inline-end: -120px;
	background: rgba(32, 183, 255, 0.16);
}

.login-card {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	text-align: center;
	padding: 48px 44px 44px;
	background: linear-gradient(180deg, rgba(24, 27, 52, 0.85) 0%, rgba(15, 17, 34, 0.9) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-2), 0 0 0 1px rgba(103, 117, 245, 0.1);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.login-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 26px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.03em;
}

.login-emblem {
	width: 74px;
	height: 74px;
	margin: 0 auto 20px;
	display: grid;
	place-items: center;
	border-radius: 24px;
	background: linear-gradient(135deg, #3a47cf 0%, #2f8fe0 100%);
	box-shadow: 0 0 50px var(--brand-glow), 0 18px 40px rgba(58, 71, 207, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
	animation: float 5s ease-in-out infinite;
}

.login-emblem svg {
	width: 38px;
	height: 38px;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-7px);
	}
}

.login-card h1 {
	font-family: var(--font-display);
	font-size: 34px;
	margin: 0 0 12px;
}

.login-card .login-desc {
	color: var(--text-2);
	margin: 0 auto 28px;
	max-width: 400px;
	line-height: 2;
	font-size: 14.5px;
}

.login-pills {
	display: flex;
	justify-content: center;
	gap: 9px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.login-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-2);
	background: var(--bg-inset);
	border: 1px solid var(--border);
	padding: 6px 13px;
	border-radius: 999px;
}

.login-foot {
	margin-top: 26px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-muted);
	letter-spacing: 0.06em;
}

.login-foot .lock-ico {
	font-size: 11px;
	vertical-align: 1px;
}

/* ---------- Guild hero ---------- */
.guild-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	padding: 26px 28px;
	background: linear-gradient(135deg, rgba(31, 35, 68, 0.55) 0%, rgba(14, 16, 32, 0.9) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	margin-bottom: 26px;
	box-shadow: var(--shadow-1);
}

.guild-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(400px 200px at 12% -20%, rgba(103, 117, 245, 0.16), transparent 70%),
		radial-gradient(360px 200px at 96% 130%, rgba(32, 183, 255, 0.1), transparent 70%);
}

.hero-ring {
	position: relative;
	width: 108px;
	height: 108px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
}

.ring-track {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(from 150deg, transparent 0deg, transparent 0deg, transparent 360deg);
	transition: background 0.8s ease;
}

.ring-track.s0 {
	background: conic-gradient(from 150deg, transparent 0deg, transparent 360deg);
}

.ring-track.s1 {
	background: conic-gradient(from 150deg, #ff6d81 0deg 120deg, rgba(255, 255, 255, 0.08) 120deg 360deg);
}

.ring-track.s2 {
	background: conic-gradient(from 150deg, var(--warning) 0deg 240deg, rgba(255, 255, 255, 0.08) 240deg 360deg);
}

.ring-track.s3 {
	background: conic-gradient(from 150deg, var(--success) 0deg 360deg, rgba(255, 255, 255, 0.08) 360deg);
}

.ring-inner {
	position: relative;
	width: 82px;
	height: 82px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	background: var(--bg-1);
	border-radius: 50%;
	border: 1px solid var(--border);
}

.ring-inner .big {
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--text);
}

.ring-inner .cap {
	font-size: 10px;
	color: var(--text-muted);
}

.hero-guild {
	position: relative;
	flex: 1;
	min-width: 200px;
}

.hero-guild .hero-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	object-fit: cover;
	margin-bottom: 12px;
	box-shadow: 0 6px 18px rgba(3, 4, 10, 0.5), 0 0 0 1px rgba(103, 117, 245, 0.25);
}

.hero-guild .placeholder-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: linear-gradient(135deg, #3a47cf 0%, #5b9bf5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 12px;
	box-shadow: 0 6px 18px rgba(58, 71, 207, 0.4);
}

.hero-title {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.hero-title h1 {
	font-family: var(--font-display);
	font-size: 28px;
	margin: 0;
}

.hero-stats {
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hero-stat .stat-label {
	font-size: 11.5px;
	color: var(--text-muted);
}

.hero-stat .stat-value {
	font-family: var(--font-mono);
	font-size: 19px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}

.hero-actions {
	position: relative;
	display: flex;
	gap: 10px;
	margin-inline-start: auto;
	flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
	.topbar {
		padding: 10px 16px;
	}

	.brand {
		font-size: 17px;
	}

	.brand .mark {
		width: 30px;
		height: 30px;
	}

	.guild-hero {
		padding: 22px;
		gap: 18px;
	}

	.hero-actions {
		margin-inline-start: 0;
		width: 100%;
	}

	.login-card {
		padding: 36px 22px 30px;
	}

	.login-card h1 {
		font-size: 27px;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
