/* Project Manager Pro — client dashboard & auth */

.pmp-btn {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	border: none;
	border-radius: 10px;
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: filter .15s;
}
.pmp-btn:hover { filter: brightness(.94); color: #fff; }
.pmp-btn-lg { width: 100%; padding: 13px; font-size: 16px; }
.pmp-btn-sm { padding: 7px 14px; font-size: 13px; }
.pmp-btn-ghost { background: transparent; color: #2563eb !important; border: 1px solid #d1d5db; }
.pmp-btn-ghost:hover { background: #f3f4f6; color: #2563eb; }

/* ---- Auth cards ---- */
.pmp-auth-card {
	max-width: 420px;
	margin: 30px auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.pmp-auth-title { margin: 0 0 20px; font-size: 22px; }
.pmp-auth-form label { display: block; margin-bottom: 14px; }
.pmp-auth-form label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.pmp-auth-form input[type="text"],
.pmp-auth-form input[type="email"],
.pmp-auth-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 15px;
}
.pmp-auth-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.pmp-auth-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pmp-auth-remember > span { margin: 0; font-weight: 400; }
.pmp-auth-error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.pmp-auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.pmp-auth-links a { color: #2563eb; text-decoration: none; }

/* ---- Dashboard ---- */
.pmp-dash {
	max-width: 980px;
	margin: 0 auto;
	font-family: inherit;
}
.pmp-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.pmp-dash-hello { color: #6b7280; font-size: 14px; }
.pmp-dash-name { margin: 2px 0 0; font-size: 24px; }
.pmp-dash-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.pmp-dash-notice-success { background: #dcfce7; color: #166534; }
.pmp-dash-notice-error { background: #fee2e2; color: #991b1b; }

.pmp-dash-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 22px;
}
.pmp-dash-tab {
	padding: 10px 16px;
	text-decoration: none;
	color: #6b7280;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.pmp-dash-tab:hover { color: #111827; }
.pmp-dash-tab.is-active { color: #2563eb; border-bottom-color: #2563eb; }

.pmp-dash-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 24px;
}
@media (max-width: 700px) { .pmp-dash-cards { grid-template-columns: repeat(2, 1fr); } }
.pmp-dash-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}
.pmp-dash-card-value { font-size: 22px; font-weight: 800; }
.pmp-dash-card-label { font-size: 13px; color: #6b7280; margin-top: 2px; }

.pmp-dash-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 20px;
}
.pmp-dash-panel h3 { margin: 0 0 14px; font-size: 17px; }
.pmp-dash-sub { color: #6b7280; margin-top: -8px; }
.pmp-dash-empty { color: #9ca3af; }

.pmp-dash-table { width: 100%; border-collapse: collapse; }
.pmp-dash-table th, .pmp-dash-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.pmp-dash-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }

.pmp-dash-list { list-style: none; padding: 0; margin: 0; }
.pmp-dash-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }

/* Status pills */
.pmp-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pmp-pill-paid, .pmp-pill-approved, .pmp-pill-completed, .pmp-pill-delivered, .pmp-pill-active { background: #dcfce7; color: #166534; }
.pmp-pill-pending, .pmp-pill-testing, .pmp-pill-in_progress, .pmp-pill-unpaid { background: #fef9c3; color: #854d0e; }
.pmp-pill-rejected, .pmp-pill-cancelled { background: #fee2e2; color: #991b1b; }

/* Projects */
.pmp-proj { border: 1px solid #eef2f7; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.pmp-proj-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pmp-proj-num { color: #9ca3af; font-size: 13px; margin-left: 8px; }
.pmp-proj-bar { background: #eef2f7; border-radius: 999px; height: 8px; overflow: hidden; }
.pmp-proj-bar-fill { background: #2563eb; height: 100%; border-radius: 999px; transition: width .3s; }
.pmp-proj-bar-fill.is-done { background: #16a34a; }
.pmp-proj-meta { display: flex; gap: 18px; margin-top: 8px; color: #6b7280; font-size: 13px; }

/* Profile */
.pmp-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 640px) { .pmp-profile-grid { grid-template-columns: 1fr; } }
.pmp-profile-form label { display: block; }
.pmp-profile-form label > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #374151; }
.pmp-profile-form input {
	width: 100%; box-sizing: border-box;
	border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
.pmp-profile-form input:disabled { background: #f9fafb; color: #6b7280; }
.pmp-profile-hint { color: #9ca3af; font-size: 12px; }
.pmp-profile-sep { border: none; border-top: 1px solid #f1f5f9; margin: 22px 0; }

/* Subscription card (dashboard) */
.pmp-sub-card { border: 1px solid #eef2f7; border-radius: 12px; padding: 16px; }
.pmp-sub-main { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pmp-sub-meta { display: flex; gap: 18px; color: #6b7280; font-size: 13px; }

/* Extra subscription status pills */
.pmp-pill-paused { background: #e0e7ff; color: #3730a3; }
.pmp-pill-expired { background: #fee2e2; color: #991b1b; }

/* Subscription cycle progress */
.pmp-sub-progress { margin-top: 12px; }
.pmp-sub-progress-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.pmp-sub-days { font-weight: 600; color: #374151; }
.pmp-sub-days.is-soon { color: #b45309; }
.pmp-sub-cyclepct { color: #9ca3af; }
.pmp-proj-bar-fill.is-warn { background: #f59e0b; }

/* ---- Renewal alert banner ---- */
.pmp-renew-alert{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#fffbeb,#fef3c7);border:1px solid #fde68a;border-radius:14px;padding:14px 18px;margin-bottom:18px}
.pmp-renew-alert-icon{font-size:26px;line-height:1}
.pmp-renew-alert-body{display:flex;flex-direction:column;flex:1}
.pmp-renew-alert-body strong{color:#92400e;font-size:15px}
.pmp-renew-alert-body span{color:#b45309;font-size:13px}
.pmp-renew-alert-btn{background:#d97706;color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:10px 20px;border-radius:10px;white-space:nowrap;transition:background .15s,transform .15s}
.pmp-renew-alert-btn:hover{background:#b45309;color:#fff;transform:translateY(-1px)}

/* ---- Redesigned Current Subscription card ---- */
.pmp-subx{border:1px solid #e5e7eb;border-radius:16px;padding:22px;background:linear-gradient(180deg,#ffffff,#f9fafb);box-shadow:0 2px 10px rgba(15,23,42,.04);margin-bottom:14px}
.pmp-subx.is-soon{border-color:#fcd34d;box-shadow:0 6px 20px rgba(217,119,6,.12)}
.pmp-subx-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.pmp-subx-name{font-size:18px;font-weight:700;color:#111827}
.pmp-subx-billing{font-size:13px;color:#6b7280;margin-top:2px}
.pmp-subx-status{background:#dcfce7;color:#166534;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px}
.pmp-subx-progress{margin-bottom:18px}
.pmp-subx-progress-row{display:flex;justify-content:space-between;font-size:13px;margin-bottom:7px}
.pmp-subx-days{font-weight:700;color:#374151}
.pmp-subx-date{color:#9ca3af}
.pmp-subx-bar{height:9px;background:#eef2f7;border-radius:999px;overflow:hidden}
.pmp-subx-bar-fill{height:100%;background:linear-gradient(90deg,#2563eb,#7c3aed);border-radius:999px;transition:width .4s}
.pmp-subx-bar-fill.is-warn{background:linear-gradient(90deg,#f59e0b,#d97706)}
.pmp-subx-actions{display:flex;gap:10px}
.pmp-subx-renew{display:inline-block;background:#2563eb;color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:11px 22px;border-radius:10px;transition:background .15s,transform .15s}
.pmp-subx-renew:hover{background:#1d4ed8;color:#fff;transform:translateY(-1px)}
.pmp-subx.is-soon .pmp-subx-renew{background:#d97706}
.pmp-subx.is-soon .pmp-subx-renew:hover{background:#b45309}

/* Expired subscription states */
.pmp-renew-alert-expired{background:linear-gradient(135deg,#fef2f2,#fee2e2);border-color:#fecaca}
.pmp-renew-alert-expired .pmp-renew-alert-body strong{color:#991b1b}
.pmp-renew-alert-expired .pmp-renew-alert-body span{color:#b91c1c}
.pmp-renew-alert-btn.is-expired{background:#dc2626}
.pmp-renew-alert-btn.is-expired:hover{background:#b91c1c}
.pmp-subx.is-expired{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fef2f2)}
.pmp-subx-status.is-expired{background:#fee2e2;color:#991b1b}
.pmp-subx-expiredon{font-size:13px;color:#b91c1c;margin-bottom:14px}
.pmp-subx-renew.is-expired{background:#dc2626}
.pmp-subx-renew.is-expired:hover{background:#b91c1c}
