* { box-sizing: border-box; }

/* Figma StudyTinder theme */
:root {
	--color-bg: #0f172a;
	--color-foreground: #f1f5f9;
	--color-surface: rgba(30, 41, 59, 0.5);
	--color-surface-strong: rgba(30, 41, 59, 0.92);
	--color-card: rgba(30, 41, 59, 0.5);
	--color-border: rgba(148, 163, 184, 0.2);
	--color-border-strong: rgba(96, 165, 250, 0.35);
	--color-text: #f1f5f9;
	--color-muted: #94a3b8;
	--color-primary: #3b82f6;
	--color-secondary: #8b5cf6;
	--color-accent: #ec4899;
	--color-destructive: #ef4444;
	--color-primary-strong: #2563eb;
	--radius: 0.625rem;
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;
	--shadow-soft: 0 15px 40px rgba(15, 23, 42, 0.45);
	--shadow-card: 0 20px 45px rgba(15, 23, 42, 0.55);
	--shadow-btn: 0 12px 30px rgba(59, 130, 246, 0.35);
}

html, body { height: 100%; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: "Inter", "Segoe UI", "SF Pro Display", Arial, sans-serif;
	background: var(--color-bg);
	color: var(--color-text);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
	content: "";
	position: fixed;
	inset: -30vh;
	z-index: -2;
	filter: blur(0);
	transform: translateZ(0);
}

body::before {
	background: radial-gradient(400px circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 55%),
		radial-gradient(500px circle at 80% 10%, rgba(14, 165, 233, 0.25), transparent 60%),
		radial-gradient(450px circle at 40% 80%, rgba(236, 72, 153, 0.2), transparent 65%),
		radial-gradient(520px circle at 85% 70%, rgba(30, 64, 175, 0.3), transparent 70%);
	animation: gradientShift 24s ease-in-out infinite;
	opacity: 0.85;
}

body::after {
	background: radial-gradient(600px circle at 15% 120%, rgba(59, 130, 246, 0.45), transparent 45%),
		radial-gradient(500px circle at 85% 0%, rgba(124, 58, 237, 0.45), transparent 45%),
		radial-gradient(700px circle at 50% 50%, rgba(14, 165, 233, 0.3), transparent 55%);
	animation: pulseGlow 18s ease-in-out infinite;
	opacity: 0.4;
	z-index: -3;
}

.home-page {
	background: #041137;
}

.home-page::before,
.home-page::after {
	display: none;
}

html.auth-page {
	background: #07152f !important;
}

.auth-page-backdrop {
	display: none !important;
}

body.auth-page {
	background: #07152f !important;
	min-height: 100vh;
}

body.auth-page::before,
body.auth-page::after {
	display: none !important;
}

body.auth-page .site-header {
	display: none;
}

body.auth-page .site-footer {
	display: none;
}

body.auth-page .container {
	background: transparent !important;
	max-width: none;
	padding: 0;
	min-height: 100vh;
}

body.auth-page .auth-section,
body.auth-page .auth-bg {
	background: transparent !important;
}

body.auth-page .auth-section {
	min-height: 100vh;
}

body.auth-page .header-accent {
	display: none;
}

.auth-shell {
	width: 100%;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.45rem;
}

.auth-home-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.25rem 0.5rem;
	text-decoration: none;
}

.auth-home-link::before {
	content: "";
	position: absolute;
	inset: -12px -20px;
	background: radial-gradient(circle, rgba(117, 139, 255, 0.26) 0%, rgba(117, 139, 255, 0) 72%);
	filter: blur(10px);
	z-index: -1;
}

.auth-home-link .logo-icon svg {
	width: 36px;
	height: 36px;
}

.auth-home-link .logo-link {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.site-header,
.site-footer {
	text-align: center;
	padding: 16px;
	color: var(--color-text);
}

.site-header {
	position: sticky;
	top: 0;
	padding: 0;
	background: rgba(7, 17, 45, 0.9);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(128, 145, 186, 0.2);
	box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42);
	z-index: 40;
}

.header-accent {
	display: none;
}

.home-page .header-accent {
	display: none;
	height: 0;
	background: transparent;
	border: 0;
}

.site-footer {
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -10px 25px rgba(2, 6, 23, 0.35);
}

.site-footer p {
	margin: 0;
	color: var(--color-muted);
	letter-spacing: 0.01em;
}

.navbar {
	display: grid;
	grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
	align-items: center;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2rem;
	min-height: 74px;
	gap: 1rem;
}

.logo-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	transition: opacity 0.2s;
}

.logo-wrap:hover {
	opacity: 0.9;
}

.logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	transition: color 0.2s ease, transform 0.2s ease;
}

.logo-wrap:hover .logo-icon {
	color: #60a5fa;
	transform: translateY(-1px);
}

.logo-link {
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.nav-center {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.nav-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
}

.nav-item,
.nav-link-muted,
.nav-btn-primary,
.nav-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.7rem 1.05rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: #9fb2d4;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-item {
	background: transparent;
	border: 1px solid transparent;
}

.nav-icon {
	display: inline-flex;
	opacity: 0.8;
}

.nav-item:hover {
	color: #c8d6f2;
	background: rgba(24, 39, 78, 0.6);
	border-color: rgba(90, 110, 160, 0.45);
}

.nav-link-muted {
	color: #8ea2c8;
}

.nav-link-muted:hover {
	color: #d6e0f5;
	background: rgba(24, 39, 78, 0.55);
}

.nav-btn-primary {
	background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
	border: 1px solid transparent;
	color: white !important;
	min-width: 126px;
	padding: 0.68rem 1.6rem !important;
	box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.nav-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 34px rgba(73, 138, 245, 0.4);
}

.nav-btn-outline {
	border: 1px solid rgba(112, 133, 173, 0.55);
	color: #d6e0f5;
	background: rgba(17, 33, 71, 0.45);
}

.nav-btn-outline:hover {
	background: rgba(35, 52, 92, 0.78);
	border-color: rgba(154, 177, 222, 0.65);
}

.container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	padding: 16px 24px 48px;
	gap: 16px;
	position: relative;
	z-index: 1;
	animation: fadeInUp 0.7s ease both;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

.home-page .container {
	max-width: none;
	padding: 0;
	gap: 0;
	animation: none;
}

.home-page .flash-messages {
	top: 72px;
	left: max(8px, calc((100vw - 1600px) / 2 + 8px));
	transform: none;
	width: min(540px, calc(100vw - 16px));
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.home-page .site-footer {
	display: none;
}

.card {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 32px;
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
	box-shadow: var(--shadow-card);
	backdrop-filter: blur(22px);
	position: relative;
	overflow: hidden;
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
	animation: fadeInUp 0.6s ease both;
}

.card h2 { margin-top: 0; }

.card::before {
	content: "";
	position: absolute;
	inset: -45% 20% auto;
	height: 140px;
	background: radial-gradient(140px circle at center, rgba(59, 130, 246, 0.25), transparent 65%);
	filter: blur(14px);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 60px rgba(15, 23, 42, 0.65);
	border-color: var(--color-border-strong);
}

.card:hover::before { opacity: 1; }

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.2);
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}

.hero-eyebrow-icon {
	flex-shrink: 0;
}

