/* =========================================================
   Albira App shell — logged-in dark dashboard (mock-aligned)
   ========================================================= */

body.kmae-app {
	--dash-bg: #01091d;
	--dash-surface: #16161F;
	--dash-surface-2: #242433;
	--dash-gold: #F5A623;
	--dash-blue: #4071e9;
	--dash-pink: var(--kmae-notify, #ff3b30);
	--dash-green: #34b4ad;
	--dash-violet: #8365d8;
	--dash-text: #F5F5FA;
	--dash-muted: #B0B0C8;
	--dash-border: 1px solid rgba(255, 255, 255, 0.06);
	--dash-r: 14px;
	--dash-rs: 10px;
	--glow-gold: 0 0 18px rgba(245, 166, 35, 0.35);
	--glow-blue: 0 0 18px rgba(0, 212, 255, 0.35);
	--glow-green: 0 0 14px rgba(34, 211, 165, 0.3);
	--glow-violet: 0 0 18px rgba(124, 110, 255, 0.3);

	--bg-primary: var(--dash-bg);
	--bg-secondary: var(--dash-surface);
	--bg-tertiary: var(--dash-surface-2);
	--primary: var(--dash-gold);
	--primary-hover: #ffb83d;
	--primary-active: #e8920a;
	--glow: rgba(245, 166, 35, 0.25);
	--border: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(245, 166, 35, 0.35);
	--text-title: var(--dash-text);
	--text-secondary: #c8c8dc;
	--text-body: #b4b4c8;
	--text-small: var(--dash-muted);
	--icon: #9a9ab0;
	--shadow-float: 0 16px 40px rgba(0, 0, 0, 0.45);

	--p-bg: var(--dash-bg);
	--p-surface: var(--dash-surface);
	--p-surface-solid: var(--dash-surface);
	--p-surface-hover: var(--dash-surface-2);
	--p-border: rgba(255, 255, 255, 0.08);
	--p-border-strong: rgba(245, 166, 35, 0.35);
	--p-text: var(--dash-text);
	--p-muted: var(--dash-muted);
	--p-subtle: #7a7a92;
	--p-purple: var(--dash-violet);
	--p-pink: var(--dash-pink);
	--p-grad: linear-gradient(90deg, var(--dash-gold), #e8920a);
	--p-grad-soft: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(124, 110, 255, 0.06));
	--p-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	--p-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);

	color: var(--dash-text);
}

body.kmae-app .kmae-footer {
	border-top-color: rgba(255, 255, 255, 0.06);
}

body.kmae-app .kmae-footer__toggle {
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--dash-text);
}

body.kmae-app .kmae-footer__toggle:hover,
body.kmae-app .kmae-footer__toggle:focus-visible {
	color: var(--dash-gold);
}

body.kmae-app .kmae-footer__link,
body.kmae-app .kmae-footer__copy {
	color: var(--dash-muted);
	opacity: 1;
}

body.kmae-app .kmae-footer__link:hover {
	color: var(--dash-gold);
}

body.kmae-app .kmae-stub h1,
body.kmae-app .kmae-stub__section h2 {
	color: var(--dash-text);
}

