/* =============================================================
   DW Auth + My Listing Dashboard
   Registration / Login / "Mano skelbimas" self-service pages
   Design tokens: navy #182233, steel-blue accent #3A5E7C,
   hover #2B4759, gold #D4AF37, light bg #F5F6F8
   ============================================================= */

.dw-page-shell {
	background: none;
	padding: 48px 20px 72px;
	font-family: 'Inter', sans-serif;
}

.dw-page-shell * ,
.dw-page-shell *::before,
.dw-page-shell *::after { box-sizing: border-box; }

.dw-page-shell,
.dw-page-shell * { font-family: 'Inter', sans-serif !important; }

/* ── Shared card shell ───────────────────────────────────── */
.dw-card {
	max-width: 760px;
	margin: 0 auto;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(24,34,51,.06);
	overflow: hidden;
}

.dw-card-narrow { max-width: 440px; }

.dw-card-header {
	padding: 28px 32px 22px;
	border-bottom: 1px solid #E5E7EB;
}

.dw-card-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #3A5E7C;
	margin: 0 0 8px;
}

.dw-card-title {
	font-size: 24px;
	font-weight: 800;
	color: #182233;
	margin: 0 0 6px;
	line-height: 1.2;
}

.dw-card-subtitle {
	font-size: 14px;
	color: #6B7280;
	margin: 0;
	line-height: 1.5;
}

.dw-card-body { padding: 28px 32px 32px; }

/* ── Account dashboard: wide, flat shell — no card chrome, the page
   background shows straight through. Width alone is what makes this a
   dashboard; sections are separated by hairline dividers, not boxes. ── */