.hero-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 1.5rem;
	color: var(--color-foreground);
	letter-spacing: -0.02em;
}

.hero-title .highlight {
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.hero-description {
	color: var(--color-muted);
	font-size: 1.125rem;
	line-height: 1.7;
	margin: 0 0 2rem;
	max-width: 32rem;
}

.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.btn-hero-ghost {
	background: var(--color-card) !important;
	border: 1px solid var(--color-border) !important;
	color: var(--color-foreground) !important;
}

.btn-hero-ghost:hover {
	background: rgba(51, 65, 85, 0.6) !important;
}

.admin-dashboard {
	align-items: stretch;
	gap: 28px;
}

.admin-header {
	text-align: center;
}

.admin-header h2 {
	margin: 0 0 12px;
	font-size: 2rem;
	color: #f8fafc;
}

.admin-subtitle {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.admin-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.admin-kpi-line {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.admin-kpi-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(30, 41, 59, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.22);
	color: rgba(226, 232, 240, 0.88);
	font-size: 0.86rem;
}

.admin-kpi-item strong {
	color: #f8fafc;
	font-size: 0.95rem;
}

.admin-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.admin-stat-card {
	background: rgba(30, 41, 59, 0.88);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 16px 32px rgba(2, 6, 23, 0.4);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 50px rgba(15, 23, 42, 0.55);
}

.admin-stat-card .label {
	display: block;
	color: var(--color-muted);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.admin-stat-card strong {
	display: block;
	font-size: 1.8rem;
	color: #f8fafc;
}

.admin-stat-card small {
	display: block;
	margin-top: 6px;
	color: rgba(226, 232, 240, 0.7);
}

.admin-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.admin-column {
	background: rgba(30, 41, 59, 0.88);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.45);
}

.admin-column h3 {
	margin-top: 0;
	margin-bottom: 18px;
	color: #f3f4f6;
	font-size: 1.2rem;
}

.admin-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.admin-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 12px;
}

.admin-list .primary {
	color: #f8fafc;
	font-weight: 600;
}

.admin-list .meta {
	color: rgba(226, 232, 240, 0.75);
	font-size: 0.9rem;
}

.admin-list .time {
	color: rgba(148, 163, 184, 0.7);
	font-size: 0.8rem;
}

.admin-column .empty {
	color: rgba(226, 232, 240, 0.7);
	margin: 0;
}

.admin-page {
	align-items: stretch;
	gap: 22px;
}

body.admin-users-page .container,
body.admin-reports-page .container {
	max-width: 1700px;
	padding-left: 18px;
	padding-right: 18px;
}

body.admin-users-page .admin-users-card {
	max-width: 1560px;
}

body.admin-reports-page .admin-reports-card {
	max-width: 1560px;
}

.admin-page-header {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.admin-head-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.admin-page-header h2 {
	margin: 0 0 10px;
	color: #f8fafc;
}

.admin-table-wrapper {
	overflow-x: auto;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.admin-table th,
.admin-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-table thead th {
	font-weight: 600;
	color: rgba(226, 232, 240, 0.85);
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.admin-table tbody tr:hover {
	background: rgba(15, 23, 42, 0.6);
}

.admin-table-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.admin-table-actions-col {
	flex-direction: column;
	align-items: stretch;
	min-width: 250px;
}

.admin-inline-form {
	margin: 0;
}

.admin-inline-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.admin-select {
	min-width: 150px;
	max-width: 190px;
	height: 38px;
	padding: 6px 34px 6px 12px;
	line-height: 1.2;
	font-size: 0.95rem;
	text-overflow: ellipsis;
}

.admin-inline-row .admin-select {
	flex: 1 1 160px;
}

.admin-compact-input {
	min-width: 120px;
	max-width: 170px;
	height: 38px;
	padding: 6px 10px;
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	font-size: 0.75rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.2);
	color: rgba(226, 232, 240, 0.85);
}

.badge-success {
	background: rgba(34, 197, 94, 0.25);
	color: #bbf7d0;
}

.badge-danger {
	background: rgba(239, 68, 68, 0.2);
	color: #fecaca;
}

.badge-warning {
	background: rgba(245, 158, 11, 0.22);
	color: #fcd34d;
}

.badge-info {
	background: rgba(59, 130, 246, 0.22);
	color: #bfdbfe;
}

.admin-report-actions {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.admin-report-actions form {
	margin: 0;
}

.admin-report-resolved {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.admin-messages-table td:nth-child(1) {
	width: 140px;
	white-space: nowrap;
}

.admin-messages-table td:nth-child(2),
.admin-messages-table td:nth-child(3) {
	width: 180px;
	white-space: nowrap;
}

.message-bubble {
	background: rgba(59, 130, 246, 0.15);
	border: 1px solid rgba(59, 130, 246, 0.25);
	border-radius: 12px;
	padding: 10px 14px;
	color: rgba(226, 232, 240, 0.92);
	line-height: 1.5;
}

.auth-section {
	position: relative;
	min-height: 100vh;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 3.5rem 1.25rem 2.25rem;
	background: transparent;
}

.auth-bg {
	display: none !important;
}

.auth-card {
	max-width: 560px;
	width: 100%;
	background: transparent;
	backdrop-filter: none;
	border: none;
	border-radius: 0;
	padding: 2rem 2.3rem 2.1rem;
	box-shadow: none;
}

.auth-tabs {
	display: flex;
	gap: 10px;
	padding: 0;
	background: transparent;
	border-radius: 999px;
	margin-bottom: 2rem;
}

.auth-tab {
	flex: 1;
	padding: 11px 18px;
	border-radius: 999px;
	font-size: 1.1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	background: rgba(36, 48, 88, 0.72);
	color: var(--color-muted);
	transition: color 0.2s, background 0.2s;
}

.auth-tab:hover {
	color: var(--color-text);
}

.auth-tab-active {
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	color: white !important;
	box-shadow: 0 8px 18px rgba(59, 130, 246, 0.38);
}

.auth-title-block {
	text-align: center;
	margin-bottom: 2rem;
}

.auth-title-block h2 {
	margin: 0 0 0.5rem;
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.auth-subtitle {
	text-align: center;
	color: var(--color-muted);
	margin: 0 0 1.5rem;
	font-size: 1.1rem;
}

.input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
}

.input-with-icon .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-muted);
	pointer-events: none;
}

.input-with-icon .form-input-icon {
	padding-left: 44px;
}

.input-with-icon-right .form-input-icon,
.input-with-icon-right .form-input-password {
	padding-left: 44px;
	padding-right: 48px;
}

.input-with-icon-right .input-icon {
	left: 14px;
}

.input-with-icon-right .input-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--color-muted);
	transition: color 0.2s;
}

.input-with-icon-right .input-toggle-password:hover {
	color: var(--color-text);
}

.input-with-icon-right .icon-eye-off {
	display: none;
}

.input-with-icon-right.password-visible .icon-eye {
	display: none;
}

.input-with-icon-right.password-visible .icon-eye-off {
	display: block;
}

.form-group-forgot {
	align-items: flex-end;
	margin-top: -8px;
}

.auth-forgot-link {
	font-size: 14px;
	color: #3b82f6;
	text-decoration: none;
}

.auth-forgot-link:hover {
	text-decoration: underline;
}

.auth-submit {
	border-radius: 16px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
	padding: 17px 28px;
	font-size: 1.15rem;
	font-weight: 700;
}

.auth-submit:hover {
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
	transform: translateY(-1px);
}

.auth-divider {
	position: relative;
	display: flex;
	align-items: center;
	margin: 2rem 0;
}

.auth-divider::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: var(--color-border);
}

