:root {
	--gp-bg: #f4f6fb;
	--gp-card: #ffffff;
	--gp-text: #0f172a;
	--gp-muted: #64748b;
	--gp-border: #e2e8f0;
	--gp-primary: #0f172a;
	--gp-primary-hover: #1e293b;
	--gp-accent: #16a34a;
}

* {
	box-sizing: border-box;
}

.gp-body {
	margin: 0;
	background: var(--gp-bg);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--gp-text);
}

.gp-payment {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

.gp-payment-head {
	background: var(--gp-card);
	border: 1px solid var(--gp-border);
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.gp-payment-title {
	font-size: 18px;
	margin: 0;
	font-weight: 700;
}

.gp-payment-amount {
	text-align: right;
	line-height: 1.2;
}

.gp-payment-amount span {
	display: block;
	font-size: 12px;
	color: var(--gp-muted);
}

.gp-payment-amount strong {
	font-size: 22px;
	color: var(--gp-text);
}

.gp-test-badge {
	width: 100%;
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.gp-form {
	background: var(--gp-card);
	border: 1px solid var(--gp-border);
	border-radius: 14px;
	padding: 6px 24px 24px;
}

.gp-section {
	padding: 18px 0;
	border-bottom: 1px solid var(--gp-border);
}

.gp-section-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--gp-muted);
	margin: 0 0 12px;
	font-weight: 700;
}

.gp-row {
	display: flex;
	gap: 12px;
}

.gp-row + .gp-row {
	margin-top: 12px;
}

.gp-row-3 > .gp-field {
	flex: 1;
}

.gp-field {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gp-field-wide {
	flex: 100%;
}

.gp-field label {
	font-size: 12px;
	color: var(--gp-muted);
	margin-bottom: 5px;
	font-weight: 600;
}

.gp-input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--gp-border);
	border-radius: 9px;
	font-size: 15px;
	background: #fff;
	color: var(--gp-text);
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.gp-input:focus {
	border-color: var(--gp-primary);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, .08);
}

.gp-security-note {
	font-size: 12px;
	color: var(--gp-muted);
	line-height: 1.5;
	padding: 16px 0 6px;
}

.gp-submit {
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: var(--gp-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 14px 18px;
	cursor: pointer;
	transition: background .15s;
}

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

.gp-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.gp-confirmation {
	font-size: 14px;
}

/* ── Ödeme sayfası: seçili ödeme planı ── */
.gp-selected-plan {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
	border: 1px solid #ddd6fe;
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 18px;
}

.gp-selected-plan__icon {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #ede9fe;
	color: #6d28d9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gp-selected-plan__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #7c3aed;
	font-weight: 700;
	margin-bottom: 4px;
}

.gp-selected-plan__title {
	font-size: 18px;
	font-weight: 700;
	color: #4338ca;
	margin-bottom: 8px;
}

.gp-selected-plan__details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.gp-selected-plan__details li {
	font-size: 13px;
	color: #475569;
}

.gp-selected-plan__details strong {
	color: #0f172a;
}

/* ── Ödeme sayfası: güven rozetleri ── */
.gp-security-badges {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 0 4px;
}

.gp-security-badges__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
}

.gp-security-badges__item svg {
	color: #16a34a;
	flex: 0 0 auto;
}

/* ── Ödeme sayfası: kart logoları ── */
.gp-trust-strip__cards--center {
	justify-content: center;
	margin-bottom: 4px;
}

/* ── Canlı kart görseli (ön/arka yüz, 3D flip) ── */
.gp-card-visual {
	position: relative;
	width: 100%;
	max-width: 340px;
	aspect-ratio: 1.586 / 1;
	margin: 4px auto 14px;
	perspective: 1200px;
}

.gp-card-visual__inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform .6s cubic-bezier(.4, .2, .2, 1);
}

.gp-card-visual__inner.is-flipped {
	transform: rotateY(180deg);
}

.gp-card-visual__face {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	padding: 18px 20px;
	color: #fff;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	overflow: hidden;
	background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
	transition: background .3s ease;
}

.gp-card-visual__face--front {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.gp-card-visual__face::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 45%);
	pointer-events: none;
}

.gp-card-visual__face--back {
	transform: rotateY(180deg);
	padding: 0;
	display: flex;
	flex-direction: column;
}