body.kmae-app .kmae-stub__section {
	background: var(--dash-surface);
	border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- PC app layout: topbar + sidebar (PC.html) ---------- */

.kmae-app-layout {
	display: block;
}

.kmae-app-sidebar {
	display: none;
}

.kmae-app-content {
	min-width: 0;
}

@media (min-width: 1025px) {
	body.kmae-app .kmae-app-layout {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		min-height: calc(100vh - var(--kmae-header-h, 64px));
		align-items: stretch;
	}

	body.kmae-app .kmae-app-sidebar,
	body.kmae-app .kmae-app-info {
		display: flex;
	}

	body.kmae-app .kmae-app-sidebar__label {
		margin: 16px 0 8px;
		padding: 0 12px;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: #9A9AB4;
	}

	body.kmae-app .kmae-app-sidebar__label:first-child {
		margin-top: 0;
	}

	body.kmae-app .kmae-app-sidebar__item {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 11px 14px;
		border-radius: 10px;
		font-size: 0.84rem;
		font-weight: 500;
		color: var(--dash-text);
		text-decoration: none;
		border: 1px solid transparent;
		transition: background 0.15s, color 0.15s, border-color 0.15s;
	}

	body.kmae-app .kmae-app-sidebar__item:hover {
		color: #fff;
		background: rgba(255, 255, 255, 0.08);
	}

	body.kmae-app .kmae-app-sidebar__item.is-active {
		color: var(--dash-text);
		background: rgba(245, 166, 35, 0.08);
		border-color: rgba(245, 166, 35, 0.2);
	}

	body.kmae-app .kmae-app-sidebar__item.is-active .kmae-app-sidebar__icon {
		color: var(--dash-gold);
	}

	body.kmae-app .kmae-app-sidebar__icon {
		width: 20px;
		height: 20px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	body.kmae-app .kmae-app-sidebar__badge {
		margin-left: auto;
		background: var(--kmae-notify);
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		padding: 2px 7px;
		border-radius: 20px;
		box-shadow: 0 0 8px var(--kmae-notify-glow);
	}

	body.kmae-app .kmae-app-sidebar__badge.is-green {
		background: var(--kmae-notify);
		color: #fff;
		box-shadow: 0 0 8px var(--kmae-notify-glow);
	}

	body.kmae-app .kmae-dash {
		max-width: none;
		padding-left: 28px;
		padding-right: 28px;
	}

	/* No second in-page tab bar on PC — topbar + sidebar only */
	body.kmae-app .kmae-dash__tabs {
		display: none !important;
	}
}

/* ---------- Dashboard ---------- */

.kmae-dash {
	display: block;
	padding: calc(var(--kmae-header-h) + 18px) 0 88px;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: var(--kmae-pad, 20px);
	padding-right: var(--kmae-pad, 20px);
}

.kmae-dash__slim {
	display: none;
}

.kmae-dash__welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	margin-bottom: 14px;
	border-radius: var(--dash-r);
	border: 1px solid rgba(124, 110, 255, 0.18);
	background: linear-gradient(135deg, var(--dash-surface), rgba(124, 110, 255, 0.06));
}

.kmae-dash__eyebrow {
	margin: 0 0 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dash-gold);
}

.kmae-dash__hello {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--dash-text);
}

.kmae-dash__hello em {
	font-style: normal;
	color: var(--dash-gold);
}

.kmae-dash__lead {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--dash-muted);
}

.kmae-dash__post-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--dash-rs);
	background: linear-gradient(135deg, var(--dash-gold), #e8920a);
	color: #000;
	font-weight: 800;
	font-size: 0.8rem;
	text-decoration: none;
	box-shadow: var(--glow-gold);
	white-space: nowrap;
}

.kmae-dash__tabs {
	display: none;
}

.kmae-dash__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.kmae-dash__stat {
	position: relative;
	overflow: hidden;
	padding: 14px 16px;
	border-radius: var(--dash-rs);
	background: var(--dash-surface);
	border: var(--dash-border);
}

.kmae-dash__stat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
}

.kmae-dash__stat--gold::before { background: linear-gradient(90deg, transparent, var(--dash-gold), transparent); }
.kmae-dash__stat--blue::before { background: linear-gradient(90deg, transparent, var(--dash-blue), transparent); }
.kmae-dash__stat--green::before { background: linear-gradient(90deg, transparent, var(--dash-green), transparent); }
.kmae-dash__stat--violet::before { background: linear-gradient(90deg, transparent, var(--dash-violet), transparent); }

.kmae-dash__stat-label {
	display: block;
	font-size: 0.72rem;
	color: var(--dash-muted);
	margin-bottom: 6px;
}

.kmae-dash__stat-val {
	display: block;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.kmae-dash__stat--gold .kmae-dash__stat-val { color: var(--dash-gold); }
.kmae-dash__stat--blue .kmae-dash__stat-val { color: var(--dash-blue); }
.kmae-dash__stat--green .kmae-dash__stat-val { color: var(--dash-green); }
.kmae-dash__stat--violet .kmae-dash__stat-val { color: var(--dash-violet); }

.kmae-dash__stat-sub {
	display: block;
	margin-top: 4px;
	font-size: 0.65rem;
	color: var(--dash-muted);
}

.kmae-dash__grid {
	display: grid;
	gap: 14px;
	margin-bottom: 14px;
}

.kmae-dash__grid--secondary {
	display: none;
}

.kmae-dash__card {
	background: var(--dash-surface);
	border: var(--dash-border);
	border-radius: var(--dash-r);
	overflow: hidden;
}

.kmae-dash__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.kmae-dash__card-title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--dash-text);
	display: flex;
	align-items: center;
	gap: 7px;
}

.kmae-dash__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--dash-gold);
	box-shadow: var(--glow-gold);
	flex-shrink: 0;
}

