/* Heavenly Naturals Network — back office, join form and admin */
.hn-bo, .hn-join, .hn-admin {
	--hn-green: #3E5A43;
	--hn-deep: #2E3B2F;
	--hn-clay: #A35A3F;
	--hn-cream: #F7F1EA;
	--hn-line: #E4D8CA;
	--hn-ink: #2B2A26;
	--hn-muted: #6B6158;
	--hn-ok: #2E7D4F;
	--hn-warn: #B4532A;
	color: var(--hn-ink);
}
.hn-bo *, .hn-join * { box-sizing: border-box; }

/* Hero */
.hn-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--hn-green), var(--hn-deep)); color: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.hn-hero-main { display: flex; align-items: center; gap: 16px; }
.hn-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--hn-cream); color: var(--hn-green); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.hn-hello { font-size: 13px; opacity: .8; }
.hn-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.hn-meta { font-size: 13px; opacity: .85; margin-top: 2px; }
.hn-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hn-rank-badge { background: var(--hn-clay); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .5px; }

/* Tabs */
.hn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--hn-line); padding-bottom: 8px; }
.hn-tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--hn-ink); font-size: 14px; background: #fff; border: 1px solid var(--hn-line); }
.hn-tabs a.is-active, .hn-tabs a:hover { background: var(--hn-green); color: #fff; border-color: var(--hn-green); }

/* Stats */
.hn-h { font-size: 18px; margin: 18px 0 10px; }
.hn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.hn-stat { background: #fff; border: 1px solid var(--hn-line); border-radius: 12px; padding: 14px 16px; }
.hn-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--hn-muted); }
.hn-stat-value { font-size: 24px; font-weight: 700; color: var(--hn-deep); margin: 4px 0 2px; }
.hn-stat-sub { font-size: 12.5px; color: var(--hn-muted); }
.hn-stat-accent { background: var(--hn-cream); border-color: var(--hn-clay); }
.hn-stat-accent .hn-stat-value { color: var(--hn-clay); }
.hn-stat-warn { border-color: var(--hn-warn); background: #FBEDE6; }

/* Cards */
.hn-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.hn-card { background: #fff; border: 1px solid var(--hn-line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.hn-grid2 .hn-card { margin-bottom: 0; }
.hn-card h3, .hn-card h4 { margin: 0 0 10px; color: var(--hn-deep); }
.hn-card hr { border: 0; border-top: 1px solid var(--hn-line); margin: 14px 0; }
.hn-card code { display: block; background: var(--hn-cream); padding: 10px 12px; border-radius: 8px; font-size: 13px; word-break: break-all; margin: 8px 0; }
.hn-small { font-size: 13px; color: var(--hn-muted); margin: 10px 0 0; }
.hn-next { margin: 0 0 12px; }
.hn-alert { background: #FBEDE6; border: 1px solid #E9B9A3; color: #6E2F17; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.hn-pending { border-color: var(--hn-clay); }

/* Mini tables */
table.hn-mini { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
table.hn-mini td { padding: 7px 0; border-bottom: 1px solid #F0E8DE; }
table.hn-mini td:last-child { text-align: right; white-space: nowrap; }
table.hn-mini tr.hn-total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--hn-green); color: var(--hn-deep); }

/* Progress bars */
.hn-bar-wrap { margin: 10px 0; }
.hn-bar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.hn-bar { height: 10px; background: #EFE7DD; border-radius: 999px; overflow: hidden; }
.hn-bar span { display: block; height: 100%; background: var(--hn-clay); border-radius: 999px; }
.hn-bar-done .hn-bar span { background: var(--hn-ok); }

/* Status */
.hn-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hn-on { background: #E3F2E8; color: var(--hn-ok); }
.hn-off { background: #FBEDE6; color: var(--hn-warn); }
.hn-hero .hn-on { background: rgba(255,255,255,.18); color: #fff; }
.hn-hero .hn-off { background: #FBEDE6; color: var(--hn-warn); }
.hn-warn { color: var(--hn-warn); font-weight: 700; }

/* Big tables */
.hn-table-wrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--hn-line); border-radius: 12px; background: #fff; }
table.hn-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
table.hn-table th { background: var(--hn-green); color: #fff; text-align: left; padding: 10px 12px; font-size: 13px; white-space: nowrap; }
table.hn-table td { padding: 9px 12px; border-top: 1px solid #F0E8DE; vertical-align: middle; }
table.hn-table tr.hn-locked td { color: #A79C90; }
table.hn-table tr.hn-current td { background: var(--hn-cream); font-weight: 700; }

/* Pills */
.hn-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hn-pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hn-line); text-decoration: none; font-size: 13px; color: var(--hn-ink); background: #fff; }
.hn-pill.is-active { background: var(--hn-clay); border-color: var(--hn-clay); color: #fff; }

/* Buttons */
.hn-bo a.button, .hn-bo button.button, .hn-join button.button { display: inline-block; text-decoration: none; font-size: 14px; line-height: 1.4; padding: 8px 16px; cursor: pointer; font-family: inherit; }
.hn-bo .button.hn-button, .hn-join .button.hn-button { background: var(--hn-green); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; }
.hn-share-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.hn-share-strip > div:first-child { flex: 1 1 320px; min-width: 0; }
.hn-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hn-bo .button.hn-copy { background: var(--hn-cream); color: var(--hn-deep); border: 1px solid var(--hn-line); border-radius: 999px; }
.hn-bo .button.hn-wa { background: #25D366; color: #fff; border: 0; border-radius: 999px; }

/* Forms */
.hn-form label, .hn-join-form label { display: block; font-weight: 700; font-size: 14px; }
.hn-form input, .hn-form select, .hn-join-form input[type=text], .hn-join-form input[type=email], .hn-join-form input[type=password], .hn-join-form input[type=tel], .hn-join-form input[type=number] { display: block; width: 100%; max-width: 440px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--hn-line); border-radius: 8px; font-weight: 400; }
.hn-join { max-width: 560px; }
.hn-join-form { display: flex; flex-wrap: wrap; gap: 0 16px; background: #fff; border: 1px solid var(--hn-line); border-radius: 14px; padding: 22px; }
.hn-row { flex: 1 1 100%; margin: 0 0 14px; }
.hn-half { flex: 1 1 200px; }
.hn-row small { display: block; color: var(--hn-muted); margin-top: 4px; font-weight: 400; }
.hn-check label { font-weight: 400; }
.hn-notice { background: var(--hn-cream); padding: 12px 16px; border-radius: 10px; }
.hn-error { background: #FBEDE6; color: #6E2F17; padding: 10px 14px; border-radius: 8px; }
.hn-dist-label { display: inline-block; background: var(--hn-cream, #F7F1EA); color: #A35A3F; font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 11px; }

/* Admin */
.hn-admin .hn-stats { max-width: 1200px; }
.hn-admin .hn-grid2 { max-width: 1200px; }
.hn-admin .hn-card { max-width: 1200px; }
.hn-admin .hn-filter { margin: 12px 0; }
.hn-admin table.hn-wide td, .hn-admin table.hn-wide th { white-space: nowrap; }
.hn-admin .hn-close { border-color: var(--hn-clay); background: #FFF9F4; }
.hn-admin .hn-actions { margin-top: 12px; }

/* Resources */
.hn-res-docs { display: grid; gap: 10px; margin-bottom: 8px; }
.hn-res-doc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.hn-res-icon { width: 46px; height: 54px; border-radius: 8px; background: var(--hn-clay); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.hn-res-info { flex: 1 1 180px; min-width: 0; }
.hn-res-info strong { display: block; }
.hn-res-info small { color: var(--hn-muted); }
.hn-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.hn-res-tile { background: #fff; border: 1px solid var(--hn-line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.hn-res-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.hn-res-cap { font-size: 13px; line-height: 1.3; }
.hn-res-tile .button { text-align: center; }

@media (max-width: 600px) {
	.hn-hero { padding: 18px; }
	.hn-hero-side { align-items: flex-start; }
	.hn-stat-value { font-size: 20px; }
}

/* Salary steps */
.hn-salary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hn-salary-step { background: #FFFFFF; border: 1px solid #E4D8CA; border-radius: 12px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hn-salary-step small { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #6B6158; }
.hn-salary-step strong { font-size: 15px; }
.hn-salary-step span { font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 700; color: #2E4A33; }
.hn-salary-step.is-reached { background: #3E5A43; border-color: #3E5A43; }
.hn-salary-step.is-reached small, .hn-salary-step.is-reached strong, .hn-salary-step.is-reached span { color: #FFFFFF; }