.gp-card-visual[data-brand="visa"] .gp-card-visual__face {
	background: linear-gradient(135deg, #1a1f71 0%, #2b3aa8 100%);
}

.gp-card-visual[data-brand="mastercard"] .gp-card-visual__face {
	background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

.gp-card-visual[data-brand="amex"] .gp-card-visual__face {
	background: linear-gradient(135deg, #1f72cd 0%, #0b4d99 100%);
}

.gp-card-visual[data-brand="troy"] .gp-card-visual__face {
	background: linear-gradient(135deg, #00b4e6 0%, #0077b6 100%);
}

.gp-card-visual__chip {
	position: relative;
	z-index: 1;
}

.gp-card-visual__brand {
	position: absolute;
	top: 18px;
	right: 20px;
	z-index: 1;
}

.gp-card-visual__brand-text {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.gp-card-visual__number {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 14px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.gp-card-visual__meta {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.gp-card-visual__label {
	display: block;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .75;
	margin-bottom: 2px;
}

.gp-card-visual__holder {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
}

.gp-card-visual__exp {
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
}

/* ── Kart arka yüzü ── */
.gp-card-visual__stripe {
	height: 44px;
	margin-top: 20px;
	background: #111827;
	width: 100%;
}

.gp-card-visual__signature {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 16px 20px 0;
	background: #fff;
	border-radius: 4px;
	padding: 8px 10px;
}

.gp-card-visual__cvv-label {
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.gp-card-visual__cvv {
	background: #e5e7eb;
	color: #111827;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .12em;
	padding: 2px 10px;
	border-radius: 4px;
	font-variant-numeric: tabular-nums;
	min-width: 52px;
	text-align: center;
}

.gp-card-visual__back-brand {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 1;
	font-size: 13px;
}

.gp-card-visual__back-note {
	margin: auto 20px 16px;
	font-size: 10px;
	line-height: 1.4;
	opacity: .7;
}

/* ── BIN ile algılanan banka ── */
.gp-card-bank {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 auto 14px;
	padding: 8px 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	font-size: 13px;
	color: #166534;
	width: fit-content;
}

.gp-card-bank__logo {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
}

.gp-card-bank__name {
	font-weight: 600;
}

/* ── Taksit seçenekleri (ürün detay / checkout / ödeme sayfası) ── */
.gp-installments,
.gp-checkout-installments {
	margin-top: 10px;
	border: 1px solid var(--gp-border);
	border-radius: 10px;
	padding: 12px 14px;
	background: #f8fafc;
}

/* ── Ürün detay taksit kutusu (satır içi, popup stiliyle) ── */
.gp-inst {
	margin-top: 14px;
	padding: 16px 16px 14px;
	text-align: center;
	background: linear-gradient(135deg, #eef4ff 0%, #f7f4ff 55%, #fff5fb 100%);
	border: 1px solid #e2ebfb;
	border-radius: 20px;
	box-shadow: 0 12px 30px -20px rgba(15, 23, 42, .35);
	box-sizing: border-box;
}

.gp-inst * {
	box-sizing: border-box;
}

.gp-inst__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(90deg, #1e5bdb, #7c3aed, #ec4899, #f97316, #1e5bdb);
	background-size: 300% 100%;
	animation: gpInstShine 3.4s linear infinite;
}

.gp-inst__title {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: #0f172a;
}

.gp-inst__title span {
	background: linear-gradient(90deg, #1e5bdb, #7c3aed 60%, #ec4899);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #1e5bdb;
}

.gp-inst__sub {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}

.gp-inst__plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.gp-inst__plan {
	position: relative;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px;
	text-align: left;
	background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
	border: 1px solid #dbe7fb;
	border-radius: 14px;
	box-shadow: 0 10px 22px -20px rgba(30, 91, 219, .7);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gp-inst__plan::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--sn-blue, #1e5bdb), #2f7cf6);
}

.gp-inst__plan:hover {
	transform: translateY(-2px);
	border-color: #bcd2f7;
	box-shadow: 0 16px 30px -18px rgba(30, 91, 219, .55);
}

.gp-inst__count {
	flex: 0 0 52px;
	height: 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(160deg, var(--sn-blue, #1e5bdb), #3b82f6);
	color: #fff;
	line-height: 1;
	box-shadow: 0 8px 18px -8px rgba(30, 91, 219, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.gp-inst__count strong {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.gp-inst__count span {
	margin-top: 3px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .92;
}

.gp-inst__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.gp-inst__total {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #0f172a;
}

.gp-inst__break {
	font-size: 11.5px;
	color: #64748b;
}

/* Öne çıkan plan (en yüksek taksit) */
.gp-inst__plan--featured {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1e5bdb 100%);
	border-color: #1e5bdb;
	box-shadow: 0 16px 30px -16px rgba(30, 91, 219, .85);
}

.gp-inst__plan--featured::before {
	background: linear-gradient(180deg, #f59e0b, var(--sn-hot, #e23d3d));
}

.gp-inst__plan--featured:hover {
	border-color: #2f7cf6;
	box-shadow: 0 22px 40px -16px rgba(30, 91, 219, .9);
}

.gp-inst__plan--featured .gp-inst__count {
	background: linear-gradient(160deg, #f59e0b, #f97316);
	box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.gp-inst__plan--featured .gp-inst__total {
	color: #fff;
}

.gp-inst__plan--featured .gp-inst__break {
	color: rgba(255, 255, 255, .78);
}

.gp-inst__plan-tag {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #15803d;
	background: #e7f9ee;
	border: 1px solid #c9eed9;
}

.gp-inst__plan--featured .gp-inst__plan-tag {
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .3);
}

.gp-inst__plan-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 9px;
	border-bottom-left-radius: 12px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #0f172a;
	background: linear-gradient(90deg, #fbbf24, #f59e0b);
	box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5);
}

.gp-inst__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.gp-inst__secure {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #15803d;
	background: #eefbf3;
	border: 1px solid #d3f2e0;
}

.gp-inst__brands {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.gp-inst__brands .gp-cardlogo {
	display: inline-flex;
	width: 42px;
	height: 27px;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.gp-inst__brands .gp-cardlogo svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Ödeme sayfası kart logosu satırı (gp-trust-strip__cards) */
.gp-trust-strip__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.gp-trust-strip__cards .gp-cardlogo {
	display: inline-flex;
	width: 60px;
	height: 38px;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.gp-trust-strip__cards .gp-cardlogo svg {
	width: 100%;
	height: 100%;
	display: block;
}

@media (max-width: 480px) {
	.gp-trust-strip__cards {
		flex-wrap: nowrap;
		gap: 5px;
	}

	.gp-trust-strip__cards .gp-cardlogo {
		width: auto;
		flex: 1 1 0;
		min-width: 0;
		height: 32px;
	}

	.gp-trust-strip__cards .gp-cardlogo svg {
		width: 100%;
		height: 100%;
	}
}

@keyframes gpInstShine {
	from { background-position: 0% 50%; }
	to { background-position: 300% 50%; }
}

@media (max-width: 420px) {
	.gp-inst__plans {
		grid-template-columns: 1fr;
	}

	.gp-inst__count {
		flex-basis: 48px;
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-inst__badge {
		animation: none;
	}

	.gp-inst__plan {
		transition: none;
	}

	.gp-inst__plan:hover {
		transform: none;
	}
}

.gp-trust-strip__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 12px;
	border-top: 1px dashed var(--gp-border);
}

.gp-installments__head,
.gp-checkout-installments__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--gp-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.gp-installments__list,
.gp-checkout-installments__list,
.gp-trust-strip__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Tema checkout stili (.checkout-payment-list label / label>span / input)
   taksit satırlarını ezmesin diye yüksek özgüllük kullanılır. */
.gp-checkout-installments .gp-installment,
.gp-checkout-installments .gp-installment > span,
.gp-installments .gp-installment,
.gp-installments .gp-installment > span {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--gp-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	font-size: 14px;
	font-weight: 400;
	color: var(--gp-text);
	width: auto;
	margin: 0;
	opacity: 1;
	position: static;
	pointer-events: auto;
}

.gp-checkout-installments .gp-installment > span,
.gp-installments .gp-installment > span {
	padding: 0;
	border: 0;
	flex: 0 0 auto;
}

.gp-checkout-installments .gp-installment:hover,
.gp-installments .gp-installment:hover {
	border-color: var(--gp-primary);
}

.gp-checkout-installments .gp-installment input[type="radio"],
.gp-installments .gp-installment input[type="radio"] {
	position: static;
	opacity: 1;
	pointer-events: auto;
	width: auto;
	height: auto;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--gp-primary);
}

.gp-checkout-installments .gp-installment__count,
.gp-installments .gp-installment__count {
	font-weight: 600;
}

.gp-checkout-installments .gp-installment__monthly,
.gp-installments .gp-installment__monthly {
	margin-left: auto;
	color: var(--gp-muted);
	font-size: 13px;
	font-weight: 400;
}

.gp-checkout-installments .gp-installment:has(input:checked),
.gp-installments .gp-installment:has(input:checked) {
	border-color: var(--gp-primary);
	background: #eef2ff;
}

.gp-installment--single {
	margin-bottom: 6px;
}

.gp-installments__note {
	margin-top: 8px;
	font-size: 12px;
	color: var(--gp-muted);
	line-height: 1.4;
}

@media (max-width: 520px) {
	.gp-row-3 {
		flex-wrap: wrap;
	}

	.gp-row-3 > .gp-field {
		min-width: 30%;
	}
}
