:root {
	--paypal-blue: #032f98;
	--card-bg: #ffffff;
	--border: #d1d5db;
	--text: #111827;
	--muted: #6b7280;
	--timer-bg: #f8f9fa;
	--pdf-bg: #f8f9fa;
	--progress-bg: #f7f9fb;
	--white: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--paypal-blue);
	color: var(--text);
}

.container {
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 0 12px;
}

/* Header */
.header {
	background: var(--white);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 77px;
	position: relative;
	z-index: 101;
}

.header-logo img {
	display: block;
	height: 40px;
	width: auto;
}

@media screen and (max-width: 767px) {
	.header-logo img {
		height: 32px;
	}
}

.desktop-nav {
	display: none;
	align-items: center;
	gap: 24px;
}

.desktop-nav a {
	color: var(--paypal-blue);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
}

.desktop-nav a:hover {
	text-decoration: underline;
}

.nav-cta {
	padding: 10px 22px;
	border: 2px solid var(--paypal-blue);
	border-radius: 24px;
	font-weight: 600;
}

.burger-menu {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 102;
}

.burger-menu span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--paypal-blue);
	border-radius: 1px;
	transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
	opacity: 0;
}

.burger-menu.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--white);
	z-index: 99;
	padding: 96px 24px 24px;
	flex-direction: column;
	gap: 20px;
}

.mobile-nav.active {
	display: flex;
}

.mobile-link {
	color: var(--paypal-blue);
	text-decoration: none;
	font-size: 20px;
	font-weight: 500;
}

/* Main */
.main {
	flex: 1 0 auto;
	padding: 24px 0 20px;
}

.invoice-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.funds-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	width: 100%;
	max-width: 500px;
	box-sizing: border-box;
	text-align: center;
}

.funds-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #374151;
}

.funds-amount-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.usdt-icon {
	flex-shrink: 0;
}

.funds-amount {
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	color: var(--paypal-blue);
	text-shadow: 0 2px 4px rgba(3, 47, 152, 0.1);
	white-space: nowrap;
}

.funds-details {
	margin-block: 32px;
}

.detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	border-bottom: 2px solid var(--paypal-blue);
	margin-bottom: 4px;
	transition: all 0.3s ease;
}

.detail-row:last-child {
	margin-bottom: 0;
}

.detail-label {
	font-size: 16px;
	color: var(--muted);
	font-weight: 500;
	flex-shrink: 0;
}

.detail-value {
	font-family: 'Courier New', Courier, monospace;
	font-size: 16px;
	color: var(--text);
	font-weight: 600;
	text-align: right;
	word-break: break-all;
}

.payment-method {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font-family: 'Courier New', Courier, monospace;
}

.visa-badge {
	display: block;
	width: 28px;
	height: auto;
	flex-shrink: 0;
}

.transaction-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 4px 12px;
	border: 1px solid rgba(217, 119, 6, 0.5);
	border-radius: 999px;
	background: #ffffff;
	color: #d97706;
	line-height: 1.2;
	white-space: nowrap;
	word-break: normal;
}

.transaction-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: auto;
	height: 10px;
	flex: 0 0 auto;
	color: #d97706;
}

.transaction-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	animation: status-dot-bounce 1s infinite ease-in-out;
}

.transaction-status-dot:nth-child(1) {
	animation-delay: -0.3s;
}

.transaction-status-dot:nth-child(2) {
	animation-delay: -0.15s;
}

@keyframes status-dot-bounce {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.55;
	}

	40% {
		transform: translateY(-3px);
		opacity: 1;
	}
}

.button-timer-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
}

.expiration-timer {
	display: flex;
	align-items: center;
	gap: 15px;
	background: var(--timer-bg);
	border-radius: 20px;
	padding: 12px 20px;
	color: #333;
	text-align: center;
	flex: 1;
}

.timer-progress-circle {
	flex-shrink: 0;
}

#progress-circle {
	transition: stroke-dashoffset 1s ease-in-out;
}

.timer-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.timer-label {
	font-size: 12px;
	opacity: 0.7;
	margin-bottom: 2px;
	text-transform: none;
	font-weight: 400;
	color: #666;
}

.timer-display {
	font-family: 'Courier New', Courier, monospace;
	font-size: 20px;
	font-weight: 700;
	color: var(--paypal-blue);
}

.help-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: none;
	background: #e5e7eb;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	margin-left: 8px;
	transition: all 0.3s ease;
}

.help-icon:hover {
	background: #f3f4f6;
	transform: scale(1.1);
}

.help-icon-img {
	display: block;
	width: 12px;
	height: 12px;
}

