/* ── Profile hero ─────────────────────────────────────── */
.profil-hero {
	padding: 36px 40px;
	display: flex;
	align-items: center;
	gap: 28px;
	border-top: 1px solid rgba(83, 128, 255, 0.25);
	border-bottom: 1px solid rgba(83, 128, 255, 0.25);
}

.profil-avatar {
	width: 86px;
	height: 86px;
	border-radius: 50%;
	border: 2px solid #5380FF;
	background: #161C2D;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-family: 'ChooseSpaces', sans-serif;
	color: #fff;
	flex-shrink: 0;
}

.profil-info {
	flex: 1;
}

.profil-name {
	font-size: 28px;
	font-family: 'ChooseSpaces', sans-serif;
	font-weight: normal;
	color: #fff;
	margin-bottom: 6px;
}

.profil-since {
	font-size: 14px;
	color: #8491AF;
	font-family: 'Inter', sans-serif;
}

.profil-stats {
	display: flex;
	gap: 12px;
}

.profil-stat-box {
	background: #161C2D;
	border: 1px solid #252C40;
	border-radius: 10px;
	padding: 14px 26px;
	text-align: center;
	min-width: 90px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	user-select: none;
}

.profil-stat-box:hover {
	border-color: #5380FF;
	background: #1a2035;
}

.profil-stat-box.active {
	border-color: #5380FF;
	background: rgba(83, 128, 255, 0.08);
}

.profil-stat-box.active .stat-lbl {
	color: #5380FF;
}

/* ── Activity section ──────────────────────────────────── */
.profil-activity {
	border-bottom: 1px solid #1a2035;
}

.profil-activity-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 40px 36px;
}

.activity-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.activity-item {
	display: block;
	text-decoration: none;
	background: #161C2D;
	border: 1px solid #252C40;
	border-left: 3px solid #5380FF;
	border-radius: 8px;
	padding: 16px 20px;
	transition: background 0.15s, border-color 0.15s;
	cursor: pointer;
}

.activity-item:hover {
	background: #1a2035;
	border-color: #5380FF;
	border-left-color: #5380FF;
}

.activity-item-title {
	font-size: 15px;
	font-family: 'ChooseSpaces', sans-serif;
	color: #EDF0F6;
	margin-bottom: 6px;
}