.auth-divider-text {
	position: relative;
	padding: 0 1rem;
	background: rgba(30, 41, 59, 0.85);
	color: var(--color-muted);
	font-size: 14px;
}

.auth-social {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.auth-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 24px;
	background: rgba(51, 65, 85, 0.4);
	border: 1px solid var(--color-border);
	border-radius: 14px;
	color: var(--color-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.auth-social-btn:hover:not(:disabled) {
	background: rgba(51, 65, 85, 0.5);
	border-color: rgba(148, 163, 184, 0.3);
}

.auth-social-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.auth-social-btn svg {
	flex-shrink: 0;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.form-label {
	font-weight: 500;
	color: var(--color-text);
}

.auth-card .form-label {
	font-size: 15px;
}

.auth-card .form-input {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--color-border);
	border-radius: 14px;
	background: rgba(51, 65, 85, 0.4);
	color: var(--color-text);
	font-size: 16px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Keep text clear of left/right icons in auth fields */
.auth-card .input-with-icon .form-input-icon {
	padding-left: 50px;
}

.auth-card .input-with-icon-right .form-input-icon,
.auth-card .input-with-icon-right .form-input-password {
	padding-left: 50px;
	padding-right: 52px;
}

.form-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: rgba(51, 65, 85, 0.3);
	color: var(--color-text);
	font-size: 16px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
	outline: none;
	border-color: rgba(59, 130, 246, 0.5);
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-errors {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.form-group .form-errors,
.chat-input .form-errors,
.group-chat-form .form-errors {
	margin-top: 6px;
}

.chat-ban-banner {
	margin-bottom: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fecaca;
	font-size: 0.9rem;
	line-height: 1.45;
}

.chat-ban-banner strong {
	color: #fee2e2;
}

.error {
	color: #f87171;
	font-size: 14px;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	letter-spacing: 0.01em;
	position: relative;
	overflow: hidden;
	background: rgba(148, 163, 184, 0.12);
	color: var(--color-text);
	backdrop-filter: blur(6px);
}

.btn::after {
	content: "";
	position: absolute;
	left: -120%;
	top: 0;
	width: 120%;
	height: 100%;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
	opacity: 0;
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn:hover::after {
	transform: translateX(120%);
	opacity: 0.35;
}

.btn:hover {
	transform: translateY(-2px) scale(1.01);
	box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
}

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

.btn:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.65);
	outline-offset: 3px;
}

.btn-primary {
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	color: white;
	box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
	background: linear-gradient(90deg, var(--color-primary-strong), #7c3aed);
	box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	color: var(--color-text);
	backdrop-filter: blur(12px);
}

.btn-secondary:hover {
	background: rgba(51, 65, 85, 0.6);
	border-color: var(--color-primary);
}

.btn-outline {
	background: transparent;
	color: #bfdbfe;
	border: 1px solid rgba(191, 219, 254, 0.6);
	box-shadow: none;
}

.btn-outline:hover {
	background: rgba(191, 219, 254, 0.12);
	color: white;
	border-color: rgba(191, 219, 254, 0.9);
}

.btn-danger {
	background: linear-gradient(135deg, #ef4444, #f97316);
	color: white;
	box-shadow: 0 14px 32px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
	background: linear-gradient(135deg, #dc2626, #ea580c);
}

.btn-full {
	width: 100%;
}

.action-buttons {
	display: flex;
	gap: 14px;
	margin-top: 24px;
	flex-wrap: wrap;
	justify-content: center;
}

/* Homepage sections */
.home-page .logo-icon svg {
	width: 34px;
	height: 34px;
}

.home-page .logo-link {
	font-size: 2rem;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 700;
}

.home-page .nav-item,
.home-page .nav-link-muted,
.home-page .nav-btn-primary,
.home-page .nav-btn-outline {
	font-size: 0.95rem;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 500;
}

.home-page .hero-section,
.home-page .features-section,
.home-page .cta-section {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	box-sizing: border-box;
}

.home-page .hero-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(106deg, #091a43 0%, #162452 54%, #201c45 100%);
}

.home-page .hero-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 44%, rgba(58, 106, 216, 0.24) 0%, rgba(58, 106, 216, 0) 38%),
		radial-gradient(circle at 86% 24%, rgba(139, 92, 246, 0.17) 0%, rgba(139, 92, 246, 0) 42%),
		linear-gradient(180deg, rgba(6, 12, 32, 0.08), rgba(5, 10, 28, 0.34));
	opacity: 0.72;
	pointer-events: none;
}

.home-page .hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1500px;
	margin: 0 auto;
	padding: 72px 4.2rem 84px;
	display: grid;
	grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr);
	gap: 3.8rem;
	align-items: center;
}

.home-page .hero-col-left {
	text-align: left;
}

.home-page .hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.56rem 1rem;
	border-radius: 999px;
	font-size: 1rem;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 500;
	background: rgba(40, 86, 174, 0.23);
	border: 1px solid rgba(66, 112, 199, 0.38);
	color: #4997f6;
	margin-bottom: 1.5rem;
}

.home-page .hero-eyebrow-icon {
	flex-shrink: 0;
	opacity: 0.95;
}

.home-page .hero-title {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: clamp(4rem, 4.9vw, 6rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.024em;
	margin: 0 0 1.5rem;
	color: #f3f7ff;
}

.home-page .hero-title .highlight {
	background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.home-page .hero-description {
	color: #9cadca;
	font-size: clamp(1.2rem, 1.35vw, 1.55rem);
	line-height: 1.52;
	margin: 0 0 2.15rem;
	max-width: 620px;
	font-weight: 500;
}

.home-page .hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
}

.home-page .hero-buttons .btn {
	min-height: 58px;
	padding: 0.78rem 1.85rem;
	font-size: clamp(0.98rem, 1.05vw, 1.16rem);
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	border-radius: 999px;
}

.home-page .hero-buttons .btn-primary {
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	color: #ffffff;
}

.home-page .btn-hero-ghost {
	background: rgba(20, 35, 67, 0.72) !important;
	border: 1px solid rgba(102, 126, 173, 0.4) !important;
	color: #e4ebfa !important;
}

.home-page .btn-hero-ghost:hover {
	background: rgba(29, 47, 84, 0.85) !important;
}

.home-page .hero-col-right {
	display: flex;
	justify-content: center;
}

.home-page .hero-image-wrap {
	width: 100%;
	max-width: 640px;
	border-radius: 26px;
	overflow: hidden;
	background: #d5d9e3;
	box-shadow: 0 30px 70px rgba(6, 11, 30, 0.55);
}

.home-page .hero-image {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 1 / 0.86;
	object-fit: cover;
}

.home-page .features-section {
	position: relative;
	background: #040f31;
	padding: 92px 0 96px;
}

.home-page .features-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: none;
}

.home-page .features-inner {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 4.2rem;
	text-align: center;
}

.home-page .features-title {
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: clamp(2.9rem, 4.1vw, 4.4rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
	color: #eef4ff;
}

.home-page .features-subtitle {
	font-size: clamp(1.22rem, 1.46vw, 1.5rem);
	color: #93a8ce;
	margin: 0.95rem auto 2.7rem;
	max-width: 780px;
	line-height: 1.45;
	font-weight: 500;
}

.home-page .features-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.home-page .feature-card {
	background: rgba(19, 35, 73, 0.9);
	border: 1px solid rgba(108, 128, 172, 0.35);
	border-radius: 22px;
	padding: 1.75rem 1.5rem 1.5rem;
	text-align: left;
	min-height: 238px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-page .feature-card:hover {
	transform: translateY(-6px);
	border-color: rgba(137, 163, 219, 0.62);
	box-shadow: 0 24px 48px rgba(4, 9, 28, 0.5);
}

.home-page .feature-icon-box {
	width: 58px;
	height: 58px;
	margin: 0 0 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(43, 57, 112, 0.58);
	border-radius: 16px;
}

.home-page .feature-icon-svg {
	color: #3b82f6;
	flex-shrink: 0;
}

.home-page .feature-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.82rem;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 700;
	color: #eef4ff;
}

.home-page .feature-card p {
	margin: 0;
	color: #96a8cc;
	line-height: 1.5;
	font-size: 1.11rem;
	font-weight: 500;
	max-width: 290px;
}

.home-page .cta-section {
	background: #040f31;
	padding: 20px 0 82px;
}

.home-page .cta-inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2rem;
}

.home-page .cta-card {
	background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
	border-radius: 28px;
	padding: 3.6rem 3rem 4rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 26px 62px rgba(8, 15, 42, 0.45);
}

.home-page .cta-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22) 0%, transparent 44%);
	opacity: 0.35;
}

