:root {
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--bg: #f8fafc;
	--card-bg: #ffffff;
	--text: #0f172a;
	--text-light: #64748b;
	--border: #e2e8f0;
	--success: #22c55e;
	--error: #ef4444;
	--radius: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	justify-content: center;
	padding: 40px 20px;
	background-color: var(--bg);
	color: var(--text);
	font-family: 'Golos Text', sans-serif;
}

.app-container {
	width: 100%;
	max-width: 600px;
}

.main-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.logo {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -1px;
}

.logo span {
	color: var(--primary);
}

.card {
	margin-bottom: 24px;
	padding: 32px;
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.card-header {
	margin-bottom: 24px;
}

.card-header h2 {
	margin-bottom: 4px;
	font-size: 20px;
}

.card-header p {
	color: var(--text-light);
	font-size: 14px;
}

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

label {
	display: block;
	margin-bottom: 8px;
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
}

.input-main,
.split-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	font-size: 15px;
	transition: all 0.2s;
}

.input-main:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.divider {
	height: 1px;
	margin: 32px 0;
	background: var(--border);
}

.section-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.split-row {
	position: relative;
	margin-bottom: 12px;
	padding: 16px;
	border-radius: 12px;
	background: #f1f5f9;
}

.split-grid {
	display: grid;
	grid-template-columns: 1fr 100px;
	gap: 12px;
	margin-bottom: 8px;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 12px;
	background: var(--primary);
	color: white;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.05rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: none;
	color: inherit;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.05rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.hidden {
	display: none !important;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
}

.modal-content {
	position: relative;
	width: 90%;
	max-width: 500px;
	padding: 32px;
	border-radius: var(--radius);
	background: white;
}

.modal-content p {
	margin-top: 8px;
	margin-bottom: 8px;
	color: var(--text-light);
	font-size: 14px;
	line-height: 1.5;
}

.modal-content>.btn-primary,
.modal-content>.btn-secondary {
	display: block;
	width: 100%;
	margin-top: 12px;
}

.success-content {
	position: relative;
	padding: 40px 24px !important;
	text-align: center;
}

.close-modal {
	position: absolute;
	top: 16px;
	right: 16px;
	border: none;
	background: none;
	color: var(--text-light);
	font-size: 24px;
	cursor: pointer;
}

.link-box {
	display: flex;
	margin: 24px 0;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #f1f5f9;
}

.link-box input {
	flex: 1;
	padding: 10px 12px;
	border: none;
	background: none;
	color: var(--text);
	font-size: 14px;
	outline: none;
}

.modal-actions {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}