/* Spacetree SaaS Portal Redesign — Header, Menu, Workspace Body & Footer */

body:not(.st-auth-active) {
	--st-bg: #f8fafc;
	--st-surface: #ffffff;
	--st-ink: #0f172a;
	--st-ink-hover: #1e293b;
	--st-text: #334155;
	--st-muted: #64748b;
	--st-subtle: #94a3b8;
	--st-border: #e2e8f0;
	--st-border-hover: #cbd5e1;
	--st-border-soft: #f1f5f9;
	--st-accent: #3b82f6;
	--st-emerald: #10b981;
	--st-ring: rgba(15, 23, 42, 0.08);
	--st-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
	--st-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.07);
	--st-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: var(--st-bg) !important;
	font-family: var(--st-font);
}

/* ==========================================================================
   1. Sticky Glassmorphic SaaS Header & Menu Design
   ========================================================================== */

body:not(.st-auth-active) #header.ct-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: rgba(255, 255, 255, 0.90) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--st-border);
	--header-height: 64px;
}

body.admin-bar:not(.st-auth-active) #header.ct-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar:not(.st-auth-active) #header.ct-header {
		top: 46px;
	}
}

body:not(.st-auth-active) #header.ct-header [data-row*="middle"] {
	--height: 64px !important;
	--row-padding: 0 24px !important;
}

body:not(.st-auth-active) #header.ct-header [data-row*="middle"] > div {
	background-color: transparent !important;
	background-image: none !important;
}

body:not(.st-auth-active) #header.ct-header .ct-container {
	max-width: 1200px;
}

body:not(.st-auth-active) #header.ct-header [data-id="logo"] .site-logo-container {
	--logo-max-height: 26px !important;
}

body:not(.st-auth-active) #header.ct-header [data-id="logo"] .site-logo-container img {
	max-height: 26px !important;
	width: auto !important;
}

/* Primary Nav Items */
body:not(.st-auth-active) #header-menu-1 {
	--menu-indicator-hover-color: transparent !important;
	--menu-indicator-active-color: transparent !important;
}

body:not(.st-auth-active) #header-menu-1 > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

body:not(.st-auth-active) #header-menu-1 > ul > li > a.ct-menu-link {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	padding: 7px 13px !important;
	border-radius: 8px !important;
	line-height: 1.3 !important;
	height: auto !important;
	transition: background-color 0.15s ease, color 0.15s ease !important;
}

body:not(.st-auth-active) #header-menu-1 > ul > li:hover > a.ct-menu-link {
	background-color: #f1f5f9 !important;
	color: var(--st-ink) !important;
}

body:not(.st-auth-active) #header-menu-1 > ul > li.current-menu-item > a.ct-menu-link,
body:not(.st-auth-active) #header-menu-1 > ul > li.current_page_item > a.ct-menu-link {
	background-color: #f1f5f9 !important;
	color: var(--st-ink) !important;
	font-weight: 600 !important;
}

/* Dropdown Sub-Menu */
body:not(.st-auth-active) #header-menu-1 .sub-menu {
	background-color: #ffffff !important;
	border: 1px solid var(--st-border) !important;
	border-radius: 12px !important;
	padding: 6px !important;
	margin-top: 6px !important;
	min-width: 196px !important;
	box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.14) !important;
	--dropdown-divider: none !important;
}

body:not(.st-auth-active) #header-menu-1 .sub-menu > li > a.ct-menu-link {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	color: var(--st-text) !important;
	padding: 9px 12px !important;
	border-radius: 8px !important;
	border: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body:not(.st-auth-active) #header-menu-1 .sub-menu > li > a.ct-menu-link:hover {
	background-color: #f8fafc !important;
	color: var(--st-ink) !important;
}

/* Header Search & Utility Buttons */
body:not(.st-auth-active) #header .ct-header-search,
body:not(.st-auth-active) #header .ct-header-socials a {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 1px solid var(--st-border);
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body:not(.st-auth-active) #header .ct-header-search:hover,
body:not(.st-auth-active) #header .ct-header-socials a:hover {
	background: #f8fafc;
	border-color: var(--st-border-hover);
	color: var(--st-ink);
}

