/* =============================================================
   LawyerUp Dashboard — /my-account/ dark law-firm aesthetic
   Covers: wrapper, navigation, My Listings, Account Settings,
   WooCommerce notices, and responsive layout.
   ============================================================= */


/* ========================================
   1. PAGE BACKGROUND
   ======================================== */

body.lawyerup-dashboard-page {
	background: var(--lh-dark, #0e0f1a) !important;
}

/* Footer sits outside #c27-site-wrapper (z-index:999).
   Lift it above so it isn't painted behind the wrapper. */
body.lawyerup-dashboard-page footer.footer {
	position: relative;
	z-index: 1000;
}

/* Kill parent theme's white wrappers */
body.lawyerup-dashboard-page .i-section,
body.lawyerup-dashboard-page .page-body {
	background: transparent !important;
}

/* Remove parent theme container padding that conflicts */
body.lawyerup-dashboard-page .i-section > .container {
	padding-top: 0;
	padding-bottom: 0;
}


/* ========================================
   2. DASHBOARD WRAPPER + PHOTO BG
   Uses CSS multiple backgrounds instead of fixed-position
   child divs to avoid z-index stacking issues with footer
   (#c27-site-wrapper is z-index:999, footer is outside it).
   ======================================== */

.lawyerup-dashboard {
	position: relative;
	min-height: 100vh;
	padding-bottom: 80px;
	background:
		linear-gradient(
			180deg,
			rgba(14, 15, 26, 0.92) 0%,
			rgba(14, 15, 26, 0.85) 30%,
			rgba(14, 15, 26, 0.88) 100%
		),
		url('https://lawyerup.network/wp-content/uploads/2026/04/lawyerup-library.png') center/cover no-repeat;
	background-attachment: scroll, fixed;
}

/* Legacy div kept in template for now — hide it */
.lawyerup-dashboard__bg {
	display: none;
}

.lawyerup-dashboard__content > .container {
	max-width: 1100px;
	padding: 0 24px;
}


/* ========================================
   3. NAVIGATION TABS
   ======================================== */

/* Hide parent theme's carousel nav if it leaks through */
body.lawyerup-dashboard-page .woocommerce-MyAccount-navigation .cts-carousel {
	display: none;
}

.lawyerup-dashboard-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(18, 19, 31, 0.88);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border-bottom: 1px solid rgba(212, 168, 90, 0.15);
	padding: 0;
}

.lawyerup-dashboard-nav .container {
	max-width: 1100px;
	padding: 0 24px;
}

.lawyerup-dashboard-nav__list {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.lawyerup-dashboard-nav__item {
	margin: 0;
	padding: 0;
}

.lawyerup-dashboard-nav__item a {
	display: flex;
	align-items: center;
	padding: 16px 24px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--lh-text-on-dark-dim, rgba(245, 245, 247, 0.55));
	text-decoration: none !important;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.lawyerup-dashboard-nav__item a:hover {
	color: var(--lh-cream, #f5e9d0);
	border-bottom-color: rgba(212, 168, 90, 0.4);
}

.lawyerup-dashboard-nav__item.is-active a,
.lawyerup-dashboard-nav__item.active a {
	color: var(--lh-gold, #d4a85a);
	border-bottom-color: var(--lh-gold, #d4a85a);
}

/* Logout — subtle, pushed right */
.lawyerup-dashboard-nav__item:last-child {
	margin-left: auto;
}

.lawyerup-dashboard-nav__item:last-child a {
	color: rgba(245, 233, 208, 0.35);
	font-weight: 500;
}

.lawyerup-dashboard-nav__item:last-child a:hover {
	color: #f87171;
	border-bottom-color: rgba(248, 113, 113, 0.4);
}

/* Leads badge in nav */
.lawyerup-dashboard-nav .lawyerup-leads-badge {
	display: inline-block;
	background: var(--lh-gold, #d4a85a);
	color: var(--lh-dark, #0e0f1a);
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 10px;
	margin-left: 6px;
	line-height: 1.5;
}


/* ========================================
   4. CONTENT AREA — GENERAL
   ======================================== */

.lawyerup-dashboard__content {
	padding-top: 40px;
}

/* Kill all parent-theme white backgrounds inside content */
body.lawyerup-dashboard-page .woocommerce-MyAccount-content .element,
body.lawyerup-dashboard-page .woocommerce-MyAccount-content .form-section {
	background: rgba(20, 21, 31, 0.75) !important;
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255, 255, 255, 0.12)) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	overflow: hidden;
}

/* Gold top stripe on cards */
body.lawyerup-dashboard-page .woocommerce-MyAccount-content .element::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #ffd54a) 100%);
	opacity: 0.5;
	z-index: 1;
}


/* ========================================
   5. MY LISTINGS — PROFILE CARD
   Rich card with contact, location, credentials.
   ======================================== */

#job-manager-job-dashboard {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --- Profile Card --- */
.lawyerup-listing-card {
	position: relative;
	background: rgba(20, 21, 31, 0.7);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	border-radius: 12px;
	overflow: hidden;
	padding: 32px 28px 28px;
	transition: all 0.3s ease;
}

.lawyerup-listing-card:hover {
	border-color: rgba(212, 168, 90, 0.35);
	box-shadow: 0 12px 40px -8px rgba(0,0,0,0.5);
}

/* Gold accent bar */
.lawyerup-listing-card__accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #e8c97a) 100%);
	opacity: 0.7;
}

/* --- Header: Logo + Meta + Status --- */
.lawyerup-listing-card__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.lawyerup-listing-card__logo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--lh-border-dark, rgba(255,255,255,0.12));
	padding: 6px;
}