.kmae-dash__dot--blue { background: var(--dash-blue); box-shadow: var(--glow-blue); }
.kmae-dash__dot--green { background: var(--dash-green); box-shadow: var(--glow-green); }
.kmae-dash__dot--violet { background: var(--dash-violet); box-shadow: var(--glow-violet); }

.kmae-dash__see-all {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--dash-blue);
	text-decoration: none;
}

.kmae-dash__empty {
	margin: 0;
	padding: 16px;
	font-size: 0.85rem;
	color: var(--dash-muted);
}

.kmae-dash__empty a {
	color: var(--dash-gold);
}

.kmae-dash__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kmae-dash__ad {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.kmae-dash__list li:last-child .kmae-dash__ad {
	border-bottom: none;
}

.kmae-dash__ad:hover {
	background: rgba(255, 255, 255, 0.02);
}

.kmae-dash__ad-thumb {
	width: 44px;
	height: 36px;
	border-radius: 8px;
	background: var(--dash-surface-2);
	border: var(--dash-border);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	font-size: 1rem;
}

.kmae-dash__ad-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kmae-dash__ad-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kmae-dash__ad-name {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--dash-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kmae-dash__ad-meta {
	font-size: 0.72rem;
	color: var(--dash-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kmae-dash__ad-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	flex-shrink: 0;
}

.kmae-dash__ad-price {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--dash-gold);
	white-space: nowrap;
}

.kmae-dash__pill {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 2px 8px;
	border-radius: 20px;
}

.kmae-dash__pill--active {
	background: rgba(34, 211, 165, 0.1);
	color: var(--dash-green);
	border: 1px solid rgba(34, 211, 165, 0.25);
}

.kmae-dash__pill--awaiting_photos {
	background: rgba(245, 166, 35, 0.1);
	color: var(--dash-gold);
	border: 1px solid rgba(245, 166, 35, 0.25);
}

.kmae-dash__pill--closed,
.kmae-dash__pill--archived {
	background: rgba(90, 90, 114, 0.2);
	color: var(--dash-muted);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.kmae-dash__msg-time {
	font-size: 0.65rem;
	color: var(--dash-muted);
	flex-shrink: 0;
	margin-left: 6px;
}

.kmae-dash__activity {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.kmae-dash__act {
	display: flex;
	gap: 12px;
	padding: 10px 16px;
}

.kmae-dash__act-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-top: 5px;
	flex-shrink: 0;
}

.kmae-dash__act-dot--blue { background: var(--dash-blue); box-shadow: var(--glow-blue); }
.kmae-dash__act-dot--green { background: var(--dash-green); box-shadow: var(--glow-green); }
.kmae-dash__act-dot--gold { background: var(--dash-gold); box-shadow: var(--glow-gold); }
.kmae-dash__act-dot--red { background: var(--kmae-notify); box-shadow: 0 0 10px var(--kmae-notify-glow); }
.kmae-dash__act-dot--violet { background: var(--dash-violet); box-shadow: var(--glow-violet); }

.kmae-dash__act-text {
	display: block;
	font-size: 0.8rem;
	color: var(--dash-text);
	line-height: 1.4;
}

.kmae-dash__act-time {
	display: block;
	margin-top: 3px;
	font-size: 0.68rem;
	color: var(--dash-muted);
}

/* Phone landscape: keep compact chrome visible (do not hide header). */

/* Tablet portrait + up: wider cards, show secondary grid + tabs */
@media (min-width: 1025px) {
	.kmae-dash {
		padding-top: calc(var(--kmae-header-h) + 28px);
		padding-bottom: 72px;
	}

	.kmae-dash__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	.kmae-dash__stat {
		padding: 18px 18px 16px;
	}

	.kmae-dash__stat-val {
		font-size: 2rem;
	}

	.kmae-dash__stat-label {
		font-size: 0.8rem;
	}

	.kmae-dash__grid--primary,
	.kmae-dash__grid--secondary {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.kmae-dash__tabs {
		display: none;
	}

	.kmae-dash__welcome {
		padding: 20px 22px;
	}

	.kmae-dash__post-btn {
		padding: 12px 18px;
		font-size: 0.88rem;
	}

	.kmae-dash__ad-side .kmae-dash__pill {
		display: inline-block;
	}
}

/* Tablet landscape: 3-column denser layout under header */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
	.kmae-dash {
		max-width: 1280px;
		padding-top: calc(var(--kmae-header-h) + 22px);
	}

	.kmae-dash__slim {
		display: none;
	}

	.kmae-dash__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.kmae-dash__grid--primary {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.kmae-dash__grid--secondary {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.kmae-dash__tabs {
		display: none;
	}
}

/* Desktop */
@media (min-width: 1025px) {
	.kmae-dash__slim {
		display: none !important;
	}

	.kmae-dash__hello {
		font-size: 2rem;
	}
}

/* ---------- Logged-in home hub ---------- */

body.kmae-app .kmae-app-layout.is-panels-closed .kmae-main:has(.kmae-hub) {
	width: 90%;
	max-width: 90%;
	margin-left: auto;
	margin-right: auto;
}

.kmae-hub {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0 24px 72px;
	box-sizing: border-box;
	color: #f5f5fa;
}

.kmae-hub-menu .kmae-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	align-items: stretch;
	width: min(100%, 720px);
	margin: 0 auto 1rem;
}
/* ---------- Hub info bar (Simple Mode) ---------- */

.kmae-hub__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	width: 100%;
	min-height: 248px;
	padding: 24px 18px 18px;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid rgba(20, 50, 110, 0.06);
	background: #ffffff;
	line-height: 1.3;
	box-shadow: 0 10px 28px rgba(30, 60, 120, 0.08);
	transform: translateY(0);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kmae-hub__card-img {
	display: none;
}

.kmae-hub__card-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
	background: #317efa;
	border: none;
	line-height: 0;
	overflow: hidden;
}

.kmae-hub__card-icon svg {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0;
	flex-shrink: 0;
}

.kmae-hub__card--buy .kmae-hub__card-icon {
	background: #12a4b8;
}

.kmae-hub__card--stats .kmae-hub__card-icon {
	background: #6c63ff;
}

.kmae-hub__card-copy {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	flex: 1;
	z-index: 2;
	text-align: center;
	pointer-events: none;
	line-height: 1.25;
}

.kmae-hub__card-title {
	position: static;
	transform: none;
	display: block;
	margin: 0;
	width: 100%;
	font-family: "Outfit", "Space Grotesk", system-ui, sans-serif;
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	text-align: center;
	color: #317efa;
	text-shadow: none;
}

.kmae-hub__card--buy .kmae-hub__card-title {
	color: #12a4b8;
}

.kmae-hub__card--stats .kmae-hub__card-title {
	color: #6c63ff;
}

.kmae-hub__card-lead {
	position: static;
	transform: none;
	display: block;
	margin: 0;
	width: 100%;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: clamp(0.78rem, 1.15vw, 0.92rem);
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	color: #6b7280;
	text-shadow: none;
}

.kmae-hub__card-cta {
	position: static;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	min-height: 36px;
	padding: 0 18px;
	width: 100%;
	max-width: 168px;
	border-radius: 999px;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	background: linear-gradient(90deg, #ffb13a 0%, #ff9d0b 100%);
	border: none;
	box-shadow: 0 6px 14px rgba(255, 157, 11, 0.28);
	white-space: nowrap;
}

.kmae-hub__card:hover,
.kmae-hub__card:focus-visible {
	transform: translateY(-6px);
	outline: none;
	box-shadow: 0 16px 32px rgba(30, 60, 120, 0.14);
}

.kmae-hub__card:hover .kmae-hub__card-cta,
.kmae-hub__card:focus-visible .kmae-hub__card-cta {
	filter: brightness(1.05);
}

.kmae-hub__bridge {
	margin: 0 auto 1.15rem;
	max-width: 36rem;
	text-align: center;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: clamp(0.98rem, 1.8vw, 1.15rem);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

/* Lower panels */
.kmae-hub__panels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.kmae-hub-panel {
	display: flex;
	flex-direction: column;
	min-height: 260px;
	padding: 16px 16px 14px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 14, 28, 0.78);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.kmae-hub-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.kmae-hub-panel__title {
	margin: 0;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.98rem;
	font-weight: 700;
	color: #fff;
}

.kmae-hub-panel__link {
	font-size: 0.78rem;
	font-weight: 600;
	color: #33d7ff;
	text-decoration: none;
	white-space: nowrap;
}

.kmae-hub-panel__link:hover,
.kmae-hub-panel__link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.kmae-hub-panel__chip {
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
}

.kmae-hub-panel__empty {
	margin: auto 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

.kmae-hub-activity {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kmae-hub-activity__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kmae-hub-activity__item:last-child {
	border-bottom: none;
}

.kmae-hub-activity__dot {
	width: 8px;
	height: 8px;
	margin-top: 5px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #00c8f5;
	box-shadow: 0 0 8px rgba(0, 200, 245, 0.45);
}

.kmae-hub-activity__item--gold .kmae-hub-activity__dot {
	background: #f5a623;
	box-shadow: 0 0 8px rgba(245, 166, 35, 0.4);
}

.kmae-hub-activity__item--green .kmae-hub-activity__dot {
	background: #22d3a5;
	box-shadow: 0 0 8px rgba(34, 211, 165, 0.4);
}

.kmae-hub-activity__item--red .kmae-hub-activity__dot {
	background: #ff3d71;
	box-shadow: 0 0 8px rgba(255, 61, 113, 0.35);
}

.kmae-hub-activity__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.kmae-hub-activity__text {
	font-size: 0.8rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.9);
}

.kmae-hub-activity__time {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.48);
}

.kmae-hub-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	flex: 1;
}

.kmae-hub-stats__tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	border-radius: 14px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.kmae-hub-stats__tile:hover,
.kmae-hub-stats__tile:focus-visible {
	border-color: rgba(0, 200, 245, 0.35);
	background: rgba(0, 200, 245, 0.08);
	transform: translateY(-2px);
	outline: none;
}

.kmae-hub-stats__label {
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.02em;
}

.kmae-hub-stats__value {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
}

.kmae-hub-stats__sub {
	font-size: 0.68rem;
	color: rgba(255, 255, 255, 0.45);
}

.kmae-hub-stats__sub.is-up {
	color: #22d3a5;
}

.kmae-hub-actions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kmae-hub-actions__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 12px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: rgba(255, 255, 255, 0.03);
	color: #fff;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.kmae-hub-actions__item:hover,
.kmae-hub-actions__item:focus-visible {
	border-color: rgba(0, 200, 245, 0.35);
	background: rgba(0, 200, 245, 0.08);
	outline: none;
}

.kmae-hub-actions__icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	flex-shrink: 0;
	background: rgba(0, 200, 245, 0.12);
	border: 1px solid rgba(0, 200, 245, 0.28);
	position: relative;
}

.kmae-hub-actions__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 12px;
	height: 12px;
	background: currentColor;
	color: #33d7ff;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.kmae-hub-actions__icon--plus::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.kmae-hub-actions__icon--chat::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
}

.kmae-hub-actions__icon--bell::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 1 1-6 0v-1'/%3E%3C/svg%3E");
}

.kmae-hub-actions__icon--user::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.kmae-hub-actions__label {
	flex: 1;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 600;
}

.kmae-hub-actions__arrow {
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
	.kmae-hub__card,
	.kmae-hub-stats__tile {
		transition: none;
	}
}

/* ---------- Hub submenu pages ---------- */

body.kmae-app .kmae-app-layout.is-panels-closed .kmae-main:has(.kmae-hub-menu),
body.kmae-app .kmae-app-layout.is-panels-closed .kmae-main:has(.kmae-page--hub-menu) {
	max-width: none !important;
	width: 100% !important;
}

.kmae-page--hub-menu,
.kmae-page:has(.kmae-hub-menu) {
	padding: calc(var(--kmae-header-h, 72px) + 12px) 24px 56px !important;
	max-width: none !important;
	width: 100% !important;
	box-sizing: border-box;
}

.kmae-page:has(.kmae-hub-menu) .kmae-container,
.kmae-page:has(.kmae-hub-menu) .kmae-page__content {
	max-width: none !important;
	width: 100% !important;
}

.kmae-hub-menu-shell {
	width: min(100%, 1180px);
	max-width: 1180px;
	margin: 0 auto;
}

.kmae-hub-menu {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	color: #f5f5fa;
}

.kmae-hub-menu__back,
.kmae-hub-menu .kmae-page-back {
	display: none !important;
}

.kmae-hub-menu__intro {
	margin: 0 0 1.25rem;
	text-align: center;
}

.kmae-hub-menu__title {
	margin: 0 0 0.35rem;
	font-family: "Outfit", "Space Grotesk", system-ui, sans-serif;
	font-size: clamp(1.75rem, 3.4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.kmae-hub-menu__lead {
	margin: 0;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.68);
}

/* Submenu cards = same .kmae-hub__grid / .kmae-hub__card as logged-in home */
.kmae-hub-menu .kmae-hub__card-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.kmae-hub-menu__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.32rem;
	border-radius: 999px;
	background: var(--kmae-notify);
	border: 0;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	box-shadow: 0 0 8px var(--kmae-notify-glow);
}

@media (prefers-reduced-motion: reduce) {
	.kmae-hub-menu .kmae-hub__card {
		transition: none;
	}
}
