/* ==========================================================================
   DashWoo — Dashboard moderno para clientes WooCommerce
   ========================================================================== */

.dashwoo {
	--dw-accent: #6366f1;
	--dw-accent-soft: color-mix(in srgb, var(--dw-accent) 12%, transparent);
	--dw-radius: 16px;
	--dw-radius-sm: 10px;
	--dw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Tema claro (padrão) */
	--dw-bg: #f4f5fb;
	--dw-surface: #ffffff;
	--dw-surface-2: #fafbff;
	--dw-border: #e9eaf2;
	--dw-text: #1a1c2e;
	--dw-text-soft: #6b6f87;
	--dw-shadow: 0 1px 3px rgba(20, 22, 50, .06), 0 8px 24px rgba(20, 22, 50, .05);
	--dw-success: #16a34a;
	--dw-warning: #d97706;
	--dw-danger: #dc2626;

	box-sizing: border-box;
	font-family: var(--dw-font);
	color: var(--dw-text);
	line-height: 1.5;
}

.dashwoo[data-theme="dark"] {
	--dw-bg: #0f1117;
	--dw-surface: #171a23;
	--dw-surface-2: #1d212c;
	--dw-border: #272b38;
	--dw-text: #e8eaf2;
	--dw-text-soft: #9499ad;
	--dw-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
}

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

/* ==========================================================================
   Isolamento — impede o tema do site de vazar estilos para o dashboard.
   Usamos !important nos pontos críticos porque muitos temas (Elementor etc.)
   aplicam !important em botões, links e títulos.
   ========================================================================== */
.dashwoo h1, .dashwoo h2, .dashwoo h3, .dashwoo h4, .dashwoo h5, .dashwoo h6,
.dashwoo p, .dashwoo ul, .dashwoo ol, .dashwoo li, .dashwoo figure {
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

.dashwoo button,
.dashwoo input,
.dashwoo select,
.dashwoo textarea {
	font-family: inherit;
	line-height: 1.5;
	margin: 0;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

.dashwoo a {
	box-shadow: none !important;
	text-decoration: none;
}

/* Todos os ícones SVG têm tamanho fixo (exceto o gráfico). */
.dashwoo svg:not(.dw-chart) {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

/* ----------------------------------------------------------- Layout shell */
.dashwoo {
	background: var(--dw-bg);
	border-radius: var(--dw-radius);
	min-height: 600px;
	overflow: hidden;
}

.dw-shell {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 640px;
}

/* --------------------------------------------------------------- Sidebar */
.dw-sidebar {
	background: var(--dw-surface);
	border-right: 1px solid var(--dw-border);
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dw-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 12px 20px;
}

.dw-brand-logo {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--dw-accent), color-mix(in srgb, var(--dw-accent) 60%, #fff));
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	flex-shrink: 0;
}

.dw-brand-logo-img {
	height: 40px;
	width: auto;
	max-width: 130px;
	border-radius: 10px;
	object-fit: contain;
	flex-shrink: 0;
	background: #fff;
	padding: 3px;
	border: 1px solid var(--dw-border);
}

.dw-brand-name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.25;
	letter-spacing: -.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------------------------------------------- Perfil na sidebar */
#dashwoo-app .dw-profile,
.dashwoo .dw-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 12px;
	margin-bottom: 10px;
	border: none !important;
	border-radius: var(--dw-radius-sm) !important;
	background: var(--dw-surface-2) !important;
	color: var(--dw-text) !important;
	cursor: pointer;
	text-align: left;
	box-shadow: none !important;
	outline: none !important;
	transition: background .15s, transform .15s;
	animation: dw-profile-in .5s ease both;
}

/* Hover/foco/clique: fundo neutro um tom acima, SEM cor da marca e SEM contorno */
#dashwoo-app .dw-profile:hover,
.dashwoo .dw-profile:hover {
	background: var(--dw-border) !important;
	transform: translateY(-1px);
}

#dashwoo-app .dw-profile:focus,
#dashwoo-app .dw-profile:active,
.dashwoo .dw-profile:focus,
.dashwoo .dw-profile:active {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	background: var(--dw-surface-2) !important;
}

/* Foco por teclado: anel neutro discreto (sem laranja) */
#dashwoo-app .dw-profile:focus-visible,
.dashwoo .dw-profile:focus-visible {
	outline: 2px solid var(--dw-text-soft) !important;
	outline-offset: 2px;
}

.dw-profile-avatar {
	position: relative;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
}

/* Anel de gradiente girando na cor da marca */
.dw-profile-avatar::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		var(--dw-accent),
		color-mix(in srgb, var(--dw-accent) 15%, transparent),
		var(--dw-accent)
	);
	animation: dw-rotate 3.5s linear infinite;
}

