:root {
	--bg: #f4f7fb;
	--panel: #ffffff;
	--text: #172033;
	--muted: #647083;
	--border: #d9e1ec;
	--primary: #0f766e;
	--primary-hover: #0b615b;
	--danger: #b42318;
	--success: #067647;
	--shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
}

.panel {
	width: 100%;
	max-width: 460px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: var(--shadow);
	padding: 28px;
}

.brand {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
}

.topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}

.topbar .brand {
	margin-bottom: 0;
}

.lang-switch {
	display: inline-flex;
	flex: 0 0 auto;
	border: 1px solid var(--border);
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
}

.lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 32px;
	padding: 0 10px;
	color: var(--muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

.lang-switch a + a {
	border-left: 1px solid var(--border);
}

[dir="rtl"] .lang-switch a + a {
	border-left: 0;
	border-right: 1px solid var(--border);
}

.lang-switch a.active {
	background: var(--primary);
	color: #ffffff;
}

.intro {
	margin: 0 0 22px;
	color: var(--muted);
}

.field {
	margin-bottom: 16px;
}

label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
	font-size: 14px;
}

input,
select {
	width: 100%;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--text);
	font: inherit;
	padding: 8px 10px;
}

input:focus,
select:focus {
	border-color: var(--primary);
	outline: 2px solid rgba(15, 118, 110, 0.18);
	outline-offset: 0;
}

.button {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 6px;
	background: var(--primary);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.button:hover,
.button:focus {
	background: var(--primary-hover);
}

.button:disabled {
	background: #99a3b1;
	cursor: not-allowed;
}

.button-small {
	width: auto;
	min-width: 96px;
	height: 38px;
	padding: 0 14px;
	font-size: 14px;
}

.button-secondary {
	background: #ffffff;
	color: var(--text);
	border: 1px solid var(--border);
}

.button-secondary:hover,
.button-secondary:focus {
	background: #f8fafc;
}

.alert {
	margin: 0 0 18px;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 14px;
}

.alert-error {
	background: #fff1f0;
	color: var(--danger);
	border: 1px solid #f4c7c3;
}

.alert-success {
	background: #ecfdf3;
	color: var(--success);
	border: 1px solid #abefc6;
}

.result-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 24px 18px 20px;
	background: #ffffff;
	text-align: center;
}

.result-panel strong {
	display: block;
	font-size: 18px;
	line-height: 1.35;
	max-width: 320px;
}

.result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.result-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.result-success {
	border-color: #abefc6;
	background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
	color: var(--success);
}

.result-success .result-icon {
	background: #d1fadf;
	color: var(--success);
}

.result-error {
	border-color: #f4c7c3;
	background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
	color: var(--danger);
}

.result-error .result-icon {
	background: #fee4e2;
	color: var(--danger);
}

.result-copy {
	display: grid;
	justify-items: center;
	gap: 4px;
}

.result-action {
	width: 100%;
	margin: 2px 0 0;
}

.subscription-list {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.subscription-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 12px;
}

.subscription-item strong,
.subscription-item span {
	display: block;
}

.subscription-item span {
	color: var(--muted);
	font-size: 13px;
	margin-top: 2px;
}

.info-panel {
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 16px;
	background: #fbfdff;
}

.info-panel h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.info-panel dl {
	margin: 0;
	display: grid;
	gap: 10px;
}

.info-panel dl div {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid #e8edf4;
	padding-top: 10px;
}

.info-panel dl div:first-child {
	border-top: 0;
	padding-top: 0;
}

.info-panel dt {
	color: var(--muted);
	font-size: 13px;
}

.info-panel dd {
	margin: 0;
	text-align: right;
	font-weight: 700;
}

[dir="rtl"] .info-panel dd {
	text-align: left;
}

.confirm-form {
	margin-bottom: 10px;
}

.secondary-form {
	margin: 0;
}

.footnote {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 420px) {
	.panel {
		padding: 22px 18px;
	}

	.topbar {
		align-items: center;
	}

	.subscription-item,
	.info-panel dl div {
		display: block;
	}

	.subscription-item form {
		margin-top: 10px;
	}

	.button-small {
		width: 100%;
	}

	.info-panel dd {
		margin-top: 2px;
		text-align: left;
	}

	[dir="rtl"] .info-panel dd {
		text-align: right;
	}
}
