.weddingpass-dashboard {
	--wpd-purple: #843eda;
	--wpd-purple-dark: #57219b;
	--wpd-purple-pale: #f3ebff;
	--wpd-cream: #fbfaf8;
	--wpd-paper: #fff;
	--wpd-ink: #171322;
	--wpd-muted: #746f7c;
	--wpd-line: #e8e3eb;
	--wpd-green: #319c2f;
	--wpd-green-pale: #edf8ea;
	--wpd-red: #ea3e46;
	--wpd-red-pale: #fff0f0;
	--wpd-orange: #e77800;
	--wpd-orange-pale: #fff5e8;
	--wpd-shadow: 0 12px 35px rgba(41, 24, 58, .07);
	position: relative;
	width: 100vw;
	min-height: 100vh;
	margin-left: calc(50% - 50vw);
	background: radial-gradient(circle at 85% 0%, rgba(132, 62, 218, .06), transparent 30rem), var(--wpd-cream);
	color: var(--wpd-ink);
	font-family: "DM Sans", "Avenir Next", Avenir, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.4;
}

body.wpd-fullscreen-page {
	margin: 0;
	background: var(--wpd-cream, #fbfaf8);
}

body.wpd-dashboard-page {
	overflow-x: hidden;
}

body.wpd-dashboard-page .entry-content,
body.wpd-dashboard-page .site-main {
	max-width: none;
	padding: 0;
	margin: 0;
}

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

.weddingpass-dashboard button,
.weddingpass-dashboard input,
.weddingpass-dashboard select {
	font: inherit;
}

.weddingpass-dashboard button,
.weddingpass-dashboard select {
	cursor: pointer;
}

.weddingpass-dashboard [hidden] {
	display: none !important;
}

.weddingpass-dashboard .wpd-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 30;
	display: flex;
	width: 258px;
	flex-direction: column;
	padding: 26px 18px 18px;
	border-right: 1px solid var(--wpd-line);
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(18px);
}

body.admin-bar .weddingpass-dashboard .wpd-sidebar {
	top: 32px;
}

.weddingpass-dashboard .wpd-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 0 10px;
	font-size: 23px;
	font-weight: 760;
	letter-spacing: -.04em;
}