.dashwoo .dw-profile-avatar img {
	position: absolute;
	inset: 3px;
	width: calc(100% - 6px) !important;
	height: calc(100% - 6px) !important;
	max-width: none !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 3px solid var(--dw-surface);
	background: var(--dw-surface);
	z-index: 1;
}

/* Selo de plano (ex.: PRO) sobre o avatar */
.dw-profile-badge {
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	background: var(--dw-accent);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1;
	padding: 3px 8px;
	border-radius: 999px;
	border: 2px solid var(--dw-surface);
	white-space: nowrap;
	animation: dw-badge-glow 2.6s infinite;
}

/* Avatar de fallback com iniciais */
.dw-profile-avatar .dw-initials {
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dw-accent);
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	border: 3px solid var(--dw-surface);
	z-index: 1;
}

.dw-userchip .dw-initials {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dw-accent);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	flex-shrink: 0;
}

.dw-avatar-initials {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: var(--dw-accent);
	color: #fff;
	font-weight: 800;
	font-size: 26px;
}

.dw-profile-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dw-profile-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--dw-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dw-profile-role {
	font-size: 12px;
	color: var(--dw-text-soft);
}

@keyframes dw-rotate { to { transform: rotate(360deg); } }

@keyframes dw-profile-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

@keyframes dw-badge-glow {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dw-accent) 55%, transparent); }
	70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dw-accent) 0%, transparent); }
	100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dw-accent) 0%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
	.dw-profile-avatar::before { animation: none; }
	.dw-profile-badge { animation: none; }
	.dw-profile { animation: none; }
}

.dw-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.dashwoo .dw-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: var(--dw-radius-sm) !important;
	color: var(--dw-text-soft) !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left;
	text-decoration: none !important;
	width: 100%;
	transition: background .15s, color .15s;
}

.dashwoo .dw-nav-item:hover {
	background: var(--dw-surface-2) !important;
	color: var(--dw-text) !important;
}

.dashwoo .dw-nav-item.is-active {
	background: var(--dw-accent-soft) !important;
	color: var(--dw-accent) !important;
	font-weight: 600;
}

.dw-sidebar-footer {
	border-top: 1px solid var(--dw-border);
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ----------------------------------------------------------------- Main */
.dw-main {
	padding: 28px 32px 40px;
	min-width: 0;
}

.dw-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 28px;
	gap: 16px;
	flex-wrap: wrap;
}

.dashwoo .dw-topbar h2 {
	margin: 0 !important;
	font-size: 24px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: -.02em;
	color: var(--dw-text) !important;
}

.dw-topbar-sub {
	color: var(--dw-text-soft);
	font-size: 14px;
	margin-top: 2px;
}

.dw-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dw-userchip {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--dw-surface);
	border: 1px solid var(--dw-border);
	border-radius: 999px;
	padding: 5px 14px 5px 5px;
	font-size: 13px;
	font-weight: 600;
}

.dashwoo .dw-userchip img {
	width: 30px !important;
	height: 30px !important;
	max-width: none !important;
	border-radius: 50% !important;
	object-fit: cover !important;
}

.dashwoo .dw-theme-toggle {
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	border: 1px solid var(--dw-border) !important;
	background: var(--dw-surface) !important;
	box-shadow: none !important;
	cursor: pointer;
	display: grid;
	place-items: center;
	color: var(--dw-text) !important;
	transition: background .15s;
}

.dashwoo .dw-theme-toggle:hover {
	background: var(--dw-surface-2) !important;
}

