* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body.recharge-page {
	margin: 0;
	font-family: Arial, sans-serif;
	background: #f4f6fb;
	color: #17233a;
}

a:link,
a:visited,
a:hover,
a:active {
	text-decoration: none;
}

.recharge-shell {
	width: min(1320px, calc(100vw - 32px));
	margin: 16px auto 28px;
}

.recharge-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(20, 44, 84, 0.06);
}

.brand-wrap {
	display: flex;
	align-items: center;
	gap: 24px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #1b2840;
}

.brand-logo {
	width: 36px;
	height: 36px;
}

.brand-name {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 26px;
}

.top-nav a {
	color: #41506d;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	vertical-align: middle;
}

.top-nav a.active {
	color: #0d6efd;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tool-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tool-item label {
	font-size: 13px;
	color: #4d5b78;
	font-weight: 700;
}

.tool-item select {
	min-width: 90px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #dfe7f2;
	border-radius: 10px;
	background: #fff;
	color: #17233a;
}

#language {
	min-width: 150px;
}

.reward-banner {
	position: relative;
	overflow: hidden;
	margin-top: 16px;
	padding: 28px 28px 30px;
	border-radius: 22px;
	background: linear-gradient(135deg, #7e2be6 0%, #b23bf5 40%, #ff8d34 100%);
	box-shadow: 0 18px 34px rgba(126, 43, 230, 0.18);
}

.banner-copy {
	position: relative;
	z-index: 2;
	max-width: 620px;
	color: #fff;
}

.banner-kicker {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.78;
}

.reward-banner h1 {
	margin: 0;
	font-size: clamp(34px, 4vw, 46px);
	line-height: 1;
	letter-spacing: -0.05em;
}

.reward-banner p {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.92;
}

.banner-orbs .orb {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	filter: blur(0.5px);
}

.orb-a {
	width: 180px;
	height: 180px;
	right: 90px;
	top: -40px;
}

.orb-b {
	width: 120px;
	height: 120px;
	right: 24px;
	bottom: -18px;
	background: rgba(255, 207, 95, 0.2);
}

.orb-c {
	width: 80px;
	height: 80px;
	right: 240px;
	bottom: 22px;
	background: rgba(255, 255, 255, 0.1);
}

.recharge-main {
	display: grid;
	gap: 18px;
	margin-top: 16px;
}

.recharge-section {
	position: relative;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 10px 24px rgba(20, 44, 84, 0.05);
}

@keyframes verifyAttention {
	0% {
		box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.28), 0 10px 24px rgba(20, 44, 84, 0.05);
		border-color: #e8edf5;
	}
	45% {
		box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.14), 0 14px 30px rgba(13, 110, 253, 0.12);
		border-color: #79b5ff;
	}
	100% {
		box-shadow: 0 0 0 0 rgba(13, 110, 253, 0), 0 10px 24px rgba(20, 44, 84, 0.05);
		border-color: #e8edf5;
	}
}

.verify-attention {
	animation: verifyAttention 0.8s ease-in-out 2;
}

.verify-attention #userId {
	border-color: #0d6efd;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

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

.section-head h2 {
	margin: 0;
	font-size: 22px;
	color: #1d2743;
}

.section-note {
	font-size: 13px;
	color: #78839b;
}

.head-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.verification-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
}

.field input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #dbe4f0;
	border-radius: 10px;
	font-size: 15px;
	color: #162138;
	background: #fff;
	outline: none;
}

.field input::placeholder {
	color: #9aa6bd;
}

.button-row,
.action-group,
.chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.chips {
	margin-top: 10px;
}

button {
	border: 0;
	border-radius: 10px;
	padding: 0 22px;
	height: 44px;
	font-size: 14px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

button:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: linear-gradient(135deg, #39a5ff, #0d6efd);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.btn-secondary,
.chip {
	background: #f3f6fb;
	color: #3a4b6a;
	border: 1px solid #e1e8f3;
}

.chip {
	padding: 0 12px;
	height: 36px;
}

.status-text {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #77839c;
}

.status-text.success {
	color: #1f9254;
}

.status-text.error {
	color: #c03d36;
}

.verified-user {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #bfe7cd;
	background: #f2fbf6;
	color: #1f9254;
	font-size: 14px;
}

.verified-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #e0f4e8;
	overflow: hidden;
}

.verified-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.verified-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 18px;
	font-weight: 800;
	color: #1f9254;
}

.verified-main {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.verified-label,
.verified-id,
.verified-warning {
	font-size: 12px;
	line-height: 1.45;
	color: #5f756a;
}

.verified-name {
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
	color: #173d2a;
	overflow-wrap: anywhere;
}

.verified-warning {
	margin-top: 2px;
	color: #7b6844;
}

.verified-badge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: #dff5e7;
	color: #1f9254;
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.hidden {
	display: none;
}

.payment-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(55, 65, 81, 0.48);
}

.payment-loading-overlay.hidden {
	display: none;
}