/* Interactive User Profile Pill & Dropdown Menu in Top Nav */
.st-nav-user-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
}

.st-nav-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
	border: 1px solid var(--st-border);
	background: #ffffff;
	font-family: var(--st-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--st-ink);
	max-width: 210px;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-nav-user:hover,
.st-nav-user-wrap.is-open .st-nav-user {
	background: #f8fafc;
	border-color: var(--st-border-hover);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.st-nav-user img {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.st-nav-user-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-nav-user-chevron {
	display: inline-flex;
	align-items: center;
	color: var(--st-muted);
	flex-shrink: 0;
	transition: transform 0.18s ease;
}

.st-nav-user-wrap.is-open .st-nav-user-chevron {
	transform: rotate(180deg);
	color: var(--st-ink);
}

.st-user-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 248px;
	max-width: calc(100vw - 20px);
	background: #ffffff;
	border: 1px solid var(--st-border);
	border-radius: 14px;
	box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.14), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
	padding: 6px;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	font-family: var(--st-font);
}

.st-nav-user-wrap.is-open .st-user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.st-user-dropdown-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
}

.st-user-dropdown-header img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid var(--st-border);
}

.st-user-dropdown-info {
	min-width: 0;
}

.st-user-dropdown-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--st-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.st-user-dropdown-email {
	font-size: 12px;
	color: var(--st-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.st-user-dropdown-divider {
	height: 1px;
	background: var(--st-border-soft);
	margin: 4px 0;
}

.st-user-dropdown-item {
	display: flex !important;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 9px;
	font-family: var(--st-font) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--st-text) !important;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: background-color 0.14s ease, color 0.14s ease;
}

.st-user-dropdown-item:hover {
	background: #f1f5f9;
	color: var(--st-ink) !important;
}

.st-user-dropdown-item.is-logout {
	color: #dc2626 !important;
}

.st-user-dropdown-item.is-logout:hover {
	background: #fef2f2;
	color: #b91c1c !important;
}

/* ==========================================================================
   2. Portal Workspace Hero & Body Shell
   ========================================================================== */

body:not(.st-auth-active) #main.site-main {
	background-color: var(--st-bg);
	min-height: calc(100vh - 140px);
}

body:not(.st-auth-active) .ct-container-full[data-vertical-spacing] {
	padding-top: 0 !important;
	padding-bottom: 48px !important;
}

/* Workspace Hero Strip */
body.st-portal-active .hero-section {
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 28px 24px 18px !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

body.st-portal-active .hero-section .entry-header {
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.st-workspace-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--st-font);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 0 0 6px 0;
}

.st-workspace-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--st-emerald);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

body.st-portal-active .hero-section h1.page-title {
	font-family: var(--st-font) !important;
	font-size: 24px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.025em !important;
	color: var(--st-ink) !important;
	margin: 0 0 4px 0 !important;
}

.st-workspace-subtitle {
	font-family: var(--st-font);
	font-size: 14px;
	color: var(--st-muted);
	margin: 0;
	line-height: 1.5;
}

.st-workspace-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.st-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	padding: 0 14px;
	border-radius: 9px;
	border: 1px solid var(--st-border);
	background: #ffffff;
	color: var(--st-text) !important;
	font-family: var(--st-font);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none !important;
	box-shadow: var(--st-shadow-sm);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.st-btn-secondary:hover {
	background: #f8fafc;
	border-color: var(--st-border-hover);
	color: var(--st-ink) !important;
}

.st-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 38px;
	padding: 0 16px;
	border-radius: 9px;
	border: 1px solid var(--st-ink);
	background: var(--st-ink);
	color: #ffffff !important;
	font-family: var(--st-font);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: var(--st-shadow-sm);
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.st-btn-primary:hover {
	background: var(--st-ink-hover);
	border-color: var(--st-ink-hover);
}

.st-btn-primary:active {
	transform: scale(0.99);
}

