/* =========================================================
   CLIENT PORTAL — standalone stylesheet
   Deliberately does not reuse wp-admin's look. Uses the same
   brand colors as the public site (hardcoded here since this
   page doesn't load main.css) for visual consistency.
   ========================================================= */
:root {
	--p-green: #35BC7A;
	--p-green-d: #2B9A64;
	--p-orange: #F86924;
	--p-dark: #1B4332;
	--p-text: #374151;
	--p-gray: #6b7280;
	--p-border: #e5e7eb;
	--p-light: #F7F8FA;
	--p-white: #ffffff;
	--p-radius: 8px;
	--p-shadow: 0 2px 12px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
	background: var(--p-light);
	color: var(--p-text);
	font-size: 15px;
	line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.brand-han { color: var(--p-green); }
.brand-saf { color: var(--p-orange); }

/* ---------- Login screen ---------- */
.portal-login-body {
	display: flex; align-items: center; justify-content: center;
	min-height: 100vh; background: linear-gradient(135deg, var(--p-dark), #235441);
	padding: 20px;
}
.portal-login-card {
	background: var(--p-white); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
	padding: 42px 36px; width: 100%; max-width: 380px; text-align: center;
}
.portal-login-brand { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.portal-login-sub { color: var(--p-gray); font-size: 13px; margin: 0 0 26px; text-transform: uppercase; letter-spacing: 0.08em; }
.portal-login-card form { text-align: left; }
.portal-login-card label { display: block; font-size: 12.5px; font-weight: 600; margin: 14px 0 6px; color: var(--p-text); }
.portal-login-card input {
	width: 100%; padding: 11px 13px; border: 1px solid var(--p-border); border-radius: var(--p-radius);
	font-family: inherit; font-size: 14.5px;
}
.portal-login-card input:focus { outline: none; border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(53,188,122,0.15); }
.portal-login-card button {
	width: 100%; margin-top: 22px; padding: 13px; background: var(--p-green); color: #fff;
	border: none; border-radius: var(--p-radius); font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.portal-login-card button:hover { background: var(--p-green-d); }
.portal-notice { padding: 10px 14px; border-radius: var(--p-radius); font-size: 13px; margin-bottom: 6px; }
.portal-notice--error { background: rgba(239,68,68,0.08); color: #ef4444; border: 1px solid #ef4444; }
.portal-notice--success { background: rgba(53,188,122,0.1); color: var(--p-green-d); border: 1px solid var(--p-green); }

/* ---------- Dashboard shell ---------- */
.portal-shell { display: flex; min-height: 100vh; }

.portal-sidebar {
	width: 240px; flex-shrink: 0; background: var(--p-dark); color: rgba(255,255,255,0.8);
	display: flex; flex-direction: column; padding: 26px 0; position: sticky; top: 0; height: 100vh;
}
.portal-sidebar-brand { font-size: 18px; font-weight: 800; padding: 0 24px 26px; color: #fff; }
.portal-nav { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.portal-nav a { padding: 12px 24px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); border-left: 3px solid transparent; }
.portal-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.portal-nav a.is-active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--p-green); font-weight: 700; }
.portal-sidebar-footer { padding: 16px 24px 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.portal-sidebar-footer a { font-size: 13px; color: rgba(255,255,255,0.6); }
.portal-sidebar-footer a:hover { color: #fff; }

.portal-main { flex-grow: 1; padding: 40px 48px; max-width: 1000px; }
.portal-main h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: #111827; }
.portal-lede { color: var(--p-gray); margin: 0 0 28px; font-size: 14.5px; }
.portal-section-title { font-size: 15px; font-weight: 700; margin: 36px 0 16px; color: #111827; }

/* ---------- Overview stat cards ---------- */
.portal-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.portal-stat-card {
	background: var(--p-white); border-radius: var(--p-radius); box-shadow: var(--p-shadow);
	padding: 24px; text-align: center; display: block;
}
.portal-stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.portal-stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--p-green); }
.portal-stat-label { display: block; font-size: 12.5px; color: var(--p-gray); margin-top: 4px; }

/* ---------- Forms ---------- */
.portal-form { background: var(--p-white); border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 28px; }
.portal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.portal-form-row--full { grid-template-columns: 1fr; }
.portal-form label { display: block; font-size: 13px; font-weight: 600; color: #111827; }
.portal-form label span { display: block; font-weight: 400; color: var(--p-gray); font-size: 11.5px; margin-top: 2px; }
.portal-form input[type="text"],
.portal-form input[type="url"],
.portal-form input[type="date"],
.portal-form input[type="file"],
.portal-form select,
.portal-form textarea {
	width: 100%; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--p-border);
	border-radius: 6px; font-family: inherit; font-size: 14px; background: var(--p-light);
}
.portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus {
	outline: none; border-color: var(--p-green); background: #fff; box-shadow: 0 0 0 3px rgba(53,188,122,0.12);
}
.portal-form textarea { resize: vertical; }
.portal-btn {
	background: var(--p-green); color: #fff; border: none; padding: 12px 26px; border-radius: 50px;
	font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; margin-top: 6px;
}
.portal-btn:hover { background: var(--p-green-d); }

/* ---------- Item grid (existing content lists) ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.portal-card { background: var(--p-white); border-radius: var(--p-radius); box-shadow: var(--p-shadow); overflow: hidden; }
.portal-card img { width: 100%; height: 120px; object-fit: cover; display: block; background: var(--p-light); }
.portal-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.portal-card-body strong { font-size: 14px; }
.portal-card-meta { font-size: 12px; color: var(--p-gray); }
.portal-delete-link { font-size: 12px; color: #ef4444; margin-top: 6px; font-weight: 600; }
.portal-delete-link:hover { text-decoration: underline; }
.portal-empty { color: var(--p-gray); font-size: 14px; }

/* ---------- Biz Growth Club registration cards ---------- */
.portal-reg-card { background: var(--p-white); border-radius: var(--p-radius); box-shadow: var(--p-shadow); padding: 20px 22px; margin-bottom: 14px; }
.portal-reg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--p-border); }
.portal-reg-head strong { font-size: 16px; flex-grow: 1; }
.portal-reg-date { font-size: 12px; color: var(--p-gray); }
.portal-reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portal-reg-grid div { font-size: 13.5px; }
.portal-reg-grid span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--p-gray); margin-bottom: 2px; }
.portal-reg-grid a { color: var(--p-green-d); }
@media (max-width: 700px) { .portal-reg-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.portal-shell { flex-direction: column; }
	.portal-sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; padding: 16px; align-items: center; }
	.portal-sidebar-brand { padding: 0 16px 0 0; }
	.portal-nav { flex-direction: row; flex-wrap: wrap; }
	.portal-nav a { padding: 8px 12px; border-left: none; border-radius: 6px; }
	.portal-nav a.is-active { border-left: none; }
	.portal-sidebar-footer { border-top: none; margin-top: 0; padding-top: 0; flex-direction: row; margin-left: auto; }
	.portal-main { padding: 28px 20px; }
	.portal-form-row { grid-template-columns: 1fr; }
}
