* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #0b0d10;
	color: #e8edf2;
	min-height: 100vh;
	display: flex;
	justify-content: center;
    align-items: center;
	padding: 40px;
}

.container {
	max-width: 1200px;
	background: rgba(255, 255, 255, 0.02);
	padding: 48px 56px;
	border-radius: 32px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(2px);
	transition: all 0.2s ease;
}

.logo {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
	font-size: 1.1rem;
	color: #9ca3af;
	margin-bottom: 32px;
	font-weight: 300;
}

.description {
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 32px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.back-btn {
	padding: 8px 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 40px;
	color: #d1d5db;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.back-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: #60a5fa;
	color: #fff;
}

.logout-btn {
	padding: 8px 22px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 40px;
	color: #d1d5db;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.logout-btn:hover {
	background: rgba(248, 113, 113, 0.12);
	border-color: #f87171;
	color: #f87171;
}

.key-item {
	display: inline-block;
	padding: 4px 14px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.8rem;
	color: #a78bfa;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	word-break: break-all;
	border: 1px solid transparent;
}

.key-item:hover {
	background: rgba(167, 139, 250, 0.15);
	border-color: rgba(167, 139, 250, 0.2);
	transform: scale(1.02);
}

.key-item:active {
	transform: scale(0.97);
}

@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: rgba(52, 211, 153, 0.15);
	border: 1px solid rgba(52, 211, 153, 0.3);
	color: #34d399;
	padding: 12px 28px;
	border-radius: 40px;
	font-size: 0.95rem;
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: all 0.4s ease;
	pointer-events: none;
	z-index: 999;
	max-width: 90%;
	word-break: break-all;
	text-align: center;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.spoiler {
	margin-top: 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.spoiler-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 12px 20px;
	background: rgba(255, 255, 255, 0.02);
	border: none;
	color: #d1d5db;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	font-family: inherit;
	text-align: left;
}

.spoiler-toggle:hover {
	background: rgba(255, 255, 255, 0.04);
}

.spoiler-toggle .spoiler-arrow {
	transition: transform 0.3s ease;
	color: #6b7280;
}

.spoiler-toggle.open .spoiler-arrow {
	transform: rotate(180deg);
}

.spoiler-content {
	display: none;
	padding: 16px 20px 20px;
	background: rgba(255, 255, 255, 0.01);
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.spoiler-content.open {
	display: block;
	animation: fadeSlideIn 0.3s ease;
}

.spoiler-content img {
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.spoiler-content video {
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.spoiler-content .media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.spoiler-content .media-item {
	background: rgba(255, 255, 255, 0.02);
	border-radius: 12px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.spoiler-content .media-item .caption {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 8px;
	text-align: center;
}

.instruction-section {
	display: none;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
	margin-top: 4px;
}

.instruction-section.open {
	display: block;
	animation: fadeSlideIn 0.3s ease;
}

.instruction-section .step {
	margin-bottom: 16px;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 12px;
	border-left: 3px solid rgba(96, 165, 250, 0.2);
}

.instruction-section .step:last-child {
	margin-bottom: 0;
}

.instruction-section .step .step-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #60a5fa;
	font-weight: 600;
}

.instruction-section .step .step-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #d1d5db;
	margin-top: 4px;
}

.instruction-section .step .step-text code {
	display: inline-block;
	padding: 2px 10px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 0.8rem;
	color: #a78bfa;
	word-break: break-all;
	margin-top: 4px;
}

.instruction-section .step .step-text .link {
	color: #60a5fa;
	text-decoration: none;
	border-bottom: 1px solid rgba(96, 165, 250, 0.2);
	transition: color 0.2s;
}

.instruction-section .step .step-text .link:hover {
	color: #93bbfc;
}

.instruction-section .step .step-text .highlight {
	color: #f472b6;
	font-weight: 500;
}

.instruction-section .step .step-text .warning {
	color: #fbbf24;
	font-weight: 500;
}

.clients-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 12px;
}

.client-card {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	padding: 28px 24px 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.client-card:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(96, 165, 250, 0.2);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}

.client-card.active {
	border-color: rgba(96, 165, 250, 0.4);
	background: rgba(96, 165, 250, 0.05);
	box-shadow: 0 0 30px -12px rgba(96, 165, 250, 0.1);
}

.client-card .icon {
	font-size: 2.4rem;
	display: block;
	margin-bottom: 8px;
}

.client-card .name {
	font-size: 1.15rem;
	font-weight: 600;
	color: #e8edf2;
}

.client-card .platforms {
	font-size: 0.85rem;
	color: #9ca3af;
	margin-top: 2px;
}

.client-card .protocols {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 4px;
}

.client-card .arrow {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	color: #4b5563;
	transition: transform 0.3s ease;
}

.client-card.active .arrow {
	transform: translateY(-50%) rotate(180deg);
	color: #60a5fa;
}

.keys-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4b5563, transparent);
    margin: 32px auto 32px;
}

.footer {
	font-size: 0.8rem;
	color: #6b7280;
}

.footer a {
	color: #6b7280;
	text-decoration: none;
	border-bottom: 1px dashed #374151;
	transition: color 0.2s;
}

.footer a:hover {
    color: #9ca3af;
}