/* Remove stray Elementor wrapper padding/p-tag quirk around SupportCandy */
body.st-portal-active .entry-content.is-layout-constrained > .elementor-20,
body.st-portal-active .elementor-20 .elementor-element-1e85912 {
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
	box-sizing: border-box !important;
}

body.st-portal-active .elementor-20 .elementor-element-1e85912 > .e-con-inner {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.st-portal-active .elementor-20 .elementor-element-7e91b1b .elementor-heading-title {
	display: none !important;
	margin: 0 !important;
}

/* ==========================================================================
   3. SupportCandy SaaS Workspace Card & Sub-Nav
   ========================================================================== */

body.st-portal-active #wpsc-container {
	font-family: var(--st-font) !important;
	font-size: 14px !important;
}

body.st-portal-active #wpsc-container .wpsc-shortcode-container {
	background-color: #ffffff !important;
	border: 1px solid var(--st-border) !important;
	border-radius: 16px !important;
	box-shadow: var(--st-shadow-md) !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

/* Portal Sub-Navigation Bar */
body.st-portal-active #wpsc-container .wpsc-header {
	float: none !important;
	background-color: #ffffff !important;
	border-bottom: 1px solid var(--st-border) !important;
	padding: 12px 24px !important;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

body.st-portal-active #wpsc-container .wpsc-header.wpsc-visible-xs {
	padding: 14px 18px !important;
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav {
	margin: 0 !important;
	padding: 8px 14px !important;
	border-radius: 8px !important;
	color: var(--st-muted) !important;
	opacity: 1 !important;
	gap: 7px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav:hover {
	background-color: #f1f5f9 !important;
	color: var(--st-ink) !important;
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav.active {
	background-color: var(--st-ink) !important;
	color: #ffffff !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav svg {
	height: 15px !important;
	width: 15px !important;
	margin-right: 0 !important;
	fill: currentColor;
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav label {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	margin: 0 !important;
	line-height: 1.2 !important;
	color: inherit !important;
}

body.st-portal-active #wpsc-container .wpsc-tickets-nav.active label {
	font-weight: 600 !important;
}

body.st-portal-active #wpsc-container .wpsc-header .log-out {
	margin-left: auto !important;
	border: 1px solid var(--st-border);
	background: #ffffff;
	color: #475569 !important;
}

body.st-portal-active #wpsc-container .wpsc-header .log-out:hover {
	background-color: #fef2f2 !important;
	border-color: #fecaca !important;
	color: #dc2626 !important;
}

body.st-portal-active #wpsc-container .wpsc-humbargar,
body.st-portal-active #wpsc-container .wpsc-humbargar-title {
	color: var(--st-ink) !important;
}

body.st-portal-active .wpsc-humbargar-menu {
	padding: 18px 14px !important;
	box-shadow: -8px 0 32px rgba(15, 23, 42, 0.14);
}

body.st-portal-active .wpsc-humbargar-menu-item {
	border-radius: 8px !important;
	font-family: var(--st-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--st-text) !important;
}

body.st-portal-active .wpsc-humbargar-menu-item:hover {
	background-color: #f1f5f9 !important;
	color: var(--st-ink) !important;
}

body.st-portal-active .wpsc-humbargar-menu-item.active {
	background-color: var(--st-ink) !important;
	color: #ffffff !important;
}

/* Portal Content Body */
body.st-portal-active #wpsc-container .wpsc-body {
	float: none !important;
	padding: 24px !important;
	width: 100% !important;
	box-sizing: border-box;
	background: #ffffff;
}

/* Search & Filter Toolbar */
body.st-portal-active #wpsc-container .wpsc-filter {
	float: none !important;
	margin: 0 0 18px 0 !important;
	gap: 12px;
	align-items: center;
}

body.st-portal-active #wpsc-container .wpsc-search .search-field {
	width: 320px;
	max-width: 100%;
	height: 40px;
	padding: 0 12px;
	margin: 0;
	border: 1px solid var(--st-border);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: var(--st-shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.st-portal-active #wpsc-container .wpsc-search .search-field:focus-within {
	border-color: var(--st-ink);
	box-shadow: 0 0 0 3px var(--st-ring);
}

