:root {
	--ink: #1e1b2e;
	--muted: #89869b;
	--line: #e9e7f1;
	--purple: #7359e8;
	--soft-purple: #f1efff;
	--green: #1ca779;
	--red: #e36b70;
	--bg: #fafafd;
	--surface: #fff;
	--input: #fff;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "DM Sans", sans-serif;
	transition:
		background 0.2s,
		color 0.2s;
}
a {
	color: inherit;
}
.app-shell {
	display: flex;
	min-height: 100vh;
}
.sidebar {
	width: 256px;
	background: var(--surface);
	border-right: 1px solid var(--line);
	padding: 28px 16px 18px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	z-index: 10;
}
.brand,
.auth-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Manrope;
	font-size: 18px;
	font-weight: 700;
}
.brand {
	padding: 0 12px;
}
.brand strong,
.auth-brand strong {
	font-weight: 800;
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #fff;
	border-radius: 9px;
	background: linear-gradient(135deg, #8b70f3, #5d43d0);
	font-size: 17px;
}
.workspace {
	display: flex;
	align-items: center;
	gap: 9px;
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 11px 10px;
	margin: 38px 0 29px;
	font-size: 12px;
	font-weight: 600;
}
.workspace-dot {
	width: 8px;
	height: 8px;
	background: #43c997;
	border-radius: 50%;
}
.workspace-chevron {
	margin-left: auto;
	color: var(--muted);
}
.nav-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #aaa7b7;
	font-weight: 700;
	padding: 0 12px;
	margin: 0 0 9px;
}
.nav-section {
	margin-top: 32px;
	margin-bottom: 26px;
}
.nav-link {
	display: flex;
	align-items: center;
	gap: 13px;
	color: var(--muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 12px;
	border-radius: 8px;
	margin: 3px 0;
}
.nav-link span:first-child {
	font-size: 17px;
	width: 17px;
	text-align: center;
}
.nav-link.active {
	color: var(--purple);
	background: var(--soft-purple);
}
.nav-badge {
	font-size: 9px;
	margin-left: auto;
	background: #eaf8f2;
	color: var(--green);
	padding: 3px 6px;
	border-radius: 4px;
}
.nav-button {
	width: 100%;
	border: 0;
	background: none;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}
.lower-nav {
	margin-top: auto;
}
.sidebar-footer {
	border-top: 1px solid var(--line);
	padding: 18px 7px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
}
.avatar,
.top-avatar,
.member-avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #ef9e76, #d35c79);
	font-size: 10px;
	font-weight: 700;
}
.sidebar-footer small {
	display: block;
	color: var(--muted);
	font-size: 10px;
	margin-top: 3px;
}
.logout-link {
	margin-left: auto;
	text-decoration: none;
	color: var(--muted);
	font-size: 18px;
}
.sidebar-close,
.menu-button {
	display: none;
}
.main-content {
	flex: 1;
	min-width: 0;
}
.topbar {
	height: 78px;
	padding: 0 54px 0 16px;
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	background: var(--surface);
}
.topbar-actions {
	display: flex;
	align-items: center;
	gap: 23px;
}
.icon-button {
	border: 0;
	background: none;
	color: #858193;
	font-size: 23px;
	cursor: pointer;
}
.notification {
	position: relative;
}
.notification i {
	position: absolute;
	width: 5px;
	height: 5px;
	background: #ed6b75;
	border-radius: 50%;
	top: 3px;
	right: 3px;
}
.mobile-brand {
	display: none;
	font-family: Manrope;
	font-weight: 800;
}
.content-wrap {
	max-width: 1420px;
	padding: 43px 54px 50px;
	margin: auto;
}
.page-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 32px;
}
.eyebrow {
	color: var(--muted);
	font-size: 11px;
	margin: 0 0 9px;
}
.page-heading h1,
.form-wrap h1 {
	font-family: Manrope;
	font-size: 29px;
	letter-spacing: -0.8px;
	margin: 0 0 7px;
}
.subtitle {
	color: var(--muted);
	font-size: 13px;
	margin: 0;
}
.primary-button,
.secondary-button {
	display: inline-block;
	border: 0;
	border-radius: 8px;
	padding: 12px 17px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}
.primary-button {
	background: var(--purple);
	color: #fff;
	box-shadow: 0 7px 18px #7359e82b;
}
.metric-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 17px;
	margin-bottom: 20px;
}
.metric-card,
.panel,
.member-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
}
.metric-card {
	padding: 19px 20px;
}
.metric-top {
	display: flex;
	justify-content: space-between;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}
