/* Project Manager Pro — payment page */

.pmp-payment-body {
	margin: 0;
	background: #f1f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111827;
	-webkit-font-smoothing: antialiased;
}

.pmp-pay-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

/* Grid layout */
.pmp-pay-grid {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 0;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba( 15, 23, 42, 0.12 );
}
@media ( max-width: 820px ) {
	.pmp-pay-grid { grid-template-columns: 1fr; }
}

/* Summary column */
.pmp-pay-summary {
	background: linear-gradient( 160deg, var( --pmp-accent, #2563eb ), #1e293b );
	color: #fff;
	padding: 36px 30px;
}
.pmp-pay-brand {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.85;
	margin-bottom: 18px;
}
.pmp-pay-pkgname { font-size: 26px; margin: 0 0 8px; line-height: 1.2; }
.pmp-pay-short { opacity: 0.9; font-size: 14px; margin: 0 0 22px; }
.pmp-pay-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pmp-pay-oldprice { text-decoration: line-through; opacity: 0.6; font-size: 16px; }
.pmp-pay-amount { font-size: 34px; font-weight: 800; }
.pmp-pay-billing { font-size: 13px; opacity: 0.85; }
.pmp-pay-features { list-style: none; padding: 0; margin: 0 0 22px; }
.pmp-pay-features li {
	position: relative;
	padding: 6px 0 6px 26px;
	font-size: 14px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.12 );
}
.pmp-pay-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
}
.pmp-pay-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; opacity: 0.9; margin-bottom: 18px; }
.pmp-pay-secure {
	display: inline-block;
	background: rgba( 255, 255, 255, 0.15 );
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
}