/* --------------------------------------------------------------- Cards */
.dw-grid {
	display: grid;
	gap: 18px;
}

.dw-grid-stats {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin-bottom: 22px;
}

.dw-card {
	background: var(--dw-surface);
	border: 1px solid var(--dw-border);
	border-radius: var(--dw-radius);
	padding: 22px;
	box-shadow: var(--dw-shadow);
}

.dw-stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	overflow: hidden;
}

.dw-stat-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--dw-accent-soft);
	color: var(--dw-accent);
	display: grid;
	place-items: center;
	margin-bottom: 6px;
}

.dw-stat-icon svg { width: 22px; height: 22px; }

.dw-stat-label {
	color: var(--dw-text-soft);
	font-size: 13px;
	font-weight: 500;
}

.dw-stat-value {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
	word-break: break-word;
}

.dw-stat-sub {
	font-size: 12px;
	color: var(--dw-text-soft);
	margin-top: 4px;
}

.dashwoo .dw-section-title {
	font-size: 16px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	margin: 0 0 14px !important;
	color: var(--dw-text) !important;
}

.dashwoo .dw-stat-value {
	color: var(--dw-text);
}

.dw-two-col {
	grid-template-columns: 1.6fr 1fr;
	align-items: start;
}

.dw-col-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Resumo dos pedidos por status */
.dw-statusbar {
	display: flex;
	height: 14px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--dw-border);
	margin-bottom: 18px;
}

.dw-statusbar-seg {
	height: 100%;
	min-width: 3px;
	transition: opacity .15s;
}

.dw-statusbar-seg:hover { opacity: .8; }

.dw-status-legend {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dw-status-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--dw-text-soft);
}

.dw-status-legend-item strong {
	margin-left: auto;
	color: var(--dw-text);
	font-weight: 700;
}

.dw-dot {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	flex-shrink: 0;
}

