/* InfoQ Payment Collector — 3D Card Flip Animation */

.infoq-card-scene {
	width: 100%;
	max-width: 400px;
	height: 240px;
	margin: 0 auto 24px;
	perspective: 1000px;
}

.infoq-card {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 16px;
	cursor: default;
}

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

.infoq-card-face {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	overflow: hidden;
}

/* Front face */
.infoq-card-front {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Holographic shine overlay */
.infoq-card-front::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.06) 0%,
		transparent 50%,
		rgba(255, 255, 255, 0.03) 100%
	);
	pointer-events: none;
}

/* Back face */
.infoq-card-back {
	background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Card network logo area */
.infoq-card-network {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 40px;
}

.infoq-card-network-visa::after {
	content: 'VISA';
	font-size: 22px;
	font-weight: 800;
	font-style: italic;
	color: #fff;
	letter-spacing: 0.04em;
	font-family: 'Arial', sans-serif;
}

.infoq-card-network-mastercard {
	position: relative;
}
.infoq-card-network-mastercard::before,
.infoq-card-network-mastercard::after {
	content: '';
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	position: absolute;
	top: 4px;
}
.infoq-card-network-mastercard::before {
	background: #eb001b;
	right: 20px;
}
.infoq-card-network-mastercard::after {
	background: #f79e1b;
	right: 4px;
	opacity: 0.9;
}

.infoq-card-network-amex::after {
	content: 'AMEX';
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.1em;
	background: rgba(255, 255, 255, 0.15);
	padding: 4px 10px;
	border-radius: 4px;
}

/* Card number */
.infoq-card-number-display {
	font-family: 'Courier New', 'Courier', monospace;
	font-size: 22px;
	letter-spacing: 0.18em;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	margin: 8px 0;
}

/* Info row (name + expiry) */
.infoq-card-info-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
.infoq-card-info-block {
	display: flex;
	flex-direction: column;
}
.infoq-card-info-label {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 2px;
}
.infoq-card-info-value {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: #fff;
	font-weight: 500;
	text-transform: uppercase;
}

/* Back — magnetic stripe */
.infoq-card-stripe {
	background: #111;
	height: 44px;
	margin-top: 28px;
}

/* Signature / CVV row */
.infoq-card-sig-row {
	display: flex;
	align-items: center;
	padding: 16px 24px;
	gap: 12px;
}
.infoq-card-sig-strip {
	flex: 1;
	height: 36px;
	background: repeating-linear-gradient(
		to bottom,
		#f0f0f0 0px,
		#f0f0f0 4px,
		#fff 4px,
		#fff 8px
	);
	border-radius: 2px;
}
.infoq-card-cvv-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	color: #111;
	padding: 4px 12px;
	border-radius: 4px;
	min-width: 52px;
}
.infoq-card-cvv-box .infoq-card-info-label {
	color: #555;
}
.infoq-card-cvv-value {
	font-family: 'Courier New', monospace;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	letter-spacing: 0.1em;
}

/* Card type color themes */
.infoq-card-theme-visa .infoq-card-front {
	background: linear-gradient(135deg, #1a1f71 0%, #0057a3 100%);
}
.infoq-card-theme-mastercard .infoq-card-front {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.infoq-card-theme-amex .infoq-card-front {
	background: linear-gradient(135deg, #007b5e 0%, #00b386 100%);
}
