/* =====================================================================
   EMCHD CORPORATE DESIGN SYSTEM — CABINET STYLES
   Matching /events/ and event-single design tokens
   ===================================================================== */

/* Ensure Hero in Cabinet is 100% centered and aligned */
#emchd-cabinet-app .emchd-hero-graphite,
.page-template-default #emchd-cabinet-app .emchd-hero-graphite {
	text-align: center !important;
	padding: 64px 0 105px 0 !important;
}

#emchd-cabinet-app .emchd-hero-graphite > .container,
.page-template-default #emchd-cabinet-app .emchd-hero-graphite > .container {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	width: 100% !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
}

#emchd-cabinet-app .emchd-hero-graphite h1,
.page-template-default #emchd-cabinet-app .emchd-hero-graphite h1 {
	font-size: 38px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	text-align: center !important;
	margin: 0 auto 16px auto !important;
	display: block !important;
	width: 100% !important;
	max-width: 900px !important;
	line-height: 1.25 !important;
	letter-spacing: -0.5px !important;
}

#emchd-cabinet-app .emchd-hero-graphite h1 span {
	color: var(--emchd-accent-orange) !important;
}

#emchd-cabinet-app .emchd-hero-graphite .descr,
.page-template-default #emchd-cabinet-app .emchd-hero-graphite .descr {
	font-size: 16px !important;
	color: #cbd5e1 !important;
	text-align: center !important;
	margin: 0 auto 28px auto !important;
	width: 100% !important;
	max-width: 700px !important;
	line-height: 1.6 !important;
	display: block !important;
}

#emchd-cabinet-app .emchd-hero-graphite .emchd-hero-stats,
.page-template-default #emchd-cabinet-app .emchd-hero-graphite .emchd-hero-stats {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 12px !important;
	flex-wrap: wrap !important;
	margin: 0 auto !important;
}

.cabinet-toolbar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--emchd-border-light);
	flex-wrap: wrap;
	gap: 16px;
}

/* Cabinet Toolbar Actions (Point 6) */
.cabinet-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.btn-cabinet-order-lead {
	background: #FFA800;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 14px rgba(255, 168, 0, 0.3);
	transition: all 0.2s ease;
	font-family: inherit;
	text-decoration: none;
}

.btn-cabinet-order-lead:hover {
	background: #e69500;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(255, 168, 0, 0.4);
	color: #ffffff !important;
}

.cabinet-modal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #e2e8f0;
	padding-top: 18px;
	flex-wrap: wrap;
	gap: 12px;
}

.cabinet-modal-subactions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.cabinet-auth-card {
	max-width: 480px;
	margin: 10px auto 20px auto;
	padding: 10px 0;
}

.cabinet-auth-header {
	text-align: center;
	margin-bottom: 24px;
}

.guest-icon {
	font-size: 42px;
	margin-bottom: 12px;
}

/* Tabs */
.cab-auth-tabs {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 12px;
	margin-bottom: 22px;
	gap: 4px;
}

.cab-auth-tab {
	flex: 1;
	border: none;
	background: transparent;
	padding: 11px 16px;
	font-size: 14.5px;
	font-weight: 700;
	color: #64748b;
	border-radius: 9px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.cab-auth-tab:hover {
	color: #0f172a;
}

.cab-auth-tab.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Alerts */
.cab-auth-alert {
	padding: 13px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.cab-auth-alert.error {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	color: #991b1b;
	font-weight: 600;
}

.cab-auth-alert.success {
	background: #f0fdf4;
	border: 1.5px solid #bbf7d0;
	color: #166534;
	font-weight: 600;
}

/* Form fields */
.cab-form-field {
	margin-bottom: 18px;
	text-align: left;
}

.cab-field-label {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 6px;
}

.cab-lost-pass-link {
	font-size: 12.5px;
	color: #d97706;
	text-decoration: underline;
	font-weight: 600;
}

.cab-lost-pass-link:hover {
	color: #b45309;
}

.cab-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.cab-input-icon {
	position: absolute;
	left: 14px;
	font-size: 15px;
	pointer-events: none;
	opacity: 0.7;
}

.cab-input {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 15px;
	color: #0f172a;
	background: #ffffff;
	transition: all 0.2s ease;
	box-sizing: border-box;
	font-family: inherit;
}

.cab-input:focus {
	border-color: #ffa800;
	box-shadow: 0 0 0 3px rgba(255, 168, 0, 0.2);
	outline: none;
}

.cab-toggle-pwd {
	position: absolute;
	right: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 10px;
	font-size: 16px;
	opacity: 0.65;
	transition: opacity 0.2s;
	line-height: 1;
}

.cab-toggle-pwd:hover {
	opacity: 1;
}

.cab-field-hint {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 5px;
}

.btn-cab-submit {
	width: 100%;
	height: 50px;
	background: linear-gradient(135deg, #ffa800 0%, #f59e0b 100%);
	color: #0b111e;
	font-weight: 800;
	font-size: 15.5px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(255, 168, 0, 0.35);
	transition: all 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
	font-family: inherit;
}

.btn-cab-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(255, 168, 0, 0.45);
}

.btn-cab-submit:active {
	transform: translateY(0);
}

.btn-cab-submit:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.cab-auth-switch-text {
	text-align: center;
	font-size: 13.5px;
	color: #64748b;
	margin-top: 18px;
}

.cab-auth-switch-text a {
	color: #d97706;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.cab-auth-switch-text a:hover {
	color: #b45309;
}

/* Quick selector divider & box */
.cab-quick-selector-divider {
	position: relative;
	text-align: center;
	margin: 30px 0 20px;
}

.cab-quick-selector-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: #e2e8f0;
	z-index: 1;
}

.cab-quick-selector-divider span {
	position: relative;
	z-index: 2;
	background: #ffffff;
	padding: 0 14px;
	font-size: 13px;
	color: #94a3b8;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.cab-quick-selector-box {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	text-align: left;
}

.cab-quick-sel-text strong {
	display: block;
	font-size: 14.5px;
	color: #1e293b;
	margin-bottom: 4px;
}

.cab-quick-sel-text p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}

.cabinet-empty-card {
	text-align: center;
	padding: 50px 20px;
	background: #f8fafc;
	border: 1.5px dashed #cbd5e1;
	border-radius: 18px;
	margin: 20px 0;
}

.empty-icon {
	font-size: 44px;
	margin-bottom: 10px;
}

/* Selections Grid */
.emchd-selections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.emchd-selection-card {
	background: #ffffff;
	border: 1.5px solid var(--emchd-border-light);
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s ease;
}

.emchd-selection-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.emchd-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.emchd-sel-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--emchd-text-dark);
	margin: 0;
	line-height: 1.35;
	word-break: break-word;
}

.emchd-sel-badge {
	background: rgba(255, 168, 0, 0.16);
	color: #b45309;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid rgba(255, 168, 0, 0.35);
	white-space: nowrap;
}

.emchd-sel-meta {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.emchd-sel-meta strong {
	color: #1e293b;
}

.emchd-sel-query {
	font-size: 13px;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	line-height: 1.45;
	font-style: italic;
}

.emchd-card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

/* Modal Window Matching page-events.php */
.wp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(11, 17, 30, 0.75);
	backdrop-filter: blur(5px);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wp-modal-box {
	background: #ffffff;
	border-radius: 20px;
	width: 100%;
	max-width: 720px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 32px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
	box-sizing: border-box;
}

.wp-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f1f5f9;
	border: none;
	color: #64748b;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.wp-modal-close:hover {
	background: #e2e8f0;
	color: #0b111e;
}