body.st-portal-active #wpsc-container .wpsc-search svg {
	width: 16px;
	height: 16px;
	color: var(--st-subtle);
	margin-right: 8px;
}

body.st-portal-active #wpsc-container .wpsc-search input.wpsc-search-input {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	color: var(--st-ink) !important;
	min-height: auto !important;
	padding: 0 !important;
	box-shadow: none !important;
}

body.st-portal-active #wpsc-container .wpsc-filter-actions {
	gap: 4px;
}

body.st-portal-active #wpsc-container .wpsc-filter-actions span {
	font-family: var(--st-font);
	font-size: 13px !important;
	font-weight: 500;
	text-decoration: none !important;
	color: #475569;
	padding: 6px 10px;
	border-radius: 7px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.st-portal-active #wpsc-container .wpsc-filter-actions span:hover {
	background-color: #f1f5f9;
	color: var(--st-ink) !important;
}

body.st-portal-active #wpsc-container .wpsc-filter-actions .action-devider {
	border-left: 1px solid var(--st-border) !important;
	height: 14px;
	margin: 0 2px;
}

/* Ticket List Table */
body.st-portal-active #wpsc-container .wpsc-tickets-container {
	margin: 0 !important;
	width: 100% !important;
	padding: 0 !important;
	border: 1px solid var(--st-border) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	overflow-x: auto;
	background: #ffffff;
}

body.st-portal-active #wpsc-container .wpsc-bulk-actions {
	padding: 12px 16px;
	margin: 0 !important;
	border-bottom: 1px solid var(--st-border-soft);
	background: #fafbfc;
}

body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl {
	margin: 0 !important;
	border-collapse: collapse !important;
	width: 100% !important;
}

body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl th {
	background-color: #f8fafc !important;
	color: var(--st-muted) !important;
	font-family: var(--st-font) !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 12px 16px !important;
	border-bottom: 1px solid var(--st-border) !important;
}

body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl td {
	padding: 14px 16px !important;
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	color: var(--st-text) !important;
	background-color: #ffffff !important;
	border-bottom: 1px solid var(--st-border-soft) !important;
	vertical-align: middle;
}

body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl tbody tr:last-child td {
	border-bottom: none !important;
}

body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl tbody tr:hover td {
	background-color: #f8fafc !important;
	color: var(--st-ink) !important;
}

body.st-portal-active #wpsc-container .wpsc-ticket-pagination-footer {
	padding: 14px 16px !important;
	border-top: 1px solid var(--st-border-soft);
	background: #fafbfc;
}