/* Cores por status (barra + legenda) */
.dw-segbg-completed { background: var(--dw-success); }
.dw-segbg-processing { background: #3b82f6; }
.dw-segbg-on-hold { background: var(--dw-warning); }
.dw-segbg-pending { background: #9ca3af; }
.dw-segbg-cancelled,
.dw-segbg-failed { background: var(--dw-danger); }
.dw-segbg-refunded { background: #8b5cf6; }

@media (max-width: 900px) {
	.dw-two-col { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- Chart (SVG) */
.dw-chart {
	width: 100%;
	height: 220px;
	display: block;
}

.dw-chart .dw-bar {
	fill: var(--dw-accent);
	transition: opacity .15s;
	cursor: pointer;
	rx: 6;
}

.dw-chart .dw-bar:hover { opacity: .75; }

.dw-chart-label {
	fill: var(--dw-text-soft);
	font-size: 11px;
	font-family: var(--dw-font);
}

.dw-chart-value {
	fill: var(--dw-text);
	font-size: 11px;
	font-weight: 600;
	font-family: var(--dw-font);
}

/* --------------------------------------------------------------- Tables */
.dw-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.dw-table th {
	text-align: left;
	color: var(--dw-text-soft);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 10px 12px;
	border-bottom: 1px solid var(--dw-border);
}

.dw-table td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--dw-border);
}

.dw-table tr:last-child td { border-bottom: none; }

.dw-table tbody tr {
	transition: background .12s;
}

.dw-table tbody tr:hover { background: var(--dw-surface-2); }

/* ----------------------------------------------------- Últimas compras */
.dw-recent {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dashwoo .dw-recent-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 10px;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 12px !important;
	cursor: pointer;
	text-align: left;
	transition: background .12s;
}

.dashwoo .dw-recent-item:hover {
	background: var(--dw-surface-2) !important;
}

.dw-recent-ico {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--dw-accent-soft);
	color: var(--dw-accent);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.dw-recent-ico svg { width: 18px; height: 18px; }

.dw-recent-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.dw-recent-num {
	font-weight: 600;
	font-size: 14px;
	color: var(--dw-text);
}

.dw-recent-date {
	font-size: 12px;
	color: var(--dw-text-soft);
}

.dw-recent-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	flex-shrink: 0;
}

.dw-recent-total {
	font-weight: 700;
	font-size: 14px;
	color: var(--dw-text);
}

.dashwoo .dw-link-all {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 11px;
	border: 1px solid var(--dw-border) !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: var(--dw-radius-sm) !important;
	color: var(--dw-accent) !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background .12s;
}

.dashwoo .dw-link-all:hover {
	background: var(--dw-accent-soft) !important;
}

/* --------------------------------------------------------------- Badges */
.dw-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.dw-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.dw-badge-completed { background: rgba(22,163,74,.12); color: var(--dw-success); }
.dw-badge-processing { background: rgba(59,130,246,.12); color: #3b82f6; }
.dw-badge-on-hold { background: rgba(217,119,6,.12); color: var(--dw-warning); }
.dw-badge-pending { background: rgba(107,114,128,.14); color: #6b7280; }
.dw-badge-cancelled,
.dw-badge-failed { background: rgba(220,38,38,.12); color: var(--dw-danger); }
.dw-badge-refunded { background: rgba(139,92,246,.12); color: #8b5cf6; }

/* ----------------------------------------------------------- Downloads */
.dw-downloads {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.dw-dl-card {
	background: var(--dw-surface);
	border: 1px solid var(--dw-border);
	border-radius: var(--dw-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: var(--dw-shadow);
}

.dw-dl-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dashwoo .dw-dl-thumb {
	width: 48px !important;
	height: 48px !important;
	max-width: none !important;
	border-radius: 12px !important;
	object-fit: cover !important;
	flex-shrink: 0;
	background: var(--dw-surface-2);
}

.dw-dl-thumb-ph {
	display: grid;
	place-items: center;
	color: var(--dw-accent);
	background: var(--dw-accent-soft);
}

.dw-dl-name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	word-break: break-word;
}

.dw-dl-sub {
	font-size: 12px;
	color: var(--dw-text-soft);
	margin-top: 2px;
}

.dw-dl-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	color: var(--dw-text-soft);
}

.dw-dl-meta-row {
	display: flex;
	justify-content: space-between;
}

.dw-progress {
	height: 7px;
	border-radius: 999px;
	background: var(--dw-border);
	overflow: hidden;
}

.dw-progress-bar {
	height: 100%;
	border-radius: 999px;
	background: var(--dw-accent);
	transition: width .4s ease;
}

.dw-progress-bar.is-warn { background: var(--dw-warning); }
.dw-progress-bar.is-danger { background: var(--dw-danger); }

/* ------------------------------------------------------------- Coupons */
.dw-coupons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.dw-coupon {
	border: 2px dashed var(--dw-border);
	border-radius: var(--dw-radius);
	padding: 18px;
	background: var(--dw-surface);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dw-coupon-value {
	font-size: 26px;
	font-weight: 800;
	color: var(--dw-accent);
	letter-spacing: -.02em;
}

.dashwoo .dw-coupon-code {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-weight: 700 !important;
	background: var(--dw-accent-soft) !important;
	color: var(--dw-accent) !important;
	padding: 6px 12px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	align-self: flex-start;
	border: none !important;
}

.dw-coupon-desc { font-size: 13px; color: var(--dw-text-soft); }
.dw-coupon-expiry { font-size: 12px; color: var(--dw-text-soft); }

.dw-wallet-balance {
	background: linear-gradient(135deg, var(--dw-accent), color-mix(in srgb, var(--dw-accent) 55%, #000));
	color: #fff;
	border-radius: var(--dw-radius);
	padding: 26px;
	margin-bottom: 22px;
}

.dw-wallet-balance .dw-stat-label { color: rgba(255,255,255,.8); }
.dw-wallet-balance .dw-stat-value { color: #fff; font-size: 34px; }

/* --------------------------------------------------------------- Forms */
.dw-form {
	display: grid;
	gap: 18px;
	max-width: 640px;
}

.dw-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 600px) {
	.dw-form-row { grid-template-columns: 1fr; }
}

.dw-field { display: flex; flex-direction: column; gap: 6px; }

.dw-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--dw-text-soft);
}

.dashwoo .dw-field input,
.dashwoo .dw-field select {
	padding: 11px 14px !important;
	border-radius: var(--dw-radius-sm) !important;
	border: 1px solid var(--dw-border) !important;
	background: var(--dw-surface) !important;
	color: var(--dw-text) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	font-family: inherit;
	height: auto !important;
	width: 100% !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.dashwoo .dw-field input:focus,
.dashwoo .dw-field select:focus {
	outline: none;
	border-color: var(--dw-accent) !important;
	box-shadow: 0 0 0 3px var(--dw-accent-soft) !important;
}

.dashwoo .dw-search {
	padding: 11px 16px !important;
	border-radius: 10px !important;
	border: 1px solid var(--dw-border) !important;
	background: var(--dw-surface) !important;
	color: var(--dw-text) !important;
	font-size: 14px !important;
	height: auto !important;
	box-shadow: none !important;
	min-width: 240px;
}

.dw-avatar-editor {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px;
	background: var(--dw-surface);
	border: 1px solid var(--dw-border);
	border-radius: var(--dw-radius);
	margin-bottom: 22px;
	max-width: 640px;
}

.dashwoo .dw-avatar-img {
	width: 72px !important;
	height: 72px !important;
	max-width: none !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0;
	border: 2px solid var(--dw-border);
	background: var(--dw-surface-2);
}

.dw-avatar-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.dw-avatar-hint {
	font-size: 12px;
	color: var(--dw-text-soft);
}

.dw-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--dw-border);
}

.dashwoo .dw-tab {
	padding: 10px 16px;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--dw-text-soft) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	cursor: pointer;
	margin-bottom: -1px;
}

.dashwoo .dw-tab.is-active {
	color: var(--dw-accent) !important;
	border-bottom-color: var(--dw-accent) !important;
}

/* -------------------------------------------------------------- Buttons */
.dashwoo .dw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--dw-radius-sm) !important;
	border: 1px solid transparent !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	width: auto !important;
	height: auto !important;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: none !important;
	transition: transform .1s, opacity .15s, background .15s;
}

.dashwoo .dw-btn:active { transform: translateY(1px); }

.dashwoo .dw-btn-primary { background: var(--dw-accent) !important; color: #fff !important; }
.dashwoo .dw-btn-primary:hover { opacity: .9; }

.dashwoo .dw-btn-ghost {
	background: var(--dw-surface) !important;
	color: var(--dw-text) !important;
	border-color: var(--dw-border) !important;
}
.dashwoo .dw-btn-ghost:hover { background: var(--dw-surface-2) !important; }

.dw-btn-sm { padding: 7px 14px; font-size: 13px; }

.dw-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- Alerts */
.dw-alert {
	padding: 12px 16px;
	border-radius: var(--dw-radius-sm);
	font-size: 14px;
	margin-bottom: 16px;
}

.dw-alert-success { background: rgba(22,163,74,.12); color: var(--dw-success); }
.dw-alert-error { background: rgba(220,38,38,.12); color: var(--dw-danger); }

/* ----------------------------------------------------------- Empty/load */
.dw-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--dw-text-soft);
}

.dw-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .5; }