.home-page .cta-card h2 {
	margin: 0 0 1.25rem;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-size: clamp(2.95rem, 4vw, 4.3rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #ffffff;
	position: relative;
}

.home-page .cta-card p {
	margin: 0 auto 2rem;
	font-size: clamp(1.34rem, 1.75vw, 1.8rem);
	line-height: 1.46;
	color: rgba(255, 255, 255, 0.9);
	max-width: 700px;
	position: relative;
	font-weight: 500;
}

.home-page .btn-cta {
	background: #ffffff !important;
	color: #3b82f6 !important;
	position: relative;
	box-shadow: 0 10px 26px rgba(6, 11, 30, 0.22) !important;
	padding: 0.8rem 2.1rem !important;
	border-radius: 999px !important;
	font-size: 1.28rem !important;
	font-family: "Inter", "Segoe UI", sans-serif;
	font-weight: 700 !important;
	min-height: 56px;
	min-width: 230px;
}

.home-page .btn-cta:hover {
	box-shadow: 0 14px 34px rgba(6, 11, 30, 0.3) !important;
	transform: translateY(-2px) !important;
}

@media (max-width: 1400px) {
	.home-page .hero-inner,
	.home-page .features-inner {
		padding-left: 3rem;
		padding-right: 3rem;
	}

	.home-page .hero-title {
		font-size: clamp(3.3rem, 4.6vw, 5rem);
	}

	.home-page .hero-description {
		font-size: 1.16rem;
		max-width: 560px;
	}

	.home-page .features-title {
		font-size: clamp(2.4rem, 3.6vw, 3.4rem);
	}

	.home-page .features-subtitle {
		font-size: clamp(1.14rem, 1.38vw, 1.28rem);
	}

	.home-page .feature-card h3 {
		font-size: 1.5rem;
	}

	.home-page .feature-card p {
		font-size: 1.04rem;
	}

	.home-page .cta-card {
		padding: 3rem 2.4rem 3.2rem;
	}

	.home-page .cta-card h2 {
		font-size: clamp(2.2rem, 3.4vw, 3.2rem);
	}

	.home-page .cta-card p {
		font-size: clamp(1.2rem, 1.45vw, 1.42rem);
	}
}

@media (max-width: 1140px) {
	.home-page .hero-inner {
		grid-template-columns: 1fr;
		gap: 2.8rem;
		padding-top: 56px;
		padding-bottom: 72px;
	}

	.home-page .hero-col-left {
		max-width: 740px;
		margin: 0 auto;
		text-align: center;
	}

	.home-page .hero-description {
		margin-left: auto;
		margin-right: auto;
	}

	.home-page .hero-buttons {
		justify-content: center;
	}

	.home-page .hero-col-right {
		max-width: 860px;
		margin: 0 auto;
	}

	.home-page .features-section {
		padding-top: 94px;
	}

	.home-page .features-grid {
		grid-template-columns: 1fr;
		max-width: 760px;
		margin: 0 auto;
	}
}

@media (max-width: 760px) {
	.home-page .hero-inner,
	.home-page .features-inner {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.home-page .hero-eyebrow {
		font-size: 0.95rem;
		margin-bottom: 1.4rem;
	}

	.home-page .hero-title {
		font-size: clamp(2.2rem, 10vw, 3.2rem);
		margin-bottom: 1.2rem;
	}

	.home-page .hero-description {
		font-size: 1.05rem;
		margin-bottom: 1.8rem;
	}

	.home-page .hero-buttons .btn {
		min-height: 52px;
		font-size: 1rem;
		padding: 0.74rem 1.4rem;
	}

	.home-page .hero-image-wrap {
		border-radius: 22px;
	}

	.home-page .features-section::before {
		height: 40px;
	}

	.home-page .features-title {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}

	.home-page .features-subtitle {
		font-size: 1rem;
		margin-bottom: 2rem;
	}

	.home-page .feature-card {
		min-height: 0;
		padding: 1.6rem;
	}

	.home-page .feature-icon-box {
		width: 62px;
		height: 62px;
		border-radius: 16px;
		margin-bottom: 1.2rem;
	}

	.home-page .feature-card h3 {
		font-size: 1.5rem;
	}

	.home-page .feature-card p {
		font-size: 1rem;
	}

	.home-page .cta-section {
		padding: 24px 0 68px;
	}

	.home-page .cta-inner {
		padding: 0 1.25rem;
	}

	.home-page .cta-card {
		padding: 2.4rem 1.25rem 2.7rem;
		border-radius: 24px;
	}

	.home-page .cta-card h2 {
		font-size: clamp(1.8rem, 8vw, 2.8rem);
	}

	.home-page .cta-card p {
		font-size: 1.06rem;
		margin-bottom: 1.9rem;
	}

	.home-page .btn-cta {
		min-width: 0;
		width: 100%;
		min-height: 58px;
		font-size: 1.2rem !important;
		padding: 0.7rem 1.5rem !important;
	}
}

.auth-links {
	margin-top: 20px;
	text-align: center;
}

.auth-links a {
	color: #bfdbfe;
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-links a:hover,
.auth-links a:focus-visible {
	color: #e0f2fe;
	text-decoration: underline;
}

.flash-messages {
	position: fixed;
	top: 72px;
	left: max(8px, calc((100vw - 1600px) / 2 + 8px));
	transform: none;
	z-index: 1200;
	width: min(540px, calc(100vw - 16px));
	max-width: 100%;
	animation: fadeInUp 0.6s ease both;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.flash {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 0;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.25);
	animation: fadeInPop 0.45s ease both;
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: auto;
}

.flash.is-hiding {
	opacity: 0;
	transform: translateY(-8px) scale(0.98);
}

.flash-success {
	background: #065f46;
	color: #d1fae5;
	border: 1px solid #10b981;
}

.flash-error {
	background: #7f1d1d;
	color: #fecaca;
	border: 1px solid #ef4444;
}

.flash-info {
	background: #1e3a8a;
	color: #dbeafe;
	border: 1px solid #3b82f6;
}

@media (max-width: 768px) {
	.flash-messages {
		top: 70px;
		left: 8px;
		width: calc(100% - 16px);
	}
}

.profile-info {
	margin-bottom: 20px;
}

.profile-info p {
	margin: 8px 0;
}

a {
	color: #bfdbfe;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: #e0f2fe;
}

/* РЎС‚РёР»Рё РґР»СЏ РїСЂРѕС„РёР»РµР№ */
.profile-form-card {
	max-width: 800px;
}

.form-description {
	color: #9ca3af;
	margin-bottom: 24px;
}

.profile-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.form-section {
	background: rgba(30, 41, 59, 0.88);
	border-radius: 16px;
	padding: 24px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.45);
}

.form-section h3 {
	margin-top: 0;
	margin-bottom: 16px;
	color: #f3f4f6;
	font-size: 1.1rem;
}

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

.form-textarea {
	padding: 12px;
	border: 1px solid #374151;
	border-radius: 12px;
	background: rgba(30, 41, 59, 0.92);
	color: var(--color-text);
	font-size: 16px;
	min-height: 100px;
	resize: vertical;
	font-family: inherit;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-textarea:focus {
	outline: none;
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
	transform: translateY(-1px);
}

.form-select {
	padding: 12px;
	border: 1px solid #374151;
	border-radius: 12px;
	background: rgba(30, 41, 59, 0.92);
	color: var(--color-text);
	font-size: 16px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-select:focus {
	outline: none;
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* РљР°СЂС‚РѕС‡РєРё РїСЂРѕС„РёР»РµР№ */
.profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.profiles-grid .profile-card {
	width: 100%;
	min-height: 500px;
	max-width: 560px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
}

.profiles-grid .profile-preview {
	flex: 1 1 auto;
}

.profiles-grid .profile-actions {
	margin-top: auto;
}

.profile-card {
	background: var(--color-surface-strong);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 20px 40px rgba(2, 6, 23, 0.5);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(20px);
}

.profile-card::before {
	content: "";
	position: absolute;
	inset: auto -40% -40%;
	height: 140px;
	background: radial-gradient(140px circle at center, rgba(59, 130, 246, 0.2), transparent 65%);
	filter: blur(25px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.profile-card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow: 0 30px 65px rgba(2, 6, 23, 0.65);
	border-color: rgba(96, 165, 250, 0.4);
}

.profile-card:hover::before { opacity: 1; }

.profile-header {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.profile-header h2, .profile-header h3 {
	margin-top: 0;
	margin-bottom: 8px;
	color: #f8fafc;
}

.profile-name-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-name-link:hover {
	color: #93c5fd;
	border-bottom-color: rgba(147, 197, 253, 0.45);
}

.profile-name-link:focus-visible {
	outline: 2px solid rgba(96, 165, 250, 0.45);
	outline-offset: 2px;
	border-radius: 4px;
}

.profile-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.course-badge {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
	color: white;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 12px 22px rgba(37, 99, 235, 0.35);
}

.university {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.profile-content {
	margin-bottom: 24px;
}

.profile-section {
	margin-bottom: 20px;
}

.profile-section h3, .profile-section h4 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #f3f4f6;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

.profile-section p {
	margin: 4px 0;
	line-height: 1.6;
	color: rgba(226, 232, 240, 0.92);
}

.description-preview {
	color: #9ca3af;
	font-style: italic;
}

/* РўРµРіРё */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.tag {
	background: rgba(148, 163, 184, 0.16);
	color: #e2e8f0;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	border: 1px solid rgba(148, 163, 184, 0.3);
	backdrop-filter: blur(8px);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tag:hover {
	transform: translateY(-2px);
	border-color: rgba(96, 165, 250, 0.45);
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.4);
}

.tag-interest {
	background: rgba(16, 185, 129, 0.2);
	border-color: rgba(16, 185, 129, 0.45);
	color: #d1fae5;
}

.tag-preferred {
	background: rgba(251, 146, 60, 0.2);
	border-color: rgba(234, 88, 12, 0.45);
	color: #fed7aa;
}

.tag-more {
	background: rgba(107, 114, 128, 0.25);
	color: #d1d5db;
	font-style: italic;
}

/* Р”РµР№СЃС‚РІРёСЏ РїСЂРѕС„РёР»СЏ */
.profile-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.profile-actions form {
	margin: 0;
}

/* РЎС‚РёР»Рё РґР»СЏ С„РѕС‚Рѕ РїСЂРѕС„РёР»СЏ */
.profile-header-content {
	display: flex;
	align-items: center;
	gap: 20px;
}

.profile-photo {
	flex-shrink: 0;
}

.profile-photo-img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(96, 165, 250, 0.4);
	box-shadow: 0 12px 25px rgba(15, 23, 42, 0.45);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	animation: softPulse 6s ease-in-out infinite;
}

.profile-photo-small {
	flex-shrink: 0;
}

.profile-photo-img-small {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(96, 165, 250, 0.35);
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
}

.profile-info {
	flex: 1;
}

.current-photo {
	margin-bottom: 16px;
	padding: 18px;
	background: rgba(30, 41, 59, 0.9);
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.28);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.current-photo h4 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #f3f4f6;
}

.profile-photo-preview {
	width: 100px;
	height: 100px;
	border-radius: 14px;
	object-fit: cover;
	border: 2px solid rgba(191, 219, 254, 0.4);
	box-shadow: 0 12px 25px rgba(15, 23, 42, 0.45);
}

.form-file {
	padding: 10px 14px;
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 12px;
	background: rgba(30, 41, 59, 0.92);
	color: var(--color-text);
	font-size: 16px;
	width: 100%;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-file:focus {
	outline: none;
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-help {
	color: #9ca3af;
	font-size: 14px;
	margin-top: 4px;
}

/* РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ */
/* РЈС‡РµР±РЅС‹Рµ РіСЂСѓРїРїС‹ */
.groups-page {
	max-width: 1120px;
}

.groups-page-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.groups-page-header h2 {
	margin: 0 0 8px;
	font-size: 2rem;
}

.groups-page-header p {
	margin: 0;
	color: var(--color-muted);
}

.groups-filter {
	display: grid;
	grid-template-columns: 2fr 1fr auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 20px;
}

.groups-filter-actions {
	display: flex;
	gap: 10px;
}

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

.group-card {
	background: rgba(30, 41, 59, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.group-card-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: flex-start;
}

.group-card h3 {
	margin: 0;
	font-size: 1.1rem;
}

.group-card h3 a {
	color: var(--color-text);
	text-decoration: none;
}

.group-card h3 a:hover {
	color: #93c5fd;
}

.group-card-subject {
	margin: 0;
	color: #cbd5e1;
	font-size: 0.95rem;
}

.group-card-desc {
	margin: 0;
	color: var(--color-muted);
	line-height: 1.5;
}

.group-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: #cbd5e1;
	font-size: 0.9rem;
}

.group-card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.group-card-actions form {
	margin: 0;
}

.groups-empty {
	padding: 30px 18px;
	border: 1px dashed rgba(148, 163, 184, 0.35);
	border-radius: 16px;
	text-align: center;
}

.groups-empty h3 {
	margin: 0 0 10px;
}

.groups-empty p {
	color: var(--color-muted);
	margin: 0 0 16px;
}

.groups-form-card {
	max-width: 860px;
}

.groups-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

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

.groups-textarea {
	min-height: 128px;
	resize: vertical;
}

.groups-form-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.group-detail-card {
	max-width: 980px;
}

.group-detail-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.group-detail-head h2 {
	margin: 0 0 10px;
}

.group-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.group-detail-meta span {
	background: rgba(148, 163, 184, 0.12);
	border: 1px solid rgba(148, 163, 184, 0.26);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 0.86rem;
	color: #dbeafe;
}

.group-closed-badge {
	background: rgba(248, 113, 113, 0.2) !important;
	border-color: rgba(248, 113, 113, 0.45) !important;
	color: #fecaca !important;
}

.group-detail-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.group-detail-actions form {
	margin: 0;
	display: inline-flex;
}

.group-action-btn {
	width: 210px;
	height: 60px;
	padding: 0 24px;
	box-sizing: border-box;
	line-height: 1;
}

.group-detail-description {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	padding-top: 16px;
	margin-top: 6px;
}

.group-detail-description h3 {
	margin: 0 0 8px;
}

.group-detail-description p {
	margin: 0;
	color: rgba(226, 232, 240, 0.92);
	line-height: 1.6;
}

.group-members-block {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	margin-top: 18px;
	padding-top: 16px;
}

.group-members-block h3 {
	margin: 0 0 12px;
}

.group-members-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.group-member-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.58);
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.group-member-name {
	font-weight: 600;
}

.group-member-name a {
	color: var(--color-text);
	text-decoration: none;
}

.group-member-name a:hover {
	color: #93c5fd;
}

.group-member-meta {
	color: var(--color-muted);
	font-size: 0.9rem;
}

.group-chat-block {
	border-top: 1px solid rgba(148, 163, 184, 0.2);
	margin-top: 18px;
	padding-top: 16px;
}

.group-chat-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.group-chat-head h3 {
	margin: 0;
}

.group-chat-readonly {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(248, 113, 113, 0.18);
	border: 1px solid rgba(248, 113, 113, 0.4);
	color: #fecaca;
	font-size: 0.82rem;
}

.group-chat-pinned {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	padding: 8px 10px;
	border: 1px solid rgba(59, 130, 246, 0.25);
	border-radius: 11px;
	background: rgba(30, 41, 59, 0.55);
}

.group-chat-pinned-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.group-chat-pinned-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #93c5fd;
}

.group-chat-pinned-text {
	border: 0;
	background: transparent;
	color: var(--color-text);
	font-size: 0.86rem;
	padding: 0;
	cursor: pointer;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.group-chat-pinned-close {
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.55);
	color: var(--color-text);
	border-radius: 999px;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.group-chat-messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 340px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(124, 158, 214, 0.75) rgba(18, 34, 58, 0.65);
	scrollbar-gutter: stable;
}

.group-chat-messages::-webkit-scrollbar {
	width: 8px;
}

.group-chat-messages::-webkit-scrollbar-track {
	background: rgba(18, 34, 58, 0.65);
	border-radius: 999px;
}

.group-chat-messages::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(93, 153, 255, 0.92), rgba(126, 103, 243, 0.9));
	border-radius: 999px;
	border: 1px solid rgba(18, 34, 58, 0.9);
}

.group-chat-messages::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(120, 174, 255, 0.98), rgba(148, 124, 255, 0.95));
}

.group-chat-message {
	background: rgba(15, 23, 42, 0.58);
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 12px;
	padding: 10px 12px;
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
}

.group-chat-message.is-own {
	background: rgba(37, 99, 235, 0.16);
	border-color: rgba(96, 165, 250, 0.45);
}

.group-chat-message-highlight {
	box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.6);
}

.group-chat-message-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	padding-right: 36px;
}