.payment-loading-content {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	border-radius: 12px;
	background: rgba(55, 65, 81, 0.92);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.payment-loading-spinner {
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: paymentLoadingSpin 0.8s linear infinite;
}

@keyframes paymentLoadingSpin {
	to {
		transform: rotate(360deg);
	}
}

.payment-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.payment-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	min-height: 92px;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid #dfe7f2;
	background: #fff;
	box-shadow: none;
	text-align: left;
	overflow: hidden;
}

.payment-card:disabled,
.product-card.disabled {
	opacity: 0.58;
	cursor: not-allowed;
}

.btn-primary:disabled,
.btn-secondary:disabled {
	opacity: 0.58;
	cursor: not-allowed;
	box-shadow: none;
}

.payment-card.active {
	border-color: #79b5ff;
	background: linear-gradient(180deg, #f5faff, #edf5ff);
	box-shadow: inset 0 0 0 1px #8dbfff;
}

.payment-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.payment-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #f4f8ff;
	box-shadow: inset 0 0 0 1px #d7e6fb;
	padding: 5px;
	flex: 0 0 64px;
}

.payment-brand-icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.payment-brand-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #23406f;
}

.payment-brand-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
}

.payment-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	max-width: 100%;
	overflow: hidden;
	overflow-wrap: anywhere;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 700;
	color: #1e2a44;
}

.payment-subtitle {
	font-size: 13px;
	color: #7e8aa2;
}

.payment-extra {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.payment-pill {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: #e9f3ff;
	color: #3977d6;
	font-size: 12px;
	font-weight: 700;
}

.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.product-tabs {
	grid-column: 1 / -1;
	display: flex;
	gap: 28px;
	min-height: 42px;
	border-bottom: 1px solid #e8edf5;
	overflow-x: auto;
}

.product-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 42px;
	padding: 0 2px;
	border-radius: 0;
	background: transparent;
	color: #66758f;
	font-size: 15px;
	font-weight: 700;
	box-shadow: none;
}

.product-tab:hover {
	transform: none;
}

.product-tab.active {
	color: #1f6fe5;
	box-shadow: none;
}

.product-tab.active::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: #1f6fe5;
	content: "";
}

.product-group-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.product-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 176px;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid #dfe7f2;
	background: #fff;
}

.product-card.selected {
	border-color: #7ab6ff;
	box-shadow: inset 0 0 0 1px #7ab6ff;
	background: linear-gradient(180deg, #f5faff, #ffffff);
}

.product-tag {
	display: inline-flex;
	width: fit-content;
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef5ff;
	color: #3377d9;
	font-size: 12px;
	font-weight: 700;
}

.product-title {
	font-size: 19px;
	font-weight: 700;
	color: #1e2a44;
}

.product-meta {
	font-size: 14px;
	color: #78839b;
}

.product-price {
	margin-top: auto;
	font-size: 28px;
	font-weight: 700;
	color: #2669d7;
	letter-spacing: -0.04em;
}

.card-secret-card {
	grid-column: 1 / -1;
	width: min(520px, 100%);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.card-secret-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.card-secret-badge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	background: #eef5ff;
	color: #2569d6;
	font-size: 12px;
	font-weight: 800;
}

.card-secret-digits {
	color: #7d889c;
	font-size: 13px;
	font-weight: 700;
}

.card-secret-label {
	display: block;
	margin-bottom: 8px;
	color: #1e2a44;
	font-size: 15px;
	font-weight: 800;
}

.card-secret-input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border: 1px solid #d3dfed;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	color: #17233a;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.16em;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-secret-input:focus {
	border-color: #79b5ff;
	box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.card-secret-input::placeholder {
	color: #aab5c6;
	letter-spacing: 0.08em;
}

.card-secret-hint {
	margin-top: 10px;
	color: #7b879d;
	font-size: 13px;
	line-height: 1.5;
}

.total-bar {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
}

.total-label {
	margin: 0;
	font-size: 14px;
	color: #7c879d;
}

.total-value {
	margin: 6px 0 0;
	font-size: 42px;
	font-weight: 700;
	color: #2669d7;
	letter-spacing: -0.05em;
}

.summary-text {
	margin: 0;
	font-size: 15px;
	color: #1e2a44;
	font-weight: 600;
}

.tax-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #8e99ae;
}

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

.btn-pay {
	min-width: 148px;
}

.help-text {
	font-size: 13px;
	line-height: 1.6;
	color: #7a859d;
}

.stripe-section {
	position: relative;
	padding: 18px;
}

#stripeCheckoutForm {
	position: relative;
	min-height: 420px;
	padding-bottom: 58px;
}

.stripe-back {
	position: absolute;
	left: 0;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #e1e8f3;
	background: #f3f6fb;
	color: #3a4b6a;
	font-size: 24px;
	line-height: 1;
}

.stripe-back:hover {
	background: #e9f0fa;
}

.stripe-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	text-align: center;
}

.stripe-success.hidden {
	display: none;
}

.stripe-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #eef9f2;
	color: #1f9254;
	font-size: 40px;
	font-weight: 700;
}