.dw-skeleton {
	background: linear-gradient(90deg, var(--dw-border) 25%, var(--dw-surface-2) 50%, var(--dw-border) 75%);
	background-size: 200% 100%;
	animation: dw-shimmer 1.3s infinite;
	border-radius: 8px;
}

@keyframes dw-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.dw-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--dw-border);
	border-top-color: var(--dw-accent);
	border-radius: 50%;
	animation: dw-spin .7s linear infinite;
	margin: 60px auto;
}

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

/* --------------------------------------------------------------- Modal */
.dw-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,12,20,.55);
	display: grid;
	place-items: center;
	z-index: 99999;
	padding: 20px;
	backdrop-filter: blur(2px);
}

.dw-modal {
	background: var(--dw-surface);
	border-radius: var(--dw-radius);
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.dw-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--dw-border);
}

.dw-modal-head h3 { margin: 0; font-size: 18px; }
.dw-modal-body { padding: 24px; }

.dw-modal-close {
	border: none;
	background: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--dw-text-soft);
	line-height: 1;
}

/* ----------------------------------------------------------- Login page */
/* Página de login DEDICADA em tela cheia (split): metade do formulário à
   esquerda + metade da marca à direita. Servida sem o layout do tema. */

.dashwoo-login-standalone {
	margin: 0 !important;
	padding: 0 !important;
	background: #fff;
}