/* Form Controls, Selects & Buttons across Portal */
body.st-portal-active #wpsc-container input[type="text"]:not(.wpsc-search-input):not(.select2-search__field),
body.st-portal-active #wpsc-container input[type="password"],
body.st-portal-active #wpsc-container input[type="email"],
body.st-portal-active #wpsc-container select,
body.st-portal-active #wpsc-container textarea,
body.st-portal-active #wpsc-container .select2-container .select2-selection--single,
body.st-portal-active .wpsc-modal input[type="text"],
body.st-portal-active .wpsc-modal select,
body.st-portal-active .wpsc-modal textarea {
	border: 1px solid var(--st-border) !important;
	border-radius: 8px !important;
	min-height: 38px !important;
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	color: var(--st-ink) !important;
	background-color: #ffffff !important;
	box-shadow: var(--st-shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.st-portal-active #wpsc-container input[type="text"]:not(.wpsc-search-input):focus,
body.st-portal-active #wpsc-container input[type="password"]:focus,
body.st-portal-active #wpsc-container select:focus,
body.st-portal-active #wpsc-container textarea:focus,
body.st-portal-active .wpsc-modal input[type="text"]:focus,
body.st-portal-active .wpsc-modal select:focus,
body.st-portal-active .wpsc-modal textarea:focus {
	border-color: var(--st-ink) !important;
	box-shadow: 0 0 0 3px var(--st-ring) !important;
	outline: none !important;
}

body.st-portal-active #wpsc-container .wpsc-button,
body.st-portal-active .wpsc-modal .wpsc-button {
	border-radius: 8px !important;
	font-family: var(--st-font) !important;
	font-weight: 500 !important;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

body.st-portal-active #wpsc-container .wpsc-button.normal,
body.st-portal-active .wpsc-modal .wpsc-button.normal {
	min-height: 38px;
	padding: 8px 16px !important;
	font-size: 13.5px !important;
}

body.st-portal-active #wpsc-container .wpsc-button.small,
body.st-portal-active .wpsc-modal .wpsc-button.small {
	min-height: 32px;
	padding: 5px 12px !important;
	font-size: 12.5px !important;
}

body.st-portal-active #wpsc-container .wpsc-button.primary:hover,
body.st-portal-active .wpsc-modal .wpsc-button.primary:hover {
	background-color: var(--st-ink-hover) !important;
	border-color: var(--st-ink-hover) !important;
}

body.st-portal-active #wpsc-container .wpsc-button.secondary,
body.st-portal-active .wpsc-modal .wpsc-button.secondary {
	border: 1px solid var(--st-border) !important;
	color: var(--st-text) !important;
	background: #ffffff !important;
}

body.st-portal-active #wpsc-container .wpsc-button.secondary:hover,
body.st-portal-active .wpsc-modal .wpsc-button.secondary:hover {
	border-color: var(--st-border-hover) !important;
	background: #f8fafc !important;
	color: var(--st-ink) !important;
}

/* Badges / Tags */
body.st-portal-active #wpsc-container .wpsc-tag {
	border-radius: 999px !important;
	padding: 3px 10px !important;
	font-family: var(--st-font) !important;
	font-size: 11.5px !important;
	font-weight: 500 !important;
}

/* Individual Ticket Threads & Sidebar Widgets */
body.st-portal-active #wpsc-container .wpsc-it-widget {
	border: 1px solid var(--st-border) !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: none !important;
	margin-bottom: 16px;
}

body.st-portal-active #wpsc-container .wpsc-widget-header {
	background-color: #f8fafc !important;
	color: var(--st-ink) !important;
	border-bottom: 1px solid var(--st-border) !important;
	padding: 12px 16px !important;
}

body.st-portal-active #wpsc-container .wpsc-widget-header h2 {
	color: var(--st-ink) !important;
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
}

body.st-portal-active #wpsc-container .wpsc-widget-body {
	background-color: #ffffff !important;
	color: var(--st-text) !important;
	padding: 16px !important;
}

body.st-portal-active #wpsc-container .wpsc-thread {
	border: 1px solid var(--st-border) !important;
	border-radius: 12px !important;
	padding: 18px !important;
	margin-bottom: 14px;
	background: #ffffff;
}

body.st-portal-active #wpsc-container .wpsc-thread.note {
	background: #fffbeb !important;
	border-color: #fde68a !important;
}

/* Modals */
body.st-portal-active .wpsc-modal .modal {
	border-radius: 16px !important;
	overflow: hidden;
	border: 1px solid var(--st-border);
	box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25) !important;
}

body.st-portal-active .wpsc-modal-header {
	background-color: #f8fafc !important;
	color: var(--st-ink) !important;
	border-bottom: 1px solid var(--st-border) !important;
	padding: 16px 20px !important;
	font-family: var(--st-font);
	font-weight: 600;
}

/* ==========================================================================
   4. Clean SaaS Footer
   ========================================================================== */

body:not(.st-auth-active) #footer.ct-footer {
	background-color: #ffffff !important;
	border-top: 1px solid var(--st-border) !important;
	padding: 18px 0 !important;
}

body:not(.st-auth-active) #footer.ct-footer .ct-container {
	max-width: 1200px;
}

body:not(.st-auth-active) #footer.ct-footer [data-row="bottom"] > div {
	padding: 0 24px;
	align-items: center;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="copyright"] {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="copyright"] p {
	font-family: var(--st-font) !important;
	font-size: 13px !important;
	color: var(--st-muted) !important;
	margin: 0;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="copyright"] a {
	color: var(--st-ink) !important;
	font-weight: 500;
	text-decoration: none;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="copyright"] a:hover {
	text-decoration: underline;
}