.metric-menu {
	letter-spacing: 1px;
	color: #b4b1bf;
}
.metric-card h2 {
	font-family: Manrope;
	font-size: 22px;
	letter-spacing: -0.7px;
	margin: 18px 0 10px;
}
.metric-change {
	font-size: 10px;
	margin: 0;
	font-weight: 700;
}
.metric-change.positive {
	color: var(--green);
}
.metric-change.negative {
	color: var(--red);
}
.member-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 17px;
	margin-bottom: 20px;
}
.member-card {
	padding: 17px 19px;
}
.member-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.member-avatar {
	width: 30px;
	height: 30px;
	background: linear-gradient(135deg, #8065ed, #bd74b9);
}
.member-head strong {
	display: block;
	font-size: 12px;
}
.member-head small {
	display: block;
	color: var(--muted);
	font-size: 10px;
	margin-top: 3px;
}
.member-status {
	margin-left: auto;
	font-size: 10px;
}
.member-status.positive {
	color: var(--green);
}
.member-status.negative {
	color: var(--red);
}
.member-total {
	font-family: Manrope;
	font-size: 23px;
	font-weight: 800;
	margin-top: 18px;
}
.member-total.positive {
	color: var(--green);
}
.member-total.negative {
	color: var(--red);
}
.member-card p {
	color: var(--muted);
	font-size: 10px;
	margin: 5px 0 0;
}
.dashboard-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 20px;
}
.panel {
	padding: 23px 24px;
}
.panel-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.panel-heading h3 {
	font-family: Manrope;
	font-size: 15px;
	margin: 0 0 6px;
}
.panel-heading p {
	font-size: 11px;
	color: var(--muted);
	margin: 0;
}
.panel-heading a {
	font-size: 11px;
	color: var(--purple);
	text-decoration: none;
	font-weight: 700;
}
.select-button {
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 6px;
	padding: 8px 9px;
	color: var(--muted);
	font: 11px inherit;
}
.bar-chart {
	height: 235px;
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	gap: 13px;
	border-bottom: 1px solid var(--line);
	margin-top: 20px;
	padding: 0 6px;
}
.bar-column {
	height: 100%;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: flex-end;
	gap: 9px;
	flex: 1;
}
.bars {
	width: 100%;
	height: 205px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 5px;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent calc(20% - 1px),
		color-mix(in srgb, var(--line) 80%, transparent) calc(20% - 1px),
		color-mix(in srgb, var(--line) 80%, transparent) 20%
	);
}
.bar {
	width: 18px;
	border-radius: 5px 5px 0 0;
	min-height: 4px;
	transition: height 0.3s;
}
.revenue-bar {
	background: linear-gradient(180deg, #8871ed, var(--purple));
}
.expense-bar {
	background: #c9bfe8;
}
.bar-column small {
	font-size: 9px;
	color: var(--muted);
}
.legend {
	display: flex;
	gap: 19px;
	color: var(--muted);
	font-size: 10px;
	margin-top: 12px;
}
.legend i {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	margin-right: 5px;
}
.income-dot {
	background: var(--purple);
}
.expense-dot {
	background: #c9bfe8;
}
.activity-list {
	margin-top: 23px;
}
.activity-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.activity-icon {
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	border-radius: 8px;
	font-weight: 700;
}
.activity-icon.income {
	color: var(--green);
	background: #eaf8f2;
}
.activity-icon.expense {
	color: var(--red);
	background: #fff0f0;
}
.activity-details {
	min-width: 0;
	flex: 1;
}
.activity-details strong {
	display: block;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.activity-details small {
	display: block;
	color: var(--muted);
	font-size: 9px;
	margin-top: 4px;
}
.activity-amount {
	font-size: 11px;
	color: var(--ink);
}
.activity-amount.income {
	color: var(--green);
}
.secondary-button {
	background: color-mix(in srgb, var(--line) 40%, transparent);
	color: var(--muted);
	margin-top: 18px;
}
.activity-panel > .secondary-button {
	width: 100%;
}
.insight-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--soft-purple);
	border: 1px solid #e4dfff;
	border-radius: 12px;
	margin-top: 20px;
	padding: 17px 20px;
}
.insight-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: #e3ddff;
	color: var(--purple);
	border-radius: 9px;
}
.insight-banner strong {
	font-size: 12px;
}
.insight-banner p {
	font-size: 10px;
	color: var(--muted);
	margin: 5px 0 0;
}
.text-button {
	margin-left: auto;
	color: var(--purple);
	font: 700 11px inherit;
	text-decoration: none;
}
.text-button span {
	font-size: 16px;
	margin-left: 5px;
}
.message {
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 12px;
	margin: 15px 0;
}
.message.success {
	background: #eaf8f2;
	color: #187f5f;
}
.message.error {
	background: #fff0f0;
	color: #b74e55;
}
.auth-page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
	background: radial-gradient(circle at top right, #ece8ff 0, #fafafd 42%);
}
.auth-card {
	width: min(100%, 430px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 38px;
	box-shadow: 0 18px 60px #2a205812;
}
.auth-brand {
	margin-bottom: 42px;
}
.auth-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--soft-purple);
	color: var(--purple);
	font-size: 22px;
	margin-bottom: 22px;
}
.auth-card h1 {
	font-family: Manrope;
	font-size: 29px;
	margin: 0 0 9px;
}
.auth-subtitle {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 26px;
}
.auth-card label,
.field label {
	display: block;
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	margin-bottom: 7px;
}
.auth-card input,
.field input,
.field select {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--input);
	color: var(--ink);
	padding: 12px 13px;
	font: 13px inherit;
	outline: 0;
}
.auth-card input:focus,
.field input:focus,
.field select:focus {
	border-color: var(--purple);
	box-shadow: 0 0 0 3px #7359e81c;
}
.full-width {
	width: 100%;
	margin-top: 16px;
}
.auth-note {
	text-align: center;
	color: var(--muted);
	font-size: 10px;
	line-height: 1.5;
	margin: 22px 0 0;
}
.otp-input {
	text-align: center;
	letter-spacing: 8px;
	font-size: 20px !important;
	font-weight: 700;
}
.back-link {
	display: block;
	text-align: center;
	color: var(--purple);
	font-size: 11px;
	font-weight: 700;
	margin-top: 20px;
	text-decoration: none;
}
.form-wrap {
	max-width: 760px;
}
.form-nav {
	margin-top: 45px;
}
.transaction-form {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 26px;
	margin-top: 28px;
}
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.full-field {
	grid-column: 1/-1;
}
.field label {
	margin-bottom: 8px;
}
.field ul.errorlist {
	list-style: none;
	color: var(--red);
	padding: 4px 0 0;
	margin: 0;
	font-size: 10px;
}
.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 25px;
}
.form-actions .secondary-button {
	margin: 0;
}
.table-panel {
	padding: 0;
	overflow: hidden;
}
.table-wrap {
	overflow: auto;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}
