.kcp-dashboard,
.kcp-dashboard * {
	box-sizing: border-box;
}

.kcp-dashboard {
	--kcp-primary: #00dc43;
	--kcp-dark: #101820;
	--kcp-accent: #087c2d;
	width: min(100%, 1240px);
	margin: 30px auto;
	overflow: hidden;
	color: #182128;
	background: #f4f6f7;
	border: 1px solid #e0e5e7;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kcp-dashboard__hero {
	display: flex;
	gap: 30px;
	align-items: center;
	justify-content: space-between;
	padding: 34px 38px;
	color: #fff;
	background:
		radial-gradient(circle at 88% -20%, rgba(0, 220, 67, 0.24), transparent 35%),
		linear-gradient(130deg, var(--kcp-dark), #1e2b34);
	border-top: 5px solid var(--kcp-primary);
}

.kcp-dashboard__identity {
	display: flex;
	gap: 18px;
	align-items: center;
}

.kcp-dashboard__avatar {
	display: grid;
	flex: 0 0 66px;
	height: 66px;
	color: #08140c;
	background: var(--kcp-primary);
	border: 4px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	font-size: 1.25rem;
	font-weight: 900;
	place-items: center;
}

.kcp-dashboard__eyebrow,
.kcp-dash-section-heading span,
.kcp-dash-card__head span {
	display: block;
	margin-bottom: 5px;
	color: var(--kcp-accent);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.kcp-dashboard__eyebrow {
	color: var(--kcp-primary);
}

.kcp-dashboard__identity h2 {
	margin: 0 0 5px;
	color: #fff;
	font-size: clamp(1.45rem, 3vw, 2rem);
	line-height: 1.2;
}

.kcp-dashboard__identity p {
	margin: 0;
	color: #c7d0d5;
	font-size: 0.9rem;
}

.kcp-account-status {
	max-width: 320px;
	padding: 13px 16px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-left: 4px solid var(--kcp-primary);
	border-radius: 8px;
}

.kcp-account-status strong,
.kcp-account-status span {
	display: block;
}

.kcp-account-status strong {
	margin-bottom: 3px;
	font-size: 0.88rem;
}

.kcp-account-status span {
	color: #c9d2d6;
	font-size: 0.76rem;
	line-height: 1.4;
}

.kcp-account-status--pending {
	border-left-color: #f1c84b;
}

.kcp-account-status--rejected {
	border-left-color: #ef6a72;
}

.kcp-dashboard__layout {
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr);
	min-height: 650px;
}

.kcp-dashboard__nav {
	padding: 24px 14px;
	background: #fff;
	border-right: 1px solid #e0e5e7;
}

.kcp-dash-nav-item {
	display: flex;
	gap: 11px;
	align-items: center;
	width: 100%;
	margin: 0 0 5px;
	padding: 13px 14px;
	color: #526068;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 0.87rem;
	font-weight: 720;
	transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.kcp-dash-nav-item span {
	display: grid;
	width: 28px;
	height: 28px;
	color: #76838a;
	background: #eff2f3;
	border-radius: 7px;
	font-size: 0.64rem;
	font-weight: 850;
	place-items: center;
}

.kcp-dash-nav-item:hover {
	color: var(--kcp-dark);
	background: #f2f7f4;
	transform: translateX(2px);
}

.kcp-dash-nav-item.is-active {
	color: #0b4d21;
	background: #eaf9ef;
}

.kcp-dash-nav-item.is-active span {
	color: #07160c;
	background: var(--kcp-primary);
}

.kcp-dash-nav-link {
	display: block;
	margin: 22px 14px 0;
	color: var(--kcp-accent);
	font-size: 0.8rem;
	font-weight: 750;
	text-decoration: none;
}

.kcp-dash-nav-link--muted {
	margin-top: 12px;
	color: #77838a;
}

.kcp-dashboard__content {
	min-width: 0;
	padding: 32px;
}

.kcp-dash-panel {
	animation: kcp-panel-in 180ms ease both;
}

.kcp-dash-section-heading,
.kcp-dash-card__head {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.kcp-dash-section-heading h3,
.kcp-dash-card__head h3 {
	margin: 0;
	color: var(--kcp-dark);
	font-size: 1.45rem;
	letter-spacing: -0.02em;
}

.kcp-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 22px;
}

.kcp-summary-card,
button.kcp-summary-card {
	display: block;
	min-width: 0;
	min-height: 150px;
	padding: 21px;
	color: inherit;
	text-align: left;
	background: #fff;
	border: 1px solid #e0e5e7;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(16, 24, 32, 0.04);
	font: inherit;
}

button.kcp-summary-card {
	cursor: pointer;
}

button.kcp-summary-card:hover {
	border-color: var(--kcp-primary);
	box-shadow: 0 8px 24px rgba(0, 180, 55, 0.1);
}

.kcp-summary-card > span,
.kcp-summary-card > strong,
.kcp-summary-card > small {
	display: block;
}

.kcp-summary-card > span {
	color: #718087;
	font-size: 0.76rem;
	font-weight: 750;
	text-transform: uppercase;
}

.kcp-summary-card > strong {
	margin: 17px 0;
	color: var(--kcp-dark);
	font-size: 1.75rem;
	line-height: 1.1;
}

.kcp-summary-card > strong.kcp-summary-card__account {
	font-size: 1.08rem;
}

.kcp-summary-card > small {
	color: #728087;
	font-size: 0.74rem;
	line-height: 1.4;
}

.kcp-dash-card,
.kcp-dash-form {
	padding: 25px;
	background: #fff;
	border: 1px solid #e0e5e7;
	border-radius: 12px;
	box-shadow: 0 5px 18px rgba(16, 24, 32, 0.04);
}

.kcp-text-button {
	padding: 6px;
	color: var(--kcp-accent);
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 0.79rem;
	font-weight: 750;
}

.kcp-order-list {
	display: grid;
	gap: 12px;
}

.kcp-order-row {
	display: grid;
	grid-template-columns: 1.1fr 1.25fr 0.7fr 1.15fr 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 17px 19px;
	background: #fff;
	border: 1px solid #e0e5e7;
	border-radius: 10px;
}

.kcp-order-row > div > span,
.kcp-order-row > div > strong {
	display: block;
}

.kcp-order-row > div > span {
	margin-bottom: 4px;
	color: #7a878d;
	font-size: 0.66rem;
	font-weight: 750;
	text-transform: uppercase;
}

.kcp-order-row > div > strong {
	color: #253138;
	font-size: 0.83rem;
}

.kcp-order-row__number strong {
	color: var(--kcp-accent) !important;
	font-size: 0.93rem !important;
}

.kcp-order-status {
	display: inline-block !important;
	width: fit-content;
	padding: 4px 8px;
	background: #eef2f3;
	border-radius: 999px;
	font-size: 0.68rem !important;
}

.kcp-order-status--completed,
.kcp-order-status--processing {
	color: #075d25 !important;
	background: #e1f7e8;
}

.kcp-order-status--cancelled,
.kcp-order-status--failed,
.kcp-order-status--refunded {
	color: #8c1c23 !important;
	background: #fde8ea;
}

.kcp-order-status--on-hold,
.kcp-order-status--pending {
	color: #6b5000 !important;
	background: #fff3c8;
}

.kcp-order-row__action {
	color: var(--kcp-accent);
	font-size: 0.76rem;
	font-weight: 800;
	text-decoration: none;
}

.kcp-empty-state {
	padding: 32px 20px;
	text-align: center;
}

.kcp-empty-state strong {
	display: block;
	margin-bottom: 7px;
	color: var(--kcp-dark);
	font-size: 1rem;
}

.kcp-empty-state p {
	margin: 0 auto 20px;
	color: #6f7c83;
	font-size: 0.85rem;
}

.kcp-address-tabs {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 16px;
	padding: 4px;
	background: #e7ebed;
	border-radius: 9px;
}

.kcp-address-tabs button {
	padding: 9px 15px;
	color: #66737a;
	background: transparent;
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 750;
}

.kcp-address-tabs button.is-active {
	color: var(--kcp-dark);
	background: #fff;
	box-shadow: 0 2px 8px rgba(16, 24, 32, 0.08);
}

.kcp-dash-form {
	display: grid;
	gap: 20px;
}

.kcp-dash-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.kcp-dash-field--wide {
	grid-column: 1 / -1;
}

.kcp-dash-field label {
	display: block;
	margin-bottom: 7px;
	color: #344149;
	font-size: 0.79rem;
	font-weight: 750;
}

.kcp-dash-field input,
.kcp-dash-field select {
	width: 100%;
	min-height: 45px;
	margin: 0;
	padding: 10px 12px;
	color: #172027;
	background: #fff;
	border: 1px solid #c9d2d6;
	border-radius: 8px;
	box-shadow: none;
	font: inherit;
	font-size: 0.87rem;
}

.kcp-dash-field input:focus,
.kcp-dash-field select:focus {
	border-color: var(--kcp-accent);
	box-shadow: 0 0 0 3px rgba(0, 220, 67, 0.14);
	outline: 0;
}

.kcp-dash-field small {
	display: block;
	margin-top: 5px;
	color: #77848a;
	font-size: 0.7rem;
}

.kcp-dash-button {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	font-size: 0.81rem;
	font-weight: 820;
	text-decoration: none;
}

.kcp-dash-button--primary {
	color: #07150c;
	background: var(--kcp-primary);
	box-shadow: 0 7px 18px rgba(0, 180, 55, 0.17);
}

.kcp-dash-button--ghost {
	color: var(--kcp-dark);
	background: #fff;
	border: 1px solid #cbd4d8;
}

.kcp-dash-button:disabled {
	cursor: wait;
	opacity: 0.7;
}

.kcp-dash-button i {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(16, 24, 32, 0.25);
	border-top-color: var(--kcp-dark);
	border-radius: 50%;
	animation: kcp-dash-spin 0.7s linear infinite;
}

.kcp-dash-button.is-loading i {
	display: inline-block;
}

.kcp-form-message,
.kcp-dash-feedback {
	padding: 12px 14px;
	border-radius: 7px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.45;
}

.kcp-form-message--success {
	color: #075d25;
	background: #e4f8ea;
	border: 1px solid #a5dfb8;
}

.kcp-form-message--error {
	color: #8c1c23;
	background: #fff0f1;
	border: 1px solid #f0b9bd;
}

.kcp-security-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.7fr);
	gap: 20px;
	align-items: start;
}