.st-footer-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid var(--st-border);
	font-family: var(--st-font);
	font-size: 12px;
	font-weight: 500;
	color: var(--st-text);
}

.st-footer-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--st-emerald);
}

body:not(.st-auth-active) #footer.ct-footer [data-id="menu"] ul {
	gap: 20px;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="menu"] > ul > li > a {
	font-family: var(--st-font) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	color: #475569 !important;
	transition: color 0.15s ease;
}

body:not(.st-auth-active) #footer.ct-footer [data-id="menu"] > ul > li > a:hover {
	color: var(--st-ink) !important;
}

/* ==========================================================================
   5. Quick Support Guidelines, Ticket Tips & Deprecation Banner
   ========================================================================== */

.st-quick-support-card {
	background: #ffffff;
	border: 1px solid var(--st-border);
	border-radius: 16px;
	box-shadow: var(--st-shadow-sm);
	margin: 0 0 20px 0;
	overflow: hidden;
	font-family: var(--st-font);
}

.st-qs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-bottom: 1px solid var(--st-border);
}

.st-quick-support-card.is-collapsed .st-qs-header {
	border-bottom: none;
}

.st-qs-title-group {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.st-qs-icon-badge {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #0f172a;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.st-qs-heading-wrap {
	min-width: 0;
}

.st-qs-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 2px;
}

.st-qs-title-row h2 {
	font-family: var(--st-font) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--st-ink) !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em;
}

.st-qs-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.st-qs-heading-wrap p {
	font-family: var(--st-font) !important;
	font-size: 13px !important;
	color: var(--st-muted) !important;
	margin: 0 !important;
	line-height: 1.45 !important;
}

.st-qs-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid var(--st-border);
	background: #ffffff;
	color: var(--st-text);
	font-family: var(--st-font);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.st-qs-toggle:hover {
	background: #f1f5f9;
	border-color: var(--st-border-hover);
	color: var(--st-ink);
}

.st-qs-toggle svg {
	transition: transform 0.2s ease;
}

.st-quick-support-card.is-collapsed .st-qs-toggle svg {
	transform: rotate(-90deg);
}

.st-qs-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	padding: 18px 22px 20px;
	background: #ffffff;
}

.st-quick-support-card.is-collapsed .st-qs-grid {
	display: none;
}

.st-qs-item {
	grid-column: span 2;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--st-border-soft);
	background: #f8fafc;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.st-qs-item--wide {
	grid-column: span 3;
}

.st-qs-item:hover {
	background: #ffffff;
	border-color: var(--st-border);
	box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
}

.st-qs-item-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.st-qs-item-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--st-border);
	color: var(--st-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.st-qs-item-num {
	font-size: 11px;
	font-weight: 600;
	color: var(--st-subtle);
	letter-spacing: 0.04em;
}

.st-qs-item h3 {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: var(--st-ink) !important;
	margin: 0 0 5px 0 !important;
	line-height: 1.35 !important;
}

.st-qs-item p {
	font-family: var(--st-font) !important;
	font-size: 12.5px !important;
	color: var(--st-muted) !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* Contextual Inline Reminder inside Create Ticket & Ticket Detail */
.st-inline-support-tip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	margin: 0 0 18px 0;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid var(--st-border);
	border-left: 3px solid #0f172a;
	font-family: var(--st-font);
	font-size: 13px;
	line-height: 1.5;
	color: var(--st-text);
}

.st-inline-tip-icon {
	color: var(--st-ink);
	flex-shrink: 0;
	margin-top: 2px;
	display: inline-flex;
}

.st-inline-support-tip strong {
	color: var(--st-ink);
	font-weight: 600;
}

/* IELTS LMS Documentation Deprecation Banner */
.st-deprecation-banner {
	max-width: 1200px;
	margin: 20px auto 0;
	padding: 0 24px;
	box-sizing: border-box;
	font-family: var(--st-font);
}

.st-deprecation-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border-radius: 14px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	box-shadow: 0 2px 10px rgba(217, 119, 6, 0.06);
}