.dw-card.dw-dashboard {
	max-width: 1320px;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.dw-dashboard-layout {
	display: flex;
	align-items: stretch;
}

.dw-dashboard-sidebar {
	width: 232px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #E5E7EB;
	padding: 20px 12px;
}

.dw-sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.dw-sidebar-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: #6B7280;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 8px;
	transition: background .15s, color .15s;
}
.dw-sidebar-nav-item svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.dw-sidebar-nav-item:hover { background: #F1F3F6; color: #182233; }
.dw-sidebar-nav-item.is-active { background: rgba(58,94,124,.1); color: #3A5E7C; }

.dw-dashboard-content {
	flex: 1;
	min-width: 0;
	padding: 28px 32px 32px;
}

/* ── Profile card (sidebar) ──────────────────────────────────── */
.dw-profile-card {
	text-align: center;
	padding: 6px 8px 18px;
	margin-bottom: 12px;
	border-bottom: 1px solid #E5E7EB;
}
.dw-avatar-lg {
	width: 56px; height: 56px;
	margin: 0 auto 10px;
	display: flex; align-items: center; justify-content: center;
	background: #3A5E7C;
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 800;
	border-radius: 50%;
	letter-spacing: .02em;
}
.dw-profile-name {
	font-size: 14px;
	font-weight: 800;
	color: #182233;
	margin: 0 0 8px;
	line-height: 1.3;
	word-break: break-word;
}
.dw-profile-card .dw-badge { font-size: 11px; padding: 4px 10px; }

/* ── Sidebar logout: pinned to the bottom via margin-top: auto ──── */
.dw-sidebar-logout {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: #6B7280;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 8px;
	transition: background .15s, color .15s;
}
.dw-sidebar-logout:hover { background: rgba(192,57,43,.08); color: #A93226; }
.dw-sidebar-logout svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }

@media (max-width: 760px) {
	.dw-dashboard-layout { flex-direction: column; }
	.dw-dashboard-sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		border-right: none;
		border-bottom: 1px solid #E5E7EB;
		padding: 10px 12px;
	}
	.dw-profile-card { display: none; }
	.dw-sidebar-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
	.dw-sidebar-nav-item { white-space: nowrap; }
	.dw-sidebar-logout { margin-top: 0; margin-left: auto; }
	.dw-dashboard-content { padding: 20px; }
}

/* ── Overview tab: dashboard page head ───────────────────────── */
.dw-dash-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}
.dw-breadcrumb {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #9CA3AF;
	margin: 0 0 6px;
}
.dw-dash-h1 {
	font-size: 22px;
	font-weight: 800;
	color: #182233;
	margin: 0 0 4px;
	line-height: 1.25;
}
.dw-dash-subtitle { font-size: 13.5px; color: #6B7280; margin: 0; }
.dw-dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Generic panel: no box — flat content grouped under a heading.
   Top-level sections are separated by a hairline divider (below),
   not by nesting another background/border inside the page. ───── */
.dw-panel { margin: 0; }

.dw-dashboard-content > section {
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #E5E7EB;
}
.dw-dashboard-content > section:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.dw-panel h2 {
	font-size: 15.5px;
	font-weight: 800;
	color: #182233;
	margin: 0;
}
.dw-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.dw-panel-head a { font-size: 12.5px; font-weight: 700; color: #3A5E7C; text-decoration: none; }
.dw-panel-head a:hover { text-decoration: underline; }

/* ── Completeness meter ──────────────────────────────────────── */
.dw-completeness-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}
.dw-completeness-head p { font-size: 13px; color: #6B7280; margin: 4px 0 0; line-height: 1.5; }
.dw-completeness-score {
	font-size: 22px;
	font-weight: 800;
	color: #3A5E7C;
	flex-shrink: 0;
}
.dw-progress {
	height: 8px;
	background: #F1F3F6;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 16px;
}
.dw-progress-fill { height: 100%; background: #3A5E7C; border-radius: 999px; transition: width .3s; }

.dw-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dw-checklist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.dw-checklist li svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.dw-checklist li.is-done { color: #4A5568; }
.dw-checklist li.is-done svg { color: #166A43; }
.dw-checklist li.is-todo svg { color: #A93226; }
.dw-checklist li.is-todo a { color: #182233; font-weight: 600; text-decoration: none; }
.dw-checklist li.is-todo a:hover { text-decoration: underline; color: #3A5E7C; }

/* ── Stats grid ───────────────────────────────────────────────── */
.dw-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 900px) { .dw-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dw-stats-grid { grid-template-columns: 1fr; } }

.dw-stat-tile { padding: 0; }
.dw-stat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.dw-stat-label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #9CA3AF;
}
.dw-stat-icon {
	width: 28px; height: 28px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 8px;
	flex-shrink: 0;
}
.dw-stat-icon svg { width: 15px !important; height: 15px !important; }
.dw-stat-icon-accent { background: rgba(58,94,124,.1); color: #3A5E7C; }
.dw-stat-icon-gold { background: rgba(212,175,55,.16); color: #8A6D1D; }
.dw-stat-value { font-size: 22px; font-weight: 800; color: #182233; line-height: 1.2; margin-bottom: 4px; }
.dw-stat-value-sm { font-size: 16px; }
.dw-stat-note { font-size: 12px; color: #9CA3AF; line-height: 1.4; }

/* ── Two-column info / preview grid ─────────────────────────── */
.dw-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}
@media (max-width: 760px) { .dw-grid-2 { grid-template-columns: 1fr; } }

.dw-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dw-pill {
	font-size: 12px;
	font-weight: 700;
	color: #3A4256;
	background: #F1F3F6;
	border-radius: 999px;
	padding: 6px 13px;
}

.dw-info-list { display: flex; flex-direction: column; gap: 14px; }
.dw-info-row { display: flex; align-items: flex-start; gap: 12px; }
.dw-info-icon {
	width: 30px; height: 30px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	color: #3A5E7C;
}
.dw-info-icon svg { width: 16px !important; height: 16px !important; }
.dw-info-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #9CA3AF; margin: 0 0 2px; }
.dw-info-value { font-size: 13.5px; font-weight: 600; color: #182233; margin: 0; word-break: break-word; }

.dw-preview-thumb {
	width: 100%;
	height: 140px;
	border-radius: 10px;
	overflow: hidden;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	display: flex; align-items: center; justify-content: center;
	color: #B3BACA;
	margin-bottom: 12px;
}
.dw-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-preview-thumb svg { width: 26px !important; height: 26px !important; }
.dw-preview-title { font-size: 14px; font-weight: 700; color: #182233; margin: 0 0 14px; }

.dw-empty-state { text-align: center; padding: 18px 8px 4px; }
.dw-empty-icon {
	width: 44px; height: 44px;
	margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(192,57,43,.08);
	color: #A93226;
	border-radius: 50%;
}
.dw-empty-icon svg { width: 22px !important; height: 22px !important; }
.dw-empty-state strong { display: block; font-size: 13.5px; color: #182233; margin-bottom: 6px; }
.dw-empty-state p { font-size: 12.5px; color: #9CA3AF; margin: 0; line-height: 1.5; }

/* ── Quick actions ───────────────────────────────────────────── */
.dw-qa-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
@media (max-width: 700px) { .dw-qa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .dw-qa-grid { grid-template-columns: 1fr; } }

.dw-qa-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #182233;
	text-decoration: none;
	transition: background .15s, border-color .15s;
}
.dw-qa-btn:hover { background: rgba(58,94,124,.08); border-color: #3A5E7C; color: #3A5E7C; }
.dw-qa-icon {
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(58,94,124,.1);
	color: #3A5E7C;
	border-radius: 8px;
}
.dw-qa-icon svg { width: 17px !important; height: 17px !important; }
.dw-qa-btn:hover .dw-qa-icon { background: #3A5E7C; color: #FFFFFF; }

.dw-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	color: #3A5E7C;
	background: #FFFFFF;
	border: 1px solid #3A5E7C;
	border-radius: 6px;
	padding: 11px 22px;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.dw-btn-secondary:hover { background: rgba(58,94,124,.08); }
.dw-btn-secondary svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }

/* ── Account settings tab ────────────────────────────────────── */
.dw-settings-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}
@media (max-width: 700px) { .dw-settings-grid { grid-template-columns: 1fr; } }

.dw-settings-info p { font-size: 13.5px; color: #4A5568; margin: 0 0 10px; line-height: 1.6; }
.dw-settings-info p strong { color: #182233; }

/* ── Status badge ─────────────────────────────────────────── */
.dw-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	line-height: 1.4;
}
.dw-badge svg { width: 13px !important; height: 13px !important; flex-shrink: 0; }
.dw-badge-verified { background: rgba(212,175,55,.14); color: #8A6D1D; }
.dw-badge-pending   { background: rgba(192,57,43,.09); color: #A93226; }

/* ── Messages ─────────────────────────────────────────────── */
.dw-auth-message,
.dw-msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.55;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
}
.dw-auth-message a { color: inherit; text-decoration: underline; }
.dw-auth-message-success, .dw-msg-success {
	background: rgba(30,142,90,.08); color: #166A43; border: 1px solid rgba(30,142,90,.22);
}
.dw-auth-message-error, .dw-msg-error {
	background: rgba(192,57,43,.07); color: #A93226; border: 1px solid rgba(192,57,43,.2);
}

/* ── Form primitives ─────────────────────────────────────── */
.dw-auth-form form,
.dw-listing-form form { display: flex; flex-direction: column; gap: 18px; }

.dw-auth-form label,
.dw-listing-form form label,
.dw-field label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #182233;
}

.dw-field-hint { font-size: 12px; font-weight: 400; color: #9CA3AF; }

.dw-auth-form input[type=text],
.dw-auth-form input[type=email],
.dw-auth-form input[type=password],
.dw-listing-form input[type=text],
.dw-listing-form input[type=email],
.dw-listing-form input[type=password],
.dw-listing-form input[type=url],
.dw-listing-form input[type=file],
.dw-listing-form textarea {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	color: #182233;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	padding: 10px 13px;
	width: 100%;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.dw-auth-form input:focus,
.dw-listing-form input:focus,
.dw-listing-form textarea:focus {
	border-color: #3A5E7C;
	box-shadow: 0 0 0 3px rgba(58,94,124,.14);
}

.dw-listing-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.dw-listing-form input[type=file] {
	padding: 9px 12px;
	font-size: 13px;
	cursor: pointer;
	background: #F5F6F8;
}

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

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

/* ── Section titles inside the listing dashboard ────────────── */
.dw-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #6B7280;
	margin: 6px 0 2px;
	padding-top: 22px;
	border-top: 1px solid #F1F3F6;
}
.dw-section-title:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.dw-section-title svg { width: 15px !important; height: 15px !important; color: #3A5E7C; flex-shrink: 0; }

/* ── Submit button ───────────────────────────────────────── */
.dw-auth-submit,
.dw-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	color: #FFFFFF;
	background: #3A5E7C;
	border: none;
	border-radius: 6px;
	padding: 12px 22px;
	cursor: pointer;
	transition: background .15s;
	margin-top: 4px;
	align-self: flex-start;
	text-decoration: none;
}
.dw-auth-submit:hover, .dw-btn-primary:hover { background: #2B4759; }

.dw-auth-switch { font-size: 13px; color: #6B7280; margin: 18px 0 0; text-align: center; }
.dw-auth-switch a { color: #3A5E7C; font-weight: 600; text-decoration: none; }
.dw-auth-switch a:hover { text-decoration: underline; }

/* ── Logged-out / no-access notice card ─────────────────────── */
.dw-gate-card {
	max-width: 440px;
	margin: 0 auto;
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(24,34,51,.06);
	padding: 40px 32px;
	text-align: center;
}
.dw-gate-icon {
	width: 46px; height: 46px; margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(58,94,124,.09); border-radius: 50%; color: #3A5E7C;
}
.dw-gate-icon svg { width: 20px !important; height: 20px !important; }
.dw-gate-card p { font-size: 14.5px; color: #4A5568; line-height: 1.6; margin: 0 0 18px; }
.dw-gate-card p:last-child { margin-bottom: 0; }
.dw-gate-card a.dw-btn-primary { text-decoration: none; }

/* ── Photo / logo uploader ───────────────────────────────── */
.dw-photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.dw-photo-preview {
	width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
	background: #F5F6F8; border: 1px solid #E5E7EB; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; color: #B3BACA;
}
.dw-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dw-photo-field { flex: 1; min-width: 200px; }

/* ── Gallery grid ────────────────────────────────────────── */
.dw-gallery-existing {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.dw-gallery-thumb {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	border: 1px solid #E5E7EB;
}
.dw-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-gallery-thumb span {
	position: absolute; inset: auto 0 0 0;
	display: flex; align-items: center; justify-content: center; gap: 5px;
	font-size: 11px; font-weight: 600; color: #fff;
	background: rgba(24,34,51,.72);
	padding: 5px 4px;
	opacity: 0; transition: opacity .15s;
}
.dw-gallery-thumb:hover span,
.dw-gallery-thumb:has(input:checked) span { opacity: 1; }
.dw-gallery-thumb:has(input:checked) { outline: 2px solid #C0392B; }
.dw-gallery-thumb input { accent-color: #C0392B; }

/* ── Service category pills ─────────────────────────────── */
.dw-cat-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.dw-cat-checkbox {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 6px;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #3A4256;
	background: #F1F3F6;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.dw-cat-checkbox input { accent-color: #3A5E7C; }
.dw-cat-checkbox:has(input:checked) {
	background: rgba(58,94,124,.1);
	color: #182233;
	border-color: #3A5E7C;
}

/* ── Contact fields group (phone/email/viber/whatsapp/fb) ──── */
.dw-contact-fields { display: flex; flex-direction: column; gap: 18px; }

/* ── Footer note under the whole form ───────────────────── */
.dw-form-foot-note {
	font-size: 12px; color: #9CA3AF; margin-top: 4px;
}

/* ── Responsive card padding ─────────────────────────────── */
@media (max-width: 560px) {
	.dw-card-header, .dw-card-body { padding-left: 20px; padding-right: 20px; }
	.dw-card-title { font-size: 20px; }
}

/* ── Icon sizing safety net (fights theme/plugin svg resets) ────── */
.dw-card-eyebrow svg { width: 13px !important; height: 13px !important; flex-shrink: 0; }
.dw-auth-submit svg, .dw-btn-primary svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.dw-auth-message svg, .dw-msg svg { width: 16px !important; height: 16px !important; flex-shrink: 0; margin-top: 1px; }
.dw-photo-preview svg { width: 26px !important; height: 26px !important; }
.dw-gallery-thumb span svg { width: 12px !important; height: 12px !important; }