.activity-item-meta {
	font-size: 12px;
	font-family: 'Inter', sans-serif;
	color: #8491AF;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.activity-item-body {
	font-size: 13px;
	font-family: 'Inter', sans-serif;
	color: #8491AF;
	margin-bottom: 6px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.activity-item-sub {
	font-size: 12px;
	font-family: 'Inter', sans-serif;
	color: #3A4260;
}

.activity-item-sub span {
	color: #5380FF;
}

.activity-empty {
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #3A4260;
	padding: 12px 0;
}

.stat-num {
	display: block;
	font-size: 22px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.stat-lbl {
	font-size: 12px;
	color: #8491AF;
	font-family: 'Inter', sans-serif;
}

/* ── Settings section ─────────────────────────────────── */
.profil-settings-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 40px 60px;
}

.settings-title {
	font-size: 26px;
	font-family: 'ChooseSpaces', sans-serif;
	font-weight: normal;
	color: #fff;
	margin-bottom: 32px;
}

.settings-layout {
	display: flex;
	gap: 32px;
	margin-bottom: 32px;
}

/* Avatar upload box */
.avatar-upload-box {
	width: 160px;
	flex-shrink: 0;
	background: #161C2D;
	border: 1px solid #252C40;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	padding: 24px;
	min-height: 150px;
	transition: border-color 0.15s;
	user-select: none;
}

.avatar-upload-box:hover {
	border-color: #5380FF;
}

.upload-type {
	font-size: 15px;
	color: #5380FF;
	font-family: 'ChooseSpaces', sans-serif;
}

.upload-label {
	font-size: 14px;
	color: #fff;
	font-family: 'ChooseSpaces', sans-serif;
}

.upload-hint {
	font-size: 12px;
	color: #8491AF;
	font-family: 'Inter', sans-serif;
}

/* Form fields */
.settings-fields {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.field-row {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}

.field-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field-label {
	font-size: 13px;
	color: #8491AF;
	font-family: 'Inter', sans-serif;
}

.field-input {
	background: #161C2D;
	border: 1px solid #252C40;
	border-radius: 8px;
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	outline: none;
	width: 100%;
	transition: border-color 0.2s;
}

.field-input:not([readonly]):focus {
	border-color: #5380FF;
}

.field-input[readonly] {
	cursor: default;
	color: #8491AF;
}

.btn-modifier {
	background: #1E2436;
	border: 1px solid #252C40;
	border-radius: 8px;
	padding: 12px 20px;
	color: #5380FF;
	font-size: 13px;
	font-family: sans-serif;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	font-weight: 750;
	transition: background 0.15s;
}

.btn-modifier:hover {
	background: #252C40;
}

.btn-modifier.is-cancel {
	color: #8491AF;
}

.btn-save {
	background: #5380FF;
	border: none;
	border-radius: 10px;
	padding: 14px 28px;
	color: #fff;
	font-size: 14px;
	font-family: sans-serif;
	font-weight: 750;
	cursor: pointer;
	align-self: flex-start;
	transition: background 0.15s;
}

.btn-save:hover {
	background: #4570ef;
}

/* Danger zone */
.danger-zone {
	border: 1px solid rgba(239, 68, 68, 0.4);
	border-radius: 10px;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.danger-label {
	color: #ef4444;
	font-size: 15px;
	font-family: 'ChooseSpaces', sans-serif;
}

.btn-delete {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid #ef4444;
	border-radius: 8px;
	padding: 10px 20px;
	color: #ef4444;
	font-size: 13px;
	font-family: sans-serif;
	cursor: pointer;
	font-weight: 750;
	transition: background 0.15s;
}

.btn-delete:hover {
	background: rgba(239, 68, 68, 0.25);
}

.btn-account-active {
	background-color: #1A1E2A;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-family: 'ChooseSpaces', sans-serif;
	font-size: 13px;
	letter-spacing: 0.06em;
	cursor: pointer;
	text-decoration: none;
}

.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 200;
	align-items: center;
	justify-content: center;
}

.modal-overlay.active {
	display: flex;
}

.modal-box {
	background: #161C2D;
	border: 1px solid #252C40;
	border-radius: 16px;
	padding: 36px;
	max-width: 460px;
	width: 90%;
}

.modal-title {
	font-size: 20px;
	font-family: 'ChooseSpaces', sans-serif;
	font-weight: normal;
	color: #ef4444;
	margin-bottom: 14px;
}

.modal-desc {
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	color: #8491AF;
	line-height: 1.6;
	margin-bottom: 20px;
}

.modal-desc strong {
	color: #fff;
}

.modal-confirm-hint {
	font-size: 13px;
	font-family: 'Inter', sans-serif;
	color: #8491AF;
	margin-bottom: 10px;
}

.modal-confirm-hint strong {
	color: #fff;
	font-family: monospace;
}

.modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

.btn-modal-cancel {
	background: #1E2436;
	border: 1px solid #252C40;
	border-radius: 8px;
	padding: 10px 20px;
	color: #8491AF;
	font-family: 'ChooseSpaces', sans-serif;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s;
}

.btn-modal-cancel:hover {
	background: #252C40;
}

.btn-modal-confirm {
	background: #ef4444;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	color: #fff;
	font-family: 'ChooseSpaces', sans-serif;
	font-size: 13px;
	cursor: pointer;
	transition: opacity 0.15s;
}

.btn-modal-confirm:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.modal-error {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #2a0d0d;
	border: 1px solid #4d1a1a;
	color: #f87171;
	font-size: 13px;
	font-family: 'Inter', sans-serif;
	display: none;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
	.profil-hero {
		flex-wrap: wrap;
		padding: 28px 20px;
		gap: 20px;
	}

	.profil-info {
		flex: 1;
		min-width: 0;
	}

	.profil-stats {
		width: 100%;
		justify-content: space-between;
	}

	.profil-stat-box {
		flex: 1;
		padding: 12px 10px;
	}

	.settings-layout {
		flex-direction: column;
	}

	.avatar-upload-box {
		width: 100%;
		min-height: 100px;
		flex-direction: row;
		gap: 16px;
	}

	.profil-settings-wrap {
		padding: 28px 20px 48px;
	}

	.profil-activity-wrap {
		padding: 20px 20px 28px;
	}
}

@media (max-width: 480px) {
	.profil-name {
		font-size: 22px;
	}

	.field-row {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-modifier {
		align-self: flex-end;
	}
}