.group-chat-message-author {
	font-weight: 600;
}

.group-chat-author-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.group-chat-author-link:hover {
	border-bottom-color: rgba(148, 163, 184, 0.6);
}

.group-chat-message-time {
	font-size: 0.82rem;
	color: var(--color-muted);
	white-space: nowrap;
}

.group-chat-message-content {
	margin: 0;
	color: rgba(226, 232, 240, 0.95);
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.group-chat-message-deleted {
	font-style: italic;
	opacity: 0.8;
}

.group-chat-message-reply {
	margin-bottom: 8px;
	padding: 8px 10px;
	border-radius: 11px;
	border-left: 4px solid rgba(56, 189, 248, 0.92);
	background: rgba(15, 23, 42, 0.28);
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.group-chat-message-reply:hover {
	transform: translateY(-1px);
}

.group-chat-message-reply:focus-visible {
	outline: 2px solid rgba(125, 211, 252, 0.9);
	outline-offset: 2px;
}

.group-chat-message-reply-author {
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
}

.group-chat-message-reply-text {
	font-size: 0.82rem;
	opacity: 0.95;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.group-chat-message.is-own .group-chat-message-reply {
	border-left-color: rgba(191, 219, 254, 0.98);
	background: rgba(15, 23, 42, 0.34);
	box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.28);
}

.group-chat-message.is-own .group-chat-message-reply-author {
	color: #dbeafe;
}

.group-chat-message.is-own .group-chat-message-reply-text {
	color: rgba(255, 255, 255, 0.98);
}

.group-chat-message:not(.is-own) .group-chat-message-reply {
	border-left-color: rgba(56, 189, 248, 0.95);
	background: rgba(30, 41, 59, 0.56);
	box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24);
}

.group-chat-message:not(.is-own) .group-chat-message-reply-author {
	color: #7dd3fc;
}

.group-chat-message:not(.is-own) .group-chat-message-reply-text {
	color: rgba(226, 232, 240, 0.96);
}

.group-chat-message-attachment {
	display: block;
	margin-top: 8px;
	text-decoration: none;
}

.group-chat-message-attachment-image img {
	display: block;
	max-width: 280px;
	max-height: 280px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.32);
	object-fit: cover;
}

