.bameshek-dashboard-page {
	background: #f5f7f5;
}

.bms-dashboard {
	--bms-green: #1f8f55;
	--bms-green-dark: #126d3f;
	--bms-green-soft: #eaf7ef;
	--bms-yellow: #ffd500;
	--bms-ink: #2f332f;
	--bms-muted: #6f766f;
	--bms-line: #dfe7e1;
	--bms-white: #fff;
	--bms-lock: #eef1ee;
	--bms-warning: #fff4c7;
	--bms-shadow: 0 18px 45px rgba(26, 72, 47, .08);
	min-height: calc(100vh - 72px);
	color: var(--bms-ink);
	background: #f5f7f5;
}

.bms-dashboard *,
.bms-dashboard *::before,
.bms-dashboard *::after {
	box-sizing: border-box;
}

.bms-dashboard a {
	text-decoration: none;
}

.bms-dashboard__layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	min-height: calc(100vh - 72px);
}

.bms-dashboard__sidebar {
	position: sticky;
	top: 72px;
	height: calc(100vh - 72px);
	padding: 22px 16px;
	overflow: auto;
	background: var(--bms-white);
	border-left: 1px solid var(--bms-line);
}

.bms-dashboard__business-mini {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 18px;
	padding: 13px;
	border-radius: 15px;
	background: var(--bms-green-soft);
}

.bms-dashboard__avatar {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	overflow: hidden;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bms-white);
	color: var(--bms-green-dark);
	font-weight: 900;
}

.bms-dashboard__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bms-dashboard__business-mini strong,
.bms-dashboard__business-mini span {
	display: block;
}

.bms-dashboard__business-mini strong {
	line-height: 1.3;
}

.bms-dashboard__business-mini span {
	margin-top: 2px;
	color: var(--bms-muted);
	font-size: 12px;
}

.bms-dashboard__nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bms-dashboard__nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 10px 13px;
	border-radius: 12px;
	color: #4c544d;
	font-weight: 700;
	transition: color .2s ease, background-color .2s ease;
}

.bms-dashboard__nav a:hover,
.bms-dashboard__nav a:focus-visible,
.bms-dashboard__nav a.is-active {
	color: var(--bms-green-dark);
	background: var(--bms-green-soft);
}

.bms-dashboard__nav-icon {
	width: 22px;
	font-size: 19px;
	text-align: center;
}

.bms-dashboard__nav-lock {
	margin-right: auto;
	padding: 3px 7px;
	border-radius: 999px;
	background: var(--bms-yellow);
	color: #4b4100;
	font-size: 10px;
	font-weight: 900;
}

.bms-dashboard__view-business {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
	padding: 13px;
	border: 1px solid var(--bms-green);
	border-radius: 12px;
	color: var(--bms-green-dark);
	font-weight: 800;
}

.bms-dashboard__view-business.is-disabled {
	border-color: var(--bms-line);
	color: var(--bms-muted);
	cursor: not-allowed;
}

.bms-dashboard__content {
	min-width: 0;
	padding: 32px clamp(18px, 3vw, 40px) 48px;
}

.bms-dashboard__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.bms-dashboard__top h1 {
	margin: 0 0 5px;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.2;
}

.bms-dashboard__top p,
.bms-dashboard__card p,
.bms-dashboard__upgrade p,
.bms-dashboard__panel p {
	margin: 0;
	color: var(--bms-muted);
}

.bms-dashboard__plan-badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--bms-green-soft);
	color: var(--bms-green-dark);
	font-size: 13px;
	font-weight: 800;
}

.bms-dashboard__notice {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 18px;
	padding: 15px 17px;
	border: 1px solid #efd96a;
	border-radius: 15px;
	background: var(--bms-warning);
}

.bms-dashboard__summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
	margin-bottom: 26px;
}

.bms-dashboard__summary article {
	padding: 18px;
	border: 1px solid var(--bms-line);
	border-radius: 17px;
	background: var(--bms-white);
}

.bms-dashboard__summary article > span:first-child {
	display: block;
	color: var(--bms-muted);
	font-size: 13px;
}

.bms-dashboard__summary strong {
	display: block;
	margin-top: 3px;
	font-size: 26px;
}

.bms-dashboard__summary strong.is-live {
	color: var(--bms-green-dark);
}

.bms-dashboard__progress {
	height: 6px;
	margin-top: 10px;
	overflow: hidden;
	border-radius: 999px;
	background: #e7ebe8;
}

.bms-dashboard__progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--bms-green);
}

.bms-dashboard__missing {
	margin-top: 13px;
}

.bms-dashboard__missing-title {
	display: block;
	margin-bottom: 7px;
	color: var(--bms-muted);
	font-size: 13px;
	font-weight: 700;
}