.stripe-success h1 {
	margin: 22px 0 0;
	font-size: 28px;
	line-height: 1.2;
	color: #1d2743;
}

.stripe-success p {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: #6f7d96;
}

.stripe-success-note {
	min-height: 24px;
}

.stripe-success-action {
	margin-top: 20px;
	min-width: 132px;
	height: 44px;
	padding: 0 20px;
}

.history {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	max-height: 360px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.history-item {
	padding: 14px;
	border-radius: 12px;
	border: 1px solid #e3eaf4;
	background: #f9fbfe;
}

.history-item strong {
	display: block;
	margin-bottom: 6px;
	color: #1e2a44;
}

html[dir="rtl"] .verified-user,
html[dir="rtl"] .recharge-header,
html[dir="rtl"] .brand-wrap,
html[dir="rtl"] .top-nav,
html[dir="rtl"] .header-tools,
html[dir="rtl"] .tool-item,
html[dir="rtl"] .payment-brand,
html[dir="rtl"] .total-actions {
	flex-direction: row-reverse;
}

html[dir="rtl"] .reward-banner,
html[dir="rtl"] .recharge-section,
html[dir="rtl"] .field input,
html[dir="rtl"] .status-text,
html[dir="rtl"] .help-text,
html[dir="rtl"] .verified-user,
html[dir="rtl"] .history-item,
html[dir="rtl"] .summary-text,
html[dir="rtl"] .tax-note,
html[dir="rtl"] .product-meta,
html[dir="rtl"] .card-secret-card,
html[dir="rtl"] .section-note {
	text-align: right;
}

html[dir="rtl"] .payment-card,
html[dir="rtl"] .payment-brand-text {
	align-items: flex-end;
	text-align: right;
}

html[dir="rtl"] .verified-badge {
	margin-right: auto;
}

html[dir="rtl"] .stripe-back {
	left: auto;
	right: 0;
}

html[dir="rtl"] .orb-a {
	left: 90px;
	right: auto;
}

html[dir="rtl"] .orb-b {
	left: 24px;
	right: auto;
}

html[dir="rtl"] .orb-c {
	left: 240px;
	right: auto;
}

@media (max-width: 1080px) {
	.recharge-header,
	.section-head,
	.total-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.total-bar {
		grid-template-columns: 1fr;
	}

	.payment-methods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.verification-row {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 720px) {
	.recharge-shell {
		width: calc(100vw - 20px);
		margin: 10px auto 20px;
	}

	.recharge-header {
		gap: 14px;
		padding: 14px;
		border-radius: 14px;
	}

	.brand-wrap {
		width: 100%;
		justify-content: space-between;
		gap: 12px;
	}

	.brand-name {
		font-size: 24px;
	}

	.top-nav {
		gap: 14px;
	}

	.top-nav a,
	.top-nav a.active {
		font-size: 14px;
	}

	.header-tools {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		width: 100%;
		gap: 10px;
	}

	.tool-item {
		display: grid;
		gap: 6px;
		min-width: 0;
	}

	.tool-item select,
	#language {
		width: 100%;
		min-width: 0;
		height: 44px;
		padding: 0 10px;
		font-size: 16px;
	}

	.reward-banner {
		margin-top: 10px;
		padding: 24px 22px;
		border-radius: 16px;
	}

	.reward-banner h1 {
		font-size: 32px;
		line-height: 1.08;
	}

	.recharge-main {
		gap: 12px;
		margin-top: 10px;
	}

	.recharge-section {
		padding: 18px;
		border-radius: 14px;
	}

	.section-head {
		gap: 8px;
		margin-bottom: 14px;
	}

	.section-head h2 {
		font-size: 20px;
		line-height: 1.25;
	}

	.field input {
		font-size: 16px;
	}

	.verification-row .action-group,
	.verification-row .action-group .btn-primary {
		width: 100%;
	}

	.verified-user {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.verified-avatar {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.verified-badge {
		grid-column: 1 / -1;
		width: fit-content;
	}

	.payment-methods {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.payment-card {
		height: auto;
		min-height: 112px;
		padding: 12px;
		text-align: center;
	}

	.payment-brand {
		flex-direction: column;
		gap: 8px;
	}

	html[dir="rtl"] .payment-brand {
		flex-direction: column;
	}

	.payment-brand-mark {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.payment-brand-text {
		align-items: center;
		width: 100%;
	}

	html[dir="rtl"] .payment-brand-text {
		align-items: center;
		text-align: center;
	}

	.payment-title {
		font-size: 14px;
		text-align: center;
	}

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

	.product-group-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.product-tabs {
		gap: 22px;
		min-height: 40px;
		scrollbar-width: none;
	}

	.product-tabs::-webkit-scrollbar {
		display: none;
	}

	.product-tab {
		height: 40px;
		padding: 0 1px;
		font-size: 14px;
		white-space: nowrap;
	}

	.product-card {
		min-height: 150px;
		padding: 14px;
	}

	.product-title {
		font-size: 16px;
	}

	.product-price {
		font-size: 22px;
	}

	.total-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.total-actions button {
		flex: 1 1 140px;
	}
}
