/* Family Basket Network – member panels */
.fbn-wrap {
	--fbn-leaf: #1e5b3a;
	--fbn-leaf-deep: #123d26;
	--fbn-turmeric: #e8a317;
	--fbn-chilli: #b8322a;
	--fbn-ink: #1b2620;
	--fbn-muted: #5c6a61;
	--fbn-line: #dfe5e0;
	--fbn-paper: #ffffff;
	--fbn-wash: #f3f6f2;
	max-width: 1080px;
	margin: 0 auto;
	color: var(--fbn-ink);
	font-size: 16px;
	line-height: 1.55;
}
.fbn-wrap *, .fbn-wrap *::before, .fbn-wrap *::after { box-sizing: border-box; }
.fbn-wrap h2, .fbn-wrap h3 { margin: 0 0 .5em; line-height: 1.25; }
.fbn-wrap h3 { font-size: 1.15rem; }
.fbn-muted { color: var(--fbn-muted); font-size: .95rem; }

/* Notices */
.fbn-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; border-left: 4px solid; }
.fbn-notice-success { background: #e6f2ea; border-color: var(--fbn-leaf); }
.fbn-notice-error { background: #fbe9e7; border-color: var(--fbn-chilli); }

/* ID card – the one bold element of the panel */
.fbn-idcard {
	position: relative;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 20px;
	padding: 24px 26px 22px;
	margin: 0 0 18px;
	border-radius: 18px;
	color: #fff;
	background: var(--fbn-leaf);
	overflow: hidden;
}
.fbn-idcard::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 8px;
	background: var(--fbn-turmeric);
}
.fbn-idcard h2 { color: #fff; font-size: 1.6rem; margin: 2px 0 6px; }
.fbn-idcard-role { margin: 0; opacity: .85; font-size: .95rem; }
.fbn-idcard-code {
	display: inline-block;
	margin: 4px 0 0;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--fbn-turmeric);
	font-variant-numeric: tabular-nums;
}
.fbn-idcard-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; align-content: center; }
.fbn-idcard-facts div { border-left: 2px solid rgba(255,255,255,.25); padding-left: 10px; }
.fbn-idcard-facts dt { font-size: .82rem; opacity: .8; }
.fbn-idcard-facts dd { margin: 2px 0 0; font-weight: 600; }

/* Tabs */
.fbn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 2px solid var(--fbn-line); }
.fbn-tabs a {
	padding: 10px 14px;
	text-decoration: none;
	color: var(--fbn-muted);
	font-weight: 600;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}
.fbn-tabs a:hover { color: var(--fbn-leaf); }
.fbn-tabs a.is-active { color: var(--fbn-leaf-deep); border-bottom-color: var(--fbn-turmeric); }

/* Stats */
.fbn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0 0 18px; border: 1px solid var(--fbn-line); border-radius: 12px; background: var(--fbn-paper); }
.fbn-stat { padding: 16px 18px; border-right: 1px solid var(--fbn-line); }
.fbn-stat:last-child { border-right: 0; }
.fbn-stat-label { display: block; font-size: .9rem; color: var(--fbn-muted); }
.fbn-stat strong { display: block; font-size: 1.45rem; color: var(--fbn-leaf-deep); font-variant-numeric: tabular-nums; }
.fbn-stat-hint { display: block; font-size: .82rem; color: var(--fbn-muted); }

/* Cards */
.fbn-card { background: var(--fbn-paper); border: 1px solid var(--fbn-line); border-radius: 12px; padding: 20px 22px; margin: 0 0 18px; }
.fbn-narrow { max-width: 560px; }
.fbn-empty { background: var(--fbn-wash); border-style: dashed; }
.fbn-plan ul { margin: 0 0 10px; padding-left: 1.2em; }
.fbn-plan li { margin: 4px 0; }

/* Buttons */
.fbn-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--fbn-leaf);
	color: #fff !important;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}
.fbn-btn:hover { background: var(--fbn-leaf-deep); }
.fbn-btn-ghost { background: transparent; color: var(--fbn-leaf) !important; box-shadow: inset 0 0 0 2px var(--fbn-leaf); }
.fbn-btn-ghost:hover { background: var(--fbn-wash); }
.fbn-btn-small { padding: 6px 12px; font-size: .9rem; }
.fbn-btn:focus-visible, .fbn-tabs a:focus-visible, .fbn-form input:focus-visible, .fbn-form select:focus-visible, .fbn-form textarea:focus-visible {
	outline: 3px solid var(--fbn-turmeric);
	outline-offset: 2px;
}

/* Copy link */
.fbn-copy { display: flex; gap: 8px; }
.fbn-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--fbn-line); border-radius: 8px; background: var(--fbn-wash); font-size: .95rem; }

/* Forms */
.fbn-form label { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
.fbn-form input[type=text], .fbn-form input[type=email], .fbn-form input[type=tel], .fbn-form input[type=password],
.fbn-form input[type=number], .fbn-form select, .fbn-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid #c9d2cb;
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	background: #fff;
}
.fbn-form input[type=file] { display: block; margin-top: 6px; font-weight: 400; }
.fbn-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.fbn-check input { margin-top: 4px; flex: none; }
.fbn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tables */
.fbn-table-wrap { overflow-x: auto; }
.fbn-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fbn-table th, .fbn-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--fbn-line); vertical-align: middle; white-space: nowrap; }
.fbn-table th { font-size: .85rem; color: var(--fbn-muted); font-weight: 600; background: var(--fbn-wash); }
.fbn-table code { background: none; padding: 0; font-weight: 600; color: var(--fbn-leaf-deep); }
.fbn-table form { margin: 0; }

/* Badges */
.fbn-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef0ee; color: var(--fbn-muted); }
.fbn-badge-active, .fbn-badge-approved, .fbn-badge-paid, .fbn-badge-live { background: #dff0e4; color: var(--fbn-leaf-deep); }
.fbn-badge-pending { background: #fdf0cf; color: #6a4800; }
.fbn-badge-suspended, .fbn-badge-reversed { background: #f9dfdc; color: #7f1f19; }
.fbn-idcard .fbn-badge { background: rgba(255,255,255,.18); color: #fff; }

@media (max-width: 720px) {
	.fbn-idcard { grid-template-columns: 1fr; padding: 20px 18px 22px; }
	.fbn-stat { border-right: 0; border-bottom: 1px solid var(--fbn-line); }
	.fbn-stat:last-child { border-bottom: 0; }
	.fbn-copy { flex-direction: column; }
	.fbn-card { padding: 16px; }
}