th,
td {
	text-align: left;
	padding: 15px 20px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
th {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--muted);
	background: color-mix(in srgb, var(--bg) 65%, transparent);
}
.type-pill {
	display: inline-block;
	padding: 5px 7px;
	border-radius: 5px;
	font-size: 9px;
}
.type-pill.revenue,
.type-pill.reimbursement {
	background: #eaf8f2;
	color: var(--green);
}
.type-pill.expense,
.type-pill.contribution {
	background: #fff0f0;
	color: var(--red);
}
.empty-state {
	text-align: center;
	color: var(--muted);
	padding: 30px;
}
.sidebar-overlay {
	display: none;
}
@media (max-width: 950px) {
	.sidebar {
		width: 220px;
	}
	.content-wrap {
		padding: 32px 25px;
	}
	.topbar {
		padding: 0 25px;
	}
	.metric-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.dashboard-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 680px) {
	.sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: 256px;
		transform: translateX(-100%);
		transition: transform 0.2s;
	}
	.sidebar-open .sidebar {
		transform: translateX(0);
	}
	.sidebar-open .sidebar-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: #17132688;
		z-index: 5;
	}
	.sidebar-close {
		display: block;
		margin-left: auto;
		border: 0;
		background: none;
		color: var(--muted);
		font-size: 25px;
	}
	.menu-button {
		display: block;
		border: 0;
		background: none;
		color: var(--ink);
		font-size: 18px;
	}
	.topbar {
		height: 64px;
		justify-content: space-between;
	}
	.mobile-brand {
		display: block;
	}
	.content-wrap {
		padding: 25px 16px;
	}
	.page-heading {
		align-items: flex-start;
		gap: 20px;
		flex-direction: column;
	}
	.page-heading h1,
	.form-wrap h1 {
		font-size: 25px;
	}
	.metric-grid,
	.member-grid {
		gap: 10px;
	}
	.metric-card,
	.member-card {
		padding: 15px;
	}
	.metric-card h2 {
		font-size: 18px;
		margin-top: 14px;
	}
	.member-total {
		font-size: 20px;
	}
	.panel {
		padding: 18px 15px;
	}
	.insight-banner {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.text-button {
		margin-left: 48px;
	}
	.form-grid {
		grid-template-columns: 1fr;
	}
	.full-field {
		grid-column: auto;
	}
	.auth-card {
		padding: 28px 23px;
	}
	.auth-brand {
		margin-bottom: 35px;
	}
}
[data-theme="dark"] {
	--ink: #f4f1ff;
	--muted: #aaa5bd;
	--line: #312b47;
	--bg: #171427;
	--surface: #211c36;
	--soft-purple: #30265b;
	--input: #1c1830;
}
.auth-page[data-theme="dark"] {
	background: var(--bg);
}
