/* GSR Referrals — front-end styles, matched to the Green Sky Elementor kit:
   primary #00A73A, ink #0E2211, Avenir (inherited from theme), 15px radii.
   Font-family is deliberately not set so the kit typography cascades in.
   This sheet only loads on the partner pages (register/login/dashboard), so
   the .page-header rules below cannot leak into the rest of the site. */
:root {
	--gsr-green: #00a73a;
	--gsr-green-dark: #008a30;
	--gsr-green-tint: #eefaf2;
	--gsr-ink: #0e2211;
	--gsr-muted: #5c6b5f;
	--gsr-line: #dde5de;
	--gsr-radius: 15px;
}

/* ------------------------------------------------------------------ */
/* Page title band — clear the site's overlay header and look deliberate */
/* ------------------------------------------------------------------ */
.site-main .page-header { padding: 56px 0 8px; }
.site-main .page-header .entry-title {
	font-weight: 800;
	color: var(--gsr-ink);
	letter-spacing: 0.01em;
	margin: 0 0 4px;
	position: relative;
	display: inline-block;
	padding-bottom: 14px;
}
/* Green keyline under the title — echoes the brand underline device */
.site-main .page-header .entry-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 72px; height: 5px;
	border-radius: 3px;
	background: var(--gsr-green);
}
@media (max-width: 767px) {
	.site-main .page-header { padding-top: 40px; }
}

.gsr-dashboard, .gsr-form { color: var(--gsr-ink); }

/* Notices */
.gsr-notice { padding: 18px 22px; border: 1px solid var(--gsr-line); border-left: 4px solid var(--gsr-green); border-radius: var(--gsr-radius); background: var(--gsr-green-tint); margin: 0 0 24px; }
.gsr-notice.gsr-error { border-left-color: #c0392b; background: #fdf3f2; }
.gsr-notice.gsr-success { border-left-color: var(--gsr-green); }
.gsr-notice a { color: var(--gsr-green-dark); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Forms — presented as a white portal card on the page background     */
/* ------------------------------------------------------------------ */
.gsr-form {
	max-width: 560px;
	background: #fff;
	border: 1px solid var(--gsr-line);
	border-radius: var(--gsr-radius);
	padding: 36px 40px;
	margin: 24px 0 48px;
	box-shadow: 0 14px 40px rgba(14, 34, 17, 0.12);
}
.gsr-form p { margin: 0 0 18px; }
.gsr-form label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--gsr-ink); }
.gsr-form input[type="text"], .gsr-form input[type="email"], .gsr-form input[type="tel"], .gsr-form input[type="password"] {
	width: 100%; padding: 12px 16px; border: 1px solid var(--gsr-line); border-radius: var(--gsr-radius); font: inherit; color: var(--gsr-ink); background: #fff;
}
.gsr-form input:focus { outline: none; border-color: var(--gsr-green); box-shadow: 0 0 0 3px rgba(0, 167, 58, 0.15); }
.gsr-form .gsr-radio { font-weight: 400; display: block; margin: 6px 0; }
.gsr-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.gsr-form legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.gsr-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.gsr-login-links { font-size: 0.95em; margin-bottom: 0; }
.gsr-login-links a { color: var(--gsr-green-dark); }
@media (max-width: 600px) {
	.gsr-form { padding: 26px 22px; }
}