.receive-btn {
	background: var(--paypal-blue);
	color: var(--white);
	border: none;
	border-radius: 50px;
	padding: 16px 48px;
	font-size: 18px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(3, 47, 152, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.receive-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(3, 47, 152, 0.4);
	background: #021f66;
}

.receive-btn:active {
	transform: translateY(0);
	box-shadow: 0 4px 16px rgba(3, 47, 152, 0.3);
}

.pdf-receipt-section {
	margin-top: 20px;
	padding: 16px;
	background: var(--pdf-bg);
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.pdf-receipt-text {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	max-width: 280px;
}

.download-pdf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	background: transparent;
	border: 2px solid var(--paypal-blue);
	border-radius: 25px;
	color: var(--paypal-blue);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.download-pdf-btn:hover {
	background-color: var(--paypal-blue);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(3, 47, 152, 0.3);
}

.download-pdf-btn:active {
	transform: translateY(0);
}

/* Progress card — Figma node 312:214 */
.info-notice {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	background: var(--progress-bg);
	border: 1px solid var(--border);
	border-radius: 26px;
	padding: 26px 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.progress-rail {
	flex-shrink: 0;
	width: 17px;
	height: 92px;
	display: block;
}

.progress-labels {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 92px;
	flex: 1;
	max-width: 213px;
}

.progress-labels p {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: normal;
	color: var(--text);
	opacity: 0.7;
	word-break: break-word;
}

/* CTA */
.cta-section {
	background: var(--paypal-blue);
	padding: 32px 0;
}

.cta-section .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	text-align: center;
}

.cta-title {
	margin: 0;
	max-width: 339px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--white);
}

.cta-btn {
	height: 42px;
	padding: 10px 32px;
	border: none;
	border-radius: 1000px;
	background: var(--card-bg);
	color: var(--text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.store-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.store-badge-link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.store-badge-img {
	display: block;
	height: 34px;
	width: auto;
}

/* Footer */
.footer {
	background: #000000;
	padding: 26px 0 32px;
}

.footer-logo {
	display: block;
	height: 41px;
	width: auto;
	margin-bottom: 26px;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.footer-row a,
.footer-complaints {
	color: var(--white);
	opacity: 0.7;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

.footer-row a:hover,
.footer-complaints:hover {
	opacity: 1;
}

.footer-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.7);
	margin: 0;
	width: 100%;
}

.footer-copy {
	margin: 0;
	color: var(--white);
	opacity: 0.7;
	font-size: 12px;
	font-weight: 500;
}

/* Tooltip */
.help-tooltip {
	position: fixed;
	background: var(--white);
	color: var(--text);
	padding: 16px;
	border-radius: 12px;
	border: 1px solid var(--border);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 10000;
	width: 280px;
	font-size: 14px;
	line-height: 1.4;
	max-width: calc(100vw - 20px);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.help-tooltip.show {
	opacity: 1;
	visibility: visible;
}

.tooltip-title {
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--paypal-blue);
	font-size: 15px;
}

.tooltip-text {
	font-size: 13px;
	line-height: 1.5;
}

/* PDF modal */
.pdf-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.pdf-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.pdf-modal {
	background: var(--white);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 400px;
	width: 90%;
	transform: scale(0.95);
	transition: transform 0.3s ease;
}

.pdf-modal-overlay.active .pdf-modal {
	transform: scale(1);
}

.pdf-modal-content {
	padding: 32px 24px 24px;
	text-align: center;
}

.pdf-modal-text {
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 24px;
}

.pdf-modal-btn {
	background: var(--paypal-blue);
	color: var(--white);
	border: none;
	border-radius: 12px;
	padding: 12px 32px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

/* Mobile — card with side margins and rounded corners */
@media screen and (max-width: 767px) {
	.main > .container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.invoice-layout {
		width: 100%;
		align-items: stretch;
		gap: 12px;
	}

	.funds-card {
		border-radius: 16px;
		padding: 20px 16px;
		max-width: none;
		width: 100%;
	}

	.funds-title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.funds-amount {
		font-size: 32px;
	}

	.funds-details {
		margin-block: 20px;
	}

	.detail-row {
		padding: 10px 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.detail-label {
		font-size: 13px;
		color: #9ca3af;
	}

	.detail-value {
		font-size: 14px;
		text-align: left;
	}

	.transaction-status-pill {
		align-self: flex-start;
		padding: 4px 10px;
		white-space: normal;
		word-break: normal;
	}

	.transaction-status-icon {
		height: 12px;
	}

	.button-timer-container {
		flex-direction: column;
		gap: 15px;
		align-items: center;
	}

	.expiration-timer {
		width: auto;
		max-width: 100%;
		justify-content: center;
	}

	.receive-btn {
		padding: 12px 32px;
		font-size: 15px;
		width: 100%;
		max-width: 200px;
	}

	.pdf-receipt-section {
		margin-top: 16px;
		padding: 14px;
		border-radius: 10px;
	}

	.pdf-receipt-text {
		font-size: 13px;
		max-width: 100%;
	}

	.download-pdf-btn {
		padding: 8px 16px;
		font-size: 13px;
	}

	.info-notice {
		border-radius: 16px;
		width: 100%;
		max-width: none;
	}
}

/* Desktop — RedotPay-style side-by-side card layout */
@media screen and (min-width: 1024px) {
	.container {
		padding: 0 32px;
	}

	.burger-menu {
		display: none;
	}

	.desktop-nav {
		display: flex;
	}

	.main {
		padding: 40px 0 32px;
	}

	.invoice-layout {
		flex-direction: row;
		align-items: flex-start;
		justify-content: center;
		gap: 24px;
		max-width: 920px;
		margin: 0 auto;
	}

	.funds-card {
		max-width: 500px;
		flex: 1 1 500px;
		padding: 32px;
	}

	.info-notice {
		max-width: 340px;
		flex: 0 0 340px;
		margin-top: 0;
		min-height: 100%;
	}

	.button-timer-container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
