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

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

/* Balance card */
.usp-balance-card {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	color: #fff;
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
	margin-bottom: 24px;
}
.usp-balance-label { font-size: 13px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }
.usp-balance-amount { font-size: 34px; font-weight: 700; margin: 6px 0 2px; }
.usp-balance-sub { font-size: 12px; opacity: .7; }

.usp-section-title { font-size: 16px; font-weight: 700; margin: 22px 0 12px; color: #1a1a2e; }

/* How it works */
.usp-howitworks {
	background: #f0f4ff;
	border: 1px solid #dbe4ff;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 6px;
}
.usp-howitworks-title { font-weight: 700; font-size: 13.5px; color: #0f3460; margin-bottom: 6px; }
.usp-howitworks p { font-size: 12.5px; line-height: 1.6; color: #444; margin: 0; }

/* Plan cards */
.usp-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.usp-plan-card {
	background: #fff;
	border: 2px solid #e0e6ef;
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	transition: border-color .15s, transform .15s;
}
.usp-plan-card:hover { border-color: #0f3460; transform: translateY(-2px); }
.usp-plan-name { font-weight: 700; font-size: 15px; color: #1a1a2e; }
.usp-plan-tagline { font-size: 12px; color: #666; margin: 4px 0 12px; min-height: 32px; }
.usp-plan-stats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 12.5px; }
.usp-plan-stats div { display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding-bottom: 4px; }
.usp-plan-stats span { color: #777; }
.usp-plan-stats strong { color: #0f3460; }

.usp-btn {
	background: #1a1a2e;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.usp-btn:hover { background: #0f3460; }
.usp-btn:disabled { opacity: .5; cursor: not-allowed; }
.usp-btn-primary { background: #e94560; }
.usp-btn-primary:hover { background: #d13950; }
.usp-btn-small { padding: 7px 12px; font-size: 12.5px; }

/* Modal */
.usp-modal-overlay {
	display: none;
	position: fixed; inset: 0;
	background: rgba(15,20,40,.55);
	align-items: center; justify-content: center;
	z-index: 9999;
	padding: 16px;
}
.usp-modal-overlay.usp-open { display: flex; }
.usp-modal {
	background: #fff;
	border-radius: 16px;
	padding: 26px;
	width: 100%;
	max-width: 400px;
	position: relative;
}
.usp-modal-close {
	position: absolute; top: 14px; right: 16px;
	background: none; border: none; font-size: 22px; cursor: pointer; color: #999;
}
.usp-modal h3 { margin: 0 0 4px; font-size: 18px; }
.usp-modal-tagline { font-size: 12.5px; color: #777; margin: 0 0 16px; }

.usp-label { display: block; font-size: 12.5px; font-weight: 600; color: #444; margin-bottom: 6px; }
.usp-input {
	width: 100%;
	border: 2px solid #e0e6ef;
	border-radius: 8px;
	padding: 11px 12px;
	font-size: 15px;
	box-sizing: border-box;
	margin-bottom: 4px;
}
.usp-input:focus { border-color: #0f3460; outline: none; }
.usp-wallet-hint { font-size: 11.5px; color: #888; margin-bottom: 14px; }

.usp-preview-box { background: #f0f4ff; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.usp-preview-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.usp-preview-row span { color: #666; }
.usp-preview-row strong { color: #0f3460; }

.usp-form-msg { font-size: 12.5px; margin-top: 10px; text-align: center; min-height: 16px; }
.usp-form-msg.usp-ok { color: #16a34a; }
.usp-form-msg.usp-err { color: #e94560; }

/* Stakes list */
.usp-empty { color: #888; font-size: 13.5px; text-align: center; padding: 24px; background: #f8f9ff; border-radius: 10px; }
.usp-stakes-list { display: flex; flex-direction: column; gap: 14px; }
.usp-stake-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 14px; padding: 16px 18px; }
.usp-stake-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.usp-stake-plan { font-weight: 700; font-size: 14.5px; }
.usp-stake-principal { font-size: 12px; color: #777; margin-top: 2px; }

.usp-status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.usp-status-completed .usp-status-badge { background: #dcfce7; color: #166534; }
.usp-status-pending_unlock .usp-status-badge { background: #fef3c7; color: #92400e; }
.usp-status-pending_setup .usp-status-badge { background: #ede9fe; color: #5b21b6; }

.usp-progress-track { height: 7px; background: #eef1f7; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.usp-progress-fill { height: 100%; background: linear-gradient(90deg,#0f3460,#e94560); border-radius: 6px; }
.usp-stake-dates { display: flex; justify-content: space-between; font-size: 11px; color: #999; margin-bottom: 12px; }

.usp-stake-figures { display: flex; gap: 22px; margin-bottom: 12px; flex-wrap: wrap; }
.usp-stake-figures div { font-size: 12.5px; }
.usp-stake-figures span { display: block; color: #888; font-size: 11px; }
.usp-stake-figures strong { color: #0f3460; }

.usp-withdrawable-row.usp-withdrawable-ready strong { color: #1e9e5a; }
.usp-withdrawable-row.usp-withdrawable-ready span { color: #1e9e5a; }

.usp-stake-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.usp-hint-text { font-size: 12px; color: #888; padding: 6px 0; }

/* Activity history */
.usp-history-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.usp-history-row {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e8ecf0;
	border-radius: 10px;
	padding: 11px 14px;
}
.usp-history-icon { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: #cbd5e1; }
.usp-history-icon-invest { background: #64748b; }
.usp-history-icon-claim { background: #0f3460; }
.usp-history-rejected .usp-history-icon { background: #e94560; }
.usp-history-pending .usp-history-icon { background: #d97706; }

.usp-history-main { flex: 1; min-width: 0; }
.usp-history-label { font-size: 13px; font-weight: 600; color: #1a1a2e; }
.usp-history-datetime { font-size: 11px; color: #999; margin-top: 2px; }

.usp-history-amount { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.usp-history-amount-plus { color: #1e9e5a; }
.usp-history-amount-minus { color: #e94560; }
.usp-history-amount-neutral { color: #999; }

@media (max-width: 480px) {
	.usp-plans-grid { grid-template-columns: 1fr; }
	.usp-balance-amount { font-size: 28px; }
}