.group-chat-message-attachment-file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(148, 163, 184, 0.34);
	border-radius: 10px;
	padding: 8px 10px;
	max-width: 100%;
	overflow: hidden;
	color: var(--color-text);
	box-sizing: border-box;
}

.group-chat-message.is-own .group-chat-message-attachment-file {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(147, 197, 253, 0.45);
}

.group-chat-file-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 22px;
	border-radius: 7px;
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	font-weight: 700;
	background: rgba(59, 130, 246, 0.22);
}

.group-chat-file-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.86rem;
	max-width: 260px;
}

.group-chat-message-actions {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
}

.group-chat-message-menu-toggle {
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.65);
	color: var(--color-text);
	border-radius: 999px;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.group-chat-message:hover .group-chat-message-menu-toggle,
.group-chat-message-actions.is-open .group-chat-message-menu-toggle {
	opacity: 1;
	transform: scale(1);
}

.group-chat-message-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 210px;
	border-radius: 0.9rem;
	border: 1px solid rgba(51, 65, 85, 0.9);
	background: rgba(15, 23, 42, 0.97);
	box-shadow: 0 16px 30px rgba(2, 8, 23, 0.55);
	padding: 5px;
	display: none;
	flex-direction: column;
	gap: 2px;
}

.group-chat-message-actions.is-open .group-chat-message-menu {
	display: flex;
}