.dashwoo.dashwoo-login-fs {
	background: #fff !important;
	min-height: 100vh !important;
	border-radius: 0 !important;
	overflow: visible !important;
	display: flex;
	width: 100%;
}

/* ---- Metade do formulário (esquerda) ---- */
.dashwoo .dw-fs-formhalf {
	flex: 1 1 52%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: #fff;
}

.dashwoo .dw-fs-formbox { width: 100%; max-width: 400px; }

/* Sem painel lateral: formulário ocupa a tela toda, centralizado. */
.dashwoo.dw-fs-solo .dw-fs-formhalf { flex: 1 1 100%; }

.dashwoo .dw-fs-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 34px;
}
.dashwoo .dw-fs-logo .dashwoo-login-logo-img { max-width: 190px; max-height: 52px; margin: 0; }
.dashwoo .dw-fs-logo-name { font-size: 20px; font-weight: 700; color: var(--dw-text); }

.dashwoo .dw-form-title {
	font-size: 30px !important;
	line-height: 1.15 !important;
	font-weight: 800 !important;
	color: var(--dw-text) !important;
	margin: 0 0 8px !important;
}
.dashwoo .dw-form-title-register { display: none; }

.dashwoo .dw-fs-formbox > .dw-auth-sub-login,
.dashwoo .dw-fs-formbox > .dw-auth-sub-register {
	font-size: 15px;
	color: var(--dw-text-soft);
	margin: 0 0 26px;
}
.dashwoo .dw-auth-sub-register { display: none; }