.kcp-dash-password {
	position: relative;
}

.kcp-dash-password input {
	padding-right: 64px;
}

.kcp-dash-password button {
	position: absolute;
	top: 50%;
	right: 7px;
	padding: 6px;
	color: var(--kcp-accent);
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 0.7rem;
	font-weight: 800;
	transform: translateY(-50%);
}

.kcp-security-note {
	padding: 22px;
	color: #d9e0e3;
	background: var(--kcp-dark);
	border-top: 4px solid var(--kcp-primary);
	border-radius: 11px;
}

.kcp-security-note strong {
	color: #fff;
}

.kcp-security-note ul {
	margin: 14px 0 0;
	padding-left: 18px;
	font-size: 0.78rem;
	line-height: 1.65;
}

.kcp-dashboard--logged-out {
	display: grid;
	min-height: 400px;
	place-items: center;
}

.kcp-login-required {
	max-width: 500px;
	padding: 45px 25px;
	text-align: center;
}

.kcp-login-required > span {
	font-size: 2rem;
}

.kcp-login-required h2 {
	margin: 15px 0 8px;
}

.kcp-login-required p {
	margin: 0 0 22px;
	color: #68757c;
}

.kcp-dash-nav-item:focus-visible,
.kcp-summary-card:focus-visible,
.kcp-dash-button:focus-visible,
.kcp-address-tabs button:focus-visible,
.kcp-dashboard a:focus-visible,
.kcp-dashboard input:focus-visible,
.kcp-dashboard select:focus-visible {
	outline: 3px solid rgba(0, 220, 67, 0.4);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

@keyframes kcp-panel-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes kcp-dash-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
	.kcp-order-row {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.kcp-order-row__action {
		text-align: right;
	}
}

@media (max-width: 820px) {
	.kcp-dashboard {
		margin: 18px auto;
		border-radius: 12px;
	}

	.kcp-dashboard__hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 27px 22px;
	}

	.kcp-account-status {
		width: 100%;
		max-width: none;
	}

	.kcp-dashboard__layout {
		grid-template-columns: 1fr;
	}

	.kcp-dashboard__nav {
		display: flex;
		gap: 6px;
		padding: 10px;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid #e0e5e7;
	}

	.kcp-dash-nav-item {
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		white-space: nowrap;
	}

	.kcp-dash-nav-item span,
	.kcp-dash-nav-link {
		display: none;
	}

	.kcp-dashboard__content {
		padding: 22px;
	}

	.kcp-summary-grid {
		grid-template-columns: 1fr;
	}

	.kcp-summary-card,
	button.kcp-summary-card {
		min-height: 125px;
	}

	.kcp-security-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.kcp-dashboard__identity {
		align-items: flex-start;
	}

	.kcp-dashboard__avatar {
		flex-basis: 52px;
		height: 52px;
		font-size: 1rem;
	}

	.kcp-dashboard__content {
		padding: 18px 14px;
	}

	.kcp-dash-section-heading,
	.kcp-dash-card__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.kcp-dash-form {
		padding: 19px 16px;
	}

	.kcp-dash-form-grid {
		grid-template-columns: 1fr;
	}

	.kcp-dash-field--wide {
		grid-column: auto;
	}

	.kcp-order-row {
		grid-template-columns: 1fr 1fr;
	}

	.kcp-order-row__action {
		text-align: left;
	}

	.kcp-address-tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.kcp-dash-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kcp-dash-panel,
	.kcp-dash-button i {
		animation-duration: 0.01ms;
	}
}