.group-chat-message-menu-item {
	border: 0;
	background: transparent;
	color: #e2e8f0;
	border-radius: 0.65rem;
	padding: 8px 9px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.92rem;
	cursor: pointer;
	text-align: left;
}

.group-chat-message-menu-item:hover {
	background: rgba(30, 41, 59, 0.95);
}

.group-chat-message-menu-icon {
	width: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
}

.group-chat-message-menu-item.danger {
	color: #fca5a5;
}

.report-reason-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	background: rgba(2, 6, 23, 0.64);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.report-reason-modal {
	width: min(420px, 100%);
	max-height: min(680px, 90vh);
	background: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(148, 163, 184, 0.3);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(2, 6, 23, 0.65);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.report-reason-title {
	padding: 16px 18px 10px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #f8fafc;
}

.report-reason-list {
	overflow-y: auto;
	padding: 0 6px 8px;
}

.report-reason-option {
	width: 100%;
	border: none;
	background: transparent;
	color: #e2e8f0;
	font-size: 1.02rem;
	text-align: left;
	padding: 11px 14px;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.report-reason-option::after {
	content: '>';
	color: rgba(148, 163, 184, 0.85);
	font-size: 1.2rem;
}

.report-reason-option:hover {
	background: rgba(30, 41, 59, 0.8);
}

.report-reason-close {
	margin: 8px 12px 12px auto;
	border: none;
	background: transparent;
	color: #60a5fa;
	font-size: 1.05rem;
	cursor: pointer;
}

.group-chat-form {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.group-chat-input {
	min-height: 90px;
	resize: vertical;
}

.group-chat-attachment-input {
	display: none;
}

.group-chat-attachment-preview {
	font-size: 0.86rem;
	color: var(--color-muted);
}

.group-chat-reply-preview {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border: 1px solid rgba(59, 130, 246, 0.35);
	background: rgba(59, 130, 246, 0.1);
	border-radius: 11px;
	padding: 8px 10px;
}

.group-chat-reply-preview-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.group-chat-reply-preview-author {
	font-size: 0.75rem;
	font-weight: 700;
	color: #bfdbfe;
}

.group-chat-reply-preview-text {
	font-size: 0.82rem;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.group-chat-reply-preview-close {
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.55);
	color: var(--color-text);
	border-radius: 999px;
	width: 28px;
	height: 28px;
	cursor: pointer;
}

.group-chat-form-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.group-chat-icon-btn {
	border: 1px solid var(--color-border);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	background: var(--color-card);
	color: var(--color-text);
	padding: 0;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.group-chat-icon-btn:hover {
	border-color: rgba(59, 130, 246, 0.5);
}

.group-chat-icon-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.group-chat-send-btn {
	width: 48px;
	height: 48px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.group-chat-send-btn svg,
.group-chat-icon-btn svg {
	width: 20px;
	height: 20px;
}

.group-chat-empty {
	margin: 8px 0 0;
	color: var(--color-muted);
}

@media (max-width: 768px) {
	.container {
		padding: 24px 18px 48px;
	}

	.card {
		padding: 26px;
	}

	.form-row {
		grid-template-columns: 1fr;
	}
	
	.profiles-grid {
		grid-template-columns: 1fr;
	}
	
	.profile-actions {
		flex-direction: column;
	}
	
	.profile-actions .btn {
		width: 100%;
		text-align: center;
	}
	
	.profile-header-content {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}
	
	.profile-photo-img {
		width: 100px;
		height: 100px;
	}
	
	.profile-photo-img-small {
		width: 50px;
		height: 50px;
	}

	.groups-filter {
		grid-template-columns: 1fr;
	}

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

	.groups-page-header,
	.group-detail-head {
		flex-direction: column;
	}

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

	.group-action-btn {
		width: 100%;
	}

	.group-detail-actions form {
		width: 100%;
	}

	.group-chat-message-attachment-image img {
		max-width: 100%;
	}

	.group-chat-file-name {
		max-width: 180px;
	}

	.group-chat-message-menu-toggle {
		opacity: 1;
		transform: scale(1);
	}

	.group-chat-message-menu {
		min-width: 190px;
	}

	.group-chat-pinned {
		padding: 8px;
	}
}

@media (max-width: 1024px) {
	.navbar {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 0 1.25rem;
		min-height: 78px;
	}

	.nav-center {
		grid-column: 1 / -1;
		justify-content: center;
		padding: 0 0 12px;
	}

	.logo-link {
		font-size: 1.2rem;
	}

	.home-page .header-accent {
		height: 42px;
	}

	.home-page .logo-link {
		font-size: 1.95rem;
	}

	.home-page .nav-item,
	.home-page .nav-link-muted,
	.home-page .nav-btn-primary,
	.home-page .nav-btn-outline {
		font-size: 1.05rem;
	}
}

@media (max-width: 600px) {
	.navbar {
		min-height: 72px;
		padding: 0 1rem;
	}

	.nav-center {
		display: none;
	}

	.logo-link {
		font-size: 1.05rem;
	}

	.logo-icon svg {
		width: 26px;
		height: 26px;
	}

	.nav-link-muted {
		display: none;
	}

	.nav-btn-primary,
	.nav-btn-outline {
		font-size: 0.92rem;
		padding: 0.54rem 1rem !important;
		min-width: 0;
	}

	.card {
		padding: 24px;
	}

	.action-buttons {
		width: 100%;
	}

	.action-buttons .btn {
		flex: 1 1 calc(50% - 12px);
		min-width: 160px;
	}

	.container {
		justify-content: flex-start;
		padding-top: 32px;
		gap: 24px;
	}

	.site-header {
		position: sticky;
		top: 0;
		animation: none;
		box-shadow: 0 10px 24px rgba(2, 6, 23, 0.4);
		border-bottom: 1px solid rgba(148, 163, 184, 0.25);
	}

	.home-page .header-accent {
		height: 0;
		border: 0;
	}

	.admin-page-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.admin-head-links {
		width: 100%;
	}

	.admin-actions {
		flex-direction: column;
	}

	.admin-table-actions-col {
		min-width: 220px;
	}

	.admin-inline-row {
		flex-wrap: wrap;
	}

	.admin-table {
		min-width: unset;
	}

	.admin-table th,
	.admin-table td {
		padding: 12px;
	}
}

@media (max-width: 420px) {
	.action-buttons .btn {
		flex-basis: 100%;
	}

	.nav-btn-primary,
	.nav-btn-outline {
		padding: 0.5rem 0.85rem !important;
		font-size: 0.84rem;
	}
}

@media (max-width: 640px) {
	.auth-section {
		padding-top: 2rem;
	}

	.auth-card {
		padding: 1.4rem 1.1rem 1.55rem;
		border-radius: 20px;
	}

	.auth-tab {
		font-size: 0.95rem;
		padding: 10px 12px;
	}

	.auth-title-block h2 {
		font-size: 2.05rem;
	}

	.auth-subtitle {
		font-size: 1rem;
	}

	.auth-submit,
	.auth-social-btn {
		font-size: 1rem;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes fadeInPop {
	0% {
		opacity: 0;
		transform: translateY(10px) scale(0.97);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes gradientShift {
	0% {
		transform: translate3d(0, 0, 0) scale(1.05);
	}
	50% {
		transform: translate3d(-4%, 2%, 0) scale(1.12);
	}
	100% {
		transform: translate3d(0, 0, 0) scale(1.05);
	}
}

@keyframes pulseGlow {
	0%, 100% {
		opacity: 0.28;
	}
	50% {
		opacity: 0.42;
	}
}

@keyframes softPulse {
	0%, 100% {
		box-shadow: 0 12px 25px rgba(15, 23, 42, 0.45);
	}
	50% {
		box-shadow: 0 20px 38px rgba(37, 99, 235, 0.45);
	}
}

@keyframes slideDown {
	0% {
		opacity: 0;
		transform: translateY(-12px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shimmer {
	0% {
		transform: translateX(0) skewX(-12deg);
	}
	100% {
		transform: translateX(220%) skewX(-12deg);
	}
}

/* Р¤РёР»СЊС‚СЂС‹ РїРѕРёСЃРєР° (РєР°СЂС‚РѕС‡РєР° + СЃРїРёСЃРѕРє РїР°СЂС‚РЅС‘СЂРѕРІ) */
.discover-filters {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.7rem;
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}
.sp-filters { max-width: 720px; }
.df-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	margin-bottom: 0.45rem;
}
.df-row:last-child {
	margin-bottom: 0;
}
.df-row-2 .df-input {
	flex: 1 1 120px;
	min-width: 0;
}
.df-row-2 .df-select {
	flex: 0 0 auto;
	min-width: 110px;
}
.df-row-3 {
	justify-content: space-between;
	gap: 0.35rem;
}
.df-input,
.df-select {
	font: inherit;
	font-size: 0.85rem;
	padding: 0.4rem 0.55rem;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	background: rgba(15, 23, 42, 0.55);
	color: var(--color-text);
}
.df-input::placeholder {
	color: var(--color-muted);
}
.df-check {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--color-muted);
	cursor: pointer;
	white-space: nowrap;
}
.df-check input {
	accent-color: var(--color-primary);
}
.df-submit {
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.4rem 0.75rem;
	border: none;
	border-radius: 10px;
	background: var(--color-primary);
	color: #fff;
	cursor: pointer;
}
.df-submit:hover {
	background: var(--color-primary-strong);
}

/* ===== Profile Setup / Preferences shared styles (ps-*) ===== */
.profile-setup-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.ps-progress-bar-wrap {
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease both;
}

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

.ps-step-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.ps-step-pct {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.ps-progress-track {
  height: 8px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.ps-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ps-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px);
  animation: fadeInUp 0.6s ease both;
}

@media (max-width: 600px) {
  .ps-card { padding: 24px 20px; }
}

/* Steps */
.ps-step { display: none; animation: psSlideIn 0.35s ease both; }
.ps-step-active { display: block; }

@keyframes psSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes psSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

.ps-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.ps-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-icon-blue  { background: rgba(59, 130, 246, 0.15); color: var(--color-primary); }
.ps-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--color-secondary); }
.ps-icon-pink  { background: rgba(236, 72, 153, 0.15); color: var(--color-accent); }

.ps-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}

.ps-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* Fields */
.ps-fields { display: flex; flex-direction: column; gap: 20px; }

.ps-field-group { display: flex; flex-direction: column; gap: 6px; }

.ps-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.ps-input, .ps-select {
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.3);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.ps-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.ps-input:focus, .ps-select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ps-input::placeholder { color: var(--color-muted); }

.ps-textarea {
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.3);
  color: var(--color-text);
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  font-family: inherit;
}

.ps-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ps-textarea::placeholder { color: var(--color-muted); }

/* Upload */
.ps-upload-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  overflow: hidden;
  position: relative;
}
.ps-upload-area:hover { background: rgba(51, 65, 85, 0.3); border-color: rgba(59, 130, 246, 0.4); }

.ps-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
}
.ps-upload-text { font-size: 0.9rem; }

.ps-input-file { display: none; }

.ps-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

/* Subjects */
.ps-subject-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ps-custom-input-wrap {
  position: relative;
  flex: 1;
}

.ps-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
}

.ps-input-with-icon {
  padding-left: 42px !important;
}

.ps-add-btn {
  padding: 0 20px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.ps-add-btn:hover { opacity: 0.9; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35); }
.ps-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ps-hint { font-size: 0.8rem; color: var(--color-muted); margin: 0; }

.ps-selected-subjects-wrap { margin-top: 4px; }

.ps-subjects-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ps-muted { font-size: 0.875rem; color: var(--color-muted); }

.ps-clear-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.ps-clear-btn:hover { opacity: 0.75; }

.ps-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 158, 214, 0.75) rgba(18, 34, 58, 0.65);
  scrollbar-gutter: stable;
}

.ps-tags-wrap::-webkit-scrollbar {
  width: 8px;
}

.ps-tags-wrap::-webkit-scrollbar-track {
  background: rgba(18, 34, 58, 0.65);
  border-radius: 999px;
}

.ps-tags-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(93, 153, 255, 0.92), rgba(126, 103, 243, 0.9));
  border-radius: 999px;
  border: 1px solid rgba(18, 34, 58, 0.9);
}