.bms-dashboard__missing ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bms-dashboard__missing a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid var(--bms-line);
	border-radius: 999px;
	background: #f7f9f7;
	color: var(--bms-green-dark);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.bms-dashboard__missing a:hover,
.bms-dashboard__missing a:focus-visible {
	border-color: var(--bms-green);
	background: var(--bms-green-soft);
	text-decoration: underline;
}

.bms-dashboard__section-title {
	margin: 0 0 15px;
	font-size: 23px;
}

.bms-dashboard__panel.bms-dashboard__form-panel {
	padding: 0;
	overflow: hidden;
}

.bms-dashboard__form-panel.bms-join {
	background: #fff;
}

.bms-dashboard__form-panel .bms-join__form {
	max-width: none;
	margin: 0;
	box-shadow: none;
}

.bms-dashboard__form-panel .bms-join__form-section:first-of-type {
	padding-top: 0;
}

.bms-dashboard__form-notice {
	margin-bottom: 18px;
	padding: 14px 17px;
	border: 1px solid;
	border-radius: 13px;
	font-weight: 800;
}

.bms-dashboard__form-notice.is-success {
	border-color: #a9d8bb;
	color: var(--bms-green-dark);
	background: var(--bms-green-soft);
}

.bms-dashboard__form-notice.is-error {
	border-color: #e6aaa4;
	color: #7a1710;
	background: #fff1f0;
}

.bms-dashboard__form-notice ul {
	margin: 0;
	padding-right: 20px;
}

.bms-dashboard__current-profile {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.bms-dashboard__current-profile img {
	display: block;
	width: 132px;
	height: 132px;
	border: 1px solid var(--bms-line);
	border-radius: 18px;
	object-fit: cover;
}

.bms-dashboard__remove-media {
	padding: 5px 10px;
	border: 0;
	color: #9b2c24;
	background: transparent;
	font-size: 13px;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}

.bms-dashboard__gallery-existing {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	overflow-x: auto;
	padding: 2px 2px 10px;
}

.bms-dashboard__gallery-existing figure {
	position: relative;
	flex: 0 0 112px;
	margin: 0;
}

.bms-dashboard__gallery-existing img {
	display: block;
	width: 112px;
	height: 112px;
	border: 1px solid var(--bms-line);
	border-radius: 14px;
	object-fit: cover;
}

.bms-dashboard__gallery-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	width: 28px;
	height: 28px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(32, 36, 33, .82);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.bms-dashboard__gallery-remove:focus-visible,
.bms-dashboard__remove-media:focus-visible {
	outline: 3px solid #0b5fcc;
	outline-offset: 3px;
}

.bms-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bms-dashboard__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 205px;
	padding: 20px;
	border: 1px solid var(--bms-line);
	border-radius: 18px;
	background: var(--bms-white);
}

.bms-dashboard__card--locked {
	border-style: dashed;
	border-color: #c6cec8;
	background: var(--bms-lock);
}

.bms-dashboard__card-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 15px;
	background: var(--bms-green-soft);
	color: var(--bms-green-dark);
	font-size: 22px;
}

.bms-dashboard__card--locked .bms-dashboard__card-icon {
	background: #e1e5e2;
}

.bms-dashboard__card h3 {
	margin: 0 0 7px;
	font-size: 21px;
}

.bms-dashboard__card p {
	margin-bottom: 18px;
}

.bms-dashboard__card .bms-dashboard__button {
	align-self: flex-start;
	margin-top: auto;
}

.bms-dashboard__pro-tag {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--bms-yellow);
	font-size: 12px;
	font-weight: 900;
}

.bms-dashboard__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 17px;
	border: 0;
	border-radius: 999px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.bms-dashboard__button--primary {
	background: var(--bms-yellow);
	color: #222;
}

.bms-dashboard__button--dark {
	background: var(--bms-green-dark);
	color: #fff !important;
}

.bms-dashboard__button--outline {
	border: 1px solid var(--bms-green);
	background: #fff;
	color: var(--bms-green-dark);
}

.bms-dashboard__upgrade {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 20px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(135deg, var(--bms-green-dark), var(--bms-green));
	color: #fff;
}

.bms-dashboard__upgrade h2 {
	margin: 0 0 5px;
	font-size: 27px;
}

.bms-dashboard__upgrade p {
	color: rgba(255, 255, 255, .85);
}

.bms-dashboard__panel,
.bms-dashboard__empty {
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--bms-line);
	border-radius: 20px;
	background: var(--bms-white);
	box-shadow: var(--bms-shadow);
}