/* Troca de título/subtítulo conforme login/cadastro. */
.dw-fs-formbox:has(#dw-tab-register:checked) .dw-form-title-login { display: none; }
.dw-fs-formbox:has(#dw-tab-register:checked) .dw-form-title-register { display: block; }
.dw-fs-formbox:has(#dw-tab-register:checked) .dw-auth-sub-login { display: none; }
.dw-fs-formbox:has(#dw-tab-register:checked) .dw-auth-sub-register { display: block; }

/* ---- Metade da marca (direita) ---- */
.dashwoo .dw-fs-brandhalf {
	flex: 1 1 48%;
	display: flex;
	align-items: center;
	padding: 48px 56px;
	color: #fff;
	background:
		radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.14), transparent 55%),
		linear-gradient(150deg, var(--dw-accent), color-mix(in srgb, var(--dw-accent) 58%, #000));
}

.dashwoo .dw-fs-brandbox { max-width: 460px; }

.dashwoo .dw-fs-badge {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	margin-bottom: 24px;
}

.dashwoo .dw-fs-brandtitle {
	font-size: 40px !important;
	line-height: 1.12 !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 0 18px !important;
}

.dashwoo .dw-fs-brandtext {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .82);
	margin: 0 0 34px;
}

.dashwoo .dw-fs-features {
	list-style: none !important;
	margin: 0 0 36px !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.dashwoo .dw-fs-features li {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	list-style: none !important;
	margin: 0 !important;
}
.dashwoo .dw-fs-feat-ico {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
}
.dashwoo .dw-fs-feat-ico .dw-feat-ico { width: 22px !important; height: 22px !important; }

.dashwoo .dw-fs-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 26px;
	border-radius: 12px;
	background: #fff;
	color: var(--dw-accent) !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
	transition: transform .12s ease;
}
.dashwoo .dw-fs-cta:hover { transform: translateY(-1px); }
.dashwoo .dw-fs-cta svg { width: 18px !important; height: 18px !important; }

/* ---- Ícone-fallback quadrado quando não há logo ---- */
.dashwoo-login-logo {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--dw-accent), color-mix(in srgb, var(--dw-accent) 60%, #fff));
	color: #fff;
	font-size: 22px;
}

.dashwoo-login-logo-img {
	display: inline-block;
	max-width: 190px;
	max-height: 52px;
	object-fit: contain;
}

/* ---- Responsivo: esconde a metade da marca no celular ---- */
@media (max-width: 900px) {
	.dashwoo.dashwoo-login-fs { display: block; }
	.dashwoo .dw-fs-brandhalf { display: none; }
	.dashwoo .dw-fs-formhalf { min-height: 100vh; padding: 40px 22px; }
}

/* ---- Alternância login/cadastro (radios ocultos) ---- */
.dashwoo .dw-auth-panel { display: none; }
#dw-tab-login:checked ~ .dw-auth-panel-login { display: block; }
#dw-tab-register:checked ~ .dw-auth-panel-register { display: block; }

/* Link de troca no rodapé do formulário. */
.dashwoo .dw-auth-switch {
	margin-top: 24px !important;
	padding-top: 20px;
	border-top: 1px solid var(--dw-border);
	text-align: center;
	font-size: 14px;
	color: var(--dw-text-soft);
}

.dashwoo .dw-auth-switch-link {
	display: inline !important;
	margin: 0 0 0 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--dw-accent) !important;
	cursor: pointer;
}

.dashwoo .dw-auth-switch-link:hover { text-decoration: underline; }

/* ---- Campos com ícone ---- */
.dashwoo .dw-field { margin-bottom: 16px; }

.dashwoo .dw-field > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #5b607a;
}

.dashwoo .dw-inwrap { position: relative; display: block; }

.dashwoo .dw-inwrap .dw-ico {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa0b8;
	pointer-events: none;
	z-index: 1;
	width: 20px !important;
	height: 20px !important;
}

.dashwoo .dw-fs-formbox input[type="text"],
.dashwoo .dw-fs-formbox input[type="email"],
.dashwoo .dw-fs-formbox input[type="password"] {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 14px 16px !important;
	border-radius: 12px !important;
	border: 1px solid #e6e8f2 !important;
	background: #f2f4fb !important;
	font-size: 14.5px !important;
	height: auto !important;
	color: var(--dw-text) !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dashwoo .dw-fs-formbox input.dw-hasicon { padding-left: 46px !important; }
.dashwoo .dw-fs-formbox input.dw-haseye { padding-right: 46px !important; }

.dashwoo .dw-fs-formbox input[type="text"]:focus,
.dashwoo .dw-fs-formbox input[type="email"]:focus,
.dashwoo .dw-fs-formbox input[type="password"]:focus {
	border-color: var(--dw-accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px var(--dw-accent-soft) !important;
	outline: none !important;
}

/* Botão de mostrar/ocultar senha. */
.dashwoo .dw-eye {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: none;
	color: #9aa0b8;
	cursor: pointer;
	z-index: 2;
}
.dashwoo .dw-eye:hover,
.dashwoo .dw-eye.is-on { color: var(--dw-accent); }
.dashwoo .dw-eye svg { width: 20px !important; height: 20px !important; }

/* Autofill do Chrome — mantém o campo limpo. */
.dashwoo .dw-fs-formbox input:-webkit-autofill,
.dashwoo .dw-fs-formbox input:-webkit-autofill:hover,
.dashwoo .dw-fs-formbox input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--dw-text) !important;
	-webkit-box-shadow: 0 0 0 1000px #f2f4fb inset !important;
	box-shadow: 0 0 0 1000px #f2f4fb inset !important;
	caret-color: var(--dw-text) !important;
	transition: background-color 9999s ease-out 0s;
}

/* Linha "manter conectado" + "esqueci a senha". */
.dashwoo .dw-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 18px;
	font-size: 13px;
}

.dashwoo .dw-auth-remember {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	margin-bottom: 0 !important;
	font-weight: 500 !important;
	color: var(--dw-text) !important;
	cursor: pointer;
}

.dashwoo .dw-auth-remember input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: var(--dw-accent);
	cursor: pointer;
}

.dashwoo .dw-auth-forgot { color: var(--dw-accent); text-decoration: none; white-space: nowrap; }
.dashwoo .dw-auth-forgot:hover { text-decoration: underline; }