.ps-tags-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120, 174, 255, 0.98), rgba(148, 124, 255, 0.95));
}

.ps-tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: rgba(51, 65, 85, 0.3);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ps-tag:hover { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.08); }
.ps-tag.ps-tag-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.ps-tag.ps-tag-selected-dimmed {
  background: rgba(51, 65, 85, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--color-muted);
  opacity: 0.6;
}

/* Bio */
.ps-bio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
.ps-bio-ok { color: #4ade80; font-size: 0.875rem; font-weight: 500; }

.ps-tip-box {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Navigation */
.ps-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.ps-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: rgba(51, 65, 85, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.ps-btn-back:hover { background: rgba(51, 65, 85, 0.55); }

.ps-btn-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}
.ps-btn-next:hover { opacity: 0.93; box-shadow: 0 14px 32px rgba(59, 130, 246, 0.45); }
.ps-btn-next:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.ps-field-group .form-errors {
  margin-top: 8px;
  display: block;
}

.ps-hidden-field { display: none; }

.ps-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
}
.ps-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Collapsible tags */
.ps-tags-collapsible .ps-tag-extra { display: none; }
.ps-tags-collapsible.ps-tags-expanded .ps-tag-extra { display: inline-flex; }

.ps-tags-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: rgba(51, 65, 85, 0.3);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ps-tags-toggle:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}
.ps-tags-toggle svg { transition: transform 0.3s; }
.ps-tags-toggle.ps-tags-toggle-active svg { transform: rotate(180deg); }