.weddingpass-dashboard .wpd-brand-mark {
	display: grid;
	width: 39px;
	height: 39px;
	place-items: center;
	border-radius: 13px;
	background: linear-gradient(140deg, var(--wpd-purple), #6a22c7);
	color: #fff;
	box-shadow: 0 8px 18px rgba(132, 62, 218, .25);
}

.weddingpass-dashboard .wpd-brand-mark svg {
	width: 21px;
	height: 21px;
}

.weddingpass-dashboard .wpd-main-nav {
	display: grid;
	gap: 8px;
	margin-top: 43px;
}

.weddingpass-dashboard .wpd-nav-item {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #4f4958;
	font-size: 15px;
	text-align: left;
	transition: 160ms ease;
}

.weddingpass-dashboard .wpd-nav-item:hover {
	background: #f7f3fb;
	color: var(--wpd-purple-dark);
}

.weddingpass-dashboard .wpd-nav-item.is-active {
	background: linear-gradient(125deg, var(--wpd-purple), #6c29ca);
	color: #fff;
	box-shadow: 0 9px 24px rgba(113, 42, 201, .22);
}

.weddingpass-dashboard .wpd-nav-item svg {
	width: 20px;
	height: 20px;
}

.weddingpass-dashboard .wpd-help-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	margin-top: auto;
	padding: 16px;
	border: 1px solid #e7d9f6;
	border-radius: 16px;
	background: linear-gradient(145deg, #f7f0ff, #fff);
	color: var(--wpd-purple-dark);
}

.weddingpass-dashboard .wpd-help-card strong {
	display: block;
	font-size: 13px;
}

.weddingpass-dashboard .wpd-help-card p {
	margin: 4px 0 0;
	color: var(--wpd-muted);
	font-size: 11px;
	line-height: 1.45;
}

.weddingpass-dashboard .wpd-help-card button {
	grid-column: 1 / -1;
	padding: 8px;
	border: 1px solid #d9c5ef;
	border-radius: 9px;
	background: #fff;
	color: var(--wpd-purple-dark);
	font-size: 12px;
	font-weight: 650;
}

.weddingpass-dashboard .wpd-profile-card {
	display: grid;
	width: 100%;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 13px 11px;
	overflow: hidden;
	border: 1px solid var(--wpd-line);
	border-radius: 15px;
	background: #fff;
	color: inherit;
	text-align: left;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.weddingpass-dashboard .wpd-profile-card:hover {
	border-color: #cba8ed;
	background: #fbf8ff;
	transform: translateY(-1px);
}

.weddingpass-dashboard .wpd-avatar,
.weddingpass-dashboard .wpd-group-avatar {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(145deg, #f4edff, #eadcfb);
	color: var(--wpd-purple-dark);
	font-size: 13px;
	font-weight: 750;
}

.weddingpass-dashboard .wpd-profile-card strong,
.weddingpass-dashboard .wpd-profile-card small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.weddingpass-dashboard .wpd-profile-card strong {
	font-size: 12px;
}

.weddingpass-dashboard .wpd-profile-card small {
	margin-top: 2px;
	color: var(--wpd-muted);
	font-size: 10px;
}

.weddingpass-dashboard .wpd-mobile-header,
.weddingpass-dashboard .wpd-bottom-nav {
	display: none;
}

.weddingpass-dashboard .wpd-content {
	min-height: 100vh;
	margin-left: 258px;
}

.weddingpass-dashboard .wpd-page {
	width: min(100%, 1440px);
	margin: 0 auto;
	padding: 32px 36px 48px;
}

.weddingpass-dashboard .wpd-topbar {
	display: flex;
	min-height: 60px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.weddingpass-dashboard .wpd-topbar h1 {
	margin: 0;
	color: var(--wpd-ink);
	font-size: clamp(29px, 3vw, 39px);
	font-weight: 780;
	letter-spacing: -.045em;
	line-height: 1.15;
}

.weddingpass-dashboard .wpd-topbar p {
	margin: 6px 0 0;
	color: var(--wpd-muted);
	font-size: 15px;
}

.weddingpass-dashboard .wpd-topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.weddingpass-dashboard .wpd-topbar-account,
.weddingpass-dashboard .wpd-mobile-account {
	display: grid;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
}

.weddingpass-dashboard .wpd-login {
	--wpd-purple: #843eda;
	--wpd-purple-dark: #57219b;
	width: min(560px, calc(100% - 32px));
	margin: 80px auto;
	padding: 36px;
	border: 1px solid #e8e3eb;
	border-radius: 22px;
	background: #fff;
	color: #171322;
	text-align: center;
	box-shadow: 0 12px 35px rgba(41, 24, 58, .07);
}

.weddingpass-dashboard .wpd-login h2 {
	margin: 0 0 8px;
}

.weddingpass-dashboard .wpd-login p {
	margin: 0 0 24px;
	color: #746f7c;
}

@media (max-width: 820px) {
	.weddingpass-dashboard .wpd-sidebar {
		display: none;
	}

	.weddingpass-dashboard .wpd-content {
		margin-left: 0;
	}

	.weddingpass-dashboard .wpd-mobile-header {
		position: sticky;
		top: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 18px;
		border-bottom: 1px solid var(--wpd-line);
		background: rgba(255, 255, 255, .95);
		backdrop-filter: blur(18px);
	}

	body.admin-bar .weddingpass-dashboard .wpd-mobile-header {
		top: 46px;
	}

	.weddingpass-dashboard .wpd-mobile-header .wpd-brand {
		padding: 0;
		font-size: 20px;
	}

	.weddingpass-dashboard .wpd-mobile-header .wpd-brand-mark {
		width: 35px;
		height: 35px;
		border-radius: 11px;
	}

	.weddingpass-dashboard .wpd-page {
		padding: 26px 18px 104px;
	}

	.weddingpass-dashboard .wpd-topbar-actions {
		display: none;
	}

	.weddingpass-dashboard .wpd-bottom-nav {
		position: fixed;
		z-index: 70;
		right: 10px;
		bottom: 10px;
		left: 10px;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 4px;
		padding: 7px;
		border: 1px solid var(--wpd-line);
		border-radius: 18px;
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 14px 40px rgba(42, 25, 56, .16);
		backdrop-filter: blur(18px);
	}

	.weddingpass-dashboard .wpd-bottom-nav button {
		position: relative;
		display: flex;
		min-width: 0;
		align-items: center;
		justify-content: center;
		gap: 4px;
		padding: 8px 3px;
		border: 0;
		border-radius: 12px;
		background: transparent;
		color: #655f6c;
		flex-direction: column;
		font-size: 9px;
	}

	.weddingpass-dashboard .wpd-bottom-nav button.is-active {
		background: var(--wpd-purple-pale);
		color: var(--wpd-purple-dark);
	}

	.weddingpass-dashboard .wpd-bottom-nav svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 580px) {
	.weddingpass-dashboard .wpd-page {
		padding-right: 14px;
		padding-left: 14px;
	}

	.weddingpass-dashboard .wpd-topbar h1 {
		font-size: 31px;
	}

	.weddingpass-dashboard .wpd-topbar p {
		font-size: 13px;
		line-height: 1.5;
	}
}

@media (max-width: 782px) {
	body.admin-bar .weddingpass-dashboard .wpd-mobile-header {
		top: 46px;
	}
}

/* Evita que los estilos globales del tema reemplacen los controles del dashboard. */
.weddingpass-dashboard button {
	-webkit-appearance: none !important;
	appearance: none !important;
	min-width: 0;
	margin: 0;
	font-family: inherit !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

.weddingpass-dashboard .wpd-nav-item {
	justify-content: flex-start !important;
	padding: 14px 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	color: #4f4958 !important;
	box-shadow: none !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}

.weddingpass-dashboard .wpd-nav-item:hover {
	background: #f7f3fb !important;
	color: var(--wpd-purple-dark) !important;
}

.weddingpass-dashboard .wpd-nav-item.is-active {
	background: linear-gradient(125deg, var(--wpd-purple), #6c29ca) !important;
	color: #fff !important;
	box-shadow: 0 9px 24px rgba(113, 42, 201, .22) !important;
}

.weddingpass-dashboard .wpd-button {
	display: inline-flex !important;
	min-height: 44px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	padding: 0 18px !important;
	border-radius: 11px !important;
	font-weight: 680 !important;
}

.weddingpass-dashboard .wpd-button--primary {
	border: 0 !important;
	background: linear-gradient(125deg, var(--wpd-purple), #6b24c7) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(115, 43, 203, .2) !important;
}

.weddingpass-dashboard .wpd-button--secondary {
	border: 1px solid #cba8ed !important;
	background: #fff !important;
	color: var(--wpd-purple-dark) !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-icon-button {
	display: grid !important;
	width: 40px !important;
	height: 40px !important;
	place-items: center !important;
	padding: 0 !important;
	border: 1px solid var(--wpd-line) !important;
	border-radius: 11px !important;
	background: #fff !important;
	color: var(--wpd-ink) !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-icon-button:hover {
	border-color: #cba8ed !important;
	background: #f8f2ff !important;
	color: var(--wpd-purple-dark) !important;
}

/* El botón Limpiar debe ignorar los estilos globales del tema. */
.weddingpass-dashboard .wpd-filter-button {
	display: flex !important;
	min-height: 48px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	padding: 0 15px !important;
	border: 1px solid var(--wpd-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #4f4958 !important;
	box-shadow: none !important;
	font-size: 12px !important;
	font-weight: 600 !important;
}

.weddingpass-dashboard .wpd-filter-button:hover {
	border-color: #cba8ed !important;
	background: #f8f2ff !important;
	color: var(--wpd-purple-dark) !important;
}

.weddingpass-dashboard .wpd-profile-card {
	border: 1px solid var(--wpd-line) !important;
	border-radius: 15px !important;
	background: #fff !important;
	color: inherit !important;
	box-shadow: none !important;
	text-align: left !important;
}

.weddingpass-dashboard .wpd-profile-card:hover {
	border-color: #cba8ed !important;
	background: #fbf8ff !important;
}

.weddingpass-dashboard .wpd-topbar-account,
.weddingpass-dashboard .wpd-mobile-account {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-help-card button {
	padding: 8px !important;
	border: 1px solid #d9c5ef !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--wpd-purple-dark) !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-panel-title button {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wpd-purple) !important;
	box-shadow: none !important;
	font-size: 11px !important;
}

.weddingpass-dashboard .wpd-quick-actions button {
	display: flex !important;
	min-height: 70px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	padding: 9px !important;
	border: 1px solid var(--wpd-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #4f4958 !important;
	box-shadow: none !important;
	flex-direction: column !important;
	font-size: 10px !important;
}

.weddingpass-dashboard .wpd-table-actions button,
.weddingpass-dashboard .wpd-guest-card-actions button {
	border: 0 !important;
	background: transparent !important;
	color: var(--wpd-purple-dark) !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-bottom-nav button {
	border: 0 !important;
	background: transparent !important;
	color: #655f6c !important;
	box-shadow: none !important;
}

.weddingpass-dashboard .wpd-bottom-nav button.is-active {
	background: var(--wpd-purple-pale) !important;
	color: var(--wpd-purple-dark) !important;
}