.bms-dashboard__empty {
	width: min(700px, calc(100% - 32px));
	margin: 70px auto;
	text-align: center;
}

.bms-dashboard__empty h1,
.bms-dashboard__panel h2 {
	margin-top: 0;
}

.bms-dashboard__placeholder,
.bms-dashboard__locked-page {
	text-align: center;
}

.bms-dashboard__placeholder > span,
.bms-dashboard__locked-page > span {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 18px;
	background: var(--bms-green-soft);
	font-size: 27px;
}

.bms-dashboard__locked-page > span {
	background: #e7eae8;
}

.bms-dashboard__placeholder .bms-dashboard__button,
.bms-dashboard__locked-page .bms-dashboard__button,
.bms-dashboard__plan-panel .bms-dashboard__button {
	margin-top: 20px;
}

.bms-dashboard__account-panel dl {
	margin: 0;
}

.bms-dashboard__account-panel dl div {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--bms-line);
}

.bms-dashboard__account-panel dt {
	font-weight: 800;
}

.bms-dashboard__account-panel dd {
	margin: 0;
}

.bms-dashboard__account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

/* Account settings: password change (template-parts/dashboard/settings.php). */
.bms-dashboard__password {
	margin-top: 18px;
}

.bms-dashboard__password[hidden] {
	display: none;
}

.bms-dashboard__password-form {
	display: grid;
	gap: 14px;
	max-width: 520px;
}

.bms-dashboard__password-input {
	position: relative;
	display: block;
}

.bms-dashboard__password-input input {
	padding-right: 72px;   /* the input is dir="ltr": text starts left, the toggle sits right */
}

.bms-dashboard__password-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 0;
	border-radius: 9px;
	background: var(--bms-green-soft);
	color: var(--bms-green-dark);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.bms-dashboard__password-toggle:focus-visible,
.bms-dashboard__password-generate:focus-visible {
	outline: 3px solid #0b5fcc;
	outline-offset: 2px;
}

.bms-dashboard__password-rules,
.bms-dashboard__password-strength {
	margin: -6px 0 0;
	font-size: 13px;
}

.bms-dashboard__password-strength {
	font-weight: 800;
}

.bms-dashboard__password-strength.is-short,
.bms-dashboard__password-strength.is-bad,
.bms-dashboard__password-strength.is-mismatch {
	color: #a4262c;
}

.bms-dashboard__password-strength.is-good {
	color: #8a5a00;
}

.bms-dashboard__password-strength.is-strong {
	color: var(--bms-green-dark);
}

.bms-dashboard__password-generate {
	justify-self: start;
}

.bms-dashboard__password-notice {
	margin: 0 0 16px;
	padding: 13px 16px;
	border-radius: 13px;
	font-weight: 700;
}

.bms-dashboard__password-notice.is-success {
	background: var(--bms-green-soft);
	color: var(--bms-green-dark);
}

.bms-dashboard__password-notice.is-error {
	border: 1px solid #efb5b5;
	background: #fdeeee;
	color: #8a1f24;
}

.bms-dashboard__menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: calc(100% - 32px);
	min-height: 46px;
	margin: 16px auto 0;
	padding: 0 15px;
	border: 1px solid var(--bms-line);
	border-radius: 12px;
	background: #fff;
	color: var(--bms-green-dark);
	font-weight: 800;
}

.bms-dashboard :focus-visible {
	outline: 3px solid rgba(31, 143, 85, .35);
	outline-offset: 3px;
}

/* Keep the plugin form inside the dashboard shell without changing its logic. */
.bms-dashboard__existing-form .fsf-wrap {
	max-width: none;
	margin: 0;
}

@media (max-width: 1000px) {
	.bms-dashboard__menu-toggle {
		display: flex;
	}

	.bms-dashboard__layout {
		display: block;
	}

	.bms-dashboard__sidebar {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 1000;
		width: min(320px, 88vw);
		height: 100vh;
		transform: translateX(105%);
		box-shadow: -20px 0 50px rgba(20, 45, 30, .18);
		transition: transform .25s ease;
	}

	.bms-dashboard.is-menu-open .bms-dashboard__sidebar {
		transform: translateX(0);
	}

	.bms-dashboard.is-menu-open::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(20, 35, 25, .45);
	}
}

@media (max-width: 700px) {
	.bms-dashboard__content {
		padding: 24px 16px 40px;
	}

	.bms-dashboard__top,
	.bms-dashboard__upgrade {
		flex-direction: column;
		align-items: stretch;
	}

	.bms-dashboard__summary,
	.bms-dashboard__cards {
		grid-template-columns: 1fr;
	}

	.bms-dashboard__account-panel dl div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bms-dashboard__sidebar {
		transition: none;
	}
}