.st-deprecation-copy {
	flex: 1 1 320px;
}

.st-deprecation-badge {
	display: inline-block;
	padding: 2px 9px;
	margin-bottom: 6px;
	border-radius: 999px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.st-deprecation-copy h3 {
	font-family: var(--st-font) !important;
	font-size: 15.5px !important;
	font-weight: 600 !important;
	color: #78350f !important;
	margin: 0 0 4px 0 !important;
}

.st-deprecation-copy p {
	font-family: var(--st-font) !important;
	font-size: 13.5px !important;
	color: #92400e !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

.st-deprecation-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 9px;
	background: #0f172a;
	color: #ffffff !important;
	font-family: var(--st-font);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	flex-shrink: 0;
	transition: background-color 0.15s ease;
}

.st-deprecation-btn:hover {
	background: #1e293b;
}

/* ==========================================================================
   6. Tablet & Mobile Responsive Adjustments
   ========================================================================== */

/* Tablet (iPad, Surface, landscape phones) */
@media (max-width: 960px) {
	.st-qs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 16px 18px 18px;
	}

	.st-qs-item,
	.st-qs-item--wide {
		grid-column: span 1;
	}

	body.st-portal-active .hero-section {
		padding: 24px 20px 16px !important;
	}

	body.st-portal-active .entry-content.is-layout-constrained > .elementor-20,
	body.st-portal-active .elementor-20 .elementor-element-1e85912 {
		padding: 0 20px !important;
	}
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
	body.st-portal-active .hero-section {
		padding: 18px 16px 14px !important;
	}

	body.st-portal-active .entry-content.is-layout-constrained > .elementor-20,
	body.st-portal-active .elementor-20 .elementor-element-1e85912 {
		padding: 0 16px !important;
	}

	body.st-portal-active #wpsc-container .wpsc-body {
		padding: 16px !important;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch !important;
	}

	body.st-portal-active #wpsc-container .wpsc-ticket-list-tbl {
		min-width: 540px;
	}

	body.st-portal-active #wpsc-container .wpsc-search .search-field {
		width: 100%;
	}

	.st-qs-header {
		padding: 12px 16px;
		gap: 12px;
	}

	.st-qs-grid {
		grid-template-columns: 1fr;
		padding: 14px 16px 16px;
	}

	.st-deprecation-banner {
		padding: 0 16px;
	}

	.st-nav-user-name {
		display: none;
	}

	.st-nav-user {
		padding: 3px 6px 3px 3px;
		gap: 4px;
	}

	body.st-portal-active .wpsc-humbargar-menu {
		z-index: 100001 !important;
		max-width: 280px !important;
		width: 85% !important;
	}

	body:not(.st-auth-active) #footer.ct-footer [data-row="bottom"] > div {
		padding: 0 16px;
		gap: 12px;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	body:not(.st-auth-active) #footer.ct-footer [data-id="copyright"] {
		justify-content: center;
	}
}

/* Small Smartphone (< 640px) */
@media (max-width: 640px) {
	body.st-portal-active .hero-section {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 14px !important;
	}

	.st-workspace-actions {
		width: 100%;
		display: flex;
		gap: 8px;
	}

	.st-btn-secondary,
	.st-btn-primary {
		flex: 1;
		justify-content: center;
		height: 40px;
		font-size: 13px;
		padding: 0 10px;
	}

	.st-qs-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.st-quick-support-card.is-collapsed .st-qs-heading-wrap p {
		display: none;
	}

	.st-qs-icon-badge {
		width: 32px;
		height: 32px;
	}

	.st-qs-title-row h2 {
		font-size: 14px !important;
	}

	.st-qs-toggle {
		padding: 5px 9px;
		font-size: 12px;
	}

	.st-deprecation-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 14px 16px;
	}

	.st-deprecation-btn {
		width: 100%;
		justify-content: center;
	}

	body.st-portal-active .wpsc-modal .modal {
		width: calc(100vw - 20px) !important;
		margin: 10px auto !important;
		max-width: 100% !important;
	}
}