/* Form column */
.pmp-pay-form-col { padding: 36px 34px; }
.pmp-pay-desc { color: #374151; margin-bottom: 24px; font-size: 15px; }
.pmp-pay-form h2 { font-size: 16px; margin: 24px 0 12px; }
.pmp-pay-form h2:first-child { margin-top: 0; }

.pmp-pay-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media ( max-width: 520px ) { .pmp-pay-fields { grid-template-columns: 1fr; } }
.pmp-pay-field { display: flex; flex-direction: column; }
.pmp-pay-field-full { grid-column: 1 / -1; }
.pmp-pay-field label { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.pmp-pay-field input,
.pmp-pay-field textarea {
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.pmp-pay-field input:focus,
.pmp-pay-field textarea:focus {
	outline: none;
	border-color: var( --pmp-accent, #2563eb );
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

/* Methods */
.pmp-pay-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.pmp-pay-method {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 14px;
	cursor: pointer;
	font-size: 14px;
}
.pmp-pay-method input { accent-color: var( --pmp-accent, #2563eb ); }
.pmp-pay-method.is-selected {
	border-color: var( --pmp-accent, #2563eb );
	background: #eff6ff;
	box-shadow: 0 0 0 2px rgba( 37, 99, 235, .18 );
}

.pmp-pay-instructions {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 16px 0;
	font-size: 14px;
}
.pmp-pay-instructions h3 { margin: 0 0 8px; font-size: 14px; }

/* Button */
.pmp-btn {
	display: inline-block;
	background: var( --pmp-accent, #2563eb );
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s;
}
.pmp-btn:hover { filter: brightness( 0.94 ); }
.pmp-btn:disabled { opacity: 0.6; cursor: default; }
.pmp-btn-lg { width: 100%; margin-top: 22px; padding: 14px; font-size: 16px; }

/* Result / errors */
.pmp-pay-result { margin-top: 16px; font-size: 14px; padding: 0; }
.pmp-pay-result-success {
	background: #dcfce7; color: #166534;
	padding: 12px 14px; border-radius: 10px;
}
.pmp-pay-result-error {
	background: #fee2e2; color: #991b1b;
	padding: 12px 14px; border-radius: 10px;
}

/* Error / gate cards */
.pmp-pay-card {
	max-width: 460px;
	margin: 40px auto;
	background: #fff;
	border-radius: 16px;
	padding: 40px;
	text-align: center;
	box-shadow: 0 20px 45px rgba( 15, 23, 42, 0.12 );
}
.pmp-pay-error-icon { font-size: 40px; margin-bottom: 8px; }
.pmp-pay-gate input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 12px;
	margin: 14px 0;
	font-size: 15px;
}
.pmp-pay-formerror { color: #991b1b; }

/* Footer */
.pmp-pay-footer {
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	margin-top: 24px;
}

/* ---- Gateways (Phase 3) ---- */
.pmp-pay-method { flex-direction: row; gap: 8px; }
.pmp-pay-method-icon { font-size: 18px; line-height: 1; }
.pmp-pay-gateway-panel { margin: 14px 0; }
.pmp-pay-account { margin: 8px 0; }

.pmp-bank-account-title { margin: 18px 0 4px; font-size: 14px; font-weight: 700; color: #111827; }
.pmp-bank-account-title:first-of-type { margin-top: 8px; }
.pmp-bank-account-note { margin: -4px 0 12px; font-size: 13px; color: #6b7280; }
.pmp-bank-account-note p { margin: 0 0 6px; }
.pmp-bank-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pmp-bank-table th { text-align: left; width: 42%; padding: 7px 8px; color: #6b7280; font-weight: 600; font-size: 13px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.pmp-bank-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f7; font-size: 14px; }

.pmp-copyable { cursor: pointer; position: relative; border-bottom: 1px dashed #cbd5e1; }
.pmp-copyable:hover { color: var( --pmp-accent, #2563eb ); }
.pmp-copyable.pmp-copied::after {
	content: "Copied"; position: absolute; left: 0; top: -22px;
	background: #16a34a; color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}

.pmp-crypto-wallets { display: grid; grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) ); gap: 14px; margin: 12px 0; }
.pmp-crypto-wallet { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; text-align: center; }
.pmp-crypto-sym { font-weight: 800; margin-bottom: 8px; }
.pmp-crypto-net { font-size: 11px; background: #eef2ff; color: #4338ca; padding: 1px 7px; border-radius: 999px; }
.pmp-crypto-qr { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 8px; }
.pmp-crypto-addr { display: block; word-break: break-all; font-size: 12px; background: #f8fafc; padding: 6px 8px; border-radius: 6px; }

/* Thank-you popup (shown after a successful / submitted payment) */
.pmp-ty-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 15, 23, 42, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: pmp-ty-fade 0.15s ease-out;
}
@keyframes pmp-ty-fade { from { opacity: 0; } to { opacity: 1; } }

.pmp-ty-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 420px;
	width: 100%;
	padding: 34px 30px 28px;
	text-align: center;
	position: relative;
	box-shadow: 0 25px 60px rgba( 15, 23, 42, 0.3 );
	animation: pmp-ty-pop 0.2s ease-out;
}
@keyframes pmp-ty-pop {
	from { opacity: 0; transform: translateY( 12px ) scale( 0.97 ); }
	to { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
}

.pmp-ty-icon {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	margin: 0 auto 16px;
}
.pmp-ty-modal h2 { margin: 0 0 10px; font-size: 22px; color: #111827; }
.pmp-ty-modal p { margin: 0 0 24px; color: #4b5563; font-size: 14.5px; line-height: 1.55; }

.pmp-ty-actions { display: flex; flex-direction: column; gap: 10px; }
.pmp-ty-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
}
.pmp-ty-btn-primary { background: var( --pmp-accent, #2563eb ); color: #fff; }
.pmp-ty-btn-primary:hover { filter: brightness( 0.94 ); color: #fff; }
.pmp-ty-btn-secondary { background: #fff; color: #111827; border-color: #e2e8f0; }
.pmp-ty-btn-secondary:hover { background: #f8fafc; }
.pmp-ty-btn-close { background: transparent; color: #6b7280; }
.pmp-ty-btn-close:hover { color: #111827; }

.pmp-ty-x {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #f1f5f9;
	color: #64748b;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.pmp-ty-x:hover { background: #e2e8f0; color: #111827; }
.pmp-crypto-conf { font-size: 13px; color: #6b7280; margin-top: 8px; }