/* Buttons — kit style: 15px radius, green; solid primary + ghost secondary */
.gsr-btn {
	display: inline-block; background: var(--gsr-green); color: #fff; border: 2px solid var(--gsr-green); border-radius: var(--gsr-radius);
	padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.gsr-btn:hover { background: var(--gsr-green-dark); border-color: var(--gsr-green-dark); color: #fff; }
.gsr-btn-ghost { background: transparent; color: var(--gsr-green); }
.gsr-btn-ghost:hover { background: var(--gsr-green); color: #fff; }
.gsr-form .gsr-btn, .gsr-login input[type="submit"] { width: 100%; }
.gsr-login input[type="submit"] {
	background: var(--gsr-green); color: #fff; border: 2px solid var(--gsr-green); border-radius: var(--gsr-radius);
	padding: 12px 26px; font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.gsr-login input[type="submit"]:hover { background: var(--gsr-green-dark); }
.gsr-login input[type="text"], .gsr-login input[type="password"] {
	width: 100%; padding: 12px 16px; border: 1px solid var(--gsr-line); border-radius: var(--gsr-radius); font: inherit;
}
.gsr-login label { font-weight: 700; }
.gsr-login .login-remember label { font-weight: 400; }

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */
.gsr-dashboard { padding-bottom: 48px; }
.gsr-dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 28px; flex-wrap: wrap; }
.gsr-dash-head h2 { margin: 0; font-weight: 700; }
.gsr-logout { color: var(--gsr-muted); font-size: 0.9em; text-decoration: underline; }
.gsr-logout:hover { color: var(--gsr-green-dark); }

/* Stat cards */
.gsr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 30px; }
.gsr-card {
	background: #fff; border: 1px solid var(--gsr-line); border-top: 4px solid var(--gsr-green); border-radius: var(--gsr-radius);
	padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 28px rgba(14, 34, 17, 0.10);
}
.gsr-card-label { font-size: 0.78em; color: var(--gsr-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.gsr-card-value { font-size: 2em; font-weight: 800; color: var(--gsr-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.gsr-card-sub { font-size: 0.85em; color: var(--gsr-muted); }

/* Share panel — dark ink block like the site's footer/CTA bands */
.gsr-share {
	display: flex; gap: 32px; align-items: center; background: var(--gsr-ink); color: #fff;
	border-radius: var(--gsr-radius); padding: 30px 36px; margin-bottom: 40px; flex-wrap: wrap;
	box-shadow: 0 14px 40px rgba(14, 34, 17, 0.18);
}
.gsr-share h3 { color: #fff; margin-top: 0; font-weight: 800; }
.gsr-share p { color: rgba(255, 255, 255, 0.82); }
.gsr-share-text { flex: 1 1 320px; }
.gsr-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gsr-share-row input {
	flex: 1 1 220px; padding: 12px 16px; border: 0; border-radius: var(--gsr-radius); font: inherit; background: #fff; color: var(--gsr-ink);
}
.gsr-share .gsr-btn { width: auto; }
.gsr-code-line { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }
.gsr-code-line strong { color: #fff; letter-spacing: 0.08em; }
.gsr-share-qr { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gsr-share-qr img { border: 0; border-radius: 10px; background: #fff; padding: 6px; }
.gsr-share .gsr-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.8); background: transparent; }
.gsr-share .gsr-btn-ghost:hover { background: var(--gsr-green); border-color: var(--gsr-green); }

/* Referrals table */
.gsr-referrals-title { margin-bottom: 14px; font-weight: 800; }
.gsr-table-wrap { overflow-x: auto; box-shadow: 0 10px 28px rgba(14, 34, 17, 0.10); border-radius: var(--gsr-radius); }
.gsr-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--gsr-line); border-radius: var(--gsr-radius); overflow: hidden; }
.gsr-table th, .gsr-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--gsr-line); vertical-align: middle; }
.gsr-table th { background: var(--gsr-ink); color: #fff; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; border-bottom: 0; }
.gsr-table tbody tr:nth-child(even) td { background: #f7faf7; }
.gsr-table tbody tr:hover td { background: var(--gsr-green-tint); }
.gsr-table tr:last-child td { border-bottom: 0; }
.gsr-table td { font-variant-numeric: tabular-nums; }
.gsr-table .gsr-date { display: block; font-size: 0.8em; color: var(--gsr-muted); }
.gsr-lost td { opacity: 0.55; }
.gsr-empty { color: var(--gsr-muted); }
.gsr-muted { color: var(--gsr-muted); }

/* Stage progress dots */
.gsr-progress { display: inline-flex; gap: 6px; align-items: center; }
.gsr-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gsr-line); }
.gsr-dot.is-done { background: var(--gsr-green); }

/* Stage badges */
.gsr-badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 0.8em; font-weight: 700; background: var(--gsr-line); white-space: nowrap; }
.gsr-badge-lead { background: #e3f2fd; color: #1565c0; }
.gsr-badge-design { background: #ede7f6; color: #4527a0; }
.gsr-badge-sale { background: #fff8e1; color: #9a7607; }
.gsr-badge-install { background: #e0f2f1; color: #00695c; }
.gsr-badge-commissioned { background: var(--gsr-green-tint); color: var(--gsr-green-dark); }
.gsr-badge-lost { background: #fadbd8; color: #943126; }

@media (max-width: 600px) {
	.gsr-share { padding: 22px 20px; }
	.gsr-card-value { font-size: 1.6em; }
}