/* ---- Botão principal ---- */
.dashwoo .dw-auth-submit {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 14px !important;
	margin: 4px 0 0 !important;
	border-radius: 11px !important;
	border: none !important;
	background: var(--dw-accent) !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	letter-spacing: .01em !important;
	text-align: center !important;
	height: auto !important;
	text-transform: none !important;
	box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--dw-accent) 60%, transparent) !important;
	cursor: pointer;
	transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
}

.dashwoo .dw-auth-submit:hover {
	filter: brightness(1.07);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--dw-accent) 70%, transparent) !important;
}
.dashwoo .dw-auth-submit:active { transform: translateY(1px); }

/* Remove ícone/seta que o tema costuma injetar em botões via pseudo-elemento
   (empurrava o texto "Entrar" para o lado). */
.dashwoo .dw-auth-submit::before,
.dashwoo .dw-auth-submit::after {
	content: "" !important;
	display: none !important;
}

/* O rótulo ocupa a largura toda e centraliza o texto — imune a qualquer
   pseudo-elemento que o tema ainda injete no botão. */
.dashwoo .dw-auth-submit-label {
	flex: 1 1 auto !important;
	text-align: center !important;
	color: inherit !important;
}

.dashwoo .dw-auth-hint {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--dw-text-soft);
	text-align: center;
}

/* ---- Avisos do WooCommerce ---- */
.dashwoo .dw-auth-notices { margin-bottom: 18px; }

.dashwoo .dw-auth-notices .woocommerce-error,
.dashwoo .dw-auth-notices .woocommerce-message,
.dashwoo .dw-auth-notices .woocommerce-info,
.dashwoo .dw-auth-notices ul.woocommerce-error {
	list-style: none !important;
	margin: 0 0 10px !important;
	padding: 12px 14px !important;
	border-radius: 10px !important;
	font-size: 13.5px !important;
	line-height: 1.4;
}

.dashwoo .dw-auth-notices .woocommerce-error,
.dashwoo .dw-auth-notices ul.woocommerce-error {
	background: #fdecec !important;
	color: #b42318 !important;
	border: 1px solid #f5c2c0 !important;
}

.dashwoo .dw-auth-notices .woocommerce-message {
	background: var(--dw-accent-soft) !important;
	color: var(--dw-text) !important;
	border: 1px solid var(--dw-border) !important;
}

.dashwoo .dw-auth-notices .woocommerce-error li { margin: 0 !important; padding: 2px 0 !important; }

/* ---- Divisor + botões sociais (Google, etc.) ---- */
.dashwoo .dw-auth-social { margin-top: 18px; }
.dashwoo .dw-auth-social-top { margin-top: 0; margin-bottom: 4px; }

.dashwoo .dw-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
	color: var(--dw-text-soft);
	font-size: 12.5px;
	text-transform: none;
}

.dashwoo .dw-auth-social-top .dw-auth-divider { margin: 18px 0 6px; }

.dashwoo .dw-auth-divider::before,
.dashwoo .dw-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--dw-border);
}

/* Deixa os botões sociais ocuparem a largura toda e alinhados. */
.dashwoo .dw-auth-social a,
.dashwoo .dw-auth-social .nsl-container,
.dashwoo .dw-auth-social .nsl-container .nsl-container-buttons { width: 100% !important; }

/* ------------------------------------------------------------- Mobile */
@media (max-width: 768px) {
	.dw-shell { grid-template-columns: 1fr; }
	.dw-sidebar {
		flex-direction: row;
		overflow-x: auto;
		border-right: none;
		border-bottom: 1px solid var(--dw-border);
		padding: 12px;
		align-items: center;
	}
	.dw-brand { padding: 4px 8px; }
	.dw-brand-name { display: none; }
	.dashwoo .dw-profile { display: none; }
	.dw-nav { flex-direction: row; }
	.dw-nav-item span { display: none; }
	.dw-sidebar-footer { border-top: none; padding-top: 0; flex-direction: row; }
	.dw-main { padding: 20px; }
}