.lawyerup-listing-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: brightness(1.05);
}

.lawyerup-listing-card__logo a {
	display: block;
	width: 100%;
	height: 100%;
}

.lawyerup-listing-card__header-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lawyerup-listing-card__cat {
	font-size: 10.5px;
	color: var(--lh-gold, #d4a85a);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.lawyerup-listing-card__location {
	font-size: 12.5px;
	color: rgba(245, 245, 247, 0.55);
}

.lawyerup-listing-card__status {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fbbf24;
	background: rgba(251, 191, 36, 0.12);
	border: 1px solid rgba(251, 191, 36, 0.25);
	padding: 4px 12px;
	border-radius: 12px;
}

/* --- Title --- */
.lawyerup-listing-card__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	font-family: 'Cardo', 'Roboto', serif;
	color: var(--lh-cream, #f5e9d0);
}

.lawyerup-listing-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}

.lawyerup-listing-card__title a:hover {
	color: var(--lh-gold, #d4a85a) !important;
}

/* --- Excerpt --- */
.lawyerup-listing-card__excerpt {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--lh-text-on-dark-soft, rgba(245,245,247,0.78));
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Contact & Details Grid --- */
.lawyerup-listing-card__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 24px;
	margin-bottom: 20px;
	padding: 16px 0;
	border-top: 1px solid rgba(255,255,255,0.06);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lawyerup-listing-card__detail {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lawyerup-listing-card__detail-label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(245, 233, 208, 0.4);
}

.lawyerup-listing-card__detail a {
	font-size: 13.5px;
	color: var(--lh-cream, #f5e9d0) !important;
	text-decoration: none !important;
	transition: color 0.2s;
}

.lawyerup-listing-card__detail a:hover {
	color: var(--lh-gold, #d4a85a) !important;
}

/* --- Credentials --- */
.lawyerup-listing-card__credentials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.lawyerup-listing-card__credential {
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(245, 233, 208, 0.7);
	background: rgba(212, 168, 90, 0.08);
	border: 1px solid rgba(212, 168, 90, 0.18);
	padding: 5px 14px;
	border-radius: 20px;
}

/* --- Actions --- */
.lawyerup-listing-card__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* View profile CTA — primary gold link */
.lawyerup-listing-card__action--view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--lh-gold, #d4a85a) !important;
	text-decoration: none !important;
	transition: gap 0.2s ease, color 0.2s ease;
}

.lawyerup-listing-card__action--view:hover {
	gap: 10px;
	color: var(--lh-cream, #f5e9d0) !important;
}

/* WordPress action links (edit, delete) */
.lawyerup-listing-card__wp-actions ul.job-dashboard-actions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 20px;
}

.lawyerup-listing-card__wp-actions li {
	display: inline-flex !important;
	width: auto !important;
	flex: none !important;
}

.lawyerup-listing-card__wp-actions li a {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 6px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	transition: all 0.2s ease;
	background: none;
	border: none;
	width: auto !important;
}

.lawyerup-listing-card__wp-actions li i {
	font-size: 14px !important;
	margin: 0 !important;
	display: inline !important;
}

.lawyerup-listing-card__wp-actions .cts-listing-action-edit a {
	color: var(--lh-gold, #d4a85a);
}

.lawyerup-listing-card__wp-actions .cts-listing-action-edit a:hover {
	color: var(--lh-cream, #f5e9d0);
}

.lawyerup-listing-card__wp-actions .cts-listing-action-delete a {
	color: rgba(245, 233, 208, 0.3);
}

.lawyerup-listing-card__wp-actions .cts-listing-action-delete a:hover {
	color: #f87171;
}

/* Hide unnecessary actions */
.lawyerup-listing-card__wp-actions .cts-listing-action-promote,
.lawyerup-listing-card__wp-actions .cts-listing-action-status,
.lawyerup-listing-card__wp-actions .cts-listing-action-stats,
.lawyerup-listing-card__wp-actions .cts-listing-action-switch-package,
.lawyerup-listing-card__wp-actions .cts-listing-action-duplicate {
	display: none !important;
}

/* --- No listings message --- */
body.lawyerup-dashboard-page .no-listings {
	text-align: center;
	padding: 60px 20px;
	color: rgba(245, 233, 208, 0.5);
}

body.lawyerup-dashboard-page .no-listings .no-results-icon {
	color: rgba(212, 168, 90, 0.3) !important;
	font-size: 48px;
	display: block;
	margin-bottom: 16px;
}

/* --- Pagination --- */
body.lawyerup-dashboard-page .job-manager-pagination ul {
	display: flex;
	justify-content: center;
	gap: 6px;
	list-style: none;
	padding: 24px 0 0;
	margin: 0;
}

body.lawyerup-dashboard-page .job-manager-pagination a,
body.lawyerup-dashboard-page .job-manager-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(245, 233, 208, 0.6);
	background: rgba(18, 19, 31, 0.6);
	border: 1px solid rgba(245, 233, 208, 0.1);
	text-decoration: none !important;
	transition: all 0.2s ease;
}

body.lawyerup-dashboard-page .job-manager-pagination a:hover {
	color: var(--lh-cream, #f5e9d0);
	border-color: rgba(212, 168, 90, 0.3);
}

body.lawyerup-dashboard-page .job-manager-pagination .current {
	color: var(--lh-dark, #0e0f1a);
	background: linear-gradient(135deg, var(--lh-gold, #d4a85a), #b8862d);
	border-color: transparent;
}


/* ========================================
   6. ACCOUNT SETTINGS — DARK FORM
   ======================================== */

/* Container override */
body.lawyerup-dashboard-page .ac-details-container {
	max-width: 700px;
	margin: 0 auto;
}

body.lawyerup-dashboard-page .ac-details-container > [class*="col-"] {
	width: 100% !important;
	margin-left: 0 !important;
	float: none !important;
}

/* Card header */
body.lawyerup-dashboard-page .pf-head {
	padding: 20px 24px;
	border-bottom: 1px solid rgba(212, 168, 90, 0.1);
}

body.lawyerup-dashboard-page .pf-head .title-style-1 h5 {
	color: var(--lh-cream, #f5e9d0) !important;
	font-family: 'Cardo', 'Roboto', serif;
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

body.lawyerup-dashboard-page .pf-head .title-style-1 i {
	color: var(--lh-gold, #d4a85a) !important;
}

/* Card body */
body.lawyerup-dashboard-page .pf-body {
	padding: 24px;
}

/* Form labels */
body.lawyerup-dashboard-page .woocommerce-EditAccountForm label,
body.lawyerup-dashboard-page .sign-in-form label,
body.lawyerup-dashboard-page .pf-body label {
	color: rgba(245, 233, 208, 0.7) !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}

/* Form inputs */
body.lawyerup-dashboard-page .woocommerce-EditAccountForm input[type="text"],
body.lawyerup-dashboard-page .woocommerce-EditAccountForm input[type="email"],
body.lawyerup-dashboard-page .woocommerce-EditAccountForm input[type="password"],
body.lawyerup-dashboard-page .woocommerce-EditAccountForm input[type="tel"],
body.lawyerup-dashboard-page .woocommerce-EditAccountForm input[type="url"],
body.lawyerup-dashboard-page .woocommerce-EditAccountForm textarea,
body.lawyerup-dashboard-page .woocommerce-EditAccountForm select,
body.lawyerup-dashboard-page .sign-in-form input[type="text"],
body.lawyerup-dashboard-page .sign-in-form input[type="email"],
body.lawyerup-dashboard-page .sign-in-form input[type="password"],
body.lawyerup-dashboard-page .sign-in-form .form-control,
body.lawyerup-dashboard-page .pf-body input[type="text"],
body.lawyerup-dashboard-page .pf-body input[type="email"],
body.lawyerup-dashboard-page .pf-body input[type="password"],
body.lawyerup-dashboard-page .pf-body .form-control {
	background: rgba(14, 15, 26, 0.6) !important;
	color: var(--lh-cream, #f5e9d0) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

body.lawyerup-dashboard-page .woocommerce-EditAccountForm input:focus,
body.lawyerup-dashboard-page .sign-in-form input:focus,
body.lawyerup-dashboard-page .pf-body input:focus,
body.lawyerup-dashboard-page .pf-body .form-control:focus {
	border-color: var(--lh-gold, #d4a85a) !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.15) !important;
}

body.lawyerup-dashboard-page input::placeholder,
body.lawyerup-dashboard-page textarea::placeholder {
	color: rgba(245, 233, 208, 0.3) !important;
}

/* Fix browser autofill white background */
body.lawyerup-dashboard-page input:-webkit-autofill,
body.lawyerup-dashboard-page input:-webkit-autofill:hover,
body.lawyerup-dashboard-page input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(14, 15, 26, 0.95) inset !important;
	-webkit-text-fill-color: var(--lh-cream, #f5e9d0) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Fieldset for password section */
body.lawyerup-dashboard-page fieldset {
	border: none;
	padding: 0;
	margin: 24px 0 0;
}

body.lawyerup-dashboard-page fieldset legend {
	color: var(--lh-cream, #f5e9d0);
	font-family: 'Cardo', 'Roboto', serif;
	font-size: 18px;
	font-weight: 700;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 1px solid rgba(212, 168, 90, 0.1);
	width: 100%;
}

/* Save button — gold filled */
body.lawyerup-dashboard-page .woocommerce-EditAccountForm button[type="submit"],
body.lawyerup-dashboard-page .sign-in-form button[type="submit"],
body.lawyerup-dashboard-page .buttons.button-2 {
	background: linear-gradient(135deg, var(--lh-gold, #d4a85a), #b8862d) !important;
	color: var(--lh-dark, #0e0f1a) !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 14px 32px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: all 0.25s ease;
	width: 100%;
	text-align: center;
	margin-top: 8px;
}

body.lawyerup-dashboard-page .woocommerce-EditAccountForm button[type="submit"]:hover,
body.lawyerup-dashboard-page .sign-in-form button[type="submit"]:hover,
body.lawyerup-dashboard-page .buttons.button-2:hover {
	background: linear-gradient(135deg, #e0b76a, #c49637) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px -6px rgba(212, 168, 90, 0.4);
}

/* Hide "Connected Accounts" and "Account type" sidebar if they appear */
body.lawyerup-dashboard-page .ac-details-container > .col-md-3 {
	display: none;
}

/* MyListing custom fields in account form */
body.lawyerup-dashboard-page .user-role-fields .form-group label {
	color: rgba(245, 233, 208, 0.7) !important;
}

body.lawyerup-dashboard-page .user-role-fields .form-group .form-control {
	background: rgba(14, 15, 26, 0.6) !important;
	color: var(--lh-cream, #f5e9d0) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 8px !important;
}


/* ========================================
   7. COMBINED LEADS SECTION
   (Embedded below listings on the same page)
   ======================================== */

.lawyerup-combined-leads {
	margin-top: 16px;
}

.lawyerup-combined-leads__heading {
	font-family: 'Cardo', 'Roboto', serif;
	color: var(--lh-cream, #f5e9d0);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 56px 0 28px;
	padding-top: 40px;
	border-top: 1px solid rgba(193, 163, 98, 0.2);
}

/* Ensure leads inherit transparent bg in dashboard context */
body.lawyerup-dashboard-page .lawyerup-leads {
	background: transparent;
}

/* Fix active filter pill: general a{color:gold} override from section 9
   beats .is-active specificity — this selector wins it back. */
body.lawyerup-dashboard-page .lawyerup-leads__filter.is-active {
	color: var(--lh-dark, #0e0f1a) !important;
}


/* ========================================
   8. WOOCOMMERCE NOTICES
   ======================================== */

body.lawyerup-dashboard-page .woocommerce-message,
body.lawyerup-dashboard-page .woocommerce-info {
	background: rgba(18, 19, 31, 0.9) !important;
	border: 1px solid rgba(96, 165, 250, 0.3) !important;
	border-left: 4px solid #60a5fa !important;
	color: var(--lh-cream, #f5e9d0) !important;
	border-radius: 10px !important;
	padding: 16px 20px !important;
	margin-bottom: 20px;
}

body.lawyerup-dashboard-page .woocommerce-message::before,
body.lawyerup-dashboard-page .woocommerce-info::before {
	color: #60a5fa !important;
}

body.lawyerup-dashboard-page .woocommerce-error {
	background: rgba(18, 19, 31, 0.9) !important;
	border: 1px solid rgba(239, 68, 68, 0.3) !important;
	border-left: 4px solid #ef4444 !important;
	color: var(--lh-cream, #f5e9d0) !important;
	border-radius: 10px !important;
	padding: 16px 20px !important;
	margin-bottom: 20px;
}

body.lawyerup-dashboard-page .woocommerce-error::before {
	color: #ef4444 !important;
}

body.lawyerup-dashboard-page .woocommerce-message a,
body.lawyerup-dashboard-page .woocommerce-info a,
body.lawyerup-dashboard-page .woocommerce-error a {
	color: var(--lh-gold, #d4a85a) !important;
}

/* Success notices with green accent */
body.lawyerup-dashboard-page .woocommerce-message {
	border-left-color: #22c55e !important;
	border-color: rgba(34, 197, 94, 0.25) !important;
}

body.lawyerup-dashboard-page .woocommerce-message::before {
	color: #22c55e !important;
}


/* ========================================
   9. GENERAL DARK OVERRIDES
   ======================================== */

/* Any stray white text / backgrounds from parent theme */
body.lawyerup-dashboard-page .woocommerce-MyAccount-content h2,
body.lawyerup-dashboard-page .woocommerce-MyAccount-content h3,
body.lawyerup-dashboard-page .woocommerce-MyAccount-content h4 {
	color: var(--lh-cream, #f5e9d0) !important;
	font-family: 'Cardo', 'Roboto', serif;
}

body.lawyerup-dashboard-page .woocommerce-MyAccount-content p,
body.lawyerup-dashboard-page .woocommerce-MyAccount-content span {
	color: var(--lh-text-on-dark-soft, rgba(245, 245, 247, 0.78));
}

body.lawyerup-dashboard-page .woocommerce-MyAccount-content a:not(.lawyerup-lead-card__btn):not(.lawyerup-premium__why) {
	color: var(--lh-gold, #d4a85a);
}

body.lawyerup-dashboard-page .woocommerce-MyAccount-content a:not(.lawyerup-lead-card__btn):not(.lawyerup-premium__why):hover {
	color: #e0b76a;
}

/* Tables generic */
body.lawyerup-dashboard-page .woocommerce-MyAccount-content table {
	color: var(--lh-text-on-dark-soft);
}

body.lawyerup-dashboard-page .woocommerce-MyAccount-content table th {
	color: rgba(245, 233, 208, 0.5);
	border-color: rgba(255, 255, 255, 0.08);
}

body.lawyerup-dashboard-page .woocommerce-MyAccount-content table td {
	color: var(--lh-text-on-dark-soft);
	border-color: rgba(255, 255, 255, 0.06);
}

/* Ensure text selection is visible on dark bg */
body.lawyerup-dashboard-page ::selection {
	background: rgba(212, 168, 90, 0.3);
	color: #fff;
}

/* Remove any box shadows from parent */
body.lawyerup-dashboard-page .woocommerce-MyAccount-content .element {
	box-shadow: none !important;
}

/* Parent theme's row class cleanup */
body.lawyerup-dashboard-page .row {
	margin-left: 0;
	margin-right: 0;
}


/* ========================================
   10. SELECT2 DARK THEME (appended to body)
   ======================================== */

body.lawyerup-dashboard-page .select2-container--default .select2-selection--single {
	background: rgba(14, 15, 26, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 8px !important;
	height: 40px;
}

body.lawyerup-dashboard-page .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--lh-cream, #f5e9d0) !important;
	line-height: 40px;
	padding-left: 14px;
}

body.lawyerup-dashboard-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: rgba(245, 233, 208, 0.4) transparent transparent transparent !important;
}

/* Select2 dropdown (appended to body, not dashboard) */
body.lawyerup-dashboard-page .select2-dropdown {
	background: rgba(18, 19, 31, 0.95) !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 8px !important;
}

body.lawyerup-dashboard-page .select2-results__option {
	color: var(--lh-cream, #f5e9d0) !important;
	padding: 8px 14px;
}

body.lawyerup-dashboard-page .select2-results__option--highlighted {
	background: rgba(212, 168, 90, 0.2) !important;
	color: var(--lh-gold, #d4a85a) !important;
}

body.lawyerup-dashboard-page .select2-container--default .select2-results__option--selected {
	background: rgba(212, 168, 90, 0.1) !important;
}


/* ========================================
   11. ACCOUNT SETTINGS — FORM STYLES
   ======================================== */

/* --- Section heading icon: gold style instead of parent's red circle --- */
body.lawyerup-dashboard-page .pf-head .title-style-1 i {
	color: var(--lh-gold, #d4a85a) !important;
	background: rgba(212, 168, 90, 0.12) !important;
	border-color: rgba(212, 168, 90, 0.25) !important;
}

body.lawyerup-dashboard-page .pf-head .title-style-1 h5 {
	color: var(--lh-cream, #f5e9d0) !important;
}

body.lawyerup-dashboard-page .pf-head {
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- Form inputs (text, email, password) --- */
body.lawyerup-dashboard-page .sign-in-form .form-group input[type="text"],
body.lawyerup-dashboard-page .sign-in-form .form-group input[type="email"],
body.lawyerup-dashboard-page .sign-in-form .form-group input[type="password"],
body.lawyerup-dashboard-page .sign-in-form .form-group input[type="tel"],
body.lawyerup-dashboard-page .sign-in-form .form-group textarea {
	background: rgba(14, 15, 26, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	color: var(--lh-cream, #f5e9d0) !important;
	padding: 14px 16px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}

body.lawyerup-dashboard-page .sign-in-form .form-group input:focus {
	border-color: var(--lh-gold, #d4a85a) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.15) !important;
}

/* --- Floating labels --- */
body.lawyerup-dashboard-page .sign-in-form .form-group label {
	color: rgba(245, 233, 208, 0.55) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	background: transparent !important;
}

/* Label "floats up" when input has value — background covers the
   input border underneath so the line doesn't cut through text */
body.lawyerup-dashboard-page .sign-in-form .form-group input:not(:placeholder-shown) ~ label,
body.lawyerup-dashboard-page .sign-in-form .form-group input:focus ~ label {
	color: var(--lh-gold, #d4a85a) !important;
	font-size: 11px !important;
	background: #14151f !important;
	padding: 0 6px !important;
}

/* --- Fieldset + legend (Change password) --- */
body.lawyerup-dashboard-page .sign-in-form fieldset {
	border: none;
	padding: 0;
	margin: 32px 0 0;
}

body.lawyerup-dashboard-page .sign-in-form fieldset legend,
body.lawyerup-dashboard-page .woocommerce-EditAccountForm legend {
	color: var(--lh-cream, #f5e9d0) !important;
	font-family: 'Cardo', 'Roboto', serif;
	font-size: 18px !important;
	font-weight: 700;
	border-bottom: 1px solid rgba(193, 163, 98, 0.2) !important;
	padding-bottom: 10px !important;
	margin-bottom: 24px !important;
	width: 100%;
}

/* --- Description / helper text --- */
body.lawyerup-dashboard-page .sign-in-form .form-group p,
body.lawyerup-dashboard-page .sign-in-form .form-group small {
	color: rgba(245, 233, 208, 0.45) !important;
	font-size: 12px;
}

/* --- Submit button: gold CTA --- */
body.lawyerup-dashboard-page .sign-in-form .buttons.button-2 {
	background: var(--lh-gold, #d4a85a) !important;
	color: var(--lh-dark, #0e0f1a) !important;
	border: none !important;
	border-radius: 24px !important;
	font-weight: 700 !important;
	padding: 14px 36px !important;
	font-size: 15px !important;
	transition: all 0.25s ease !important;
}

body.lawyerup-dashboard-page .sign-in-form .buttons.button-2:hover {
	background: var(--lh-yellow, #ffd54a) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(212, 168, 90, 0.5) !important;
}


/* ========================================
   12. SIGN-IN PAGE (not logged in)
   ======================================== */

/* Parent wrapper: replace light gray with photo bg + dark overlay.
   my-account.php child template isn't rendered for non-logged-in users,
   so we can't use .lawyerup-dashboard__bg — CSS approach instead. */
body.lawyerup-login-page #c27-site-wrapper {
	background:
		linear-gradient(
			180deg,
			rgba(14, 15, 26, 0.94) 0%,
			rgba(14, 15, 26, 0.86) 40%,
			rgba(14, 15, 26, 0.90) 100%
		),
		url('https://lawyerup.network/wp-content/uploads/2026/04/lawyerup-library.png') center/cover no-repeat fixed !important;
	min-height: 100vh;
}

/* Remove parent's full-width/split-layout behavior */
body.lawyerup-login-page .sign-in-wrapper {
	background: none !important;
	padding: 24px 0 0 !important;
	min-height: auto !important;
	display: block !important;
}

body.lawyerup-login-page .sign-in-wrapper .login-container {
	max-width: 580px;
	margin: 0 auto;
	padding: 0 20px;
	background: transparent !important;
}

body.lawyerup-login-page .sign-in-wrapper .login-content {
	background: rgba(20, 21, 31, 0.75);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255, 255, 255, 0.12));
	border-radius: 12px;
	padding: 48px 44px;
	position: relative;
	width: 100%;
	height: fit-content;
}

/* Gold top stripe on card */
body.lawyerup-login-page .sign-in-wrapper .login-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #ffd54a) 100%);
	border-radius: 12px 12px 0 0;
	opacity: 0.6;
}

/* Hide parent's background image container (we have our own bg) */
body.lawyerup-login-page .login-bg-container {
	display: none !important;
}

/* --- Login tabs --- */
body.lawyerup-login-page .login-tabs {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: flex;
	gap: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.lawyerup-login-page .login-tabs li {
	margin: 0;
	padding: 0;
}

body.lawyerup-login-page .login-tabs li h3 {
	margin: 0;
	font-size: 16px;
}

body.lawyerup-login-page .login-tabs li a {
	display: block;
	padding: 0 20px 14px;
	font-size: 16px;
	font-weight: 600;
	font-family: 'Cardo', 'Roboto', serif;
	color: rgba(245, 233, 208, 0.4) !important;
	text-decoration: none !important;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

body.lawyerup-login-page .login-tabs li a:hover {
	color: var(--lh-cream, #f5e9d0) !important;
}

body.lawyerup-login-page .login-tabs li.active a {
	color: var(--lh-gold, #d4a85a) !important;
	border-bottom-color: var(--lh-gold, #d4a85a);
}

/* --- Form inputs --- */
body.lawyerup-login-page .sign-in-form .form-group input[type="text"],
body.lawyerup-login-page .sign-in-form .form-group input[type="email"],
body.lawyerup-login-page .sign-in-form .form-group input[type="password"],
body.lawyerup-login-page .sign-in-form .form-group input[type="tel"],
body.lawyerup-login-page .sign-in-form .form-group textarea {
	background: rgba(14, 15, 26, 0.6) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 8px !important;
	color: var(--lh-cream, #f5e9d0) !important;
	padding: 18px 24px !important;
	font-size: 15px !important;
}

/* More space between form fields */
body.lawyerup-login-page .sign-in-form .form-group {
	margin-bottom: 24px !important;
}

body.lawyerup-login-page .sign-in-form .form-group input:focus {
	border-color: var(--lh-gold, #d4a85a) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(212, 168, 90, 0.15) !important;
}

/* Floating labels */
body.lawyerup-login-page .sign-in-form .form-group label {
	color: rgba(245, 233, 208, 0.55) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

body.lawyerup-login-page .sign-in-form .form-group input:not(:placeholder-shown) ~ label,
body.lawyerup-login-page .sign-in-form .form-group input:focus ~ label {
	color: var(--lh-gold, #d4a85a) !important;
	font-size: 11px !important;
	background: rgba(20, 21, 31, 0.95) !important;
	padding: 0 6px !important;
}

/* --- reCAPTCHA container --- */
body.lawyerup-login-page .sign-in-form .g-recaptcha,
body.lawyerup-login-page .sign-in-form .wpcf7-recaptcha,
body.lawyerup-login-page .sign-in-form .recaptcha-container {
	margin: 24px 0;
	border-radius: 8px;
}

/* --- Sign in button (gold, already works via section 6) --- */
body.lawyerup-login-page .sign-in-form .buttons.button-2 {
	background: var(--lh-gold, #d4a85a) !important;
	color: var(--lh-dark, #0e0f1a) !important;
	border: none !important;
	border-radius: 24px !important;
	font-weight: 700 !important;
	padding: 14px 36px !important;
	font-size: 15px !important;
	transition: all 0.25s ease !important;
}

body.lawyerup-login-page .sign-in-form .buttons.button-2:hover {
	background: var(--lh-yellow, #ffd54a) !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -8px rgba(212, 168, 90, 0.5) !important;
}

/* --- Remember me checkbox --- */
body.lawyerup-login-page .form-info {
	margin: 4px 0 0;
}

body.lawyerup-login-page .md-checkbox label {
	color: rgba(245, 233, 208, 0.55) !important;
	font-size: 13px;
}

body.lawyerup-login-page .md-checkbox input[type="checkbox"] + label::before {
	border-color: rgba(255, 255, 255, 0.2) !important;
	background: rgba(14, 15, 26, 0.4) !important;
}

body.lawyerup-login-page .md-checkbox input[type="checkbox"]:checked + label::before {
	border-color: var(--lh-gold, #d4a85a) !important;
	background: var(--lh-gold, #d4a85a) !important;
}

/* --- Forgot password --- */
body.lawyerup-login-page .forgot-password {
	text-align: center;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.lawyerup-login-page .forgot-password a {
	color: rgba(245, 233, 208, 0.45) !important;
	text-decoration: none !important;
	font-size: 13px;
	transition: color 0.2s ease;
}

body.lawyerup-login-page .forgot-password a:hover {
	color: var(--lh-gold, #d4a85a) !important;
}

body.lawyerup-login-page .forgot-password i {
	font-size: 14px;
	vertical-align: middle;
	margin-right: 4px;
}

/* --- WooCommerce notices on login page --- */
body.lawyerup-login-page .auth-notices .woocommerce-error,
body.lawyerup-login-page .auth-notices .woocommerce-message,
body.lawyerup-login-page .auth-notices .woocommerce-info {
	background: rgba(18, 19, 31, 0.9) !important;
	color: var(--lh-cream, #f5e9d0) !important;
	border-radius: 10px !important;
	margin-bottom: 16px;
}

/* --- Autofill dark fix --- */
body.lawyerup-login-page input:-webkit-autofill,
body.lawyerup-login-page input:-webkit-autofill:hover,
body.lawyerup-login-page input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(20, 21, 31, 0.95) inset !important;
	-webkit-text-fill-color: var(--lh-cream, #f5e9d0) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	transition: background-color 5000s ease-in-out 0s;
}

/* Center the dashboard content on login (more vertical space) */
body.lawyerup-login-page .lawyerup-dashboard__content {
	padding-top: 80px;
	padding-bottom: 40px;
}


/* ========================================
   12B. LOST / RESET PASSWORD PAGES
   WooCommerce lost/reset/confirm screens are wrapped by
   MyListing in .i-section.form-lost-pw with a white
   .element card. The section-4 card rules only target
   .woocommerce-MyAccount-content, which isn't rendered
   for logged-out users — so dark-theme the card here.
   ======================================== */

body.lawyerup-dashboard-page .form-lost-pw .element {
	position: relative;
	background: rgba(20, 21, 31, 0.75) !important;
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid var(--lh-border-dark, rgba(255, 255, 255, 0.12)) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	overflow: hidden;
}

/* Gold top stripe */
body.lawyerup-dashboard-page .form-lost-pw .element::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--lh-gold, #d4a85a) 0%, var(--lh-yellow, #ffd54a) 100%);
	opacity: 0.5;
	z-index: 1;
}

/* Instructional / confirmation copy */
body.lawyerup-dashboard-page .form-lost-pw .pf-body p {
	color: rgba(245, 233, 208, 0.85) !important;
	font-size: 14px;
	line-height: 1.6;
}

/* Submit button — gold filled, matches sign-in / account forms */
body.lawyerup-dashboard-page .form-lost-pw button[type="submit"] {
	background: linear-gradient(135deg, var(--lh-gold, #d4a85a), #b8862d) !important;
	color: var(--lh-dark, #0e0f1a) !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 14px 32px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: all 0.25s ease;
	width: 100%;
	text-align: center;
	margin-top: 8px;
}

body.lawyerup-dashboard-page .form-lost-pw button[type="submit"]:hover {
	background: linear-gradient(135deg, #e0b76a, #c49637) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px -6px rgba(212, 168, 90, 0.4);
}


/* ========================================
   13. RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
	/* Nav becomes scrollable */
	.lawyerup-dashboard-nav__list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.lawyerup-dashboard-nav__list::-webkit-scrollbar {
		display: none;
	}

	.lawyerup-dashboard-nav__item a {
		padding: 14px 18px;
		font-size: 13px;
	}

	/* Logout no longer pushed right — just inline */
	.lawyerup-dashboard-nav__item:last-child {
		margin-left: 0;
	}

	/* Listing table: stack cells */
	body.lawyerup-dashboard-page .job-manager-jobs tbody tr {
		display: flex;
		flex-wrap: wrap;
		padding: 16px;
		gap: 10px;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td {
		padding: 0;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td.l-type {
		display: none;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td.c27_listing_logo {
		flex: 0 0 auto;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td.job_title {
		flex: 1;
		display: flex;
		align-items: center;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td.listing-actions {
		width: 100%;
		flex: 0 0 100%;
	}

	body.lawyerup-dashboard-page .job-manager-jobs td.listing-info {
		width: 100%;
		flex: 0 0 100%;
		display: flex;
		gap: 16px;
		flex-wrap: wrap;
	}

	/* First/last cell radius reset for stacked layout */
	body.lawyerup-dashboard-page .job-manager-jobs td:first-child,
	body.lawyerup-dashboard-page .job-manager-jobs td:last-child {
		border-radius: 0;
	}
}

@media (max-width: 640px) {
	/* Login page adjustments */
	body.lawyerup-login-page .lawyerup-dashboard__content {
		padding-top: 40px;
	}

	body.lawyerup-login-page .sign-in-wrapper .login-content {
		padding: 28px 20px;
	}

	.lawyerup-dashboard__content {
		padding-top: 24px;
	}

	.lawyerup-dashboard__content > .container {
		padding: 0 16px;
	}

	.lawyerup-dashboard-nav__item a {
		padding: 12px 14px;
		font-size: 12px;
	}

	/* Account form full width */
	body.lawyerup-dashboard-page .ac-details-container {
		padding: 0;
	}

	body.lawyerup-dashboard-page .pf-body {
		padding: 16px;
	}

	/* Stat cards: 2 columns */
	body.lawyerup-dashboard-page .my-listings-stat-box {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	body.lawyerup-dashboard-page .my-listings-stat-box > [class*="col-"] {
		width: 100% !important;
		padding: 0 !important;
	}

	/* Submit button */
	body.lawyerup-dashboard-page .woocommerce-EditAccountForm button[type="submit"],
	body.lawyerup-dashboard-page .buttons.button-2 {
		padding: 12px 24px !important;
	}
}
