.pfm-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a2e;
}

.pfm-login-notice { padding: 40px; text-align: center; background: #f8f9ff; border-radius: 12px; }

.pfm-header { margin-bottom: 18px; }
.pfm-header-title { font-size: 20px; font-weight: 800; color: #1a1a2e; }
.pfm-header-sub { font-size: 13px; color: #666; margin-top: 2px; }

/* Summary card */
.pfm-summary-card {
	background: linear-gradient(135deg, #0f3460 0%, #16213e 55%, #1a1a2e 100%);
	color: #fff;
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
}
.pfm-summary-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(46,213,115,.18), transparent 55%);
	pointer-events: none;
}
.pfm-summary-label { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .6px; }
.pfm-summary-amount {
	font-size: 32px;
	font-weight: 800;
	margin: 8px 0 4px;
	font-variant-numeric: tabular-nums;
	font-family: "SF Mono", "Roboto Mono", Consolas, monospace;
	color: #2ed573;
	text-shadow: 0 0 18px rgba(46,213,115,.45);
}
.pfm-summary-sub { font-size: 12px; opacity: .75; }

/* Grid */
.pfm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pfm-empty { grid-column: 1 / -1; text-align: center; color: #777; padding: 30px; background: #f8f9ff; border-radius: 12px; }

/* Card */
.pfm-card {
	background: #fff;
	border: 2px solid #e0e6ef;
	border-radius: 14px;
	padding: 18px;
	position: relative;
	overflow: hidden;
	transition: border-color .2s;
}
.pfm-card-ready { border-color: #2ed573; }
.pfm-card-ready::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #2ed573, #17c0eb, #2ed573);
	background-size: 200% 100%;
	animation: pfm-shimmer 2.4s linear infinite;
}
@keyframes pfm-shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.pfm-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.pfm-card-plan { font-weight: 700; font-size: 14.5px; color: #1a1a2e; }
.pfm-card-principal { font-size: 12px; color: #777; margin-top: 2px; }

.pfm-badge {
	font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
	background: #eef2ff; color: #3730a3; display: inline-flex; align-items: center; gap: 5px;
	white-space: nowrap;
}
.pfm-badge::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6366f1;
	animation: pfm-pulse 1.4s ease-in-out infinite;
}
.pfm-badge-ready { background: #dcfce7; color: #166534; }
.pfm-badge-ready::before { background: #22c55e; }
@keyframes pfm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.4); } }

.pfm-live-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.pfm-live-amount {
	font-family: "SF Mono", "Roboto Mono", Consolas, monospace;
	font-size: 22px;
	font-weight: 700;
	color: #0f3460;
	margin-bottom: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .2px;
}
.pfm-card-ready .pfm-live-amount { color: #16a34a; }

.pfm-progress-track { background: #eef1f7; border-radius: 20px; height: 6px; overflow: hidden; margin-bottom: 8px; }
.pfm-progress-fill { background: linear-gradient(90deg, #0f3460, #17c0eb); height: 100%; border-radius: 20px; transition: width .3s linear; }
.pfm-card-ready .pfm-progress-fill { background: linear-gradient(90deg, #22c55e, #2ed573); }

.pfm-cycle-dates { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 12px; }
.pfm-reset-note { font-style: italic; }

.pfm-card-foot {
	display: flex; justify-content: space-between; align-items: center;
	font-size: 12px; color: #777; border-top: 1px dashed #eee; padding-top: 10px;
}
.pfm-card-foot strong { color: #1a1a2e; }

@media (max-width: 480px) {
	.pfm-summary-amount { font-size: 26px; }
	.pfm-live-amount { font-size: 19px; }
}
