/* ============================================
   Digital Store Styles
   ============================================ */
   
/* --- Page Progress Bar --- */
#store_progress {
	position: fixed;
	top: 50px;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 201;
	pointer-events: none;
	opacity: 0;
	transition: opacity .2s;
}
#store_progress.active { opacity: 1; }
#store_progress_bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #00bcd4, #00e5ff);
	border-radius: 0 2px 2px 0;
	box-shadow: 0 0 8px rgba(0, 188, 212, .45);
	transition: width .3s ease;
}

/* --- Store Page Layout --- */
#store_notify_menu { position:fixed; right:60px; z-index:202; top:50px; display:none; width:320px; max-height:400px; }

/* Full-width shell: sidebar flush to the left edge and the header, content fills the rest.
   --store-head matches the fixed #header_full height; --store-gap is the one content gutter. */
:root { --store-head: 50px; --store-gap: 16px; }
#page_content {
	max-width: none;
	margin: 0;
	padding: var(--store-head) 0 0;
}
.store_menu_scroll {
	max-height: calc(100vh - var(--store-head));
	overflow-y: auto;
}
#page_content #page_global {
	display: flex;
	align-items: flex-start;
}
#page_content #page_menu {
	position: sticky;
	top: var(--store-head);
	flex-shrink: 0;
	width: 260px;
	height: calc(100vh - var(--store-head));
	margin: 0;
	border-radius: 0;
	border-left: 0;
	border-right: 1px solid rgba(128,128,128,0.14);
}
#page_content .page_indata {
	flex: 1;
	min-width: 0;
}
#page_content #page_wrapper {
	padding: var(--store-gap) var(--store-gap) calc(var(--store-gap) * 1.5);
	overflow: visible;
}
@media screen and (max-width: 1120px) {
	#page_content { padding: var(--store-head) 0 0; }
}
@media screen and (max-width: 1100px) {
	#page_content #page_wrapper { padding: 12px; }
}
@media screen and (max-width: 560px) {
	#page_content #page_wrapper { padding: 10px; }
}
#page_content #page_wrapper .page_element {
	border-radius: 8px;
}


/* --- Donate sidebar (My Account, News, FAQ) --- */
.store_donate_sidebar {
	margin-bottom: 12px;
}
.store_donate_sidebar_inner {
	padding: 2px 0 0;
}
.store_donate_sidebar_thumb {
	display: flex;
	justify-content: center;
	margin: 0 0 12px;
}
.store_donate_sidebar_img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	display: block;
}
.store_donate_sidebar_head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 15px;
}
.store_donate_sidebar_desc {
	margin: 0 0 10px;
	line-height: 1.45;
}
.store_donate_sidebar_price {
	margin-bottom: 10px;
	font-size: 18px;
}
.store_donate_sidebar_btn {
	margin-top: 2px;
}

/* Donation amount modal */
.store_donate_modal {
	padding: 0;
	max-width: 420px;
	margin: 0 auto;
}
.store_donate_hero {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}
.store_donate_hero_img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 10px;
	flex-shrink: 0;
}
.store_donate_hero_title {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 3px;
}
.store_donate_hero_desc {
	opacity: 0.65;
	line-height: 1.4;
}
.store_donate_presets_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}
.store_donate_preset {
	padding: 12px 6px;
	border: 2px solid rgba(0,0,0,0.10);
	border-radius: 10px;
	background: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	color: inherit;
}
.store_donate_preset:hover {
	border-color: rgba(0,0,0,0.22);
	background: rgba(0,0,0,0.03);
}
.store_donate_preset_selected {
	border-color: #4db6db;
	background: rgba(77,182,219,0.08);
	color: #4db6db;
}
.store_donate_custom {
	margin-bottom: 6px;
}
.store_donate_input_wrap {
	display: flex;
	align-items: center;
	border-radius: 10px;
	padding: 0 14px;
	border: 2px solid rgba(0,0,0,0.08);
	transition: border-color 0.15s ease;
}
.store_donate_input_wrap:focus-within {
	border-color: #4db6db;
}
.store_donate_currency {
	font-size: 18px;
	font-weight: 600;
	opacity: 0.45;
	margin-right: 6px;
	user-select: none;
}
.store_donate_input {
	border: none;
	background: none;
	padding: 13px 0;
	font-size: 18px;
	font-weight: 600;
	width: 100%;
	outline: none;
}
.store_donate_submit {
	width: 100%;
	padding: 13px 20px !important;
	font-size: 15px;
	border-radius: 10px !important;
}
.store_donate_error {
	color: #e53935;
	margin-top: 10px;
	text-align: center;
}

/* --- Section Heads --- */
.store_section_head {
	padding-bottom: 12px;
	margin-bottom: 12px;
	font-size: 14px;
	letter-spacing: 0.3px;
}
.store_section_head i {
	margin-right: 4px;
}

/* --- Header --- */
.store_head_icon {
	position: relative;
}
.store_head_badge {
	position: absolute;
	top: 5px;
	right: 0;
	background: #f44336;
	color: #fff;
	font-size: 10px;
	font-weight: bold;
	padding: 1px 5px;
	border-radius: 10px;
	min-width: 16px;
	text-align: center;
	line-height: 14px;
}

/* --- Layout --- */
.store_split_layout {
	display: table;
	table-layout: fixed;
	width: 100%;
}
.store_main_col {
	display: table-cell;
	vertical-align: top;
	padding-right: 12px;
}
.store_cart_layout > .store_main_col > .page_element,
.store_cart_layout > .store_side_col > .page_element {
	padding: 0;
	margin-bottom: 12px;
}
.store_side_col {
	display: table-cell;
	vertical-align: top;
	width: 310px;
}
.store_chat_btn_wrap {
	padding: 15px;
}
.store_chat_btn_wrap .full_button {
	border-radius: 8px;
	padding: 14px;
}

/* --- Product List --- */
#store_product_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.sprod_card {
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s, box-shadow 0.18s;
}
.sprod_card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.sprod_card_top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 14px 10px;
	flex: 1;
}
.sprod_card_img {
	width: 54px;
	height: 54px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.sprod_card_body {
	flex: 1;
	min-width: 0;
}
.sprod_card_name {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.sprod_card_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 11px;
}
.sprod_card_price {
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.sprod_card_actions {
	display: flex;
	border-top: 1px solid rgba(0,0,0,0.07);
}
.sprod_action_btn {
	flex: 1;
	border: none;
	border-radius: 0;
	padding: 8px 4px;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	transition: opacity 0.15s;
}
.sprod_action_btn + .sprod_action_btn {
	border-left: 1px solid rgba(0,0,0,0.07);
}
.sprod_action_btn:hover { opacity: 0.82; }

@media (max-width: 900px) {
	#store_product_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	#store_product_grid { grid-template-columns: 1fr; }
}
.store_premium_badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	background: #4caf50;
	color: #fff;
}
.store_list_bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.store_sort_select {
	padding: 6px 10px;
	border-radius: 20px;
	border: 1px solid rgba(0,0,0,0.12);
	font-size: 12px;
	cursor: pointer;
	background: transparent;
	flex-shrink: 0;
}
.store_sort_chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.store_price_old {
	text-decoration: line-through;
	opacity: 0.5;
	font-size: 12px;
	margin-right: 5px;
}
.store_price_new {
	color: #f44336;
	font-size: 15px;
}
.store_price_current {
	font-size: 15px;
}
.store_price_big {
	font-size: 22px;
}

/* --- Product View Modal --- */
.store_view_modal {
	padding: 0;
}
.store_view_header {
	padding: 18px 20px;
	border-bottom: 1px solid rgba(128,128,128,0.1);
}
.store_view_thumb {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}
.store_view_price {
	font-size: 18px;
}
.store_view_tabs {
	display: flex;
	gap: 0;
	padding: 0 20px;
	border-bottom: 1px solid rgba(128,128,128,0.1);
}
.store_view_tab {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	opacity: 0.5;
	transition: all 0.2s;
}
.store_view_tab:hover {
	opacity: 0.8;
}
.store_view_tab_active {
	opacity: 1;
	border-bottom-color: currentColor;
}
.store_view_tab_content {
	padding: 5px 20px 10px;
}
.store_view_block {
	padding: 12px 0;
	border-bottom: 1px solid rgba(128,128,128,0.06);
}
.store_view_block:last-child {
	border-bottom: none;
}
.store_view_text {
	line-height: 1.6;
	padding-top: 6px;
}
.store_view_info_grid {
	padding-top: 6px;
}
.store_view_info_item {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
}
.store_view_gallery {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px 0 6px;
	-webkit-overflow-scrolling: touch;
}
.store_view_gallery_img {
	width: 180px;
	height: 120px;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s;
	object-fit: cover;
	flex-shrink: 0;
}
.store_view_gallery_img:hover {
	opacity: 0.8;
}
.store_view_action {
	padding: 14px 20px;
	border-top: 1px solid rgba(128,128,128,0.1);
}
.store_view_warning {
	margin: 10px 20px;
	padding: 12px 14px;
	border-radius: 6px;
	background: rgba(255,193,7,0.12);
	border-left: 3px solid #ffc107;
	font-size: 13px;
	line-height: 1;
	color: #856404;
}
.store_view_action_btn {
	padding: 12px;
	font-size: 14px;
	border-radius: 8px;
}
.store_view_footer {
	display: flex;
	gap: 0;
	border-top: 1px solid rgba(0,0,0,0.06);
}
.store_view_footer_btn {
	flex: 1;
	background: none;
	border: none;
	padding: 10px;
	font-size: 12px;
	color: #888;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.store_view_footer_btn:hover {
	background: rgba(0,0,0,0.03);
	color: #333;
}
.store_view_footer_btn i {
	margin-right: 4px;
}
.store_view_section {
	padding: 12px 0;
	border-top: 1px solid rgba(128,128,128,0.1);
}
.store_view_screens {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 5px;
}
.store_screenshot_thumb {
	width: 100px;
	height: 70px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.store_screenshot_thumb:hover {
	opacity: 0.8;
}
.store_view_meta {
	margin-top: 5px;
	padding: 12px 0 0;
	border-top: 1px solid rgba(128,128,128,0.1);
}
.store_view_meta_item {
	padding: 5px 10px;
}

/* --- Store Product Page (internal) --- */
.spp_header {
	display: flex;
	align-items: center;
	gap: 14px;
}
.spp_header_img {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	border: 1px solid rgba(0,0,0,0.08);
}
.spp_header_info {
	flex: 1;
	min-width: 0;
}
.spp_header_name {
	font-size: 17px;
	margin-bottom: 4px;
}
.spp_header_meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.spp_header_meta i {
	margin-right: 3px;
}
.spp_header_price {
	text-align: right;
	flex-shrink: 0;
}
.spp_price_main {
	font-size: 20px;
}
.spp_section {
	padding: 2px 0;
}
.spp_section_head {
	font-size: 13px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.spp_section_head i {
	margin-right: 4px;
}
.spp_section_body {
	line-height: 1.7;
	color: #555;
}
.spp_gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.spp_gallery_img {
	width: 100%;
	border-radius: 5px;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.08);
	transition: box-shadow 0.15s;
}
.spp_gallery_img:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.spp_action_card {
	padding: 18px;
	border-radius: 8px;
	text-align: center;
}
.spp_action_price_box {
	margin-bottom: 14px;
}
.spp_action_price {
	font-size: 26px;
}
.spp_purchased_badge {
	color: #74b20e;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 10px;
}
.spp_btn {
	width: 100%;
	margin-bottom: 6px;
}
.spp_info_card {
	padding: 16px;
	border-radius: 8px;
}
.spp_info_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	font-size: 13px;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}
.spp_info_row:last-child {
	border-bottom: none;
}
.spp_info_row i {
	margin-right: 4px;
	width: 14px;
	text-align: center;
}
.spp_share_row {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 8px;
}
.spp_share_input {
	flex: 1;
	min-width: 0;
}
@media (max-width: 768px) {
	.spp_header { flex-direction: column; text-align: center; }
	.spp_header_meta { justify-content: center; }
	.spp_header_price { text-align: center; }
	.spp_gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- Featured Banner --- */
.store_featured_card {
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
}
.store_featured_img {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	object-fit: cover;
}
.store_featured_badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 8px;
	border-radius: 3px;
	margin-bottom: 4px;
	background: #ff5722;
	color: #fff;
}
.store_featured_name {
	font-size: 16px;
	line-height: 1.3;
}
.store_featured_price {
	font-size: 20px;
	font-weight: 700;
	white-space: nowrap;
}

/* --- Inventory --- */
.store_inventory_item {
	border-radius: 6px;
	padding: 12px 15px;
	margin-bottom: 5px;
}
.store_inv_img {
	width: 45px;
}
.store_inv_img img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
}
.store_inv_info {
	padding-left: 10px;
	overflow: hidden;
}
.store_inv_meta {
	opacity: 0.6;
	margin-top: 2px;
}
.store_inv_actions {
	white-space: nowrap;
	width: 110px;
	text-align: right;
}
.store_inv_actions button {
	margin-left: 2px;
}

/* --- Cart --- */
.store_cart_sheet,
.store_checkout_sheet {
	border-radius: 10px;
	overflow: hidden;
}
.store_cart_sheet .store_section_head {
	margin: 0;
	padding: 14px 15px 12px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.store_cart_sheet .btable,
.store_cart_breakdown .btable {
	table-layout: auto;
}
#store_cart_items .store_cart_item:not(:last-child) {
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.store_cart_item .spur_card_top {
	align-items: center;
	padding: 14px 15px 12px;
}
.store_cart_item .store_cart_remove {
	flex-shrink: 0;
	margin-left: auto;
	padding-left: 8px;
}
.store_cart_remove_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(0,0,0,0.04);
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
	opacity: 0.85;
}
.store_cart_remove_btn:hover {
	opacity: 1;
	background: rgba(0,0,0,0.07);
}
.store_cart_icon_muted {
	opacity: 0.5;
}
.store_cart_breakdown {
	padding: 14px 15px;
	font-size: 13px;
}
.store_cart_subtotal_row {
	padding: 6px 0;
}
.store_cart_divider {
	height: 1px;
	margin: 6px 0;
}
.store_cart_total_row {
	padding: 6px 0;
}
.store_cart_total_price {
	font-size: 16px;
}

/* --- Checkout (cart sidebar) --- */
.store_checkout_sheet .store_section_head {
	margin: 0;
	padding: 14px 15px 10px;
}
.store_checkout_total_box {
	margin: 6px 15px 12px;
	padding: 12px 14px;
	border-radius: 8px;
}
.store_checkout_total_label {
	letter-spacing: 0.4px;
	margin-bottom: 6px;
	opacity: 0.55;
	font-size: 11px;
	text-transform: uppercase;
}
.store_checkout_total_value {
	font-size: 14px;
}
.store_checkout_total_amount {
	font-size: 20px;
	margin-right: 4px;
}
.store_checkout_section {
	padding: 4px 15px 12px;
	font-size: 13px;
	border-top: 1px solid rgba(0,0,0,0.06);
}
.store_payment_title {
	margin-bottom: 10px;
}
.store_payment_list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 4px 0 12px;
}
.store_payment_option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
}
.store_payment_option:hover {
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.store_payment_option_selected {
	border-color: var(--theme-color, #03add8) !important;
	box-shadow: 0 0 0 2px rgba(3,173,216,0.15);
}
.store_payment_option_icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.store_payment_option_icon i { font-size: 22px !important; }
.store_payment_option_label {
	flex: 1;
	font-size: 13px;
}
.store_payment_option_check {
	flex-shrink: 0;
	font-size: 16px;
	color: rgba(0,0,0,0.15);
	transition: all 0.15s;
}
.store_payment_option_selected .store_payment_option_check {
	color: var(--theme-color, #03add8);
}
.store_payment_option_selected .store_payment_option_check i:before {
	content: "\f058";
}
.store_pay_btn {
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s;
}
.store_pay_btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.store_cart_empty_box {
	text-align: center;
	padding: 50px 20px 40px;
}
.store_cart_empty_icon {
	font-size: 52px;
	opacity: 0.12;
	margin-bottom: 14px;
}
.store_cart_empty_title {
	font-size: 17px;
	margin-bottom: 6px;
}

/* Modal action row (donation box) */
.store_payment_modal_actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.store_payment_modal_actions .reg_button {
	margin: 0 4px;
}

/* --- Sidebar --- */
.store_product_sidebar {
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 10px;
}
.store_sidebar_price {
	text-align: center;
	padding: 10px 0 15px;
}
.store_info_row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.store_info_row:last-child {
	border-bottom: none;
}

/* --- News --- */
.store_news_card {
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
}
.store_news_card_top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 14px;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.store_news_avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.store_news_meta { flex: 1; min-width: 0; }
.store_news_meta .bold { font-size: 14px; }
.store_news_meta .store_muted { font-size: 12px; margin-top: 2px; }
.store_news_card_body {
	padding: 14px 18px 10px;
	font-size: 14px;
	line-height: 1.7;
	word-break: break-word;
}
.store_news_card_media {
	padding: 0 18px 10px;
}
.store_news_card_image {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
}
.store_news_card_footer {
	display: flex;
	align-items: center;
	padding: 10px 18px 14px;
	border-top: 1px solid rgba(0,0,0,0.06);
	font-size: 13px;
}
.store_news_reactions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

/* --- Notifications --- */
.store_notify_unread {
	border-left: 3px solid;
}

/* --- Section Info --- */
.store_section_info {
	border-radius: 8px;
	padding: 12px 15px;
	margin-bottom: 10px;
	font-size: 13px;
}
.store_info_warn {
	background: rgba(255,152,0,0.08) !important;
}

/* --- Empty States --- */
.store_empty {
	padding: 20px 15px;
	text-align: center;
	opacity: 0.5;
	font-size: 13px;
}
.store_empty_state {
	text-align: center;
	padding: 50px 20px 40px;
}
.store_empty_icon {
	font-size: 48px;
	opacity: 0.15;
	margin-bottom: 12px;
}

/* --- Utility --- */
.store_muted {
	opacity: 0.55;
}
.store_half_col {
	width: 50%;
}
.store_quick_btn {
	margin-bottom: 6px;
}

/* --- Account Page --- */
.store_account_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.store_account_stat_card {
	flex: 1 1 calc(25% - 10px);
	min-width: 120px;
	padding: 15px 12px;
	border-radius: 8px;
	text-align: center;
}
.store_account_stat_icon {
	font-size: 18px;
	margin-bottom: 6px;
}
.store_account_stat_value {
	font-size: 20px;
	line-height: 1.2;
}
.store_account_stat_label {
	margin-top: 2px;
}
.store_active_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 0;
}
.store_active_user {
	cursor: pointer;
}
.store_active_avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s;
}
.store_active_avatar:hover {
	opacity: 0.7;
}
/* Online list: online now (green badge) + recently active within 30 min (dimmed, with time) */
.store_active_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 6px; }
.store_active_user { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.sol_avatar_wrap { position: relative; display: block; }
.store_active_user .store_active_avatar { width: 46px; height: 46px; }
.sol_badge { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: #9e9e9e; }
.sol_on .sol_badge { background: #43a047; }
.sol_away .store_active_avatar { opacity: .6; filter: grayscale(.4); }
.sol_name { max-width: 100%; font-size: 11px; line-height: 1.2; text-align: center; }
.sol_ago { font-size: 10px; opacity: .6; line-height: 1; }
.sol_sub { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(128,128,128,0.14); }
.sol_dot_on { color: #43a047; }
.store_quick_links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.store_quick_link {
	flex: 1 1 calc(25% - 8px);
	min-width: 100px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 8px;
	cursor: pointer;
}
.store_quick_link i {
	font-size: 16px;
}

/* --- Product Price Display --- */
.store_product_price_display {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 6px;
	vertical-align: middle;
}
.store_price_free {
	color: #4caf50;
	font-size: 13px;
}

/* --- Chip Count --- */
.store_chip_count {
	display: inline-block;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	opacity: 0.6;
}

.store_preview_thumb {
	max-width: 80px;
	max-height: 80px;
	border-radius: 5px;
}
.store_preview_screen {
	max-width: 80px;
	max-height: 80px;
	border-radius: 6px;
	object-fit: cover;
}

/* --- Screenshots Grid --- */
.store_screens_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.store_screen_item {
	position: relative;
	display: inline-block;
}
.store_screen_remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f44336;
	color: #fff;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.store_screen_remove:hover {
	background: #d32f2f;
}

/* --- Toast Notifications --- */
#store_toast_wrap {
	position: fixed;
	top: 60px;
	right: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}
.store_toast {
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: auto;
	max-width: 360px;
}
.store_toast i {
	margin-right: 6px;
}
.store_toast_show {
	opacity: 1;
	transform: translateX(0);
}
.store_toast_success {
	background: #4caf50;
	color: #fff;
}
.store_toast_error {
	background: #f44336;
	color: #fff;
}
.store_toast_info {
	background: #333;
	color: #fff;
}
.store_top_product_img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

/* --- Admin Filter Chips --- */
.store_filter_chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.store_chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}

/* --- Transactions (admin list) --- */
.tx_list_head {
	display: none;
}
.tx_th_spacer {
	min-width: 0;
}
.tx_row_meta {
	min-width: 0;
}
.tx_row {
	gap: 10px;
}
.tx_cell {
	flex-shrink: 0;
	font-size: 13px;
	min-width: 0;
}
.tx_invoice {
	min-width: 0;
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (min-width: 960px) {
	.tx_list_head {
		display: grid;
		grid-template-columns: 40px minmax(120px, 1.5fr) minmax(88px, 1fr) minmax(100px, 1fr) minmax(72px, 0.85fr) minmax(88px, 0.9fr) minmax(96px, 0.95fr);
		gap: 12px;
		align-items: center;
		padding: 8px 14px 6px;
		margin: 0 0 2px;
		font-size: 10px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: rgba(0, 0, 0, 0.45);
	}
	.sadm_card.tx_row {
		display: grid;
		grid-template-columns: 40px minmax(120px, 1.5fr) minmax(88px, 1fr) minmax(100px, 1fr) minmax(72px, 0.85fr) minmax(88px, 0.9fr) minmax(96px, 0.95fr);
		align-items: center;
		column-gap: 12px;
		row-gap: 6px;
	}
	.tx_row_meta {
		display: contents;
	}
	.sadm_card.tx_row .tx_row_avatar {
		width: 36px;
		height: 36px;
		border-radius: 50%;
		object-fit: cover;
	}
}
@media (max-width: 959px) {
	.sadm_card.tx_row {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.sadm_card.tx_row .tx_row_meta {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 14px;
		width: 100%;
		flex-basis: 100%;
	}
	.sadm_card.tx_row .tx_invoice {
		grid-column: 1 / -1;
		max-width: none;
		white-space: normal;
		word-break: break-word;
	}
	.tx_cell[data-tx-label]::before {
		content: attr(data-tx-label);
		display: block;
		font-size: 10px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		opacity: 0.5;
		margin-bottom: 4px;
	}
}
@media (max-width: 480px) {
	.sadm_card.tx_row .tx_row_meta {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.store_list_bar {
		flex-direction: column;
		align-items: stretch;
	}
	.store_list_bar .admin_search {
		max-width: none !important;
		width: 100%;
		flex: none !important;
	}
	.store_list_bar .store_sort_select {
		width: 100%;
		max-width: none;
		align-self: stretch;
	}
}
@media (max-width: 480px) {
	.tx_pagination {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.tx_page_btns {
		flex-wrap: wrap;
		justify-content: center;
	}
}
.tx_gw_badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 20px;
	background: rgba(0,0,0,0.05);
}
.sadm_badge_orange { background: #fff3e0; color: #e65100; }
.tx_pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.tx_page_btns {
	display: flex;
	gap: 4px;
}
.tx_page_btn {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.1);
	background: transparent;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s;
}
.tx_page_btn:hover { background: rgba(0,0,0,0.06); }
.tx_page_btn_active { font-weight: 700; border-color: transparent; }

/* --- Admin Cards (products & categories) --- */
.sadm_card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 6px;
	transition: box-shadow 0.15s;
}
.sadm_card:hover {
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.sadm_card_img {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.sadm_cat_icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
	background: rgba(0,0,0,0.04);
}
.sadm_card_info {
	flex: 1;
	min-width: 0;
}
.sadm_card_name {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sadm_card_meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 11px;
	margin-top: 2px;
}
.sadm_card_price {
	text-align: right;
	min-width: 70px;
	flex-shrink: 0;
	font-size: 13px;
}
.sadm_card_status {
	flex-shrink: 0;
}
.sadm_badge_red {
	background: #ffebee;
	color: #c62828;
}
.sadm_card_actions {
	display: flex;
	gap: 4px;
	flex-shrink: 0;
}
.sadm_act_btn {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	background: rgba(0,0,0,0.05);
	transition: background 0.15s;
}
.sadm_act_btn:hover { background: rgba(0,0,0,0.1); }
.sadm_act_edit { color: #1976d2; }
.sadm_act_edit:hover { background: #e3f2fd; }
.sadm_act_del { color: #e53935; }
.sadm_act_del:hover { background: #ffebee; }


/* --- Dashboard Stats --- */
.store_dash_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.store_dash_card {
	flex: 0 1 calc(20% - 10px);
	min-width: 120px;
	padding: 14px 10px;
	border-radius: 10px;
	text-align: center;
}
.store_dash_card_icon {
	font-size: 18px;
	margin-bottom: 4px;
}
.store_dash_card_value {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}
.store_dash_card_label {
	font-size: 11px;
	opacity: 0.55;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Secondary mini stats */
.sdash_mini_grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}
.sdash_mini_card {
	padding: 12px 8px;
	border-radius: 10px;
	text-align: center;
}
.sdash_mini_icon {
	font-size: 16px;
	margin-bottom: 6px;
}
.sdash_mini_value {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}
.sdash_mini_label {
	font-size: 10px;
	opacity: 0.5;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-top: 2px;
}
.store_dash_gw_pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	margin-left: 6px;
}
.store_dash_gw_pill.active {
	background: rgba(76,175,80,0.12);
	color: #4caf50;
}

/* --- Buttons --- */

.green_btn {
	background: #4caf50;
	color: #fff;
}
.green_btn:hover {
	background: #43a047;
}
.red_btn {
	background: #f44336;
	color: #fff;
}
.red_btn:hover {
	background: #e53935;
}
.orange_btn {
	background: #ff9800;
	color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.sdash_mini_grid { grid-template-columns: repeat(3, 1fr); }
	.store_split_layout {
		display: block;
	}
	.store_main_col,
	.store_side_col {
		display: block;
		width: 100%;
		padding-right: 0;
	}
	.store_side_col {
		margin-top: 12px;
	}
	.store_dash_card {
		flex: 0 1 calc(33.333% - 12px);
	}
	.store_account_stat_card {
		flex: 1 1 calc(50% - 10px);
	}
	.store_quick_link {
		flex: 1 1 calc(50% - 8px);
	}
	.store_featured_name {
		font-size: 14px;
	}
	.store_featured_price {
		font-size: 16px;
	}
	#store_product_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.store_screenshot_thumb {
		width: 80px;
		height: 55px;
	}
	.store_dash_card {
		flex: 0 1 calc(50% - 12px);
	}
	.store_account_stat_card {
		flex: 1 1 100%;
	}
	.store_quick_link {
		flex: 1 1 100%;
	}
	#store_product_grid {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   User Purchases & Transaction History
   ======================================== */

/* Purchase Cards Grid */
#store_purchases_list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
.spur_card {
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s, box-shadow 0.18s;
}
.spur_card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.spur_card_top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 14px 10px;
	flex: 1;
}
.spur_card_img {
	width: 54px;
	height: 54px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}
.spur_card_body {
	flex: 1;
	min-width: 0;
}
.spur_card_name {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}
.spur_card_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 11px;
}
.spur_card_price {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}
.spur_status_badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.spur_badge_green { background: #e8f5e9; color: #2e7d32; }
.spur_badge_orange { background: #fff3e0; color: #e65100; }
.spur_card_actions {
	display: flex;
	border-top: 1px solid rgba(0,0,0,0.07);
}
.spur_action_btn {
	flex: 1;
	border: none;
	border-radius: 0;
	padding: 8px 4px;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	transition: opacity 0.15s;
}
.spur_action_btn + .spur_action_btn {
	border-left: 1px solid rgba(0,0,0,0.07);
}
.spur_action_btn:hover { opacity: 0.82; }

@media (max-width: 640px) {
	#store_purchases_list {
		grid-template-columns: 1fr;
	}
}
.store_transaction_item {
	padding: 10px 12px;
	margin-bottom: 5px;
	border-radius: 8px;
	overflow: hidden;
}
.store_transaction_item .btable {
	table-layout: fixed;
	width: 100%;
}
.store_transaction_item:hover {
	opacity: 0.92;
}
.store_purchases_summary {
	padding: 15px;
	border-radius: 8px;
	margin-top: 5px;
}
.store_stat_number {
	font-size: 20px;
}

/* ========================================
   Redesigned Store Home Page
   ======================================== */

/* Welcome Banner */
.shome_welcome {
	padding: 14px 20px;
	border-radius: 8px;
}
.shome_welcome_avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.shome_welcome_greeting {
	font-size: 11px;
	line-height: 1.2;
}
.shome_welcome_name {
	font-size: 15px;
	line-height: 1.3;
}

/* Stats Grid */
.shome_stats_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.shome_stat_card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}
.shome_stat_card:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
.shome_stat_icon_wrap {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}
.shome_stat_blue { background: rgba(33,150,243,0.12); color: #2196f3; }
.shome_stat_green { background: rgba(76,175,80,0.12); color: #4caf50; }
.shome_stat_purple { background: rgba(156,39,176,0.12); color: #9c27b0; }
.shome_stat_orange { background: rgba(255,152,0,0.12); color: #ff9800; }
.shome_stat_detail {
	min-width: 0;
}
.shome_stat_value {
	font-size: 16px;
	line-height: 1.2;
}
.shome_stat_label {
	font-size: 10px;
	margin-top: 1px;
}

/* Section Headers */
.shome_section_header {
	padding-bottom: 5px;
}

/* Library Grid */
.shome_library_grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.shome_library_card {
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.15s;
	max-width: 150px;
}
.shome_library_card:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.shome_library_img {
	position: relative;
	width: 100%;
	aspect-ratio: 5/4;
	overflow: hidden;
	background: rgba(0,0,0,0.04);
}
.shome_library_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.shome_library_dl_badge {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(76,175,80,0.9);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s;
}
.shome_library_card:hover .shome_library_dl_badge {
	opacity: 1;
}
.shome_library_dl_badge:hover {
	background: rgba(76,175,80,1);
}
.shome_library_body {
	padding: 5px 7px 3px;
}
.shome_library_name {
	font-size: 11px;
	line-height: 1.2;
}
.shome_library_meta {
	font-size: 9px;
	margin-top: 1px;
}
.shome_library_date {
	font-size: 9px;
	margin-top: 1px;
}
.shome_library_actions {
	display: flex;
	padding: 2px 6px 6px;
	gap: 2px;
}
.shome_lib_btn {
	flex: 1;
	text-align: center;
	padding: 3px 0;
	border-radius: 4px;
	font-size: 10px;
	cursor: pointer;
	transition: opacity 0.15s;
}
.shome_lib_btn:hover { opacity: 0.8; }
.shome_lib_info { background: rgba(33,150,243,0.1); color: #2196f3; }
.shome_lib_key { background: rgba(255,152,0,0.1); color: #ff9800; }
.shome_lib_dl { background: rgba(76,175,80,0.1); color: #4caf50; }

/* Activity Rows */
.shome_activity_row {
	padding: 10px 12px;
	margin-bottom: 4px;
	border-radius: 7px;
}
.shome_activity_icon {
	width: 34px;
}
.shome_act_dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}
.shome_act_green { background: rgba(76,175,80,0.12); color: #4caf50; }
.shome_act_red { background: rgba(229,57,53,0.12); color: #e53935; }
.shome_act_orange { background: rgba(255,152,0,0.12); color: #ff9800; }

/* Quick Actions */
.shome_quick_actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.shome_quick_btn {
	padding: 10px 12px;
	border-radius: 7px;
	font-size: 12px;
	cursor: pointer;
	transition: opacity 0.15s;
}
.shome_quick_btn:hover { opacity: 0.8; }
.shome_quick_btn i {
	margin-right: 8px;
	width: 16px;
	text-align: center;
}

/* Empty State */
.shome_empty {
	text-align: center;
	padding: 40px 20px;
	border-radius: 10px;
}
.shome_empty_icon {
	font-size: 40px;
	opacity: 0.2;
	margin-bottom: 10px;
}

/* License Key Modal */
/* --- Coupon --- */
.store_cart_coupon {
	padding: 14px 15px;
	border-top: 1px solid rgba(0,0,0,0.06);
}
.store_coupon_input_row {
	display: flex;
	gap: 8px;
	align-items: center;
}
/* full_input uses width/min-width 100% globally — shrink so Apply stays visible */
.store_coupon_input_row .full_input,
.store_cart_coupon_input {
	flex: 1 1 0%;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	box-sizing: border-box;
}
.store_coupon_input_row .reg_button {
	flex-shrink: 0;
}
.store_cart_coupon_input {
	font-size: 13px;
	text-transform: uppercase;
}
.store_coupon_badge {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px 12px;
	border-radius: 8px;
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 13px;
	font-weight: 600;
}
.store_coupon_remove {
	margin-left: auto;
	cursor: pointer;
	opacity: 0.65;
	font-size: 14px;
}
.store_coupon_remove:hover {
	opacity: 1;
}
.store_coupon_error {
	display: none;
	color: #e53935;
	padding-top: 6px;
}
.store_coupon_badge .store_muted {
	font-weight: 400;
	font-size: 12px;
}

/* --- Store Logs (slog_*) --- */
.slog_item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.slog_item:last-child { border-bottom: none; }
.slog_icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 12px;
	border-radius: 6px;
	background: rgba(0,0,0,0.04);
}
.slog_body {
	flex: 1;
	min-width: 0;
}
.slog_text {
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
}
.slog_time {
	margin-top: 2px;
}
.slog_meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; }
.slog_meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; word-break: break-all; }
.slog_meta .fa { opacity: .7; font-size: 10px; }
.slog_mono { font-family: monospace; font-size: 11px; }
.slog_text .sap_pill { margin-left: 4px; vertical-align: 1px; }
.slog_filters { margin-top: 10px; }
.slog_note { margin-top: 10px; display: flex; gap: 6px; align-items: baseline; }
.slog_clear_opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

@media (max-width: 480px) {
	.slog_item { padding: 8px 10px; gap: 8px; }
	.slog_text { font-size: 12px; }
	.slog_icon { width: 24px; height: 24px; font-size: 11px; }
}

/* --- License Modal (lm_*) --- */
.lm_wrap {
	max-height: 70vh;
	overflow-y: auto;
}
.lm_header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 14px;
	border-bottom: 1px solid rgba(0,0,0,0.07);
}
.lm_header_icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
	background: linear-gradient(135deg, rgba(33,150,243,0.12), rgba(76,175,80,0.12));
	color: var(--theme-color, #607d8b);
}
.lm_empty {
	padding: 30px 20px;
	text-align: center;
	color: rgba(0,0,0,0.35);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}
.lm_empty i { font-size: 24px; }
.lm_list {
	padding: 12px 16px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lm_card {
	border-radius: 10px;
	padding: 12px;
}
.lm_key_row {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
}
.lm_key_input {
	flex: 1;
	font-family: 'Courier New', monospace;
	font-size: 11px;
	letter-spacing: 0.3px;
	background: rgba(0,0,0,0.03);
	border-radius: 6px;
	padding: 7px 10px;
}
.lm_copy_btn {
	flex-shrink: 0;
	padding: 0 10px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 13px;
}
.lm_domain_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
}
.lm_domain_display {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.lm_domain_display i {
	font-size: 11px;
	flex-shrink: 0;
}
.lm_domain_display span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lm_domain_btn {
	background: none;
	border: none;
	color: var(--theme-color, #607d8b);
	font-size: 11px;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 4px;
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.15s;
}
.lm_domain_btn:hover { opacity: 1; }
.lm_domain_edit {
	margin-bottom: 8px;
}
.lm_domain_input_row {
	display: flex;
	gap: 6px;
	align-items: center;
}
.lm_domain_field {
	flex: 1;
	font-size: 12px;
}
.lm_meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: rgba(0,0,0,0.4);
}
.lm_status {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 4px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.lm_status_active { background: #e8f5e9; color: #2e7d32; }
.lm_status_inactive { background: #fff3e0; color: #e65100; }
.lm_status_revoked { background: #ffebee; color: #c62828; }

@media (max-width: 480px) {
	.lm_list { padding: 10px 12px 6px; }
	.lm_card { padding: 10px; }
	.lm_header { padding: 14px 14px 12px; }
	.lm_domain_input_row { flex-wrap: wrap; }
	.lm_domain_field { min-width: 100%; }
	.lm_key_input { font-size: 10px; }
}

/* Download Modal */
.shome_dl_modal {
	text-align: center;
	padding: 30px 25px 25px;
}
.shome_dl_icon {
	font-size: 44px;
	color: #2196f3;
	margin-bottom: 10px;
}
.shome_dl_progress_wrap {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: rgba(0,0,0,0.08);
	margin: 15px 0 8px;
	overflow: hidden;
}
.shome_dl_progress_bar {
	height: 100%;
	width: 60%;
	border-radius: 3px;
	background: linear-gradient(90deg, #2196f3, #4caf50);
	transition: width 0.4s ease;
	animation: shome_dl_pulse 1.5s ease-in-out infinite;
}
@keyframes shome_dl_pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 900px) {
	.shome_stats_grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.shome_library_grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.shome_library_card {
		max-width: none;
	}
}
@media (max-width: 600px) {
	.shome_stats_grid {
		grid-template-columns: 1fr 1fr;
	}
	.shome_stat_card {
		padding: 8px;
		gap: 8px;
	}
	.shome_stat_icon_wrap {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	.shome_stat_value {
		font-size: 14px;
	}
	.shome_library_grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.shome_library_card {
		max-width: none;
	}
	.shome_welcome {
		padding: 12px 15px;
	}
	.shome_welcome_name {
		font-size: 14px;
	}
	.shome_welcome_avatar {
		width: 34px;
		height: 34px;
	}
}

/* ============================================
   Store Product Form Modal (spf_*)
   ============================================ */

/* Negate parent .modal_pad so form fills the modal edge-to-edge */
.modal_pad:has(.spf_modal_head) {
	padding: 0;
}
.modal_pad:has(.spf_modal_head) > .modal_close {
	display: none;
}

.spf_modal_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
	flex-shrink: 0;
}
.spf_head_title {
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}
.spf_head_close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 7px;
	border-radius: 6px;
	color: inherit;
	opacity: 0.6;
	font-size: 15px;
	transition: opacity 0.15s, background 0.15s;
}
.spf_head_close:hover { opacity: 1; background: rgba(0,0,0,0.07); }

.spf_modal_body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.spf_modal_foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
	flex-shrink: 0;
}

/* Thank-you modal after checkout (sty_) — box/store_thanks.php */
.sty_head { position: relative; justify-content: center; text-align: center; }
.sty_head .spf_head_close { position: absolute; top: 12px; right: 12px; }
.sty_hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 24px 4px; }
.sty_check {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: #fff;
	background: #43a047;
	box-shadow: 0 0 0 8px rgba(67,160,71,0.15);
	margin-bottom: 6px;
	animation: styPop .45s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes styPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sty_title { font-size: 19px; }
.sty_items { display: flex; flex-direction: column; gap: 8px; }
.sty_item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.sty_img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: rgba(128,128,128,0.1); }
.sty_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sty_name { font-size: 14px; }
.sty_meta { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.sty_meta:empty { display: none; }
.sty_key { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; min-width: 0; }
.sty_key .fa-key { opacity: .55; }
.sty_key code { font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sty_copy { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 2px 4px; }
.sty_copy:hover { opacity: 1; color: #03add8; }
.sty_side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.sty_price { font-size: 14px; }
.sty_dl { padding: 6px 12px; font-size: 12px; }
.sty_total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,0.15); font-size: 15px; }
.sty_total .bold { font-size: 18px; }
.sty_note { display: flex; gap: 6px; align-items: baseline; margin-top: 10px; word-break: break-word; }
.sty_foot { justify-content: space-between; }
@media (max-width: 480px) {
	.sty_item { flex-wrap: wrap; }
	.sty_side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
	.sty_foot { flex-direction: column-reverse; align-items: stretch; }
	.sty_foot button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.sty_check { animation: none; }
}

/* Identity row */
.spf_identity {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 18px;
}
.spf_img_upload {
	position: relative;
	width: 96px;
	height: 96px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	border: 2px dashed rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.03);
	transition: border-color 0.2s;
}
.spf_img_upload:hover { border-color: var(--theme-color, #607d8b); }
.spf_img_preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}
.spf_img_placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: rgba(0,0,0,0.35);
	font-size: 11px;
}
.spf_img_placeholder i { font-size: 22px; }
.spf_img_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	opacity: 0;
	transition: opacity 0.2s;
	border-radius: 8px;
}
.spf_img_upload:hover .spf_img_overlay { opacity: 1; }
.spf_core_fields {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Sections */
.spf_section {
	border-top: 1px solid rgba(0,0,0,0.07);
	padding-top: 14px;
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.spf_section_head {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.45;
}
.spf_two_col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.spf_required { color: #e53935; margin-left: 2px; }
.spf_hint { font-size: 11px; opacity: 0.55; margin-left: 4px; font-weight: 400; }

/* Textareas */
.spf_textarea { min-height: 80px; resize: vertical; }
.spf_textarea_sm { min-height: 56px; resize: vertical; }

/* File upload label button */
.spf_file_label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.12);
	cursor: pointer;
	font-size: 13px;
	background: rgba(0,0,0,0.03);
	transition: background 0.15s, border-color 0.15s;
	user-select: none;
	width: fit-content;
	overflow: hidden;
}
.spf_file_label:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.2); }
.spf_file_label i { opacity: 0.6; }

/* Screenshot thumbs */
.spf_screen_thumb {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

/* --- Admin Cards Mobile --- */
@media (max-width: 640px) {
	.sadm_card {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px;
	}
	.sadm_card_img {
		width: 40px;
		height: 40px;
	}
	.sadm_card_info {
		flex: 1 1 calc(100% - 52px);
		min-width: 0;
	}
	.sadm_card_price {
		min-width: auto;
		font-size: 12px;
	}
	.sadm_card_actions {
		gap: 6px;
	}
	.sadm_act_btn {
		width: 34px;
		height: 34px;
	}
}
@media (max-width: 480px) {
	.sadm_card {
		display: grid;
		grid-template-columns: 38px 1fr auto;
		grid-template-rows: auto auto;
		gap: 6px 10px;
		padding: 12px;
		align-items: center;
	}
	.sadm_card_img {
		width: 38px;
		height: 38px;
		border-radius: 6px;
		grid-row: 1 / 3;
	}
	.sadm_card_info {
		grid-column: 2;
		grid-row: 1;
	}
	.sadm_card_name {
		font-size: 13px;
	}
	.sadm_card_meta {
		gap: 6px;
		font-size: 10px;
	}
	.sadm_card_price {
		grid-column: 3;
		grid-row: 1;
		min-width: auto;
		font-size: 12px;
	}
	.sadm_card_status {
		grid-column: 2;
		grid-row: 2;
	}
	.sadm_card_actions {
		grid-column: 3;
		grid-row: 2;
		justify-self: end;
	}
	.sadm_act_btn {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
	.store_filter_chips {
		gap: 6px;
	}
	.store_chip {
		font-size: 11px;
		padding: 4px 10px;
	}
}

/* --- Product Form Modal Mobile --- */
@media (max-width: 700px) {
	.spf_modal_body { padding: 14px; }
	.spf_two_col { gap: 10px; }
	.spf_section { padding-top: 12px; margin-top: 4px; gap: 8px; }
}
@media (max-width: 520px) {
	.spf_identity {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.spf_img_upload { width: 80px; height: 80px; }
	.spf_two_col { grid-template-columns: 1fr; }
	.spf_modal_body { padding: 12px; gap: 0; }
	.spf_modal_head { padding: 12px 14px; }
	.spf_head_title { font-size: 14px; }
	.spf_modal_foot {
		padding: 10px 14px;
		flex-direction: column;
		gap: 8px;
	}
	.spf_modal_foot .reg_button {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
	.spf_file_label {
		width: 100%;
		justify-content: center;
		padding: 10px 14px;
	}
	.spf_textarea { min-height: 70px; }
	.spf_textarea_sm { min-height: 48px; }
	.spf_screen_thumb {
		width: 64px;
		height: 48px;
	}
	.store_screens_grid { gap: 6px; }
}
@media (max-width: 380px) {
	.spf_modal_body { padding: 10px; }
	.spf_img_upload { width: 68px; height: 68px; }
	.spf_section { padding-top: 10px; }
	.sadm_card {
		grid-template-columns: 34px 1fr auto;
		padding: 10px;
		gap: 4px 8px;
	}
	.sadm_card_img { width: 34px; height: 34px; }
	.sadm_act_btn { width: 28px; height: 28px; font-size: 11px; }
}

/* Transaction rows: undo product-card grid from .sadm_card mobile rules */
@media (max-width: 480px) {
	.sadm_card.tx_row {
		display: flex !important;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		grid-template-columns: none !important;
		grid-template-rows: none !important;
	}
	.sadm_card.tx_row .sadm_card_img,
	.sadm_card.tx_row .tx_row_avatar {
		grid-row: auto !important;
		grid-column: auto !important;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		object-fit: cover;
	}
	.sadm_card.tx_row .sadm_card_info {
		grid-column: auto !important;
		grid-row: auto !important;
		flex: 1;
		min-width: 0;
	}
}
@media (max-width: 380px) {
	.sadm_card.tx_row {
		grid-template-columns: none !important;
	}
	.sadm_card.tx_row .sadm_card_img,
	.sadm_card.tx_row .tx_row_avatar {
		width: 36px;
		height: 36px;
	}
}

/* ============================================
   All Products page (sap_)
   ============================================ */
.sap_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.sap_head_title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.sap_head_icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}
.sap_head_text { min-width: 0; }
.sap_head_name {
	font-size: 18px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sap_head_sub { margin-top: 2px; }

.sap_search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 280px;
	min-width: 180px;
	height: 38px;
	padding: 0 6px 0 14px;
	border-radius: 20px;
	border: 1px solid transparent;
	transition: border-color .15s, box-shadow .15s;
}
.sap_search:focus-within {
	border-color: #03add8;
	box-shadow: 0 0 0 3px rgba(3,173,216,0.15);
}
.sap_search input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	color: inherit;
	font-size: 13px;
	height: 100%;
	padding: 0;
}
.sap_search_clear {
	display: none;
	width: 26px;
	height: 26px;
	border: none;
	border-radius: 50%;
	background: rgba(128,128,128,0.18);
	color: inherit;
	font-size: 11px;
	cursor: pointer;
	flex-shrink: 0;
}
.sap_search_filled .sap_search_clear { display: block; }

.sap_toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.sap_cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	flex: 1 1 260px;
}
.sap_cats .store_chip { white-space: nowrap; }
.sap_sort {
	display: inline-flex;
	flex-shrink: 0;
	margin-left: auto;
	padding: 3px;
	gap: 2px;
	border-radius: 20px;
	background: rgba(128,128,128,0.1);
}
.sap_sort_btn {
	border: none;
	background: transparent;
	color: inherit;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 16px;
	cursor: pointer;
	white-space: nowrap;
	opacity: 0.7;
	transition: background .15s, opacity .15s, color .15s;
}
.sap_sort_btn:hover { opacity: 1; }
.sap_sort_active {
	background: #03add8;
	color: #fff;
	opacity: 1;
}

/* Grid + cards */
#sap_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.sap_card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.sap_card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0,0,0,0.12);
	border-color: rgba(3,173,216,0.45);
}
.sap_card_media {
	position: relative;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: hidden;
}
.sap_card_img {
	max-width: 70%;
	max-height: 70%;
	object-fit: contain;
	border-radius: 10px;
	transition: transform .25s;
}
.sap_card:hover .sap_card_img { transform: scale(1.06); }
.sap_card_badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	gap: 5px;
}
.sap_badge {
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #fff;
}
.sap_badge_sale { background: #e53935; }
.sap_badge_new { background: #03add8; }

/* Sale countdown (storeSaleTimer): card badge + block under product prices */
.store_sale_timer { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sap_badge_timer { background: rgba(0,0,0,0.62); text-transform: none; letter-spacing: 0; }
.store_sale_timer_block {
	margin-top: 8px;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(229,57,53,0.1);
	color: #e53935;
}
.sap_badge_timer.store_sale_soon { background: #e53935; }
.store_sale_timer_block.store_sale_soon { background: #e53935; color: #fff; }
.store_sale_timer.store_sale_over { opacity: .6; }
.sap_owned_flag {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	background: #43a047;
	color: #fff;
}
.sap_card_body {
	flex: 1;
	padding: 12px 14px 4px;
	min-width: 0;
}
.sap_card_cat {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sap_card_name {
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sap_card_name:hover { color: #03add8; }
.sap_card_blurb {
	margin-top: 6px;
	line-height: 1.45;
	opacity: 0.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sap_card_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 10px;
	font-size: 11px;
	opacity: 0.55;
}
.sap_card_meta i { margin-right: 2px; }
.sap_card_owner {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sap_card_foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 14px 14px;
}
.sap_card_price {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}
.sap_card_price .store_price_old { margin: 0; font-size: 11px; }
.sap_price_now { font-size: 17px; }
.sap_card_actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.sap_icon_btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.sap_icon_btn:hover { border-color: #03add8; color: #03add8; }
.sap_buy_btn {
	height: 34px;
	padding: 0 14px;
	border: none;
	border-radius: 17px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	transition: opacity .15s, transform .1s;
}
.sap_buy_btn:hover { opacity: 0.88; }
a.sap_buy_btn, a.sap_buy_btn:hover, a.sap_outline_btn, a.sap_outline_btn:hover { text-decoration: none; }
.sap_buy_btn:active { transform: scale(0.96); }
.sap_buy_btn:disabled { opacity: 0.6; cursor: wait; }
.sap_buy_incart {
	background: rgba(3,173,216,0.12);
	color: #03add8;
}
.sap_buy_owned {
	background: rgba(67,160,71,0.14);
	color: #43a047;
}

@media (max-width: 900px) {
	/* nowrap: a wrapping column sizes its width to the widest child, so the chip row could never scroll */
	.sap_toolbar {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
	}
	.sap_sort { align-self: flex-start; margin-left: 0; }
	.sap_cats { flex: 0 0 auto; max-width: 100%; }
}
@media (max-width: 640px) {
	.sap_search { flex: 1 1 100%; }
	.sap_cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 0 -2px;
		padding: 0 2px 2px;
	}
	.sap_cats::-webkit-scrollbar { display: none; }
	.sap_sort {
		align-self: stretch;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.sap_sort::-webkit-scrollbar { display: none; }
	.sap_sort_btn { flex: 1; padding: 6px 8px; }
	#sap_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.sap_card_body { padding: 10px 10px 2px; }
	.sap_card_blurb { display: none; }
	.sap_card_foot {
		padding: 10px;
		flex-wrap: wrap;
	}
	.sap_card_actions .sap_icon_btn:first-child { display: none; }
	.sap_buy_btn { padding: 0 12px; }
}
@media (max-width: 380px) {
	#sap_grid { grid-template-columns: 1fr; }
}

/* --- Shared store UI (sap_) used by Home, FAQ, Support --- */
.sap_back_btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
	flex-shrink: 0;
	transition: border-color .15s, color .15s;
}
.sap_back_btn:hover { border-color: #03add8; color: #03add8; }
.sap_outline_btn {
	height: 34px;
	padding: 0 14px;
	border-radius: 17px;
	border: 1px solid rgba(128,128,128,0.3);
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.sap_outline_btn:hover { border-color: #03add8; color: #03add8; }
.sap_btn_full {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
	box-sizing: border-box;
}
.sap_count_dot {
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #e53935;
	color: #fff;
	font-size: 10px;
	text-align: center;
	box-sizing: border-box;
}
.sap_tab_count {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	margin-left: 2px;
	border-radius: 9px;
	background: rgba(128,128,128,0.2);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}
.sap_sort_active .sap_tab_count { background: rgba(255,255,255,0.25); }
.sap_tabs .sap_sort_btn { padding: 7px 14px; font-size: 13px; }

.sap_pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .2px;
	white-space: nowrap;
}
.sap_pill_green { background: rgba(67,160,71,0.15); color: #43a047; }
.sap_pill_orange { background: rgba(251,140,0,0.15); color: #fb8c00; }
.sap_pill_red { background: rgba(229,57,53,0.14); color: #e53935; }
.sap_pill_grey { background: rgba(128,128,128,0.16); color: inherit; opacity: .75; }
.sap_card_media .sap_pill_orange { background: #fb8c00; color: #fff; }

.sap_tint_blue { background: rgba(3,173,216,0.14); color: #03add8; }
.sap_tint_green { background: rgba(67,160,71,0.14); color: #43a047; }
.sap_tint_purple { background: rgba(142,36,170,0.14); color: #8e24aa; }

/* Sidebar panels */
.sap_panel { padding: 14px; }
.sap_panel #store_online_box .hpad10 { padding-left: 0; padding-right: 0; }
.sap_panel_title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 4px;
}
.sap_panel_text { margin: 0 0 6px; line-height: 1.45; }
.sap_panel_warn { border-left: 3px solid #fb8c00; }
.sap_panel_warn .sap_panel_title { color: #fb8c00; }
.sap_panel_link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-top: 6px;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	transition: opacity .15s;
}
.sap_panel_link span { flex: 1; }
.sap_panel_link:hover { opacity: .8; }
.sap_heart { color: #e53935; }

/* --- Home (shx_) --- */
.shx_hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}
.shx_hero_user {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.shx_hero_avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(3,173,216,0.25);
}
.shx_hero_actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.shx_stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.shx_stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	min-width: 0;
}
.shx_stat_icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}
.shx_stat > div:last-child { min-width: 0; }
.shx_stat_value { font-size: 17px; line-height: 1.2; }
.shx_stat .text_xsmall,
.shx_stat_value {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#sap_grid.sap_grid_lib { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sap_grid_lib .sap_card_media { aspect-ratio: 2 / 1; }

/* Store reviews (srv_) */
.srv_stars { display: inline-flex; gap: 2px; color: rgba(128,128,128,0.45); font-size: 13px; white-space: nowrap; }
.srv_stars .srv_on { color: #f5a623; }
.srv_stars_lg { font-size: 17px; gap: 3px; }
.srv_score { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.srv_score_num { font-size: 34px; font-weight: 800; line-height: 1; }
.srv_score_meta { display: flex; flex-direction: column; gap: 3px; }
.srv_section_title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 700; }

/* Composer + star picker (radios in reverse so CSS can light every star up to the hovered one) */
.srv_compose { display: flex; flex-direction: column; gap: 14px; }
.srv_compose_head { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.srv_pick_row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.srv_picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.srv_picker input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.srv_picker label {
	font-size: 30px;
	line-height: 1;
	color: rgba(128,128,128,0.35);
	cursor: pointer;
	transition: color .12s, transform .12s;
}
.srv_picker label:hover,
.srv_picker label:hover ~ label,
.srv_picker input:checked ~ label { color: #f5a623; }
.srv_picker label:hover { transform: scale(1.12); }
.srv_picker input:focus-visible + label { outline: 2px solid #03add8; outline-offset: 3px; border-radius: 4px; }
.srv_pick_word { font-size: 13px; font-weight: 600; opacity: .5; }
.srv_pick_word.srv_pick_set { opacity: 1; color: #e69500; }
.srv_compose_foot { display: flex; justify-content: flex-end; gap: 8px; }
.srv_compose_foot .sap_buy_btn,
.srv_compose_foot .sap_outline_btn { height: 38px; padding: 0 18px; border-radius: 19px; }

/* Review cards */
.srv_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 14px; }
.srv_card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px;
	border-radius: 14px;
	min-width: 0;
}
.srv_mine { border-color: rgba(3,173,216,0.45); }
.srv_head { display: flex; align-items: center; gap: 12px; }
.srv_avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.srv_who { flex: 1; min-width: 0; }
.srv_name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv_you { padding: 1px 7px; border-radius: 8px; background: rgba(3,173,216,0.14); color: #03add8; font-size: 10px; font-weight: 800; vertical-align: middle; }
.srv_verified { font-size: 11px; opacity: .6; margin-top: 2px; }
.srv_verified .fa { color: #43a047; }
.srv_title { font-size: 14px; font-weight: 700; }
.srv_comment { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; opacity: .9; }
.srv_reply {
	padding: 10px 14px;
	border-radius: 10px;
	border-left: 3px solid #03add8;
	background: rgba(3,173,216,0.07);
}
.srv_reply_head { font-size: 11.5px; font-weight: 700; color: #03add8; margin-bottom: 4px; }
.srv_reply_head span { font-weight: 400; opacity: .7; }
.srv_reply_body { font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.srv_actions { display: flex; justify-content: flex-end; gap: 8px; }
.srv_actions .sap_outline_btn { height: 32px; padding: 0 12px; }
.srv_actions .sap_icon_btn { width: 32px; height: 32px; }
.srv_banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.45;
}
.srv_banner_pending { background: rgba(245,124,0,0.1); color: #e67000; }
.srv_banner_rejected { background: rgba(128,128,128,0.12); }
.srv_toolbar { margin-top: 0; padding-top: 0; border-top: none; }

/* Admin moderation rows */
.srv_alist { display: flex; flex-direction: column; gap: 10px; }
.srv_arow {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 16px;
	border-radius: 12px;
}
.srv_arow.srv_status_pending { border-left: 3px solid #f57c00; }
.srv_arow_who { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.srv_arow_body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.srv_arow_top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srv_arow_actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.srv_arow_actions .sap_buy_btn,
.srv_arow_actions .sap_outline_btn { height: 32px; padding: 0 12px; }
.srv_arow_actions .sap_icon_btn { width: 32px; height: 32px; }
.srv_reply_quote { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(128,128,128,0.05); }
.sad_del_text { color: #e53935; margin-right: auto; }
.shx_stats.srv_stats4 { grid-template-columns: repeat(4, 1fr); }
/* Pending count on the admin "Review queue" menu item (the menu's dot, widened into a pill) */
#store_review_badge.fnotify {
	width: auto;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #f57c00;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

@media (max-width: 640px) {
	.srv_list { grid-template-columns: 1fr; }
	.shx_stats.srv_stats4 { grid-template-columns: repeat(2, 1fr); }
	.srv_arow { grid-template-columns: 1fr; gap: 10px; }
	.srv_score_num { font-size: 26px; }
	.srv_arow_actions .sap_outline_btn span,
	.srv_arow_actions .sap_buy_btn span { display: none; }
}

/* Skeleton loading (ssk_): page-shaped placeholders while products load, and a shimmer behind
   product images until they arrive. Theme-neutral tints, so Lite and Dark need no extra rules. */
@keyframes ssk_shimmer {
	0% { background-position: 150% 0; }
	100% { background-position: -50% 0; }
}
.ssk_bone,
.ssk_loading {
	background-color: rgba(128,128,128,0.14);
	background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 70%);
	background-size: 200% 100%;
	background-repeat: no-repeat;
	animation: ssk_shimmer 1.3s ease-in-out infinite;
}
.ssk_bone { display: block; border-radius: 8px; }
.ssk_line { height: 11px; border-radius: 6px; width: 100%; }
.ssk_line + .ssk_line { margin-top: 8px; }
.ssk_line_lg { height: 16px; }
.ssk_w30 { width: 30%; }
.ssk_w50 { width: 50%; }
.ssk_w70 { width: 70%; }
.ssk_w90 { width: 90%; }
.ssk_circle { border-radius: 50%; flex-shrink: 0; }
.ssk_btn { height: 34px; width: 88px; border-radius: 17px; flex-shrink: 0; }
.ssk_btn_sq { width: 34px; }
.ssk_btn_full { width: 100%; height: 40px; border-radius: 20px; }
.ssk_btn_full + .ssk_btn_full { margin-top: 10px; }
.ssk_pill { height: 28px; width: 76px; border-radius: 14px; flex-shrink: 0; }
.ssk_icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.ssk_row { display: flex; align-items: center; gap: 10px; }
.ssk_row_wrap { flex-wrap: wrap; }
.ssk_grow { flex: 1; min-width: 0; }
.ssk_gap { margin-top: 16px; }

/* Grid of card shells (mirrors #sap_grid without reusing its id) */
.ssk_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.ssk_grid.sap_grid_lib { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ssk_grid_3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ssk_card,
.ssk_card:hover { transform: none; box-shadow: none; cursor: default; }
.ssk_card .sap_card_media { cursor: default; border-radius: 0; animation-delay: .1s; }
.ssk_card .sap_card_body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.ssk_card .sap_card_body .ssk_line + .ssk_line { margin-top: 0; }
.ssk_card .sap_card_foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ssk_hero_img { width: 132px; height: 132px; border-radius: 22px; }
.ssk_search { width: 280px; max-width: 45%; height: 38px; border-radius: 19px; }
.ssk_modal_img { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; }

/* Image shimmer: the container shimmers, the image fades in once loaded */
.ssk_loading img { opacity: 0; }
.sap_card_media img,
.spg_hero_img img,
.sdc_media img { transition: opacity .3s ease; }

/* The page being replaced can't be clicked */
#page_wrapper.ssk_busy { pointer-events: none; }
.ssk_ses_card { padding: 12px; }
.ssk_sfq_list { display: flex; flex-direction: column; gap: 8px; }
.ssk_shd_title { flex: 1 1 320px; min-width: 0; }
.ssk_shd_btn { border-radius: 10px; }
@media (max-width: 768px) {
	.ssk_shd_btn { width: 46px !important; }
}
.ssk_ses_card:hover { border-color: rgba(128,128,128,0.16); box-shadow: none; }
.shd_topic_card.ssk_topic,
.shd_topic_card.ssk_topic:hover { cursor: default; transform: none; box-shadow: none; }
@media (max-width: 600px) {
	.ssk_ses_card .ssk_btn_full { height: 30px !important; }
}

@media (max-width: 640px) {
	.ssk_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ssk_card .sap_card_body .ssk_blurb { display: none; }
	.ssk_search { width: 100%; max-width: none; }
	.ssk_hero_img { width: 96px; height: 96px; }
}
@media (max-width: 380px) {
	.ssk_grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ssk_bone,
	.ssk_loading { animation: none; background-image: none; }
}

/* Transactions list */
#sap_grid.sap_tx_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sap_tx_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	transition: border-color .15s;
}
.sap_tx_row:hover { border-color: rgba(3,173,216,0.45); }
.sap_tx_icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(3,173,216,0.12);
	color: #03add8;
	font-size: 15px;
	flex-shrink: 0;
}
.sap_tx_main { flex: 1; min-width: 0; }
.sap_tx_amount {
	text-align: right;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

/* --- FAQ (sfq_) --- */
#sap_grid.sfq_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sfq_item {
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.sfq_item:hover { border-color: rgba(3,173,216,0.35); }
.sfq_open {
	border-color: rgba(3,173,216,0.5);
	box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.sfq_q {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	user-select: none;
}
.sfq_q_icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(3,173,216,0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}
.sfq_q_text { flex: 1; font-size: 14px; line-height: 1.35; }
.sfq_chev { transition: transform .2s; font-size: 12px; }
.sfq_open .sfq_chev { transform: rotate(180deg); }
.sfq_a {
	display: none;
	padding: 0 16px 16px 58px;
	line-height: 1.6;
	opacity: .85;
}
#sap_grid.sfq_tuts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sfq_tut_media { text-decoration: none; color: inherit; }
.sfq_tut_thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s;
}
.sap_card:hover .sfq_tut_thumb { transform: scale(1.04); }
.sfq_play {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -23px 0 0 -23px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	padding-left: 3px;
	box-sizing: border-box;
	transition: background .15s, transform .15s;
}
.sfq_tut_media:hover .sfq_play { background: #03add8; transform: scale(1.08); }
.sfq_tut_text {
	margin-top: 6px;
	line-height: 1.5;
	opacity: .7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sfq_tut_text.sfq_tut_open { display: block; }
.sfq_more {
	display: inline-block;
	margin-top: 4px;
	cursor: pointer;
	font-weight: 600;
}
.sfq_tuts .sap_card_body { padding-bottom: 12px; }

/* --- Support helpdesk (shd_) --- */
.shd {
	display: grid;
	grid-template-columns: 220px 340px minmax(0, 1fr) 290px;
	height: calc(100vh - 95px);
	min-height: 560px;
	padding: 0 !important;
	overflow: hidden;
	position: relative;
}
.shd_customer {
	grid-template-columns: 340px minmax(0, 1fr);
	height: min(720px, calc(100vh - 110px));
	min-height: 520px;
}
.shd_rail,
.shd_list,
.shd_conv,
.shd_side {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
.shd_rail,
.shd_list { border-right: 1px solid rgba(128,128,128,0.15); }
.shd_side { border-left: 1px solid rgba(128,128,128,0.15); }

/* Buttons */
.shd_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 36px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s, opacity .15s, transform .1s;
}
.shd_btn:active { transform: scale(.97); }
.shd_btn:disabled { opacity: .55; cursor: default; }
.shd_btn_ghost {
	background: transparent;
	border-color: rgba(128,128,128,0.25);
	color: inherit;
}
.shd_btn_ghost:hover { border-color: #03add8; color: #03add8; }
.shd_btn_full { width: 100%; }
.shd_icon_btn {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 10px;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 14px;
	opacity: .65;
	cursor: pointer;
	transition: background .15s, opacity .15s, color .15s;
}
.shd_icon_btn:hover { background: rgba(128,128,128,0.12); opacity: 1; }
.shd_danger:hover { background: rgba(229,57,53,0.12); color: #e53935; }

/* Status label: coloured dot + text */
.shd_st {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.shd_st::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.shd_st_open { color: #f57c00; }
.shd_st_awaiting { color: #039be5; }
.shd_st_resolved { color: #43a047; }
.shd_st_closed { color: inherit; opacity: .55; }

/* Rail: views + topics */
.shd_rail {
	padding: 16px 12px 12px;
	gap: 2px;
	overflow-y: auto;
	background: rgba(128,128,128,0.04);
}
.shd_rail_head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 6px 16px;
}
.shd_brand {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.shd_rail_text { min-width: 0; }
.shd_rail_title { font-size: 15px; font-weight: 800; }
.shd_rail_sub { font-size: 11px; opacity: .6; margin-top: 1px; }
.shd_rail_label {
	padding: 18px 10px 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	opacity: .5;
}
.shd_nav { display: flex; flex-direction: column; gap: 2px; }
.shd_nav_item {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 9px 10px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.shd_nav_item > i { width: 16px; text-align: center; opacity: .6; font-size: 13px; }
.shd_nav_item:hover { background: rgba(128,128,128,0.1); }
.shd_nav_label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shd_nav_count { font-size: 11px; font-weight: 700; opacity: .55; }
.shd_nav_on,
.shd_nav_on:hover { background: rgba(3,173,216,0.13); color: #03add8; font-weight: 700; }
.shd_nav_on > i,
.shd_nav_on .shd_nav_count { opacity: 1; }
#shd_views .shd_nav_item[data-filter="open"] .shd_nav_count:not(:empty) {
	min-width: 20px;
	padding: 1px 6px;
	border-radius: 10px;
	background: #f57c00;
	color: #fff;
	opacity: 1;
	text-align: center;
}
.shd_rail_refresh {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	opacity: .6;
	cursor: pointer;
}
.shd_rail_refresh:hover { opacity: 1; background: rgba(128,128,128,0.1); }

/* Ticket list */
.shd_list_head {
	padding: 16px 16px 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-bottom: 1px solid rgba(128,128,128,0.12);
}
.shd_list_title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-size: 17px;
	font-weight: 800;
}
.shd_list_total { font-size: 12px; font-weight: 600; opacity: .5; }
.shd_search {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 12px;
	border-radius: 10px;
	background: rgba(128,128,128,0.1);
	border: 1px solid transparent;
	transition: border-color .15s, box-shadow .15s;
}
.shd_search:focus-within { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.14); }
.shd_search i { opacity: .45; font-size: 12px; }
.shd_search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	outline: none;
	color: inherit;
	font-size: 13px;
	font-family: inherit;
}
.shd_tabs {
	display: flex;
	padding: 3px;
	gap: 2px;
	border-radius: 10px;
	background: rgba(128,128,128,0.1);
}
.shd_tab {
	flex: 1;
	padding: 7px 8px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	opacity: .65;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.shd_tab b { margin-left: 3px; font-weight: 700; opacity: .6; }
.shd_tab_on { opacity: 1; background: var(--sdb-surface, #fff); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.shd_items {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.shd_items:empty { display: none; }
.shd_item {
	position: relative;
	display: flex;
	gap: 11px;
	padding: 12px 12px 12px 14px;
	border-radius: 12px;
	cursor: pointer;
	transition: background .12s;
}
.shd_item:hover { background: rgba(128,128,128,0.08); }
.shd_item::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 14px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #03add8;
	opacity: 0;
}
.shd_unread::before { opacity: 1; }
.shd_active,
.shd_active:hover { background: rgba(3,173,216,0.11); }
.shd_active::after {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: #03add8;
}
.shd_item_av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.shd_item_ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	background: rgba(3,173,216,0.12);
	color: #03add8;
}
.shd_item_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shd_item_row { display: flex; align-items: center; gap: 8px; }
.shd_item_name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.shd_item_time { flex-shrink: 0; font-size: 11px; opacity: .5; }
.shd_item_subject { font-size: 12px; font-weight: 600; opacity: .75; }
.shd_item_subject i { width: 14px; font-size: 11px; opacity: .7; }
.shd_item_preview { font-size: 12px; opacity: .6; }
.shd_item_foot { margin-top: 3px; }
.shd_item_id { font-size: 11px; opacity: .45; }
.shd_unread .shd_item_name { font-weight: 800; }
.shd_unread .shd_item_preview { opacity: .9; }
.shd_unread .shd_item_time { color: #03add8; opacity: 1; font-weight: 700; }
.shd_age {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 8px;
	background: rgba(128,128,128,0.12);
	font-size: 10px;
	font-weight: 700;
}
.shd_age_late { background: rgba(229,57,53,0.12); color: #e53935; }

/* Conversation */
.shd_conv_wrap { flex: 1; min-height: 0; flex-direction: column; }
.shd_conv_head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(128,128,128,0.12);
}
.shd_back { display: none; }
.shd_conv_ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	background: rgba(3,173,216,0.12);
	color: #03add8;
}
.shd_conv_title { flex: 1; min-width: 0; }
.shd_conv_name { font-size: 15px; font-weight: 800; }
.shd_conv_sub { font-size: 12px; opacity: .55; margin-top: 2px; }

/* Status stepper */
.shd_steps {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-bottom: 1px solid rgba(128,128,128,0.12);
	background: rgba(128,128,128,0.035);
}
.shd_step {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 9px 5px 5px;
	border: none;
	border-radius: 18px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	white-space: nowrap;
	opacity: .5;
}
button.shd_step { cursor: pointer; transition: background .15s, opacity .15s; }
button.shd_step:hover { opacity: 1; background: rgba(128,128,128,0.1); }
.shd_step_dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	background: rgba(128,128,128,0.15);
}
.shd_step_line { flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: rgba(128,128,128,0.2); }
.shd_step_done { opacity: .8; }
.shd_step_done .shd_step_dot { background: rgba(3,173,216,0.15); color: #03add8; }
.shd_step_on { opacity: 1; font-weight: 700; }
.shd_step_on .shd_step_dot { color: #fff; background: #03add8; box-shadow: 0 0 0 4px rgba(3,173,216,0.18); }
.shd_steps[data-status="open"] .shd_step_on .shd_step_dot { background: #f57c00; box-shadow: 0 0 0 4px rgba(245,124,0,0.18); }
.shd_steps[data-status="resolved"] .shd_step_on .shd_step_dot { background: #43a047; box-shadow: 0 0 0 4px rgba(67,160,71,0.18); }
.shd_steps[data-status="closed"] .shd_step_on .shd_step_dot { background: #78909c; box-shadow: 0 0 0 4px rgba(120,144,156,0.2); }

/* Customer status banner */
.shd_banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 18px 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.45;
}
.shd_banner_open { background: rgba(245,124,0,0.1); color: #e67000; }
.shd_banner_awaiting { background: rgba(3,155,229,0.1); color: #0288c7; }
.shd_banner_resolved { background: rgba(67,160,71,0.1); color: #3d8f40; }

/* Messages */
.shd_msgs {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 18px 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.shd_day {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0 8px;
}
.shd_day span {
	padding: 3px 12px;
	border-radius: 12px;
	background: rgba(128,128,128,0.12);
	font-size: 11px;
	font-weight: 600;
	opacity: .75;
}
.shd_msg {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	max-width: 78%;
	align-self: flex-start;
	margin-top: 10px;
}
.shd_msg_cont { margin-top: 0; }
.shd_msg_mine { align-self: flex-end; flex-direction: row-reverse; }
.shd_msg_av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.shd_msg_cont .shd_msg_av { visibility: hidden; height: 0; }
.shd_msg_col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shd_msg_mine .shd_msg_col { align-items: flex-end; }
.shd_msg_meta { display: flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 11.5px; }
.shd_msg_name { font-weight: 700; }
.shd_msg_time { opacity: .5; }
.shd_msg_badge {
	padding: 1px 7px;
	border-radius: 8px;
	background: rgba(3,173,216,0.14);
	color: #03add8;
	font-size: 9.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.shd_msg_body {
	padding: 11px 15px;
	border-radius: 18px 18px 18px 6px;
	background: rgba(128,128,128,0.11);
	font-size: 13.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.shd_msg_mine .shd_msg_body {
	border-radius: 18px 18px 6px 18px;
	background: linear-gradient(135deg, #03add8, #0a8fd6);
	color: #fff;
}
.shd_msg_mine .shd_msg_body a { color: #fff; text-decoration: underline; }

/* Composer */
.shd_compose {
	margin: 0 18px 16px;
	padding: 10px 10px 10px 14px;
	border-radius: 14px;
	border: 1px solid rgba(128,128,128,0.25);
	transition: border-color .15s, box-shadow .15s;
}
.shd_compose:focus-within { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.13); }
.shd_compose textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	max-height: 200px;
	padding: 4px 0;
	outline: none;
	resize: none;
	color: inherit;
	font-size: 14px;
	line-height: 1.5;
	font-family: inherit;
}
.shd_compose_bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.shd_compose_hint { flex: 1; min-width: 0; font-size: 11px; opacity: .45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shd_compose .shd_btn { height: 34px; padding: 0 14px; }
.shd_tool {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 9px;
	background: rgba(128,128,128,0.1);
	color: inherit;
	cursor: pointer;
	font-size: 13px;
	transition: background .15s, color .15s;
}
.shd_tool:hover,
.shd_tool_on { background: rgba(3,173,216,0.15); color: #03add8; }
.shd_quick { display: none; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px; }
.shd_quick_on { display: flex; }
.shd_chip {
	padding: 6px 11px;
	border-radius: 16px;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	font-size: 12px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.shd_chip:hover { border-color: #03add8; color: #03add8; }
.shd_locked {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 18px 16px;
	padding: 14px;
	border-radius: 14px;
	background: rgba(128,128,128,0.08);
	font-size: 13px;
}
.shd_locked > .fa { opacity: .55; }

/* Attachments: picker chips, drop target, files inside messages */
.shd_files { display: none; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px; }
.shd_files_on { display: flex; }
.shd_fchip {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 220px;
	padding: 5px 6px 5px 5px;
	border-radius: 10px;
	background: rgba(128,128,128,0.1);
}
.shd_fchip img,
.shd_fchip_ico {
	width: 34px;
	height: 34px;
	border-radius: 7px;
	object-fit: cover;
	flex-shrink: 0;
}
.shd_fchip_ico { display: flex; align-items: center; justify-content: center; background: rgba(3,173,216,0.14); color: #03add8; font-size: 15px; }
.shd_fchip_meta { min-width: 0; display: flex; flex-direction: column; }
.shd_fchip_name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shd_fchip_size { font-size: 10.5px; opacity: .55; }
.shd_fchip_x {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 11px;
	opacity: .55;
	cursor: pointer;
}
.shd_fchip_x:hover { opacity: 1; background: rgba(229,57,53,0.14); color: #e53935; }
.shd_compose.shd_drag,
.spf_modal_body.shd_drag { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.2); background: rgba(3,173,216,0.05); }
.shd_new_files { margin-top: 12px; }
.shd_attach_drop {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px dashed rgba(128,128,128,0.4);
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.shd_attach_drop:hover { border-color: #03add8; background: rgba(3,173,216,0.05); }
.shd_attach_drop > i { font-size: 16px; color: #03add8; }
.shd_attach_drop span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.shd_attach_drop small { font-size: 11px; opacity: .55; }
.shd_atts { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.shd_msg_mine .shd_atts { align-items: flex-end; }
.shd_att_grid { display: flex; flex-wrap: wrap; gap: 6px; }
.shd_msg_mine .shd_att_grid { justify-content: flex-end; }
.shd_att_img {
	display: block;
	width: 140px;
	height: 105px;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(128,128,128,0.12);
	border: 1px solid rgba(128,128,128,0.15);
}
.shd_att_img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.shd_att_img:hover img { transform: scale(1.04); }
.shd_att_file {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
	max-width: 300px;
	padding: 9px 12px 9px 9px;
	border-radius: 12px;
	border: 1px solid rgba(128,128,128,0.2);
	background: rgba(128,128,128,0.06);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s;
}
.shd_att_file:hover { border-color: #03add8; }
.shd_att_ico {
	width: 36px;
	height: 36px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: rgba(3,173,216,0.14);
	color: #03add8;
	font-size: 16px;
}
.shd_att_meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shd_att_name { font-size: 12.5px; font-weight: 600; }
.shd_att_size { font-size: 11px; opacity: .55; }
.shd_att_dl { opacity: .5; font-size: 12px; }
.shd_att_file:hover .shd_att_dl { opacity: 1; color: #03add8; }
@container shdconv (max-width: 620px) {
	.shd_att_img { width: 110px; height: 85px; }
	.shd_att_file { min-width: 0; }
}

/* Details sidebar */
.shd_side {
	position: relative;
	padding: 18px 16px;
	gap: 14px;
	overflow-y: auto;
}
.shd_side > div { display: flex; flex-direction: column; gap: 14px; }
.shd_side_close { display: none; position: absolute; top: 10px; right: 10px; }
.shd_side_card {
	padding: 14px;
	border-radius: 14px;
	border: 1px solid rgba(128,128,128,0.16);
}
.shd_side_who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.shd_side_av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.shd_side_name { font-size: 15px; font-weight: 800; }
.shd_side_mail { max-width: 100%; font-size: 12px; color: #03add8; text-decoration: none; }
.shd_side_since { font-size: 11px; opacity: .5; }
.shd_side_btns { display: flex; gap: 6px; width: 100%; margin-top: 10px; }
.shd_side_btns .shd_btn { flex: 1; height: 32px; padding: 0 8px; font-size: 12px; }
.shd_side_stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shd_side_stats > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 4px;
	border-radius: 12px;
	background: rgba(128,128,128,0.08);
}
.shd_side_stats b { font-size: 15px; }
.shd_side_stats span { font-size: 10.5px; opacity: .55; }
.shd_side_label {
	margin-bottom: 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	opacity: .5;
}
.shd_fact {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	font-size: 12px;
}
.shd_fact > span:first-child { opacity: .55; }
.shd_fact > span:last-child { font-weight: 600; text-align: right; }
.shd_side_none { font-size: 12px; opacity: .5; }
.shd_other {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px;
	margin: 0 -8px;
	width: calc(100% + 16px);
	border: none;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.shd_other:hover { background: rgba(128,128,128,0.1); }
.shd_other > i { width: 16px; text-align: center; opacity: .55; font-size: 12px; }
.shd_other_main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; }
.shd_other_sub { font-size: 11px; font-weight: 400; opacity: .5; }
.shd_staff.shd_side_toggle { grid-template-columns: 220px 340px minmax(0, 1fr) 0; }
.shd_staff.shd_side_toggle .shd_side { display: none; }

/* Empty states */
.shd_empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 32px 20px;
	text-align: center;
	opacity: .9;
}
.shd_empty_tall { flex: 1; }
.shd_empty_art {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	font-size: 24px;
	background: rgba(3,173,216,0.1);
	color: #03add8;
}
.shd_empty_title { font-size: 15px; font-weight: 800; }
.shd_empty_text { max-width: 280px; font-size: 12.5px; line-height: 1.5; opacity: .6; }

/* Customer hero */
.shd_hero { padding: 24px !important; }
.shd_hero_head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.shd_hero_title { font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.shd_hero_sub { margin-top: 4px; font-size: 13px; opacity: .6; }
.shd_hero_links { display: flex; gap: 8px; flex-wrap: wrap; }
.shd_topic_grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.shd_topic_card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid rgba(128,128,128,0.18);
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shd_topic_card:hover { border-color: #03add8; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(3,173,216,0.15); }
.shd_topic_ico {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	background: rgba(3,173,216,0.12);
	color: #03add8;
}
.shd_topic_text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shd_topic_name { font-size: 13px; font-weight: 700; }
.shd_topic_hint { font-size: 11px; opacity: .55; }

/* New ticket box: topic tiles */
.shd_cat_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shd_cat_tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 14px 8px;
	border-radius: 12px;
	border: 1px solid rgba(128,128,128,0.22);
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.shd_cat_tile i { font-size: 17px; opacity: .7; }
.shd_cat_tile:hover { border-color: #03add8; }
.shd_cat_on,
.shd_cat_on:hover { border-color: #03add8; background: rgba(3,173,216,0.1); color: #03add8; }
.shd_cat_on i { opacity: 1; }
.shd_new_msg { margin-top: 16px; }

/* Layout follows the support page's own width (the store sidebar eats into the viewport) */
/* .page_full is display:table, and tables can't be size containers */
.shd_page { display: block; container: shdpage / inline-size; }
.shd_conv { container: shdconv / inline-size; }

/* Compact four columns */
@container shdpage (max-width: 1360px) {
	.shd { grid-template-columns: 200px 280px minmax(0, 1fr) 270px; }
	.shd_staff.shd_side_toggle { grid-template-columns: 200px 280px minmax(0, 1fr) 0; }
	.shd_customer { grid-template-columns: 320px minmax(0, 1fr); }
}
/* Narrower: details become a slide-over */
@container shdpage (max-width: 1199px) {
	.shd,
	.shd_staff.shd_side_toggle { grid-template-columns: 200px 300px minmax(0, 1fr); }
	.shd_customer { grid-template-columns: 320px minmax(0, 1fr); }
	.shd_side {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 5;
		width: 300px;
		background: var(--sdb-surface, #fff);
		box-shadow: -8px 0 24px rgba(0,0,0,0.15);
		transform: translateX(105%);
		transition: transform .2s;
	}
	.shd_staff.shd_side_toggle .shd_side { display: flex; transform: none; }
	.shd_side_close { display: block; }
}
/* Narrower: a slimmer rail that keeps its labels */
@container shdpage (max-width: 1060px) {
	.shd,
	.shd_staff.shd_side_toggle { grid-template-columns: 188px 250px minmax(0, 1fr); }
	.shd_customer { grid-template-columns: 290px minmax(0, 1fr); }
}
/* Icon-only rail (names show on hover) */
@container shdpage (max-width: 900px) {
	.shd,
	.shd_staff.shd_side_toggle { grid-template-columns: 62px 280px minmax(0, 1fr); }
	.shd_customer { grid-template-columns: 290px minmax(0, 1fr); }
	.shd_rail { padding: 12px 8px; align-items: center; }
	.shd_rail_head { padding: 0 0 12px; }
	.shd_rail_text,
	.shd_nav_label,
	.shd_rail_label,
	.shd_rail_refresh span { display: none; }
	.shd_nav { width: 100%; }
	.shd_nav_item { position: relative; justify-content: center; padding: 11px 0; }
	.shd_nav_item > i { opacity: .75; font-size: 14px; }
	.shd_nav_count { position: absolute; top: 3px; right: 4px; font-size: 9px; }
	.shd_topics { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(128,128,128,0.15); }
	.shd_topics .shd_nav_count { display: none; }
	.shd_rail_refresh { justify-content: center; }
}
/* Phones: one pane at a time */
@container shdpage (max-width: 720px) {
	.shd,
	.shd_staff.shd_side_toggle {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		height: calc(100vh - 85px);
		min-height: 480px;
	}
	.shd_customer { grid-template-rows: minmax(0, 1fr); }
	.shd_rail {
		flex-direction: row;
		align-items: center;
		gap: 4px;
		padding: 8px;
		overflow-x: auto;
		overflow-y: hidden;
		border-right: none;
		border-bottom: 1px solid rgba(128,128,128,0.15);
		scrollbar-width: none;
	}
	.shd_rail::-webkit-scrollbar { display: none; }
	.shd_rail_head,
	.shd_rail_refresh { display: none; }
	.shd_nav { flex-direction: row; width: auto; }
	.shd_topics { margin: 0; padding: 0 0 0 6px; border-top: none; border-left: 1px solid rgba(128,128,128,0.15); }
	.shd_nav_item { padding: 8px 12px; gap: 8px; white-space: nowrap; }
	#shd_views .shd_nav_label { display: inline; }
	.shd_nav_count { position: static; font-size: 11px; }
	.shd_list,
	.shd_conv { grid-column: 1; grid-row: 2; border-right: none; }
	.shd_customer .shd_list,
	.shd_customer .shd_conv { grid-row: 1; }
	.shd_chat_open .shd_list,
	.shd:not(.shd_chat_open) .shd_conv { display: none; }
	.shd_back { display: inline-block; }
	.shd_side { width: 100%; }
	/* reading a ticket: give the conversation the whole screen */
	.shd_hero:has(~ .shd_chat_open) { display: none; }
}
/* Narrow conversation pane */
@container shdconv (max-width: 620px) {
	.shd_step:not(.shd_step_on) .shd_step_label { display: none; }
	.shd_step { padding-right: 5px; }
	.shd_step_on { padding-right: 10px; }
	.shd_compose_hint { display: none; }
	.shd_compose_bar { justify-content: flex-end; }
	.shd_msgs { padding: 14px; }
	.shd_msg { max-width: 90%; }
	.shd_compose,
	.shd_locked { margin: 0 10px 10px; }
	.shd_banner { margin: 10px 12px 0; }
	.shd_conv_head { padding: 10px 12px; gap: 8px; }
	.shd_steps { padding: 8px 12px; }
}
@container shdconv (max-width: 380px) {
	.shd_compose .shd_btn_ghost span { display: none; }
}
/* Hero + new ticket box */
@media (max-width: 1300px) {
	.shd_topic_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shd_topic_card { flex-direction: row; align-items: center; }
}
@media (max-width: 768px) {
	.shd_hero { padding: 18px !important; }
	.shd_hero_title { font-size: 18px; }
	.shd_topic_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.shd_topic_card { padding: 12px; gap: 10px; }
	.shd_hero_links .shd_btn span { display: none; }
	.shd_cat_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.shx_hero_actions { width: 100%; }
	.shx_hero_actions > * { flex: 1; justify-content: center; }
	.shx_stats { gap: 8px; }
	.shx_stat { padding: 10px; }
	.shx_stat_icon { display: none; }
	.shx_stat_value { font-size: 15px; }
	.sap_grid_lib .sap_card_media { aspect-ratio: 3 / 1; }
	.sap_tabs { align-self: stretch; }
	.sap_tabs .sap_sort_btn { flex: 1; }
	.sap_tx_row { padding: 10px; gap: 10px; }
	.sfq_q { padding: 12px; gap: 10px; }
	.sfq_a { padding: 0 12px 14px; }
	#sap_grid.sfq_tuts { grid-template-columns: 1fr; }
}

/* Theme CSS forces a border/background on every input and textarea; strip it inside our pill fields */
.sap_search input,
.shd_search input,
.shd_compose textarea {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0;
	margin: 0;
}
.sap_tabs { margin-left: 0; }

/* --- Tutorials v2 (sfq_tut) --- */
#sap_grid.sfq_tuts {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}
.sfq_tut { cursor: pointer; }
.sfq_tut_info {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.sfq_tut .sap_card_body { padding-bottom: 4px; }
.sfq_tut .sap_card_name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sfq_tut .sfq_tut_text { -webkit-line-clamp: 2; }
.sfq_tut_media {
	aspect-ratio: 16 / 9;
	background: #111;
}
.sfq_tut_plain { background: linear-gradient(135deg, #03add8, #0277bd); }
.sfq_tut_link .sfq_tut_plain { background: linear-gradient(135deg, #7e57c2, #5e35b1); }
.sfq_tut_guide .sfq_tut_plain { background: linear-gradient(135deg, #26a69a, #00897b); }
.sfq_tut_glyph {
	font-size: 38px;
	color: rgba(255,255,255,0.9);
	transition: transform .25s;
}
.sfq_tut:hover .sfq_tut_glyph { transform: scale(1.1); }
.sfq_tut .sfq_tut_thumb { opacity: .92; }
.sfq_tut:hover .sfq_tut_thumb { opacity: 1; }
.sfq_tut:hover .sfq_play { background: #e53935; transform: scale(1.08); }
.sfq_step,
.sfq_kind {
	position: absolute;
	top: 10px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .3px;
	color: #fff;
	background: rgba(0,0,0,0.55);
	backdrop-filter: blur(4px);
}
.sfq_step { left: 10px; }
.sfq_kind { right: 10px; text-transform: uppercase; }
.sfq_kind i { margin-right: 3px; font-size: 9px; }

/* Featured (first) tutorial spans the row */
#sap_grid.sfq_tuts .sfq_tut_featured {
	grid-column: 1 / -1;
	flex-direction: row;
}
.sfq_tut_featured .sfq_tut_media {
	flex: 0 0 52%;
	aspect-ratio: auto;
	min-height: 220px;
}
.sfq_tut_featured .sfq_tut_info { justify-content: center; }
.sfq_tut_featured .sap_card_body { padding: 20px 22px 6px; flex: 0 0 auto; }
.sfq_tut_featured .sap_card_foot { padding: 12px 22px 20px; justify-content: flex-start; }
.sfq_tut_featured .sap_card_foot > span:first-child { display: none; }
.sfq_tut_featured .sap_card_name { font-size: 19px; }
.sfq_tut_featured .sfq_tut_text { -webkit-line-clamp: 4; font-size: 13px; }
.sfq_tut_featured .sfq_play { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 20px; }

/* Reader modal */
.sfq_reader_video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	margin-bottom: 16px;
}
.sfq_reader_video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.sfq_reader_step { text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.sfq_reader_title { font-size: 20px; line-height: 1.3; }
.sfq_reader_meta { margin-top: 4px; }
.sfq_reader_text {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.7;
	max-height: 45vh;
	overflow-y: auto;
	padding-right: 4px;
}
.sfq_reader_foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(128,128,128,0.15);
}
.sfq_reader_foot .sfq_reader_link { margin-left: auto; }
.sfq_reader_foot .sfq_reader_next { margin-left: auto; }
.sfq_reader_foot .sfq_reader_link + .sfq_reader_next { margin-left: 0; }
.sfq_reader_foot button:disabled { opacity: .4; cursor: default; }

@media (max-width: 760px) {
	#sap_grid.sfq_tuts .sfq_tut_featured { flex-direction: column; }
	.sfq_tut_featured .sfq_tut_media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.sfq_tut_featured .sap_card_body { padding: 14px 14px 4px; }
	.sfq_tut_featured .sap_card_foot { padding: 10px 14px 14px; }
	.sfq_tut_featured .sap_card_name { font-size: 16px; }
}
@media (max-width: 640px) {
	.sfq_tut .sap_card_actions, .sfq_tut .sap_card_foot { flex-wrap: nowrap; }
	.sfq_reader_title { font-size: 17px; }
	.sfq_reader_foot .sap_outline_btn, .sfq_reader_foot .sap_buy_btn { padding: 0 10px; }
}

/* --- Cart (sct_) --- */
.sct_list_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.sct_list {
	display: flex;
	flex-direction: column;
}
.sct_row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.sct_row:first-child { border-top: none; padding-top: 4px; }
.sct_thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	cursor: pointer;
	overflow: hidden;
}
.sct_thumb img {
	max-width: 78%;
	max-height: 78%;
	object-fit: contain;
	border-radius: 8px;
}
.sct_info { flex: 1; min-width: 0; }
.sct_name {
	font-size: 15px;
	cursor: pointer;
	margin-bottom: 4px;
}
.sct_name:hover { color: #03add8; }
.sct_meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}
.sct_cat { text-transform: uppercase; letter-spacing: .4px; font-size: 10px; }
.sct_price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1.2;
}
.sct_price .store_price_old { margin: 0; font-size: 11px; }
.sct_remove { flex-shrink: 0; }
.sct_remove:hover { color: #e53935; border-color: #e53935; }

.sct_perks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.sct_perk {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}
.sct_perk_icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
}
.sct_perk .text_xsmall { line-height: 1.4; margin-top: 2px; }

.sct_summary .sap_panel_title { font-size: 16px; margin-bottom: 12px; }
.sct_lines { display: flex; flex-direction: column; gap: 8px; }
.sct_line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}
.sct_line_discount { color: #43a047; }
.sct_coupon_wrap { margin: 14px 0; }
.sct_coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 4px 0 14px;
	border-radius: 20px;
	border: 1px solid transparent;
	transition: border-color .15s, box-shadow .15s;
}
.sct_coupon:focus-within {
	border-color: #03add8;
	box-shadow: 0 0 0 3px rgba(3,173,216,0.15);
}
.sct_coupon input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font-size: 13px;
	text-transform: uppercase;
	outline: none;
}
.sct_coupon input::placeholder { text-transform: none; }
.sct_coupon_btn {
	height: 32px;
	padding: 0 14px;
	border: none;
	border-radius: 16px;
	background: rgba(3,173,216,0.14);
	color: #03add8;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.sct_coupon_btn:hover { background: #03add8; color: #fff; }
.sct_coupon_applied {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 8px 9px 14px;
	border-radius: 20px;
	border: 1px dashed rgba(67,160,71,0.6);
	background: rgba(67,160,71,0.08);
	color: #43a047;
	font-size: 13px;
}
.sct_coupon_applied #coupon_applied_label { flex: 1; opacity: .85; }
.sct_coupon_remove {
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: rgba(67,160,71,0.15);
	color: inherit;
	font-size: 11px;
	cursor: pointer;
}
.sct_coupon_remove:hover { background: #e53935; color: #fff; }
.sct_total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid rgba(128,128,128,0.14);
	border-bottom: 1px solid rgba(128,128,128,0.14);
}
.sct_total_amount { font-size: 24px; }
.sct_pay { padding-top: 14px; }
.sct_pay_title { margin-bottom: 8px; }
.sct_pay .store_payment_list { padding: 0; gap: 8px; }
.sct_pay .store_payment_option { border-radius: 10px; }
.sct_pay_btn {
	width: 100%;
	height: 46px;
	margin-top: 14px;
	border-radius: 23px;
	justify-content: center;
	font-size: 14px;
}
.sct_pay_btn:disabled { opacity: .45; cursor: not-allowed; }
.sct_pay_hint { text-align: center; margin-top: 8px; }
.sct_no_gateway {
	margin-top: 14px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(251,140,0,0.1);
	color: #fb8c00;
	line-height: 1.45;
}
#page_content .sct_summary { position: sticky; top: calc(var(--store-head) + var(--store-gap)); }

.sct_empty {
	text-align: center;
	padding: 50px 20px 46px;
}
.sct_empty_icon {
	width: 88px;
	height: 88px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	background: rgba(3,173,216,0.12);
	color: #03add8;
}
.sct_empty_title { font-size: 18px; margin-bottom: 6px; }
.sct_empty_actions {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 18px;
}

@media (max-width: 760px) {
	.sct_perks { display: none; }
	#page_content .sct_summary { position: static; }
}
@media (max-width: 480px) {
	.sct_row { gap: 10px; flex-wrap: wrap; }
	.sct_thumb { width: 52px; height: 52px; }
	.sct_info { flex: 1 1 calc(100% - 110px); }
	.sct_price { margin-left: 62px; flex-direction: row; align-items: baseline; gap: 6px; }
	.sct_remove { margin-left: auto; }
}

/* ============================================
   Store admin kit (sad_) — Store Settings pages
   ============================================ */
.sad_head_actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.sad_danger_btn { color: #e53935; border-color: rgba(229,57,53,0.35); }
.sad_danger_btn:hover { color: #fff; background: #e53935; border-color: #e53935; }
#sap_grid.sad_list,
.sad_list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sad_row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	transition: border-color .15s, box-shadow .15s;
	min-width: 0;
}
.sad_row:hover {
	border-color: rgba(3,173,216,0.4);
	box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}
.sad_row_off .sad_media,
.sad_row_off .sad_title { opacity: .55; }
.sad_media {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	font-size: 17px;
}
.sad_media img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	border-radius: 6px;
}
.sad_media_cover img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sad_avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.sad_main { flex: 1; min-width: 0; }
.sad_title {
	font-size: 14px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sad_title .sap_pill { margin-left: 6px; vertical-align: 1px; }
.sad_sub {
	font-size: 12px;
	opacity: .65;
	margin-top: 2px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sad_meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px 12px;
	margin-top: 4px;
	font-size: 11px;
	opacity: .6;
}
.sad_meta i { margin-right: 3px; }
.sad_side {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	text-align: right;
}
.sad_price { font-size: 15px; line-height: 1.2; }
.sad_price .store_price_old { margin: 0; font-size: 11px; display: block; }
.sad_order {
	min-width: 30px;
	height: 24px;
	padding: 0 7px;
	border-radius: 7px;
	background: rgba(128,128,128,0.14);
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
}
.sad_actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.sad_actions .sap_icon_btn { width: 32px; height: 32px; }
.sad_actions .sad_del:hover { color: #e53935; border-color: #e53935; }
.sad_status_filter { margin-left: auto; }

/* Cards / sections for forms and docs */
.sad_section_title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}
.sad_section_desc { margin: 0 0 14px; line-height: 1.5; }
.sad_form_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.sad_field_full { grid-column: 1 / -1; }
.sad_field .label,
.sad_field label.label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; opacity: .8; }
.sad_hint { margin-top: 5px; font-size: 11px; opacity: .55; line-height: 1.4; }
.sad_secret { position: relative; }
.sad_secret .full_input { padding-right: 44px; }
.sad_secret_eye {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	opacity: .55;
	cursor: pointer;
}
.sad_secret_eye:hover { opacity: 1; }
.sad_code {
	position: relative;
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(128,128,128,0.1);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}
.sad_code_wrap { position: relative; margin-bottom: 20px; }
.sad_code_wrap .sad_copy {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	height: 28px;
	padding: 0 10px;
	font-size: 11px;
}
.sad_inline_code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	padding: 1px 6px;
	border-radius: 5px;
	background: rgba(128,128,128,0.14);
}
.sad_table_wrap { overflow-x: auto; margin-bottom: 22px; }
.sad_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.sad_table th {
	text-align: left;
	padding: 9px 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .4px;
	opacity: .6;
	border-bottom: 1px solid rgba(128,128,128,0.2);
}
.sad_table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(128,128,128,0.12);
	vertical-align: top;
	line-height: 1.5;
}
.sad_table tr:last-child td { border-bottom: none; }
.sad_h4 { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
	/* Top: image + text. Bottom bar: price/status left, buttons right */
	.sad_row { flex-wrap: wrap; gap: 10px 0; padding: 12px; }
	.sad_row > .sad_media,
	.sad_row > .sad_avatar { margin-right: 12px; }
	.sad_main { flex: 1 1 calc(100% - 60px); }
	.sad_side { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-left: 0; text-align: left; }
	.sad_side .sad_price { display: flex; align-items: baseline; gap: 6px; }
	.sad_side .sad_price .store_price_old { display: inline; }
	.sad_actions { margin-left: auto; padding-left: 8px; }
	.sad_row > .sad_main + .sad_actions { flex: 1 1 100%; justify-content: flex-end; padding-left: 0; }
	.sad_form_grid { grid-template-columns: 1fr; }
	.sad_status_filter { margin-left: 0; }
}

/* Admin: 4-up stats, extra tints */
.shx_stats.sad_stats4 { grid-template-columns: repeat(4, 1fr); }
.sad_tint_orange { background: rgba(251,140,0,0.14); color: #fb8c00; }
.sad_tint_red { background: rgba(229,57,53,0.12); color: #e53935; }

/* Admin: transactions table */
.sad_tx_head,
.sad_tx {
	display: grid;
	grid-template-columns: minmax(180px, 2.2fr) 1.3fr 1fr 0.9fr 0.9fr 0.9fr;
	align-items: center;
	gap: 12px;
}
.sad_tx_head {
	padding: 0 14px 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	opacity: .5;
}
.sad_tx {
	padding: 10px 14px;
	border-radius: 12px;
	transition: border-color .15s;
}
.sad_tx:hover { border-color: rgba(3,173,216,0.4); }
.sad_tx_user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sad_tx_right { text-align: right; }
.sad_tx_amount { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.sad_tx_gw { white-space: nowrap; }
.sad_tx_gw i { margin-right: 4px; }
.sad_pager { margin-top: 14px; }
.tx_page_btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 900px) {
	.shx_stats.sad_stats4 { grid-template-columns: repeat(2, 1fr); }
	.sad_tx_head { display: none; }
	.sad_tx {
		grid-template-columns: 1fr 1fr;
		gap: 8px 12px;
	}
	.sad_tx_user { grid-column: 1 / -1; }
	.sad_tx > [data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 10px;
		text-transform: uppercase;
		letter-spacing: .4px;
		opacity: .5;
		margin-bottom: 2px;
	}
	.sad_tx_right { text-align: left; }
	.sad_tx_amount { align-items: flex-start; }
}

/* Admin: Orders (sor_) — one row per checkout, opened to show what it delivered and how it was paid */
.sap_pill_purple { background: rgba(142,36,170,0.13); color: #8e24aa; }
.sor_range { margin-top: 14px; }
.sor_tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.sor_tiles .page_element { margin-bottom: 0; }
.sor_tile_sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 12px; }
.sor_tile_sub .srpt_delta { margin: 0; }
.sor_tile_btn { display: block; width: 100%; border: 0; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: box-shadow .15s; }
.sor_tile_btn:hover { box-shadow: 0 0 0 1px rgba(3,173,216,0.45); }
.sor_tile_warn .srpt_tile_value { color: #ef6c00; }
.sor_facts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px !important; }
.sor_facts_label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin-right: 4px; }
.sor_facts_label .fa-lightbulb { color: #f6b400; opacity: 1; }
.sor_fact { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 5px 11px; border: 0; border-radius: 14px; background: rgba(128,128,128,0.09); color: inherit; font: inherit; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.sor_fact { cursor: pointer; }
button.sor_fact:hover { background: rgba(3,173,216,0.12); }
.sor_filters { flex-wrap: wrap; gap: 10px; }
.sor_filters_end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
#tx_status_seg { margin-left: 0; }
.sor_filters_end .text_small { white-space: nowrap; }
.sor_search_row .sap_search { flex: 1 1 320px; max-width: 520px; }
.sor_grid { grid-template-columns: minmax(180px, 2fr) minmax(0, 1.6fr) 0.9fr 0.9fr 0.8fr 0.8fr 16px; }
.sor_list { gap: 8px; }
.sor_order { border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.sor_order:hover, .sor_open { border-color: rgba(3,173,216,0.4); }
.sor_open { box-shadow: 0 4px 18px rgba(15,23,42,0.06); }
.sor_order_warn { border-color: rgba(251,140,0,0.55); }
.sor_row { border: 0 !important; cursor: pointer; }
.sor_row:focus-visible { outline: 2px solid #03add8; outline-offset: -2px; }
.sor_chev { font-size: 11px; opacity: .45; transition: transform .2s; justify-self: end; }
.sor_open .sor_chev { transform: rotate(180deg); }
.sor_warn_text { color: #ef6c00; font-weight: 600; }
.sor_detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 18px; padding: 4px 14px 14px; border-top: 1px solid rgba(128,128,128,0.12); margin-top: 2px; padding-top: 14px; }
.sor_detail[hidden] { display: none; }
.sor_detail_title { margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.sor_lines { display: flex; flex-direction: column; gap: 6px; }
.sor_line { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(128,128,128,0.06); }
.sor_line_img { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; }
.sor_line_img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.sor_line_main { flex: 1; min-width: 0; }
.sor_line_name { font-size: 13.5px; }
.sor_line_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; }
.sor_line_meta .sad_inline_code { font-size: 11px; }
.sor_line_price { flex-shrink: 0; font-size: 13.5px; }
.sor_facts_list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0 0 12px; font-size: 13px; }
.sor_facts_list dt { opacity: .55; }
.sor_facts_list dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sor_ck .sad_meta { min-width: 0; }
.sor_ck .sad_side { display: flex; flex-direction: row; align-items: center; gap: 10px; }
@media (max-width: 1280px) {
	.sor_tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sad_tx.sor_grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sor_detail { grid-template-columns: 1fr; }
	.sor_chev { position: absolute; top: 16px; right: 14px; }
	.sor_row { position: relative; }
	.sor_filters_end { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
	.sor_tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sor_ck { flex-wrap: wrap; }
	.sor_ck .sad_side { width: 100%; justify-content: flex-end; }
}

/* Admin: payment gateways */
.sad_notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
}
.sad_notice_warn { background: rgba(251,140,0,0.12); color: #fb8c00; }
.sad_notice_info { background: rgba(3,173,216,0.1); color: #03add8; }
.sad_gw { border-left: 3px solid transparent; transition: border-color .2s; }
.sad_gw_on { border-left-color: #43a047; }
.sad_gw_head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(128,128,128,0.14);
}
.sad_gw_logo i { font-size: 22px !important; }
.sad_gw_pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}
.sad_gw_link { display: flex; align-items: flex-end; padding-bottom: 20px; }
.sad_savebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
@media (max-width: 640px) {
	.sad_gw_head { flex-wrap: wrap; }
	.sad_gw_pills { width: 100%; justify-content: flex-start; margin-left: 60px; }
	.sad_gw_link { padding-bottom: 0; }
	.sad_savebar .sap_buy_btn { width: 100%; justify-content: center; }
}

/* Admin: tutorial rows */
.sad_media_wide { width: 72px; height: 46px; border-radius: 10px; }
.sad_pill_purple { background: rgba(126,87,194,0.15); color: #7e57c2; }
.sad_pill_teal { background: rgba(38,166,154,0.15); color: #26a69a; }
.sad_faq_tabs { margin-left: 0; }

/* Admin: coupons */
.sad_ticket {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 110px;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1.5px dashed rgba(3,173,216,0.55);
	background: rgba(3,173,216,0.08);
	color: #03add8;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .5px;
	text-transform: uppercase;
	flex-shrink: 0;
	transition: background .15s;
}
.sad_ticket:hover { background: rgba(3,173,216,0.16); }
.sad_ticket i { font-size: 11px; }
.sad_row_off .sad_ticket { opacity: .55; }
.sad_usage {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}
.sad_usage_bar {
	flex: 0 1 160px;
	height: 6px;
	border-radius: 3px;
	background: rgba(128,128,128,0.18);
	overflow: hidden;
}
.sad_usage_bar span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: #03add8;
}
@media (max-width: 640px) {
	.sad_ticket { min-width: 0; }
	.sad_row .sad_ticket + .sad_main { flex: 1 1 100%; }
	.sad_row .sad_ticket ~ .sad_side { margin-left: 0; }
}

/* Admin: store logs page (scoped so the per-user activity view keeps its compact look) */
.sad_logs #slog_results {
	display: flex;
	flex-direction: column;
}
.sad_logs .slog_item {
	align-items: center;
	gap: 14px;
	padding: 12px 6px;
	border-bottom: 1px solid rgba(128,128,128,0.12);
}
.sad_logs .slog_icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	font-size: 14px;
	background: rgba(128,128,128,0.1);
}
.sad_logs .slog_body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.sad_logs .slog_text { font-size: 13px; }
.sad_logs .slog_text .bclick:hover { color: #03add8; }
.sad_logs .slog_time { margin-top: 0; flex-shrink: 0; white-space: nowrap; }
.sad_logs_more { padding-top: 14px; }
.sad_logs .slog_item_rich .slog_body { flex-direction: column; align-items: flex-start; gap: 3px; }
@media (max-width: 640px) {
	.sad_logs .slog_body { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* Admin: License API */
.sad_endpoint {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding: 8px 8px 8px 12px;
	border-radius: 12px;
}
.sad_method {
	padding: 3px 9px;
	border-radius: 6px;
	background: #43a047;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .4px;
	flex-shrink: 0;
}
.sad_endpoint_url {
	flex: 1;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	word-break: break-all;
}
.sad_notes { margin: 0; padding-left: 18px; line-height: 1.9; }
.sad_mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.sad_test_actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 18px;
	flex-wrap: wrap;
}
@media (max-width: 640px) {
	.sad_endpoint { flex-wrap: wrap; }
	.sad_endpoint .sap_outline_btn { margin-left: auto; }
}

/* Pagination: Lite theme sets button{color:#fff}, which made page numbers invisible */
.tx_page_btn { color: inherit; border-color: rgba(128,128,128,0.25); }
.tx_page_btn_active,
.tx_page_btn_active:hover { background: #03add8; color: #fff; }

/* Selects in admin forms: match the theme's input look */
.sad_field select.full_input {
	background-color: rgba(128,128,128,0.08);
	border: 1px solid rgba(128,128,128,0.2);
	color: inherit;
}
.sad_notes li { list-style: disc; }

/* ============================================
   Store modal form kit (smf_) — product, category, news, coupon, FAQ, tutorial
   Frame reuses .spf_modal_head / .spf_modal_body / .spf_modal_foot
   ============================================ */
.spf_modal_head { padding: 16px 20px; border-bottom-color: rgba(128,128,128,0.15); }
.spf_modal_foot { padding: 14px 20px; border-top-color: rgba(128,128,128,0.15); }
.spf_modal_body { padding: 18px 20px; max-height: calc(100vh - 220px); }
.smf_head_icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}
.smf_head_sub { font-size: 12px; font-weight: 400; opacity: .55; margin-top: 1px; }
.spf_head_title .smf_head_text { display: flex; flex-direction: column; line-height: 1.25; }
.smf_foot_hint { margin-right: auto; font-size: 11px; opacity: .5; }
.spf_modal_foot .sap_buy_btn,
.spf_modal_foot .sap_outline_btn { height: 38px; padding: 0 18px; border-radius: 19px; }
.smf_busy { opacity: .6; pointer-events: none; }

.smf_section { padding: 16px 0; border-top: 1px solid rgba(128,128,128,0.14); }
.smf_section:first-child { padding-top: 0; border-top: none; }
.smf_section:last-child { padding-bottom: 0; }
.smf_section_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .55;
}
.smf_grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.smf_grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.smf_stack { display: flex; flex-direction: column; gap: 12px; }
.smf_field { min-width: 0; }
.smf_label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
}
.smf_label .spf_hint { margin-left: 0; }
.smf_help { margin-top: 5px; font-size: 11px; line-height: 1.45; opacity: .55; }
.smf_counter { font-size: 11px; font-weight: 400; opacity: .5; }
.smf_counter_over { color: #e53935; opacity: 1; }
.smf_field .full_input,
.smf_field .full_textarea { box-sizing: border-box; }
.smf_field select.full_input {
	background-color: rgba(128,128,128,0.08);
	border: 1px solid rgba(128,128,128,0.2);
	color: inherit;
}
.smf_field .full_textarea { padding: 12px; border-radius: 8px; line-height: 1.5; resize: vertical; }
.smf_ta_md { min-height: 110px; }
.smf_ta_lg { min-height: 150px; }
.smf_ta_sm { min-height: 64px; }

/* Input with prefix/suffix unit */
.smf_affix { position: relative; }
.smf_affix .full_input { padding-left: 30px; }
.smf_affix_unit {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 700;
	opacity: .5;
	pointer-events: none;
}

/* Segmented picker writing to a hidden input */
.smf_seg {
	display: flex;
	padding: 3px;
	gap: 3px;
	border-radius: 10px;
	background: rgba(128,128,128,0.1);
}
.smf_seg_btn {
	flex: 1;
	min-height: 38px;
	padding: 6px 10px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 13px;
	cursor: pointer;
	opacity: .7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: background .15s, opacity .15s, box-shadow .15s;
}
.smf_seg_btn:hover { opacity: 1; }
.smf_seg_on {
	opacity: 1;
	font-weight: 700;
	background: #fff;
	color: #03add8;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Switch rows writing to a hidden input */
.smf_switch_row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(128,128,128,0.07);
	cursor: pointer;
}
.smf_switch_row + .smf_switch_row { margin-top: 8px; }
.smf_switch_text { flex: 1; min-width: 0; }
.smf_switch_title { font-size: 13px; font-weight: 600; }
.smf_switch_desc { font-size: 11px; opacity: .55; line-height: 1.45; margin-top: 2px; }
.smf_switch {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}
.smf_switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.smf_switch span {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	background: rgba(128,128,128,0.4);
	transition: background .2s;
}
.smf_switch span::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
	transition: transform .2s;
}
.smf_switch input:checked + span { background: #43a047; }
.smf_switch input:checked + span::after { transform: translateX(18px); }

/* Live summary / notices */
.smf_summary {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	background: rgba(3,173,216,0.09);
	color: #03add8;
	font-size: 12.5px;
	line-height: 1.5;
}
.smf_summary i { margin-top: 2px; }
.smf_summary_warn { background: rgba(251,140,0,0.12); color: #fb8c00; }
.smf_summary_ok { background: rgba(67,160,71,0.1); color: #43a047; }
/* Second-click confirmation before saving a product as free */
.smf_summary_alert { background: rgba(229,57,53,0.12); color: #e53935; box-shadow: 0 0 0 2px rgba(229,57,53,0.35); animation: smfNudge .35s ease 2; }
@keyframes smfNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .smf_summary_alert { animation: none; } }

/* File drop zone (label wrapping a hidden file input) */
.smf_drop {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1.5px dashed rgba(128,128,128,0.35);
	cursor: pointer;
	transition: border-color .15s, background .15s;
	overflow: hidden;
}
.smf_drop:hover,
.smf_drop.smf_drop_over { border-color: #03add8; background: rgba(3,173,216,0.05); }
.smf_drop_icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}
.smf_drop_text { flex: 1; min-width: 0; }
.smf_drop_title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smf_drop_sub { font-size: 11px; opacity: .55; margin-top: 2px; }
.smf_drop .up_input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.smf_drop_has { border-style: solid; border-color: rgba(67,160,71,0.5); }
.smf_drop_has .smf_drop_icon { background: rgba(67,160,71,0.14); color: #43a047; }

/* Product: identity row + image uploader */
.smf_identity { display: flex; gap: 16px; align-items: stretch; }
.smf_identity .spf_img_upload {
	width: 124px;
	height: auto;
	min-height: 124px;
	border-radius: 14px;
	border-color: rgba(128,128,128,0.3);
	background: rgba(128,128,128,0.06);
}
.smf_identity .spf_img_preview { object-fit: contain; padding: 8px; box-sizing: border-box; }
.smf_identity .spf_img_placeholder { color: inherit; opacity: .45; text-align: center; font-size: 11px; line-height: 1.3; }
.smf_identity .smf_stack { flex: 1; min-width: 0; }

/* Screenshots grid */
.smf_shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
}
.smf_shots:empty { display: none; }
.smf_shots .store_screen_item { display: block; }
.smf_shots .spf_screen_thumb,
.smf_shots .store_preview_screen {
	width: 100%;
	max-width: none;
	max-height: none;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.smf_shots + .smf_shots { margin-top: 10px; }
.smf_shots_add { margin-top: 10px; }

/* Category icon picker */
.smf_icon_row { display: flex; gap: 10px; align-items: center; }
.smf_icon_preview {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
}
.smf_icon_row .full_input { flex: 1; min-width: 0; }
.smf_icon_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
	gap: 6px;
	margin-top: 10px;
}
.smf_icon_opt {
	height: 36px;
	border: 1px solid rgba(128,128,128,0.2);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 14px;
	transition: border-color .15s, color .15s, background .15s;
}
.smf_icon_opt:hover { border-color: #03add8; color: #03add8; }
.smf_icon_opt.smf_icon_on { background: #03add8; border-color: #03add8; color: #fff; }

/* News image preview */
.smf_img_preview {
	position: relative;
	margin-top: 10px;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(128,128,128,0.08);
	text-align: center;
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.smf_img_preview img { max-width: 100%; max-height: 220px; display: block; margin: 0 auto; }
.smf_img_remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	cursor: pointer;
}
.smf_img_remove:hover { background: #e53935; }

/* Coupon code row */
.smf_code_row { display: flex; gap: 8px; }
.smf_code_row .full_input {
	flex: 1;
	min-width: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.smf_code_row .sap_outline_btn { height: auto; flex-shrink: 0; }
.smf_chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.smf_chip {
	padding: 4px 10px;
	border-radius: 12px;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	font-size: 11px;
	cursor: pointer;
}
.smf_chip:hover { border-color: #03add8; color: #03add8; }

/* Tutorial link detection */
.smf_link_state { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.smf_link_state img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }

@media (max-width: 640px) {
	.spf_modal_body { padding: 14px; max-height: calc(100vh - 180px); }
	.spf_modal_head, .spf_modal_foot { padding: 12px 14px; }
	.smf_grid2, .smf_grid3 { grid-template-columns: 1fr; }
	.smf_identity { flex-direction: column; }
	.smf_identity .spf_img_upload { width: 100%; min-height: 110px; }
	.smf_foot_hint { display: none; }
	.spf_modal_foot { flex-direction: row; }
	.spf_modal_foot .sap_buy_btn, .spf_modal_foot .sap_outline_btn { flex: 1 1 0; justify-content: center; height: 42px; }
}

/* Broadcast & email page (smb_) */
.smb_step {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #03add8;
	color: #fff;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.smb_modes { max-width: 760px; flex-wrap: wrap; }
.smb_modes .smf_seg_btn { flex: 1 1 auto; white-space: nowrap; }
.smb_mode_hint { margin: 8px 0 0; }
.smb_fields { margin-top: 14px; max-width: 620px; }
.smb_select {
	background-color: rgba(128,128,128,0.08);
	border: 1px solid rgba(128,128,128,0.2);
	color: inherit;
}
.smb_audience {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.smb_audience_counts { display: flex; flex-wrap: wrap; gap: 8px; }
.smb_count {
	padding: 6px 12px;
	border-radius: 16px;
	background: rgba(3,173,216,0.1);
	color: #03add8;
	font-size: 13px;
}
.smb_count i { margin-right: 3px; }
.smb_cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.smb_cols > .page_element { margin-bottom: 0; }
.smb_card { display: flex; flex-direction: column; }
.smb_card .smf_stack { flex: 1; }
.smb_actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.smb_bubble {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	align-items: flex-start;
}
.smb_bubble_icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
}
.smb_bubble_text { min-width: 0; line-height: 1.45; word-break: break-word; }
#store_bc_bubble_body { white-space: pre-wrap; }
.smb_progress { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.smb_progress_bar { flex: none; height: 8px; border-radius: 4px; }
.smb_progress_bar span { border-radius: 4px; transition: width .3s; }
.smb_count_mail { background: rgba(67,160,71,0.1); color: #43a047; }
.smb_tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.smb_tab {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 2px solid rgba(128,128,128,0.18);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.smb_tab > i {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(128,128,128,0.12);
	font-size: 15px;
}
.smb_tab span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.smb_tab b { font-size: 14px; }
.smb_tab small { font-size: 12px; opacity: .6; }
.smb_tab:hover { border-color: rgba(3,173,216,0.5); }
.smb_tab_on { border-color: #03add8; background: rgba(3,173,216,0.06); }
.smb_tab_on > i { background: #03add8; color: #fff; }
.smb_split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.smb_split_email { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
/* Email preview: a small mail-client frame around the rendered email */
.smb_mail {
	position: sticky;
	top: 12px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(128,128,128,0.2);
	background: rgba(128,128,128,0.05);
}
.smb_mail_bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(128,128,128,0.14); }
.smb_mail_dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(128,128,128,0.35); }
.smb_mail_label { margin-left: 6px; font-size: 12px; opacity: .6; }
.smb_mail_meta { padding: 10px 14px; font-size: 13px; line-height: 1.5; border-bottom: 1px solid rgba(128,128,128,0.14); }
.smb_mail_frame { display: none; width: 100%; height: 560px; border: 0; background: #f1f4f7; }
.smb_mail_empty {
	height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	opacity: .5;
	font-size: 13px;
}
.smb_mail_empty i { font-size: 28px; }
.smb_campaigns { display: flex; flex-direction: column; gap: 10px; }
.smb_campaign { padding: 14px; border-radius: 12px; border: 1px solid rgba(128,128,128,0.16); }
.smb_campaign_live { border-color: rgba(3,173,216,0.45); background: rgba(3,173,216,0.04); }
.smb_campaign_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.smb_campaign_title { min-width: 0; }
.smb_campaign_foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.smb_campaign_btns { display: flex; gap: 6px; }
.smb_campaign_btns .sap_icon_btn { width: 32px; height: 32px; }
.smb_campaign .smf_summary { margin-top: 10px; }
.smb_campaign_empty { padding: 18px; text-align: center; border: 1px dashed rgba(128,128,128,0.3); border-radius: 12px; }
.smb_failed { color: #e53935; }
@media (max-width: 900px) {
	.smb_cols, .smb_split, .smb_split_email { grid-template-columns: 1fr; }
	.smb_mail { position: static; }
	.smb_mail_frame { height: 480px; }
}
@media (max-width: 560px) {
	.smb_tabs { grid-template-columns: 1fr; }
}
.smf_switch_title, .smf_switch_desc, .smf_drop_title, .smf_drop_sub { display: block; }
.smf_section_head .spf_hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.smf_summary:empty { display: none; }

/* ============================================
   Store dashboard (sdb_)
   ============================================ */
:root { --sdb-bar: #0290b8; --sdb-grid: rgba(128,128,128,0.16); }
.sdb_card_head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.sdb_period_total { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.sdb_period_total .bold { font-size: 26px; line-height: 1.1; }
.sdb_delta {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	vertical-align: 2px;
}
.sdb_delta i { font-size: 9px; }
.sdb_delta_up { background: rgba(67,160,71,0.14); color: #2e7d32; }
.sdb_delta_down { background: rgba(229,57,53,0.12); color: #c62828; }
#sdb_table_btn.sdb_on { background: #03add8; border-color: #03add8; color: #fff; }

/* Column chart */
.sdb_chart { display: flex; gap: 8px; height: 220px; padding-bottom: 22px; }
.sdb_yaxis {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	font-size: 10px;
	opacity: .55;
	min-width: 36px;
	margin: -6px 0;
}
.sdb_plot { position: relative; flex: 1; min-width: 0; }
.sdb_grid {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
}
.sdb_grid span { display: block; height: 1px; background: var(--sdb-grid); }
.sdb_cols {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	gap: 2px;
}
.sdb_col {
	position: relative;
	flex: 1 1 0;
	height: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	outline: none;
	cursor: default;
}
.sdb_bar {
	display: block;
	width: 100%;
	max-width: 24px;
	min-height: 0;
	background: var(--sdb-bar);
	border-radius: 4px 4px 0 0;
	transition: filter .12s;
}
.sdb_bar_zero { height: 0 !important; }
.sdb_col:hover .sdb_bar, .sdb_col:focus .sdb_bar { filter: brightness(1.15); }
.sdb_col:hover, .sdb_col:focus { background: rgba(128,128,128,0.07); border-radius: 4px; }
.sdb_x {
	position: absolute;
	top: 100%;
	margin-top: 6px;
	font-size: 10px;
	opacity: .55;
	white-space: nowrap;
}
.sdb_col[data-tip]:hover::after,
.sdb_col[data-tip]:focus::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 6px 10px;
	border-radius: 8px;
	background: #222;
	color: #fff;
	font-size: 11px;
	white-space: nowrap;
	pointer-events: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sdb_col:first-child[data-tip]:hover::after, .sdb_col:first-child[data-tip]:focus::after,
.sdb_col:nth-child(2)[data-tip]:hover::after, .sdb_col:nth-child(2)[data-tip]:focus::after { left: 0; transform: none; }
.sdb_col:last-child[data-tip]:hover::after, .sdb_col:last-child[data-tip]:focus::after,
.sdb_col:nth-last-child(2)[data-tip]:hover::after, .sdb_col:nth-last-child(2)[data-tip]:focus::after { left: auto; right: 0; transform: none; }
.sdb_table { margin-top: 4px; }
.sdb_foot {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.sdb_foot strong { opacity: 1; color: inherit; }

/* Horizontal magnitude bars (single hue) */
.sdb_hbars { display: flex; flex-direction: column; gap: 12px; }
.sdb_hbar { display: flex; align-items: center; gap: 10px; outline: none; }
.sdb_hbar_main { flex: 1; min-width: 0; }
.sdb_hbar_label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; }
.sdb_hbar_label .bellips { min-width: 0; }
.sdb_track { height: 8px; border-radius: 4px; background: var(--sdb-grid); overflow: hidden; }
.sdb_track span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--sdb-bar); min-width: 2px; }
.sdb_rank {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(128,128,128,0.14);
	font-size: 11px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Sidebar panels */
.sdb_attention { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sdb_att_item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity .15s;
}
.sdb_att_item:hover { opacity: .8; }
.sdb_att_icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
}
.sdb_att_text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sdb_all_clear {
	margin-top: 8px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(67,160,71,0.1);
	color: #2e7d32;
	font-size: 13px;
}
.sdb_mini_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.sdb_mini {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
}
.sdb_mini .bold { font-size: 17px; }
.sdb_customers { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.sdb_customer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px;
	border-radius: 8px;
}
.sdb_customer:hover { background: rgba(128,128,128,0.07); }
.sdb_cust_text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sdb_maint { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sdb_order { padding: 10px 12px; }
.sdb_empty { padding: 14px 2px 4px; }
.sdb_subhead { margin: 16px 0 8px; }
.sdb_warn { color: #e53935; }
.sdb_mini .sdb_delta { font-size: 10px; vertical-align: middle; }

/* Clickable panel title */
.sdb_panel_link { cursor: pointer; transition: opacity .15s; }
.sdb_panel_link span { flex: 1; }
.sdb_panel_link .fa-chevron-right { font-size: 11px; font-weight: 400; }
.sdb_panel_link:hover { opacity: .8; }

/* Sales funnel */
.sdb_funnel_rate { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.sdb_funnel_rate .bold { font-size: 22px; }
.sdb_funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.sdb_funnel_step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 12px;
	min-width: 0;
}
.sdb_funnel_step .sdb_att_icon { margin-bottom: 6px; }
.sdb_funnel_num { font-size: 22px; line-height: 1.15; }
.sdb_funnel_step + .sdb_funnel_step::before {
	content: "\203A";
	position: absolute;
	left: -16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	opacity: .4;
}
.sdb_funnel_chip {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(128,128,128,0.14);
}

/* Stacked split bar + legend */
.sdb_split { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--sdb-grid); }
.sdb_seg { display: block; height: 100%; min-width: 3px; }
.sdb_seg_gateway { background: var(--sdb-bar); }
.sdb_seg_free { background: #43a047; }
.sdb_seg_gift { background: #8e24aa; }
.sdb_seg_donation { background: #fb8c00; }
.sdb_seg_other, .sdb_split .sdb_seg:not(.sdb_seg_gateway):not(.sdb_seg_free):not(.sdb_seg_gift):not(.sdb_seg_donation) { background: #90a4ae; }
.sdb_legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.sdb_legend span { display: inline-flex; align-items: center; gap: 5px; }
.sdb_legend_dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

@media (max-width: 640px) {
	.sdb_chart { height: 180px; }
	.sdb_period_total .bold { font-size: 22px; }
	.sdb_x { font-size: 9px; }
	.sdb_col[data-tip]:hover::after, .sdb_col[data-tip]:focus::after { white-space: normal; width: 140px; }
	.sdb_funnel { grid-template-columns: 1fr; gap: 8px; }
	.sdb_funnel_step + .sdb_funnel_step::before { display: none; }
}

/* Product quick view (spv_) — uses the spf_ modal frame */
.spv_head { align-items: flex-start; }
.spv_hero { display: flex; gap: 16px; align-items: center; min-width: 0; }
.spv_thumb {
	width: 84px;
	height: 84px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}
.spv_thumb img { max-width: 78%; max-height: 78%; object-fit: contain; border-radius: 8px; }
.spv_hero_text { min-width: 0; }
.spv_name { font-size: 19px; line-height: 1.25; margin: 2px 0 4px; word-break: break-word; }
.spv_meta { margin-top: 6px; opacity: .6; }
.spv_status { margin: 0 0 14px; }
.spv_tabs { margin-bottom: 16px; max-width: 320px; }
.spv_tabs .sap_tab_count { margin-left: 4px; }
.spv_desc { font-size: 14px; line-height: 1.65; word-break: break-word; }
.spv_reqs { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.spv_reqs li {
	list-style: none;
	display: flex;
	gap: 10px;
	align-items: baseline;
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(128,128,128,0.07);
}
.spv_reqs li i { color: #43a047; font-size: 11px; }
.spv_foot { justify-content: space-between; }
.spv_price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.spv_price_now { font-size: 22px; }
.spv_price .store_price_old { margin: 0; font-size: 12px; }
.spv_actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
	.spv_thumb { width: 64px; height: 64px; border-radius: 12px; }
	.spv_name { font-size: 16px; }
	.spf_modal_foot.spv_foot { flex-wrap: wrap; }
	.spv_price { flex-direction: row; align-items: baseline; gap: 8px; width: 100%; }
	.spv_actions { width: 100%; }
	.spf_modal_foot .spv_actions .sap_buy_btn { flex: 1 1 auto; }
	.spf_modal_foot .spv_actions .sap_outline_btn { flex: 0 0 auto; }
}

.sap_pill_blue { background: rgba(3,173,216,0.14); color: #0288b0; }

/* Store news feed (sne_) */
.sne_feed { display: flex; flex-direction: column; }
.sne_card { padding: 18px 20px; }
.sne_head { display: flex; align-items: center; gap: 12px; }
.sne_avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sne_who { flex: 1; min-width: 0; }
.sne_name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.sne_del { flex-shrink: 0; }
.sne_tools { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; }
.sne_pinned { box-shadow: inset 3px 0 0 #8b5cf6; }
/* News box: write / preview, pin */
.snw_tabs { margin-bottom: 14px; }
.snw_preview { margin-bottom: 14px; }
.snw_preview[hidden], #sn_write[hidden], .sne_media[hidden] { display: none; }
.snw_card { border-radius: 14px; border-width: 1px; border-style: solid; max-height: 52vh; overflow-y: auto; }
.snw_pin_on { color: #8b5cf6; background: rgba(139,92,246,0.12); }
.sne_body {
	margin-top: 12px;
	font-size: 14.5px;
	line-height: 1.65;
	word-break: break-word;
}
.sne_body a { color: #03add8; }
.sne_media { margin-top: 12px; border-radius: 12px; overflow: hidden; background: rgba(128,128,128,0.08); }
.sne_media img { display: block; width: 100%; max-height: 460px; object-fit: contain; }
.sne_media_chat { background: transparent; }
.sne_media_chat .post_image img,
.sne_media_chat video { max-width: 100%; max-height: 460px; border-radius: 12px; display: block; }
.sne_media_chat audio { width: 100%; }
.sne_foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(128,128,128,0.14);
}
.sne_reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.sne_reactions .like_count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 16px;
	background: rgba(128,128,128,0.08);
	font-size: 12px;
	cursor: pointer;
	transition: background .15s, transform .1s;
}
.sne_reactions .like_count:hover { background: rgba(128,128,128,0.16); }
.sne_reactions .like_count:active { transform: scale(.95); }
.sne_reactions .like_count.liked { background: rgba(3,173,216,0.15); color: #0288b0; font-weight: 700; }
.sne_reactions .like_icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
	.sne_card { padding: 14px; }
	.sne_foot { flex-wrap: wrap; }
}

/* License keys box (lm_ v2, inside the spf_ modal frame) */
.lm_body .lm_list { display: flex; flex-direction: column; gap: 12px; }
.lm_notice { margin: 0 0 14px; }
.lm_body .lm_card {
	padding: 14px 16px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.lm_card_locked { border-color: rgba(229,57,53,0.35) !important; }
.lm_card_top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lm_label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .55; }
.lm_body .lm_key_row { display: flex; gap: 8px; align-items: stretch; }
.lm_body .lm_key_input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px dashed rgba(3,173,216,0.5) !important;
	background: rgba(3,173,216,0.06) !important;
	color: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
	box-sizing: border-box;
	cursor: text;
}
.lm_card_locked .lm_key_input { border-color: rgba(229,57,53,0.4) !important; background: rgba(229,57,53,0.05) !important; text-decoration: line-through; opacity: .7; }
.lm_body .lm_copy_btn { height: 44px; border-radius: 10px; flex-shrink: 0; }
.lm_domain {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(128,128,128,0.07);
}
.lm_body .lm_domain_display { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lm_domain_icon {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
}
.lm_domain_text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lm_domain_name { word-break: break-all; }
.lm_domain .sap_outline_btn { flex-shrink: 0; }
.lm_edit_row { display: flex; gap: 8px; align-items: center; }
.lm_edit_row .full_input { flex: 1; min-width: 0; }
.lm_body .lm_meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lm_body .lm_meta i { margin-right: 3px; }
.lm_howto {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 14px;
	font-size: 12px;
	line-height: 1.5;
	opacity: .75;
}
.lm_howto i { margin-top: 2px; }
@media (max-width: 640px) {
	.lm_domain { flex-direction: column; align-items: stretch; }
	.lm_domain .sap_outline_btn { justify-content: center; }
	.lm_body .lm_copy_btn span { display: none; }
}

.lm_body .lm_list { padding: 0; }

/* Quick view gallery: stage + thumbnail strip */
.spv_viewer {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(128,128,128,0.1);
	outline: none;
}
.spv_viewer:focus-visible { box-shadow: 0 0 0 3px rgba(3,173,216,0.35); }
.spv_stage {
	height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	box-sizing: border-box;
	cursor: zoom-in;
}
.spv_stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.12);
	transition: opacity .15s;
}
.spv_stage img.spv_fade { opacity: .25; }
.spv_zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	pointer-events: none;
}
.spv_nav {
	position: absolute;
	top: 50%;
	margin-top: -20px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	color: #333;
	box-shadow: 0 2px 10px rgba(0,0,0,0.18);
	cursor: pointer;
	font-size: 14px;
	transition: transform .12s, background .15s;
}
.spv_nav:hover { background: #fff; transform: scale(1.06); }
.spv_prev { left: 12px; }
.spv_next { right: 12px; }
.spv_counter {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 12px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	pointer-events: none;
}
.spv_thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding: 2px 2px 6px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.spv_thumb_btn {
	flex: 0 0 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(128,128,128,0.12);
	cursor: pointer;
	opacity: .6;
	transition: opacity .15s, border-color .15s;
}
.spv_thumb_btn img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.spv_thumb_btn:hover { opacity: 1; }
.spv_thumb_btn.spv_thumb_on { opacity: 1; border-color: #03add8; }
@media (max-width: 640px) {
	.spv_stage { height: 300px; padding: 10px; }
	.spv_nav { width: 34px; height: 34px; margin-top: -17px; }
	.spv_thumb_btn { flex-basis: 54px; height: 54px; }
}

/* Full product page (spg_) */
.spv_gal_lg .spv_stage { height: 460px; }
.spg_hero_card { padding: 20px 22px; }
.spg_crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-bottom: 16px;
	opacity: .85;
}
.spg_crumbs .bclick:hover { color: #03add8; }
.spg_crumbs .fa-chevron-right { font-size: 9px; opacity: .45; }
.spg_hero { display: flex; gap: 22px; align-items: center; }
.spg_hero_img {
	width: 132px;
	height: 132px;
	border-radius: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.spg_hero_img img { max-width: 76%; max-height: 76%; object-fit: contain; border-radius: 10px; }
.spg_hero_text { min-width: 0; flex: 1; }
.spg_badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.spg_badges .sap_card_cat { margin: 0 4px 0 0; }
.spg_name { margin: 6px 0 6px; font-size: 26px; line-height: 1.2; font-weight: 700; word-break: break-word; }
.spg_excerpt { margin: 0 0 10px; font-size: 14px; line-height: 1.55; opacity: .7; max-width: 680px; }
.spg_chips { display: flex; flex-wrap: wrap; gap: 6px; }
.spg_chips span {
	padding: 4px 10px;
	border-radius: 14px;
	background: rgba(128,128,128,0.1);
	font-size: 12px;
}
.spg_chips i { margin-right: 4px; opacity: .6; }
.spg_section_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.spg_section_head .sad_section_title { margin: 0; }
.spg_desc { font-size: 14.5px; line-height: 1.75; }
.spg_reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
#spg_related.spg_related {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}
.spg_sticky { position: sticky; top: calc(var(--store-head) + var(--store-gap)); }
.spg_buy { padding: 18px; }
.spg_price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spg_price_now { font-size: 30px; line-height: 1; }
.spg_price .store_price_old { margin: 0; font-size: 14px; }
.spg_buy_actions { display: flex; flex-direction: column; gap: 8px; }
.spg_buy_actions .sap_btn_full { margin-top: 0; }
.spg_cta { height: 46px; font-size: 14px; border-radius: 23px; }
.spg_perks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(128,128,128,0.14); display: flex; flex-direction: column; gap: 8px; }
.spg_perks li { list-style: none; display: flex; gap: 10px; align-items: baseline; opacity: .8; }
.spg_perks i { color: #43a047; width: 14px; text-align: center; }
.spg_details { margin: 6px 0 0; display: flex; flex-direction: column; }
.spg_details > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(128,128,128,0.12);
	font-size: 13px;
}
.spg_details > div:last-child { border-bottom: none; }
.spg_details dt { opacity: .6; }
.spg_details dd { margin: 0; font-weight: 700; text-align: right; }
.spg_share { display: flex; gap: 8px; margin-top: 8px; }
.spg_share input {
	flex: 1;
	min-width: 0;
	height: 38px;
	padding: 0 12px;
	border-radius: 19px;
	font-size: 12px;
	box-sizing: border-box;
	color: inherit;
}
.spg_share .sap_buy_btn { height: 38px; flex-shrink: 0; }
@media (max-width: 1024px) {
	.spg_sticky { position: static; }
}
@media (max-width: 640px) {
	.spg_hero_card { padding: 16px; }
	.spg_hero { flex-direction: column; align-items: flex-start; gap: 14px; }
	.spg_hero_img { width: 88px; height: 88px; border-radius: 18px; }
	.spg_name { font-size: 21px; }
	.spv_gal_lg .spv_stage { height: 320px; }
	#spg_related.spg_related { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Discover card (sdc_) — My Account sidebar */
.sdc_head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sdc_head .sap_panel_title { margin: 0; }
.sdc_nav { display: flex; gap: 4px; }
.sdc_arrow {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	font-size: 11px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.sdc_arrow:hover { border-color: #03add8; color: #03add8; }
.sdc_viewport { overflow: hidden; border-radius: 12px; }
.sdc_track {
	display: flex;
	transition: transform .5s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.sdc_slide { flex: 0 0 100%; min-width: 0; cursor: pointer; box-sizing: border-box; }
.sdc_media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 10px;
}
.sdc_media img { max-width: 60%; max-height: 70%; object-fit: contain; border-radius: 8px; transition: transform .3s; }
.sdc_slide:hover .sdc_media img { transform: scale(1.06); }
.sdc_badge { position: absolute; top: 8px; left: 8px; }
.sdc_badge_free { background: #43a047; }
.sdc_name { font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sdc_blurb {
	margin-top: 4px;
	line-height: 1.45;
	opacity: .65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}
.sdc_foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sdc_price { font-size: 16px; }
.sdc_price .store_price_old { font-size: 11px; margin: 0 0 0 4px; }
.sdc_foot .sap_buy_btn { height: 32px; padding: 0 14px; }
.sdc_bottom { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sdc_dots { display: flex; gap: 5px; flex-shrink: 0; }
.sdc_dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: rgba(128,128,128,0.35);
	cursor: pointer;
	transition: width .25s, background .25s;
}
.sdc_dot_on { width: 18px; background: #03add8; }
.sdc_progress { flex: 1; height: 3px; border-radius: 2px; background: rgba(128,128,128,0.16); overflow: hidden; }
.sdc_progress span { display: block; height: 100%; width: 0; background: #03add8; border-radius: 2px; }
.sdc_progress span.sdc_run { animation: sdc_fill 5s linear forwards; }
@keyframes sdc_fill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
	.sdc_track, .sdc_media img, .sdc_dot { transition: none; }
	.sdc_progress { display: none; }
}

/* ============================================
   UI polish pass
   ============================================ */

/* #9 Readable muted text (was very faint on grey tiles) */
.store_muted { opacity: 0.7; }
.sap_card_meta, .sad_meta { opacity: 0.72; }
.sap_sort_btn { opacity: 0.82; }
.smf_help, .sad_hint { opacity: 0.68; }

/* #8 One corner radius for cards, tiles and inputs */
#page_content #page_wrapper .page_element { border-radius: 12px; }
.shx_stat, .sdb_mini, .sad_row, .sap_tx_row, .sfq_item { border-radius: 12px; }

/* #4 One inner padding for every sidebar panel */
.sap_panel { padding: 20px; }

/* #11 One style for card / panel titles */
.sap_panel_title { font-size: 15px; font-weight: 700; }


/* #1 + #6 My Account: greeting · stats · actions in one row, light stat items */
.shx_bar_card { padding: 16px 20px; }
.shx_bar { display: flex; align-items: center; gap: 20px; }
.shx_bar .shx_hero_user { flex-shrink: 0; }
.shx_bar_stats {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}
.shx_mini {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px;
	min-width: 0;
}
.shx_mini + .shx_mini { border-left: 1px solid rgba(128,128,128,0.18); }
.shx_mini_icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
}
.shx_mini_value { display: block; font-size: 17px; line-height: 1.15; white-space: nowrap; }
.shx_mini_label { display: block; font-size: 11px; opacity: .7; white-space: nowrap; }
.shx_bar .shx_hero_actions { flex-shrink: 0; }

/* #3 Shorter library images so more products fit on screen */
.sap_grid_lib .sap_card_media { aspect-ratio: 16 / 5; }
.sap_grid_lib .sap_card_img { max-height: 78%; }

/* #5 Library buttons: soft instead of a wall of solid green */
.sap_lib_foot { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; }
.sap_lib_btn {
	flex: 1 1 0;
	height: 34px;
	padding: 0 10px;
	border-radius: 17px;
	border: 1px solid rgba(128,128,128,0.28);
	background: transparent;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	transition: border-color .15s, color .15s, background .15s;
}
.sap_lib_btn:hover { border-color: #03add8; color: #03add8; }
.sap_lib_btn.sap_lib_dl {
	border-color: transparent;
	background: rgba(67,160,71,0.13);
	color: #2e7d32;
}
.sap_lib_btn.sap_lib_dl:hover { background: #43a047; color: #fff; }

/* #7 Lighter, shorter Discover image; #10 bigger Discover price */
.sdc_media { aspect-ratio: 11 / 5; background: rgba(128,128,128,0.06) !important; }
.sdc_price { font-size: 19px; }
.sdc_price .bold { font-weight: 800; }
.sdc_price .store_price_old { font-size: 12px; margin-left: 6px; }

@media (max-width: 1180px) {
	.shx_bar { flex-wrap: wrap; }
	.shx_bar_stats { order: 3; flex: 1 1 100%; justify-content: flex-start; padding-top: 14px; border-top: 1px solid rgba(128,128,128,0.14); }
	.shx_bar .shx_hero_actions { margin-left: auto; }
	.shx_mini:first-child { padding-left: 0; }
}
@media (max-width: 760px) {
}
@media (max-width: 640px) {
	.shx_bar .shx_hero_actions { width: 100%; }
	.shx_bar_stats { justify-content: space-between; }
	.shx_mini { padding: 0 10px; gap: 8px; }
	.shx_mini_icon { display: none; }
	.shx_mini_value { font-size: 15px; }
	.sap_grid_lib .sap_card_media { aspect-ratio: 3 / 1; }
}

/* My Account filters: tabs + search, then category chips + sort toggle */
.shx_filters_card { padding: 14px 16px; }
.shx_frow { display: flex; align-items: center; gap: 12px; }
.shx_frow .sap_tabs { margin: 0; flex-shrink: 0; }
.shx_frow .shx_search { flex: 1 1 auto; min-width: 0; max-width: none; height: 36px; }
.shx_frow2 { margin-top: 12px; }
.shx_chips {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 1px 0;
}
.shx_chips::-webkit-scrollbar { display: none; }
.shx_chips .store_chip { flex-shrink: 0; padding: 5px 12px; font-size: 12.5px; }
.shx_sortseg {
	display: inline-flex;
	flex-shrink: 0;
	padding: 2px;
	border-radius: 16px;
	background: rgba(128,128,128,0.1);
}
.shx_sortseg button {
	border: none;
	background: transparent;
	color: inherit;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 14px;
	cursor: pointer;
	opacity: .75;
}
.shx_sortseg button:hover { opacity: 1; }
.shx_sortseg .shx_sort_on { background: #fff; color: #0288b0; font-weight: 700; opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Library card footer: [i] [License] [Download] */
.sap_lib_foot .sap_lib_info { flex: 0 0 34px; width: 34px; height: 34px; }
.sap_grid_lib .sap_card { container-type: inline-size; }
@container (max-width: 250px) {
	.sap_lib_btn:not(.sap_lib_dl) span { display: none; }
	.sap_lib_btn:not(.sap_lib_dl) { flex: 0 0 34px; padding: 0; }
}
@media (max-width: 640px) {
	.shx_frow { flex-wrap: wrap; }
	.shx_frow .sap_tabs { flex: 1 1 100%; }
	.shx_frow .sap_tabs .sap_sort_btn { flex: 1; }
	.shx_frow .shx_search { flex: 1 1 100%; }
	.shx_frow2 { flex-wrap: nowrap; }
}

/* ============================================
   Global store search (gs_)
   ============================================ */
/* Header trigger: a pill on desktop, an icon on phones */
.gs_trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	height: 36px;
	padding: 0 8px 0 14px;
	border-radius: 18px;
	border: 1px solid rgba(255,255,255,0.14);
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.75);
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.gs_trigger:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }
.gs_trigger_text { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs_trigger kbd, .gs_foot kbd {
	display: inline-block;
	min-width: 18px;
	padding: 1px 6px;
	border-radius: 5px;
	border: 1px solid rgba(128,128,128,0.35);
	font-family: inherit;
	font-size: 11px;
	line-height: 16px;
	text-align: center;
}
.gs_trigger kbd { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }
.gs_trigger_mob { display: none; }
@media (max-width: 768px) {
	.gs_trigger { display: none; }
	.gs_trigger_mob { display: table-cell; }
}

/* Overlay + panel */
body.gs_lock { overflow: hidden; }
.gs_overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 9vh 16px 16px;
	background: rgba(10,14,20,0.55);
	backdrop-filter: blur(2px);
}
.gs_overlay.gs_open { display: flex; animation: gs_in .12s ease-out; }
@keyframes gs_in { from { opacity: 0; } to { opacity: 1; } }
.gs_panel {
	width: 100%;
	max-width: 660px;
	max-height: 78vh;
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.gs_bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px 0 18px;
	height: 60px;
	border-bottom: 1px solid rgba(128,128,128,0.16);
	flex-shrink: 0;
}
.gs_bar_icon { font-size: 16px; opacity: .5; }
.gs_bar input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit;
	font-size: 17px;
	outline: none;
	padding: 0;
}
.gs_spin { opacity: 0; transition: opacity .15s; font-size: 14px; }
.gs_spin.gs_on { opacity: .5; }
.gs_esc {
	border: 1px solid rgba(128,128,128,0.3);
	background: transparent;
	color: inherit;
	border-radius: 6px;
	font-size: 11px;
	padding: 3px 8px;
	cursor: pointer;
	opacity: .7;
}
.gs_results { flex: 1; overflow-y: auto; padding: 8px 8px 10px; }
.gs_group + .gs_group { margin-top: 6px; }
.gs_group_head {
	padding: 10px 10px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .55;
}
.gs_chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 6px; }
.gs_chips .smf_chip i { margin-right: 4px; opacity: .6; }
.gs_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 10px;
	cursor: pointer;
}
.gs_item.gs_sel { background: rgba(3,173,216,0.1); }
.gs_thumb, .gs_icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	font-size: 14px;
}
.gs_thumb img { max-width: 76%; max-height: 76%; object-fit: contain; }
.gs_main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.gs_name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs_name mark { background: rgba(3,173,216,0.2); color: inherit; border-radius: 3px; padding: 0 1px; }
.gs_sub { font-size: 12px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs_side { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.2; }
.gs_price { font-weight: 700; font-size: 13px; }
.gs_side .store_price_old { margin: 0; font-size: 11px; }
.gs_go { opacity: 0; font-size: 11px; transition: opacity .1s; }
.gs_item.gs_sel .gs_go { opacity: .6; }
.gs_none { text-align: center; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gs_none .sap_outline_btn { margin-top: 10px; }
.gs_foot {
	display: flex;
	gap: 18px;
	padding: 10px 18px;
	border-top: 1px solid rgba(128,128,128,0.16);
	font-size: 11px;
	opacity: .7;
	flex-shrink: 0;
}
.gs_foot kbd { margin-right: 3px; }
/* Landing highlight for items opened from search */
.gs_flash { animation: gs_flash 2.2s ease-out 1; }
@keyframes gs_flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(3,173,216,0.55); } 100% { box-shadow: 0 0 0 3px rgba(3,173,216,0); } }
@media (max-width: 640px) {
	.gs_overlay { padding: 0; align-items: stretch; }
	.gs_panel { max-width: none; max-height: none; border-radius: 0; height: 100%; }
	.gs_foot { display: none; }
	.gs_bar input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.gs_overlay.gs_open, .gs_flash { animation: none; }
}

/* Admin: customers & licenses (setting_store_customers / setting_store_customer / store_license_admin) */
.shx_stats.sad_stats5 { grid-template-columns: repeat(5, 1fr); }
.sad_tx.sad_cust,
.sad_tx_head.sad_cust { grid-template-columns: minmax(200px, 2.4fr) 0.9fr 0.9fr 0.7fr 1fr 24px; }
.sad_tx.sad_lic,
.sad_tx_head.sad_lic { grid-template-columns: minmax(220px, 2.2fr) minmax(120px, 1.2fr) minmax(130px, 1.4fr) 0.7fr 0.7fr 92px; }
.sad_lic_nouser .sad_tx.sad_lic,
.sad_tx_head.sad_lic_nouser { grid-template-columns: minmax(220px, 2.4fr) minmax(130px, 1.6fr) 0.7fr 0.7fr 92px; }
.sad_cust:hover .fa-chevron-right { color: #03add8; opacity: 1; }
.sad_lic .sad_media { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
.sad_lic .sad_inline_code { display: inline-block; margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
.sad_lic .sad_title.bclick:hover { color: #03add8; }
.sad_lic .sad_actions { justify-content: flex-end; }
.sad_lic_off .sad_media,
.sad_lic_off .sad_title,
.sad_lic_off .sad_inline_code { opacity: .55; }
.sad_avatar_sm { width: 26px; height: 26px; }
.sad_back { margin-bottom: 14px; gap: 6px; }

.sad_lic_key { margin-bottom: 14px; }
.sad_lic_key .sad_code { padding-right: 50px; font-size: 14px; letter-spacing: .5px; }
.sad_lic_key .sad_copy { width: 30px; height: 30px; padding: 0; }
.sad_kv {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px 16px;
	font-size: 13px;
}
.sad_kv > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; word-break: break-word; }
.sad_kv_label { font-size: 11px; font-weight: 600; opacity: .55; }

.sad_hist { display: flex; flex-direction: column; }
.sad_hist_item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(128,128,128,0.12);
}
.sad_hist_item:last-child { border-bottom: none; }
.sad_hist_icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}
.sad_hist_item .sap_pill { margin-left: 6px; vertical-align: 1px; }
.sad_hist_item .sad_meta { margin-top: 2px; }
.sad_hist_date { flex-shrink: 0; text-align: right; line-height: 1.45; }
.sad_hist_empty {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px;
	border-radius: 10px;
	background: rgba(128,128,128,0.07);
}

@media (max-width: 1100px) {
	.shx_stats.sad_stats5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.shx_stats.sad_stats5 { grid-template-columns: repeat(2, 1fr); }
	.sad_tx.sad_cust,
	.sad_tx.sad_lic,
	.sad_lic_nouser .sad_tx.sad_lic { grid-template-columns: 1fr 1fr; }
	.sad_tx.sad_cust > .sad_tx_right:last-child { display: none; }
	.sad_lic .sad_actions { grid-column: 1 / -1; justify-content: flex-start; }
	.sad_kv { grid-template-columns: repeat(2, 1fr); }
}
.sad_lic_user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sad_lic_user > span { min-width: 0; flex: 1; }
.sad_lic_user::before { width: 100%; }

/* User purchases (store_user_purchases) */
.spu_head { margin-bottom: 0; }
.spu_head + .sap_toolbar { margin-top: 14px; }
.spu_tabs { margin-left: 0; }
.spu_item .sad_media { width: 52px; height: 52px; }
.spu_item .sad_title { display: flex; align-items: center; gap: 6px; }
.spu_item .sad_title > .bclick { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.spu_item .sad_title > .bclick:hover { color: #03add8; }
.spu_item .sad_title .sap_pill { margin-left: 0; flex-shrink: 0; }
.spu_license {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 7px;
}
.spu_license .sad_inline_code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spu_license .sad_inline_code i { opacity: .5; margin-right: 2px; }
.spu_item .sad_side { min-width: 64px; }
.spu_dl:hover { border-color: #43a047; color: #43a047; }
.sad_tx.spu_tx,
.sad_tx_head.spu_tx { grid-template-columns: minmax(200px, 2fr) 1.4fr 0.8fr 0.8fr; }
.spu_gw { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
@media (max-width: 900px) {
	.sad_tx.spu_tx { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.spu_tabs { width: 100%; }
	.spu_tabs .sap_sort_btn { flex: 1; padding: 7px 8px; }
	.spu_item .sad_side { margin-left: 62px; }
}

/* Bundles: storefront */
.sap_badge_bundle { background: #7e57c2; }
.sap_card_bundle { color: #7e57c2; font-weight: 600; }
.spb_inc { display: flex; flex-direction: column; }
.spb_inc_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(128,128,128,0.12);
}
.spb_inc_thumb {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spb_inc_thumb img { width: 100%; height: 100%; object-fit: cover; }
.spb_inc_name { font-size: 13px; }
.spb_inc_name:hover { color: #03add8; }
.spb_inc_owned .spb_inc_thumb,
.spb_inc_owned .spb_inc_name { opacity: .6; }
.spb_inc_total {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 12px 0 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(128,128,128,0.07);
	font-size: 13px;
}
.spb_inc_total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.spb_inc_total .store_price_old { margin: 0; }
.spb_inc_you { padding-top: 6px; border-top: 1px solid rgba(128,128,128,0.18); font-size: 14px; }

/* Bundles: collage when a bundle has no image of its own */
.sbd_collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	width: 100%;
	height: 100%;
	background: rgba(128,128,128,0.15);
}
.sbd_collage img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.sbd_collage_1 { grid-template-columns: 1fr; }
.sbd_collage_3 img:first-child { grid-row: span 2; }
.sap_card_media .sbd_collage { position: absolute; inset: 0; }
.sbd_row_media { padding: 0; }
.sbd_row_media img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.spv_thumb .sbd_collage,
.spg_hero_img .sbd_collage,
.sct_thumb .sbd_collage { border-radius: inherit; overflow: hidden; }

/* Bundles: admin editor (store_bundle box) */
.sbd_tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
/* .sap_cats has flex-basis 260px for row toolbars; in this column it would become its height */
.sbd_tools .sap_cats { flex: 0 0 auto; align-items: center; }
.sbd_search { flex: none; width: 100%; max-width: none; box-sizing: border-box; }
.sbd_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
	max-height: 330px;
	overflow-y: auto;
	padding: 2px;
}
.sbd_pick {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
	border-radius: 12px;
	border: 1.5px solid rgba(128,128,128,0.22);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
	min-width: 0;
}
.sbd_pick:hover { border-color: rgba(3,173,216,0.55); }
.sbd_pick input { position: absolute; opacity: 0; pointer-events: none; }
.sbd_pick_on { border-color: #03add8; background: rgba(3,173,216,0.07); box-shadow: 0 0 0 3px rgba(3,173,216,0.14); }
.sbd_pick_off .sbd_pick_img,
.sbd_pick_off .sbd_pick_name { opacity: .55; }
.sbd_pick_check {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #fff;
	background: rgba(0,0,0,0.25);
	border: 2px solid #fff;
	opacity: 0;
	transition: opacity .15s, background .15s;
}
.sbd_pick:hover .sbd_pick_check { opacity: .8; }
.sbd_pick_on .sbd_pick_check { opacity: 1; background: #03add8; }
.sbd_pick_img {
	height: 74px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sbd_pick_img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sbd_pick_name { font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbd_pick_meta { display: flex; justify-content: space-between; gap: 6px; }
.sbd_pick_meta .store_muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbd_empty { padding: 16px; text-align: center; }
.sbd_tray {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(3,173,216,0.07);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.sbd_tray_list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.sbd_tray_chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 4px 3px 10px;
	border-radius: 14px;
	font-size: 12px;
	background: rgba(3,173,216,0.14);
}
.sbd_tray_chip b { font-weight: 600; opacity: .7; }
.sbd_tray_chip button {
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 10px;
	opacity: .6;
}
.sbd_tray_chip button:hover { opacity: 1; background: rgba(0,0,0,0.08); }
.sbd_tray_total { white-space: nowrap; }
.sbd_suggest {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}
.sbd_tier {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid rgba(128,128,128,0.22);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.sbd_tier:hover { border-color: rgba(3,173,216,0.55); }
.sbd_tier_on { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.14); }
.sbd_tier_rec::after {
	content: 'Best balance';
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 1px 8px;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: #43a047;
}
.sbd_tier_title { font-size: 12px; font-weight: 700; opacity: .75; }
.sbd_tier_title i { color: #03add8; margin-right: 3px; }
.sbd_tier_price { font-size: 22px; line-height: 1.2; margin: 2px 0; }
.sbd_tier_line { font-size: 12px; }
.sbd_tier_line i { opacity: .55; margin-right: 3px; }
.sbd_tier_note { margin-top: 4px; line-height: 1.4; }
.sbd_price_row { margin-bottom: 4px; }
@media (max-width: 640px) {
	.sbd_suggest { grid-template-columns: 1fr; }
	.sbd_grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 280px; }
}
.sct_thumb .sbd_collage img,
.spv_thumb .sbd_collage img,
.spg_hero_img .sbd_collage img,
.sap_card_media .sbd_collage img,
.sad_media .sbd_collage img { max-width: none; max-height: none; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }

/* Phones: stat labels wrap instead of being cut off */
@media (max-width: 480px) {
	.shx_stat .text_xsmall { white-space: normal; overflow: visible; line-height: 1.3; }
}

/* Clickable store notifications */
.snotify_link { cursor: pointer; }
.snotify_go { font-size: 11px; opacity: .35; }
.snotify_link:hover .snotify_go { opacity: .8; color: #03add8; }
.snotify_full { white-space: pre-line; }

/* Cart checkout: BoomCoding username + terms, inline above Pay */
.sct_boom {
	margin-top: 12px;
	padding: 12px;
	border-radius: 10px;
	background: rgba(3,173,216,0.07);
}
.sct_boom_title i { margin-right: 4px; }
.sct_boom_why { margin: 4px 0 10px; line-height: 1.45; }
.sct_boom_field { margin: 0; }
.sct_boom_field input { text-transform: none; }
.sct_boom_ok { color: #43a047; line-height: 1.45; }
.sct_terms {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(128,128,128,0.2);
	line-height: 1.45;
	transition: border-color .15s, background .15s;
}
.sct_terms input { margin: 3px 0 0; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; }
.sct_terms a, .sct_terms_link { text-decoration: underline; cursor: pointer; }
.sct_terms_warn { border-color: #e53935; background: rgba(229,57,53,0.06); }
.sct_pay_error { color: #e53935; }

/* Cart: yellow purchase notice */
.sct_notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	padding: 8px 11px;
	border-radius: 10px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	color: #7a5a00;
	line-height: 1.45;
}
.sct_notice i { color: #f9a825; margin-top: 2px; flex-shrink: 0; }

/* "Preparing your payment" window */
.spay_prep { text-align: center; padding: 30px 24px 22px; }
.spay_prep_ring {
	position: relative;
	width: 88px;
	height: 88px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.spay_prep_spin {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid rgba(3,173,216,0.15);
	border-top-color: #03add8;
	animation: spay_spin .9s linear infinite;
}
.spay_prep_icon i { font-size: 32px !important; }
.spay_prep_title { font-size: 17px; margin-bottom: 4px; }
.spay_prep_sub { margin-bottom: 18px; min-height: 18px; }
.spay_prep_steps {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 18px;
	text-align: left;
}
.spay_step { opacity: .4; transition: opacity .2s; }
.spay_step i { width: 16px; margin-right: 6px; font-size: 12px; }
.spay_step_now { opacity: 1; font-weight: 600; }
.spay_step_now i { color: #03add8; }
.spay_step_done { opacity: .85; }
.spay_step_done i { color: #43a047; }
.spay_prep_note i { margin-right: 3px; }
@keyframes spay_spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.spay_prep_spin { animation-duration: 2.5s; }
}

.sct_pay_status:empty { display: none; }
.sct_pay_status { margin-top: 8px; }
.sbd_tray_chip.sbd_tray_off { opacity: .55; text-decoration: line-through; }

/* Store logs > Mail */
.slog_err { color: #e53935; word-break: break-word; }
.slog_tab_alert { background: #e53935 !important; color: #fff !important; }
.sdb_boom_sync { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,0.14); }
.sdb_boom_log:empty { display: none; }
/* Customer purchases page: BoomCoding sync row */
.spu_boom { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; }
.spu_boom_icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spu_boom_text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) { .spu_boom { flex-wrap: wrap; } .spu_boom .sap_outline_btn { width: 100%; justify-content: center; } }

/* BoomCoding sync modal (storeBoomSyncModal) */
.sbs_status { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sbs_state_ok { color: #43a047; }
.sbs_state_bad { color: #e53935; }
.sbs_bar { height: 8px; border-radius: 4px; background: rgba(128,128,128,0.16); overflow: hidden; }
.sbs_bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: #03add8; transition: width .3s ease; }
.sbs_counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.sbs_count { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.sbs_count .bold { font-size: 18px; }
.sbs_count_bad .bold { color: #e53935; }
.sbs_list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.sbs_item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: rgba(128,128,128,0.06); }
.sbs_item_icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; color: #fff; margin-top: 1px; }
.sbs_ok .sbs_item_icon { background: #43a047; }
.sbs_fail .sbs_item_icon { background: #e53935; }
.sbs_item_main { min-width: 0; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.sbs_err { color: #e53935; }
.sbs_empty { padding: 10px 2px; }
/* Products page: per-product sync button with its count */
.sad_boom_btn { position: relative; color: #03add8; }
.sad_boom_count { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #03add8; color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center; }

/* Notification center (admin/setting_notifications.php) */
.snc_dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(128,128,128,0.45); margin-left: 2px; vertical-align: 1px; }
.snc_dot_on { background: #43a047; }
.snc_table { display: flex; flex-direction: column; margin-top: 6px; }
.snc_row { display: grid; grid-template-columns: 1fr repeat(3, 84px); align-items: center; gap: 10px; padding: 12px 4px; border-top: 1px solid rgba(128,128,128,0.12); }
.snc_row_head { border-top: 0; padding-top: 4px; padding-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.snc_event { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.snc_event .sap_pill { margin-left: 4px; vertical-align: 1px; }
.snc_ch { display: flex; justify-content: center; }
.smf_switch.snc_na { opacity: .3; cursor: not-allowed; }
.smf_switch.snc_na input { cursor: not-allowed; }
.snc_test { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.snc_test .full_input { flex: 1; min-width: 200px; }
.snc_result { margin-top: 10px; font-size: 13px; }
.snc_result:empty { display: none; }
.snc_ok { color: #43a047; }
.snc_bad { color: #e53935; }
.snc_chats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.snc_chats:empty { display: none; }
.snc_chats > .text_xsmall, .snc_chats > .text_small { width: 100%; }
.snc_chat { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(128,128,128,0.2); border-radius: 10px; cursor: pointer; color: inherit; font: inherit; }
.snc_chat:hover, .snc_chat_on { border-color: #03add8; box-shadow: 0 0 0 2px rgba(3,173,216,0.2); }
.snc_chev { margin-left: auto; transition: transform .2s; }
.snc_flip { transform: rotate(180deg); }
.snc_guide .sad_section_title { display: flex; align-items: center; gap: 8px; }
.snc_steps { margin: 12px 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; }
.snc_steps ul { margin: 6px 0 0; padding-left: 18px; }
.snc_steps > li { list-style: decimal; }
.snc_steps ul > li { list-style: disc; }
.snc_guide .sad_notice { margin-top: 8px; }
@media (max-width: 640px) {
	.snc_row { grid-template-columns: 1fr 1fr 1fr; }
	.snc_row_head { display: none; }
	.snc_event { grid-column: 1 / -1; }
	.snc_ch { flex-direction: column; align-items: center; gap: 4px; }
	.snc_ch::before { content: attr(data-label); font-size: 11px; opacity: .6; }
}

/* ============================================
   Store API (sapi_) — admin/setting_store_api_keys.php, admin/setting_store_api_docs.php
   Colors are tokens; css/themes/Dark/Dark.css redefines them for the dark theme.
   ============================================ */
:root {
	--sapi-get: #0277bd;
	--sapi-post: #2e7d32;
	--sapi-patch: #d84315;
	--sapi-delete: #c62828;
	--sapi-ok: var(--sdb-bar, #0290b8);
	--sapi-err: #e53935;
	--sapi-j-key: #6a1b9a;
	--sapi-j-str: #2e7d32;
	--sapi-j-num: #0277bd;
	--sapi-j-bool: #d84315;
	--sapi-j-null: #8a8a8a;
	--sapi-line: rgba(128,128,128,0.14);
	--sapi-soft: rgba(128,128,128,0.07);
}

/* Method badges and status */
.sapi_method {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 20px;
	padding: 0 7px;
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .4px;
	box-sizing: border-box;
	flex-shrink: 0;
	color: var(--sapi-get);
	background: rgba(2,119,189,0.13);
	background: color-mix(in srgb, var(--sapi-get) 13%, transparent);
}
.sapi_method_post { color: var(--sapi-post); background: rgba(46,125,50,0.13); background: color-mix(in srgb, var(--sapi-post) 13%, transparent); }
.sapi_method_patch, .sapi_method_put { color: var(--sapi-patch); background: rgba(216,67,21,0.13); background: color-mix(in srgb, var(--sapi-patch) 13%, transparent); }
.sapi_method_delete { color: var(--sapi-delete); background: rgba(198,40,40,0.13); background: color-mix(in srgb, var(--sapi-delete) 13%, transparent); }
.sad_method.sapi_method_base { background: rgba(128,128,128,0.2); color: inherit; }
.sapi_status { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.sapi_err_text { color: var(--sapi-err); }
.sapi_link_btn {
	border: none;
	background: none;
	padding: 0;
	color: #03add8;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: rgba(3,173,216,0.35);
	text-underline-offset: 2px;
}
.sapi_link_btn:hover { text-decoration-color: currentColor; }
.sapi_select { width: auto; min-width: 150px; max-width: 220px; height: 36px; border-radius: 18px; padding: 0 12px; font-size: 13px; }
.sapi_zone_head { margin-bottom: 14px; }

/* Keys */
.sapi_key_line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
}
.sapi_key_mask {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--sapi-soft);
	border: 1px dashed rgba(128,128,128,0.3);
}
.sapi_scope {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(3,173,216,0.1);
	color: #0288b0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	white-space: nowrap;
}
.sapi_scope i { font-size: 9px; opacity: .8; }
.sapi_scope_none { background: rgba(229,57,53,0.1); color: var(--sapi-err); }
.sapi_scope_icon { width: 16px; text-align: center; opacity: .6; margin-right: 2px; }
.sapi_key .sad_meta { gap: 3px 14px; }
.sapi_ips { min-height: 74px; resize: vertical; line-height: 1.5; }
.sapi_secret_box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 16px;
	border-radius: 12px;
	border: 1.5px dashed rgba(67,160,71,0.5);
}
.sapi_secret_box .sad_mono {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	word-break: break-all;
	user-select: all;
}
.sapi_secret_box + .sad_notice { margin-top: 12px; }

/* Usage */
.sapi_usage_stats { margin-top: 0; padding-top: 0; border-top: 0; }
.sapi_card {
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid var(--sapi-line);
	min-width: 0;
}
.sapi_split {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 14px;
}
.sapi_split .sapi_card { margin-top: 14px; }
.sapi_legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: -4px 0 12px;
}
.sapi_legend > span { display: inline-flex; align-items: center; gap: 6px; opacity: .8; }
.sapi_swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sapi_swatch_ok { background: var(--sapi-ok); }
.sapi_swatch_err { background: var(--sapi-err); }
.sapi_table_btn { margin-left: auto; height: 28px; padding: 0 10px; font-size: 11px; }
.sapi_table_btn.sdb_on { background: #03add8; border-color: #03add8; color: #fff; }
/* Stacked column: successful at the base, failed on top, 2px gap, rounded top end only */
.sapi_stack {
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
	width: 100%;
	max-width: 24px;
	min-height: 2px;
}
.sapi_stack > span { flex: 1 1 0; min-height: 2px; }
.sapi_stack > span:last-child { border-radius: 4px 4px 0 0; }
.sapi_seg_ok { background: var(--sapi-ok); }
.sapi_seg_err { background: var(--sapi-err); }
.sdb_col:hover .sapi_stack, .sdb_col:focus .sapi_stack { filter: brightness(1.12); }
.sapi_chart_table { margin: 0; max-height: 320px; overflow-y: auto; }
.sapi_codes { display: flex; flex-direction: column; }
.sapi_code_row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto 44px;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--sapi-line);
}
.sapi_code_row:last-child { border-bottom: 0; }
.sapi_code_row .sad_mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sapi_code_pct { text-align: right; }
.sapi_key_table td, .sapi_key_table th { white-space: nowrap; }
.sapi_key_table td:first-child { white-space: normal; }
.sdb_hbar_label .sapi_method { min-width: 40px; height: 18px; font-size: 9.5px; margin-right: 2px; }

/* Logs: one grid row per request, details fold open */
.sapi_log_filters { margin-bottom: 14px; }
.sapi_log_head,
.sapi_log_row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) minmax(130px, 0.7fr) minmax(110px, 0.6fr) 118px 66px;
	align-items: center;
	gap: 12px;
}
.sapi_log_head {
	padding: 0 14px 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	opacity: .5;
}
.sapi_log_head span:last-child { text-align: right; }
#sapi_log_results { display: flex; flex-direction: column; gap: 6px; }
.sapi_log {
	border-radius: 10px;
	cursor: pointer;
	outline: none;
	transition: border-color .15s, background .15s;
}
.sapi_log:hover, .sapi_log:focus-visible { border-color: rgba(3,173,216,0.45); }
.sapi_log_open { background: var(--sapi-soft); border-color: rgba(3,173,216,0.35); }
.sapi_log_row { padding: 9px 14px; }
.sapi_log_req { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sapi_log_path { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sapi_log_status { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; }
.sapi_log_status .text_xsmall { overflow: hidden; text-overflow: ellipsis; }
.sapi_log_key { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sapi_log_ip { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sapi_log_ms { text-align: right; font-variant-numeric: tabular-nums; }
.sapi_log_detail { padding: 2px 14px 14px; }
.sapi_dl {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 6px 14px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--sapi-line);
	font-size: 12.5px;
}
.sapi_dl dt { opacity: .55; font-weight: 600; }
.sapi_dl dd { margin: 0; word-break: break-word; line-height: 1.5; }

/* Settings */
.sapi_settings_grid { margin-top: 16px; }
.sapi_detect { margin-top: 16px; padding: 12px 14px; border-radius: 10px; }
.sapi_detect .bold { margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.sapi_detect_row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--sapi-line); }
.sapi_detect_row:first-of-type { border-top: 0; }
.sapi_savebar { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sapi-line); }

/* Docs layout: sticky section nav + content */
.sapi_docs {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}
.sapi_nav { position: sticky; top: calc(var(--store-head) + var(--store-gap)); z-index: 2; }
.sapi_nav_inner { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sapi_nav_group {
	padding: 10px 10px 4px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	opacity: .5;
}
.sapi_nav_group:first-child { padding-top: 2px; }
.sapi_nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.3;
	transition: background .15s, color .15s;
}
.sapi_nav a .sapi_method { min-width: 40px; height: 18px; font-size: 9.5px; }
.sapi_nav a:hover { background: var(--sapi-soft); }
.sapi_nav a.sapi_nav_on { background: rgba(3,173,216,0.12); color: #0288b0; font-weight: 600; }
.sapi_docs_main { min-width: 0; }
.sapi_doc { scroll-margin-top: calc(var(--store-head) + var(--store-gap)); }
.sapi_doc_title { margin: 0 0 8px; font-size: 17px; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.sapi_p { margin: 0 0 14px; line-height: 1.6; }
.sapi_doc .sad_h4 { margin-top: 18px; }
.sapi_doc .sad_form_grid .sad_code { margin: 0; }
.sapi_notes { margin-bottom: 6px; line-height: 1.75; }
.sapi_notes li + li { margin-top: 4px; }
.sapi_notice { margin: 0 0 14px; align-items: flex-start; }
.sapi_notice i { margin-top: 3px; }
.sapi_facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 4px;
}
.sapi_fact {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.5;
}
.sapi_fact i { margin-top: 3px; }
.sapi_ep_head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}
.sapi_ep_line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sapi_ep_path { font-size: 14px; font-weight: 600; word-break: break-all; }
.sapi_param_table td:first-child { white-space: nowrap; }
.sapi_examples {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.sapi_example { min-width: 0; }
.sapi_example_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 32px;
	margin-bottom: 8px;
}
.sapi_example_head .sap_sort { margin-left: 0; }
.sapi_example_head .sap_sort_btn { padding: 4px 10px; font-size: 11.5px; }
.sapi_example .sad_code_wrap { margin-bottom: 0; }
.sapi_example .sad_code { max-height: 380px; overflow: auto; white-space: pre; word-break: normal; }
.sapi_snippet { padding-top: 40px; }

/* JSON colors */
.sapi_j_key { color: var(--sapi-j-key); }
.sapi_j_str { color: var(--sapi-j-str); }
.sapi_j_num { color: var(--sapi-j-num); }
.sapi_j_bool { color: var(--sapi-j-bool); font-weight: 600; }
.sapi_j_null { color: var(--sapi-j-null); font-style: italic; }

/* Console */
.sapi_console { border-top: 3px solid #03add8; }
.sapi_url_bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	padding: 10px 12px;
	border-radius: 10px;
	min-width: 0;
}
.sapi_url { font-size: 12.5px; word-break: break-all; min-width: 0; }
.sapi_c_params { margin-bottom: 14px; }
.sapi_body_head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sapi_body_head .label { margin: 0; font-size: 12px; font-weight: 600; opacity: .8; }
.sapi_body_head span { display: inline-flex; gap: 14px; font-size: 12px; }
.sapi_body { min-height: 150px; resize: vertical; font-size: 12.5px; line-height: 1.55; tab-size: 2; white-space: pre; }
.sapi_write_opts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
	align-items: end;
	margin-top: 12px;
}
.sapi_dry_row { margin: 0; }
.sapi_inline { display: flex; gap: 8px; }
.sapi_inline .full_input { flex: 1; min-width: 0; }
.sapi_inline .sap_outline_btn { flex-shrink: 0; height: auto; }
.sapi_out { max-height: 460px; overflow: auto; white-space: pre; word-break: normal; padding-top: 40px; }
#sapi_c_status { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sapi_c_files { margin-bottom: 4px; }
.sapi_file {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border-radius: 10px;
	border: 1.5px dashed rgba(128,128,128,0.35);
	background: var(--sapi-soft);
	color: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: border-color .15s;
}
.sapi_file:hover, .sapi_file:focus { border-color: #03add8; outline: none; }
.sapi_file::file-selector-button {
	margin-right: 10px;
	height: 30px;
	padding: 0 12px;
	border-radius: 15px;
	border: 1px solid rgba(128,128,128,0.3);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.sapi_file::file-selector-button:hover { border-color: #03add8; color: #03add8; }

@media (max-width: 1100px) {
	.sapi_examples { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.sapi_split { grid-template-columns: minmax(0, 1fr); }
	.sapi_docs { grid-template-columns: minmax(0, 1fr); }
	.sapi_nav { position: static; min-width: 0; }
	.sapi_nav_inner { flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; margin-bottom: 0; }
	.sapi_nav_group { display: none; }
	.sapi_nav a { white-space: nowrap; flex-shrink: 0; }
	.sapi_facts { grid-template-columns: 1fr; }
	.sapi_log_head { display: none; }
	/* Request on top, then status | time, then key | duration. The IP is in the details. */
	.sapi_log_row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "req req" "status time" "key ms";
		gap: 6px 12px;
	}
	.sapi_log_req { grid-area: req; }
	.sapi_log_status { grid-area: status; }
	.sapi_log_time { grid-area: time; text-align: right; }
	.sapi_log_key { grid-area: key; }
	.sapi_log_ms { grid-area: ms; }
	.sapi_log_ip { display: none; }
}
@media (max-width: 640px) {
	.sapi_tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.sapi_tabs::-webkit-scrollbar { display: none; }
	.sapi_tabs .sap_sort_btn { flex-shrink: 0; }
	.sapi_select { max-width: none; flex: 1; }
	.sapi_write_opts { grid-template-columns: 1fr; }
	.sapi_dl { grid-template-columns: 1fr; gap: 2px; }
	.sapi_dl dd { margin-bottom: 6px; }
	.sapi_secret_box { flex-direction: column; align-items: stretch; }
	.sapi_code_row { grid-template-columns: 44px minmax(0, 1fr) auto; }
	.sapi_code_pct { display: none; }
}

/* ============================================
   Profile + Edit Profile boxes (system/box/profile.php, edit_profile.php)
   Profile styles (pstyle*) load after this file and may override the cover,
   avatar, menu and content, so those rules stay at single-class specificity.
   ============================================ */
.spf { position: relative; }
.spf_cover {
	height: 132px;
	border-radius: 20px 20px 0 0;
	background-color: #0290b8;
	background-image: linear-gradient(135deg, #03add8 0%, #0277bd 100%);
	background-size: cover;
	background-position: center;
}
.spf_cover.cover_size { height: 150px; }
.spf_bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 12px 0;
}
.spf_bar_left { min-width: 0; }
.spf_bar_right { display: flex; gap: 6px; flex-shrink: 0; }
.spf_icon_btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,0.35);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	overflow: hidden;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .15s;
}
.spf_icon_btn:hover { background: rgba(0,0,0,0.55); }
.spf_like { color: #fff; overflow: hidden; }
.spf_like .plike_item,
.spf_like .plevel_item {
	background: rgba(0,0,0,0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Avatar overlaps the bottom of the cover */
.spf_head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0 20px 14px;
	margin-top: -52px;
	text-align: center;
}
.spf_avatar { position: relative; width: 104px; height: 104px; margin-bottom: 8px; }
.spf_avatar_img {
	display: block;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	border: 4px solid #fff;
	object-fit: cover;
	cursor: pointer;
	background: #fff;
}
.spf_state {
	position: absolute;
	right: 6px;
	bottom: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #fff;
}
.spf_note { position: absolute; left: 4px; bottom: 4px; width: 22px; height: 22px; cursor: pointer; }
.spf_avatar_btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #03add8;
	color: #fff;
	font-size: 12px;
	cursor: pointer;
}
.spf_avatar_up { right: 0; bottom: 2px; }
.spf_avatar_del { right: 2px; top: 2px; width: 24px; height: 24px; font-size: 10px; background: #78909c; }
.spf_avatar_btn:hover { filter: brightness(1.1); }
.spf_name { max-width: 100%; font-size: 21px; font-weight: 700; line-height: 1.3; }
.spf_rank { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; opacity: .75; }
.spf_rank .pro_ranking { height: 14px; width: auto; }
.spf_mood { max-width: 100%; margin-top: 4px; font-size: 13px; opacity: .7; overflow-wrap: anywhere; }
.spf_flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
}
.spf_flag_warn { background: rgba(245,124,0,0.14); color: #f57c00; }
.spf_flag_bad { background: rgba(229,57,53,0.14); color: #e53935; }

/* Store numbers */
.spf_stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 0 20px 14px;
}
.spf_stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 10px 4px;
	border: 1px solid rgba(128,128,128,0.16);
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font: inherit;
}
.spf_stat b { font-size: 15px; white-space: nowrap; }
.spf_stat span { font-size: 10.5px; opacity: .6; }
.spf_stat_link { cursor: pointer; transition: border-color .15s, color .15s; }
.spf_stat_link i { font-size: 15px; color: #03add8; }
.spf_stat_link:hover { border-color: #03add8; color: #03add8; }
.spf_stat_link:hover span { opacity: 1; }

/* Alerts on the edit box */
.spf_alerts { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.spf_alerts:not(:empty) { margin-bottom: 14px; }
.spf_alert {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	font: inherit;
	font-size: 12.5px;
	line-height: 1.4;
	text-align: left;
	color: inherit;
}
.spf_alert > span { flex: 1; min-width: 0; }
.spf_alert > i:first-child { font-size: 14px; flex-shrink: 0; }
button.spf_alert { cursor: pointer; }
.spf_alert_go { font-size: 11px; opacity: .5; }
.spf_alert_info { background: rgba(3,173,216,0.1); }
.spf_alert_info > i:first-child { color: #03add8; }
.spf_alert_warn { background: rgba(245,124,0,0.1); }
.spf_alert_warn > i:first-child { color: #f57c00; }
.spf_alert_bad { background: rgba(229,57,53,0.1); }
.spf_alert_bad > i:first-child { color: #e53935; }
.spf_alert_ok { background: rgba(67,160,71,0.12); color: #43a047; }
button.spf_alert:hover { filter: brightness(0.97); }

/* Tabs + body */
.spf_tabs { border-bottom: 1px solid rgba(128,128,128,0.14); }
.spf_tabs .modal_menu { padding: 0; }
.spf_tabs .modal_menu ul li {
	margin: 0 4px;
	padding: 10px 12px;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	opacity: .6;
}
.spf_tabs .modal_menu ul li.modal_selected { opacity: 1; border-bottom-color: #03add8; color: #03add8; }
.spf_body { padding: 18px 20px 22px; border-radius: 0 0 20px 20px; }
.spf_section_label {
	margin: 18px 0 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	opacity: .5;
}
.spf_facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spf_facts_single { grid-template-columns: 1fr; }
.spf_fact {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px;
	border: 1px solid rgba(128,128,128,0.16);
	border-radius: 12px;
}
.spf_fact_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: rgba(3,173,216,0.12);
	color: #03add8;
	font-size: 13px;
}
.spf_fact_main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.spf_fact_label { font-size: 11px; opacity: .55; }
.spf_fact_value { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.spf_fact_edit {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(128,128,128,0.25);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 12px;
	cursor: pointer;
}
.spf_fact_edit:hover { border-color: #03add8; color: #03add8; }
.spf_badges { display: flex; flex-wrap: wrap; gap: 6px; }
.spf_badges .pbadge { float: none; margin: 0; }
.spf_about { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* Forms */
.spf_form { display: flex; flex-direction: column; gap: 14px; }
.spf_row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spf_field { min-width: 0; }
.spf_field .label { margin-bottom: 6px; font-size: 12px; opacity: .8; }
.spf_field select { width: 100%; }
.spf_actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spf_btn_row { display: flex; flex-wrap: wrap; gap: 8px; }
.spf_note_box { margin-bottom: 12px; }
.spf_note_box .bold { margin-bottom: 4px; }
.spf_danger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid rgba(229,57,53,0.25);
	border-radius: 12px;
}

@media (max-width: 480px) {
	.spf_head, .spf_alerts, .spf_body { padding-left: 16px; padding-right: 16px; }
	.spf_stats { grid-template-columns: repeat(2, 1fr); margin: 0 16px 14px; }
	.spf_facts, .spf_row { grid-template-columns: 1fr; }
	.spf_danger { flex-direction: column; align-items: stretch; }
	.spf_tabs .modal_menu ul li { margin: 0 2px; padding: 10px 8px; }
}

/* ============================================
   Downloads (sdl_) — download modal (renderStoreDownloadModal), library update badge,
   admin/setting_store_downloads.php. Tints reuse the sap_/sad_ tokens, so both themes follow.
   ============================================ */
.sdl_modal { padding: 18px 18px 16px; }
.sdl_head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sdl_thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.sdl_head_text { flex: 1; min-width: 0; }
.sdl_name { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdl_sub { margin-top: 2px; }

/* Status strip: waiting -> started / slow / failed */
.sdl_progress {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(3,173,216,0.08);
	border: 1px solid rgba(3,173,216,0.18);
	transition: background .2s, border-color .2s;
}
.sdl_progress_icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #03add8;
	color: #fff;
	font-size: 14px;
}
.sdl_progress_text { min-width: 0; line-height: 1.4; }
.sdl_progress_text .text_xsmall { overflow-wrap: anywhere; }
.sdl_progress_ok { background: rgba(67,160,71,0.09); border-color: rgba(67,160,71,0.25); }
.sdl_progress_ok .sdl_progress_icon { background: #43a047; animation: sdl_pop .3s ease-out; }
.sdl_progress_slow { background: rgba(251,140,0,0.09); border-color: rgba(251,140,0,0.25); }
.sdl_progress_slow .sdl_progress_icon { background: #fb8c00; }
.sdl_progress_fail { background: rgba(229,57,53,0.08); border-color: rgba(229,57,53,0.25); }
.sdl_progress_fail .sdl_progress_icon { background: #e53935; }
@keyframes sdl_pop { from { transform: scale(.6); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sdl_progress_ok .sdl_progress_icon { animation: none; } }

.sdl_note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.45;
}
.sdl_note i { margin-top: 2px; }
.sdl_note_new { background: rgba(142,36,170,0.09); color: #8e24aa; }
.sdl_note_ok { background: rgba(67,160,71,0.1); color: #2e7d32; }
.sdl_note_warn { background: rgba(251,140,0,0.1); color: #e65100; }

.sdl_facts {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 7px 12px;
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(128,128,128,0.07);
	font-size: 12.5px;
}
.sdl_facts dt { opacity: .55; font-weight: 600; }
.sdl_facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sdl_mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.sdl_hash { display: flex; align-items: center; gap: 6px; }
.sdl_copy { text-decoration: none; }

.sdl_foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.sdl_quota { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.sdl_again { text-decoration: none; }

/* Error / limit state */
.sdl_state { text-align: center; padding: 10px 6px 4px; }
.sdl_state_icon {
	width: 54px;
	height: 54px;
	border-radius: 16px;
	margin: 0 auto 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.sdl_state_title { font-size: 16px; margin-bottom: 6px; }
.sdl_state_text { opacity: .75; line-height: 1.55; max-width: 340px; margin: 0 auto; }
.sdl_state + .sdl_foot { justify-content: center; }

/* Library: update available */
.sdl_update_pill { background: #8e24aa; color: #fff; }
.sdl_update_pill i { font-size: 8px; margin-right: 2px; vertical-align: 1px; }
.sap_lib_btn.sdl_lib_update { background: rgba(142,36,170,0.12); color: #8e24aa; }
.sap_lib_btn.sdl_lib_update:hover { background: #8e24aa; color: #fff; }

/* Admin: protection banner */
.sdl_guard {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(128,128,128,0.18);
	background: rgba(128,128,128,0.06);
}
.sdl_guard_icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	background: rgba(128,128,128,0.15);
}
.sdl_guard_text { flex: 1; min-width: 0; line-height: 1.45; }
.sdl_guard_text .text_small { opacity: .8; }
.sdl_guard_ok { background: rgba(67,160,71,0.08); border-color: rgba(67,160,71,0.25); }
.sdl_guard_ok .sdl_guard_icon { background: #43a047; color: #fff; }
.sdl_guard_warn { background: rgba(251,140,0,0.08); border-color: rgba(251,140,0,0.3); }
.sdl_guard_warn .sdl_guard_icon { background: #fb8c00; color: #fff; }
.sdl_guard_bad { background: rgba(229,57,53,0.08); border-color: rgba(229,57,53,0.35); }
.sdl_guard_bad .sdl_guard_icon { background: #e53935; color: #fff; }
.sdl_guard_bad #sdl_guard_title { color: #e53935; }

/* Admin: delivery modes */
.sdl_modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sdl_mode {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.sdl_mode:hover { border-color: rgba(3,173,216,0.45); }
.sdl_mode input { margin: 3px 0 0; accent-color: #03add8; flex-shrink: 0; }
.sdl_mode_text { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.4; }
.sdl_mode_on { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.12); background: rgba(3,173,216,0.04); }
.sdl_snippet { white-space: pre; overflow-x: auto; word-break: normal; padding-top: 40px; }
.sdl_config .sad_code_wrap { margin-bottom: 16px; }

.sdl_test {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 12px;
}
.sdl_test_rows { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sdl_test_row { display: flex; align-items: center; gap: 8px; opacity: .7; }
.sdl_dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(128,128,128,0.4); flex-shrink: 0; }
.sdl_test_ok, .sdl_test_bad { opacity: 1; }
.sdl_test_ok .sdl_dot { background: #43a047; }
.sdl_test_bad .sdl_dot { background: #e53935; }
.sdl_test_ok span:last-child::after { content: ' — passed'; color: #43a047; font-weight: 600; }
.sdl_test_bad span:last-child::after { content: ' — failed'; color: #e53935; font-weight: 600; }

/* Admin: protection checks */
.sdl_checks { display: flex; flex-direction: column; gap: 10px; }
.sdl_check { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; }
.sdl_check_icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
}
.sdl_check_wait { background: rgba(128,128,128,0.12); }
.sdl_check_main { flex: 1; min-width: 0; line-height: 1.5; }
.sdl_check_main > .text_small { margin-top: 2px; }
.sdl_fix { margin-top: 10px; }
.sdl_fix .sad_code_wrap { margin: 8px 0 0; }
.sdl_fix .sad_code { padding-top: 40px; white-space: pre; }
.sdl_list { margin-top: 4px; line-height: 1.7; }

/* Admin: log rows */
.sad_logs .sdl_avatar { object-fit: cover; padding: 0; background: none; border-radius: 50%; }

@media (max-width: 640px) {
	.sdl_modes { grid-template-columns: 1fr; }
	.sdl_guard, .sdl_check { flex-wrap: wrap; }
	.sdl_guard .sap_outline_btn, .sdl_check > button { margin-left: 52px; }
	.sdl_facts { grid-template-columns: 1fr; gap: 1px; }
	.sdl_facts dd { margin-bottom: 7px; }
	.sdl_quota { width: 100%; }
}

/* Product page: phone buy bar (system/pages/store/store_product_page.php) */
.spg_mbar { display: none; }
@media (max-width: 768px) {
	#page_wrapper .spg_mbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		display: flex;
		align-items: center;
		gap: 12px;
		margin: 0;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		border-radius: 0;
		box-shadow: 0 -4px 18px rgba(0,0,0,0.14);
		transition: transform .2s ease;
	}
	#page_wrapper .spg_mbar.spg_mbar_off { transform: translateY(110%); }
	.spg_mbar_price { flex: 1; min-width: 0; line-height: 1.15; }
	.spg_mbar_price b { font-size: 19px; }
	.spg_mbar_price s { margin-left: 6px; font-size: 12px; }
	.spg_mbar_btn { flex-shrink: 0; max-width: 62%; height: 44px; padding: 0 18px; margin: 0; }
	.spg_mbar_btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.spg_has_mbar { padding-bottom: 72px; }
}

/* Notifications page + bell dropdown (store_notifications.php, float/store_notification.php) */
.snt_list { display: flex; flex-direction: column; gap: 8px; }
#snt_readall[hidden], .snt_row[hidden], .snt_group[hidden], #snt_none[hidden] { display: none; }
.snt_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	transition: border-color .15s, background-color .15s;
}
.snt_row.snotify_link:hover,
.snt_row.snotify_link:focus-visible { border-color: rgba(3,173,216,0.45); outline: none; }
.snt_new { background: rgba(3,173,216,0.06); }
.snt_av { position: relative; flex-shrink: 0; width: 40px; height: 40px; }
.snt_av > img:first-child { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.snt_type { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; }
.snt_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.snt_text { line-height: 1.45; overflow-wrap: anywhere; }
.snt_dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: #03add8; }
.snt_menu_all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 11px;
	border: 0;
	border-top: 1px solid rgba(128,128,128,0.16);
	background: transparent;
	color: #03add8;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}
.snt_menu_all:hover { background: rgba(3,173,216,0.08); }
.snt_menu_empty { padding: 30px 10px; text-align: center; opacity: .45; }
.snt_menu_empty i { font-size: 30px; }
.snt_menu_empty p { margin-top: 8px; }

/* Gift product box (system/box/store_gift_product.php) */
.sgf_product { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; border-radius: 12px; }
.sgf_product_img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.sgf_product_main { flex: 1; min-width: 0; }
.sgf_search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.sgf_search:focus-within { border-color: #03add8; box-shadow: 0 0 0 3px rgba(3,173,216,0.15); }
.sgf_search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.sgf_results { display: flex; flex-direction: column; gap: 2px; max-height: 220px; margin-top: 6px; overflow-y: auto; }
.sgf_results:empty { display: none; }
.sgf_user {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sgf_user:hover, .sgf_user:focus-visible { background: rgba(3,173,216,0.08); outline: none; }
.sgf_user_name { flex: 1; min-width: 0; }
.sgf_av { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.sgf_note { padding: 10px; font-size: 12.5px; opacity: .6; }
.sgf_selected { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.sgf_selected .sgf_av { width: 38px; height: 38px; }
.sgf_selected_main { flex: 1; min-width: 0; }

/* Manage user box (system/box/admin_user.php) — reuses the profile header above */
.spf_menu { display: flex; flex-direction: column; gap: 6px; }
.spf_menu_item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 8px 12px 8px 8px;
	border: 1px solid rgba(128,128,128,0.16);
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.spf_menu_item:hover, .spf_menu_item:focus-visible { border-color: #03add8; outline: none; }
.spf_menu_label { flex: 1; min-width: 0; }
.spf_menu_go { font-size: 11px; opacity: .35; }
.spf_menu_danger { border-color: rgba(229,57,53,0.25); color: #e53935; }
.spf_menu_danger .spf_fact_icon { background: rgba(229,57,53,0.12); color: #e53935; }
.spf_menu_danger:hover, .spf_menu_danger:focus-visible { border-color: #e53935; }
.spf_flag_btn { border: 0; background: rgba(128,128,128,0.14); color: inherit; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.spf_flag_btn:hover { background: rgba(229,57,53,0.14); color: #e53935; }
.spf_empty { padding: 12px 0; text-align: center; }

/* Transactions: date range, custom dates, items line, customer link (setting_store_transactions.php) */
button.store_chip { font-family: inherit; line-height: inherit; }
.stx_dates { flex-wrap: wrap; gap: 10px; }
.stx_custom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stx_date {
	height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	color-scheme: light dark;
}
.stx_custom .sap_buy_btn { height: 34px; }
.stx_items { margin-bottom: 3px; font-weight: 600; }
.stx_user_link {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.stx_user_link:hover .sad_title,
.stx_user_link:focus-visible .sad_title { color: #03add8; }
.stx_user_link:focus-visible { outline: none; }

/* My library / Transactions: load more bar (store_home.php) */
.shx_more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.shx_more:has(#shx_more[style*="none"]) { justify-content: center; }

/* Cart: payment options are buttons (keyboard), styled as before */
button.store_payment_option {
	width: 100%;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
}
button.store_payment_option:focus-visible { outline: none; border-color: #03add8 !important; box-shadow: 0 0 0 3px rgba(3,173,216,0.25); }

/* Live chat widget (system/element/store_livechat.php). Messages and composer reuse the Support
   classes (shd_msg, shd_compose); this block only places them in a floating panel. */
.slc { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 90; }
.slc_bubble {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #03add8, #0a8fd6);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 20px rgba(3,120,170,0.35);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.slc_bubble:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(3,120,170,0.42); }
.slc_bubble:focus-visible { outline: 3px solid rgba(3,173,216,0.45); outline-offset: 3px; }
.slc_ico_close { display: none; }
.slc_is_open .slc_ico_open { display: none; }
.slc_is_open .slc_ico_close { display: inline; }
.slc_badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 10px;
	background: #e53935;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.slc_panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	display: flex;
	flex-direction: column;
	width: 370px;
	height: min(560px, calc(100vh - 120px));
	border: 1px solid rgba(128,128,128,0.18);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0,0,0,0.22);
	overflow: hidden;
	animation: slcIn .18s ease-out;
}
.slc_panel[hidden] { display: none; }
@keyframes slcIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.slc_head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	background: linear-gradient(135deg, #03add8, #0a8fd6);
	color: #fff;
}
.slc_head_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	font-size: 16px;
}
.slc_head_text { flex: 1; min-width: 0; }
.slc_title { font-size: 15px; font-weight: 700; }
.slc_status { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.slc_dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #ffca28; }
.slc_on .slc_dot { background: #69f0ae; box-shadow: 0 0 0 3px rgba(105,240,174,0.25); }
.slc_close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.16);
	color: #fff;
	cursor: pointer;
}
.slc_close:hover { background: rgba(255,255,255,0.28); }
.slc_body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 8px; }
.slc_msgs.shd_msgs { flex: none; overflow: visible; padding: 8px 14px; }
.slc_msgs .shd_msg { max-width: 88%; }
.slc_intro { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 26px 10px; text-align: center; }
.slc_intro[hidden], .slc_ended[hidden] { display: none; }
.slc_intro_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: rgba(3,173,216,0.12);
	color: #03add8;
	font-size: 22px;
}
.slc_ended { margin: 14px 14px 0; padding: 10px 12px; border-radius: 10px; background: rgba(67,160,71,0.12); color: #43a047; }
.slc_compose.shd_compose { margin: 0 12px 8px; }
.slc_compose textarea { min-height: 24px; max-height: 120px; }
.slc_foot { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 12px 10px; opacity: .65; }
.slc_foot button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.slc_foot button:hover { color: #03add8; }
/* Product page phone buy bar: keep the bubble above it */
body:has(#spg_mbar:not(.spg_mbar_off)) .slc { bottom: calc(84px + env(safe-area-inset-bottom)); }
/* Phones: the open chat is a full screen above the store header (z 202), below modals (z 1000).
   The wrapper itself is raised, since the panel's z-index only counts inside it.
   --slc-vh / --slc-top follow the visible area when the keyboard opens (slcViewport). */
@media (max-width: 600px) {
	.slc { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
	.slc.slc_is_open { z-index: 999; }
	.slc_bubble { width: 52px; height: 52px; font-size: 20px; }
	.slc_panel {
		position: fixed;
		top: var(--slc-top, 0px);
		left: 0;
		right: 0;
		bottom: auto;
		width: auto;
		height: var(--slc-vh, 100dvh);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		animation: slcUp .2s ease-out;
	}
	@keyframes slcUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
	.slc_head { padding: calc(10px + env(safe-area-inset-top)) 10px 10px 14px; }
	.slc_close { width: 40px; height: 40px; font-size: 16px; }
	.slc_body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.slc_msgs.shd_msgs { padding: 8px 12px; }
	.slc_msgs .shd_msg { max-width: 86%; gap: 0; }
	.slc_msgs .shd_msg_av { display: none; }
	.slc_msgs .shd_msg_body { font-size: 15px; }
	/* One row like a messaging app: [attach] [message] [send], picked files above it */
	.slc_compose.shd_compose {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr) 40px;
		grid-template-areas: "files files files" "tool text send";
		align-items: end;
		column-gap: 6px;
		margin: 0 10px 6px;
		padding: 6px;
		border-radius: 24px;
	}
	.slc_compose .shd_files { grid-area: files; }
	.slc_compose .shd_compose_bar { display: contents; }
	.slc_compose .shd_compose_hint { display: none; }
	/* 16px keeps iOS from zooming the page when the box is tapped */
	.slc_compose textarea { grid-area: text; align-self: center; min-height: 24px; padding: 8px 2px; font-size: 16px; }
	.slc_compose .shd_tool { grid-area: tool; border-radius: 50%; }
	.slc_compose .shd_btn { grid-area: send; border-radius: 50%; }
	.slc_compose .shd_tool, .slc_compose .shd_btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
	.slc_foot { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
	.slc_foot button { padding: 6px 2px; }
	.slc_is_open .slc_bubble { display: none; }
	html.slc_lock, html.slc_lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.slc_panel { animation: none; }
	.slc_bubble { transition: none; }
}

/* Support queue: live chat switches in the rail (store_support_admin.php) */
.shd_lc { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid rgba(128,128,128,0.16); border-radius: 12px; }
.shd_lc_row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; cursor: pointer; }
.shd_lc_label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.shd_lc_label .fa { color: #03add8; }
.shd_lc_dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb300; }
.shd_lc_dot_on { background: #43a047; }

/* ============================================
   Admin products list (spa_) — setting_store_products.php + element/store_admin_product.php
   ============================================ */
button.spa_stat {
	border: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: box-shadow .15s, transform .1s;
}
button.spa_stat:hover { box-shadow: inset 0 0 0 1px rgba(3,173,216,0.45); }
button.spa_stat:active { transform: scale(0.98); }
.spa_toolbar { margin-bottom: 12px; }
.spa_toolbar .sap_search { flex: 1 1 320px; }
.spa_sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 6px 0 14px;
	border-radius: 20px;
	border: 1px solid rgba(128,128,128,0.25);
	font-size: 12px;
}
.spa_sort select {
	border: none;
	outline: none;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	height: 100%;
	padding: 0 4px;
	cursor: pointer;
}
.spa_sort select option { color: #222; }
.spa_status { margin-left: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.spa_status::-webkit-scrollbar { display: none; }
.spa_status .sap_sort_btn i { margin-right: 3px; font-size: 11px; }
.spa_status_warn:not(.sap_sort_active) { color: #fb8c00; opacity: 1; }
.spa_page .sap_toolbar { margin-top: 14px; }
.spa_list_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.spa_list_hint { font-size: 11px; opacity: .8; }

.spa_row { gap: 14px; }
.spa_media { width: 54px; height: 54px; }
.spa_click { cursor: pointer; }
.spa_media.spa_click { transition: box-shadow .15s; }
.spa_media.spa_click:hover { box-shadow: inset 0 0 0 2px rgba(3,173,216,0.5); }
.spa_name.spa_click:hover { color: #03add8; }
.spa_hidden_pill { display: none; }
.sad_row_off .spa_hidden_pill { display: inline-block; }
.sad_row_off .spa_name { text-decoration: line-through; text-decoration-color: rgba(128,128,128,0.5); }
.spa_flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.spa_flags .sap_pill i { margin-right: 2px; }
.spa_issue {
	background: transparent;
	color: #fb8c00;
	box-shadow: inset 0 0 0 1px rgba(251,140,0,0.45);
	font-weight: 600;
	cursor: pointer;
}
.spa_issue:hover { background: rgba(251,140,0,0.1); }
.spa_price {
	flex-shrink: 0;
	min-width: 76px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
.spa_switch { flex-shrink: 0; cursor: pointer; }
.spa_switch input:disabled + span { opacity: .5; }

.spa_more { position: relative; }
.spa_menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 50;
	min-width: 200px;
	padding: 6px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.18);
	display: none;
	flex-direction: column;
	gap: 1px;
}
.spa_more_open .spa_menu { display: flex; }
.spa_more_up .spa_menu { top: auto; bottom: calc(100% + 6px); }
.spa_more_open > .sap_icon_btn { border-color: #03add8; color: #03add8; }
.spa_menu button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
}
.spa_menu button i { width: 16px; text-align: center; opacity: .6; }
.spa_menu button:hover { background: rgba(3,173,216,0.1); color: #03add8; }
.spa_menu button:hover i { opacity: 1; }
.spa_menu_sep { height: 1px; margin: 4px 6px; background: rgba(128,128,128,0.18); }
.spa_menu .spa_menu_danger { color: #e53935; }
.spa_menu .spa_menu_danger:hover { background: rgba(229,57,53,0.1); color: #e53935; }

/* Row that was just saved */
.spa_flash { animation: spaFlash 2s ease; }
@keyframes spaFlash {
	0%, 40% { box-shadow: 0 0 0 2px rgba(3,173,216,0.6); background-color: rgba(3,173,216,0.08); }
	100% { box-shadow: none; background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .spa_flash { animation: none; box-shadow: 0 0 0 2px rgba(3,173,216,0.6); } }

@media (max-width: 900px) {
	.shx_stats.sad_stats4 { grid-template-columns: repeat(2, 1fr); }
	.spa_list_hint { display: none; }
}
@media (max-width: 640px) {
	.spa_toolbar .sap_search { flex: 1 1 100%; }
	.spa_sort { flex: 1 1 100%; }
	.spa_sort select { flex: 1; }
	.spa_row { gap: 10px 0; }
	.spa_row > .spa_media { width: 46px; height: 46px; }
	/* Bottom bar: price left, switch + buttons right */
	.spa_price { flex: 1 1 auto; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 6px; min-width: 0; text-align: left; }
	.spa_price .store_price_old { display: inline; }
	.spa_row > .spa_switch { margin-right: 10px; }
	.spa_row .sad_actions { margin-left: 0; padding-left: 0; }
}

/* ============================================
   Product box additions (spf_) — box/store_product.php
   ============================================ */
.spf_status_pill { margin-left: 6px; vertical-align: 2px; }
.spf_nav {
	display: flex;
	gap: 4px;
	padding: 8px 20px 0;
	border-bottom: 1px solid rgba(128,128,128,0.15);
	overflow-x: auto;
	scrollbar-width: none;
	flex-shrink: 0;
}
.spf_nav::-webkit-scrollbar { display: none; }
.spf_nav_btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px 11px;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	opacity: .6;
	transition: opacity .15s, color .15s, border-color .15s;
}
.spf_nav_btn i { font-size: 11px; }
.spf_nav_btn:hover { opacity: 1; }
.spf_nav_on { opacity: 1; color: #03add8; border-bottom-color: #03add8; }
.spf_nav_dot { width: 7px; height: 7px; border-radius: 50%; background: #fb8c00; }
.spf_nav + .spf_modal_body { max-height: calc(100vh - 264px); scroll-padding-top: 8px; }

.smf_invalid .full_input { border-color: #e53935 !important; box-shadow: 0 0 0 3px rgba(229,57,53,0.15); }
.smf_invalid .smf_label { color: #e53935; }
.spf_name_warn { display: block; margin-top: 4px; color: #fb8c00; font-weight: 600; }

.spf_bump {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(251,140,0,0.1);
	color: #fb8c00;
	font-size: 12px;
}
.spf_bump span { margin-right: auto; }
.spf_bump button,
.spf_quick button {
	padding: 3px 10px;
	border-radius: 12px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 11.5px;
	font-weight: 600;
	cursor: pointer;
}
.spf_bump button:hover { background: #fb8c00; border-color: #fb8c00; color: #fff; }
.spf_quick { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.spf_quick .spf_hint { margin-left: 0; margin-right: 2px; }
.spf_quick button { border-color: rgba(128,128,128,0.3); opacity: .8; }
.spf_quick button:hover { border-color: #03add8; color: #03add8; opacity: 1; }

.spf_visibility { margin-top: 14px; }
.spf_card_preview {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(128,128,128,0.07);
	font-size: 12px;
	line-height: 1.45;
}
.spf_card_preview > span:last-child { min-width: 0; opacity: .8; overflow-wrap: anywhere; }
.spf_card_label { flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .5; }
.spf_card_empty > span:last-child { font-style: italic; opacity: .5; }

.spf_foot_link {
	border: none;
	background: transparent;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 8px;
	margin-right: 4px;
	border-radius: 8px;
	cursor: pointer;
}
.spf_foot_link:hover { background: rgba(229,57,53,0.1); }
.spf_modal_foot kbd {
	display: inline-block;
	padding: 0 4px;
	border-radius: 4px;
	border: 1px solid rgba(128,128,128,0.35);
	font-family: inherit;
	font-size: 10px;
	line-height: 15px;
}
.spf_dirty_dot { font-size: 7px; color: #fb8c00; vertical-align: 2px; margin-right: 2px; }
#spf_foot_hint:has(.spf_dirty_dot) { opacity: .85; color: #fb8c00; }
.spf_img_upload.smf_drop_over { border-color: #03add8; border-style: solid; background: rgba(3,173,216,0.08); }

@media (max-width: 520px) {
	.spf_nav { padding: 6px 12px 0; }
	.spf_nav_btn { padding: 8px 9px 10px; }
	.spf_nav + .spf_modal_body { max-height: calc(100vh - 290px); }
	.smf_foot_hint { display: none; }
}

/* ============================================
   Product quick view (spq_) — box/store_product_view.php
   Hero with a blurred backdrop of the product image, content column + sticky buy panel.
   Narrow modals (container < 720px) stack into one column with a buy bar at the bottom.
   ============================================ */
.modal_pad:has(.spq) { padding: 0; overflow: hidden; }
.modal_pad:has(.spq) > .modal_close { display: none; }
.spq { position: relative; container: spq / inline-size; }
.spq_scroll { max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
/* Sticky top bar inside the scroll area: transparent over the hero, solid once content scrolls under it */
.spq_bar {
	position: sticky;
	top: 0;
	z-index: 4;
	height: 62px;
	margin-bottom: -62px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding: 0 14px 0 20px;
	isolation: isolate;
	pointer-events: none;
}
.spq_bar > * { pointer-events: auto; }
.spq_bar_bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	border-bottom: 1px solid rgba(128,128,128,0.18);
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	transition: opacity .2s;
	pointer-events: none;
}
.spq_scrolled .spq_bar_bg { opacity: 1; }
.spq_bar_title {
	margin-right: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s;
	pointer-events: none;
}
.spq_titled .spq_bar_title { opacity: 1; transform: none; }
.spq_bar_title img { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; object-fit: contain; }
.spq_bar_name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spq_close {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(128,128,128,0.18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.spq_close:hover { background: rgba(128,128,128,0.32); transform: rotate(90deg); }

/* Hero */
.spq_hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 34px 64px 26px 28px;
	overflow: hidden;
	isolation: isolate;
}
.spq_hero::before {
	content: '';
	position: absolute;
	inset: -40%;
	z-index: -1;
	background: var(--spq-img, none) center / cover no-repeat, linear-gradient(135deg, rgba(3,173,216,0.25), rgba(142,36,170,0.18));
	filter: blur(48px) saturate(1.5);
	opacity: .45;
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 75%);
	mask-image: linear-gradient(to bottom, #000 30%, transparent 75%);
}
.spq_icon {
	width: 112px;
	height: 112px;
	flex-shrink: 0;
	border-radius: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(255,255,255,0.22);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.14), inset 0 0 0 1px rgba(128,128,128,0.22);
}
.spq_icon img { max-width: 80%; max-height: 80%; object-fit: contain; border-radius: 14px; }
.spq_icon .sbd_collage { width: 100%; height: 100%; }
.spq_hero_text { min-width: 0; flex: 1; }
.spq_eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.spq_eyebrow .sap_pill { text-transform: none; letter-spacing: .2px; }
.spq_name { margin: 6px 0 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; word-break: break-word; }
.spq_tagline { margin: 6px 0 0; font-size: 14px; line-height: 1.5; opacity: .75; }
.spq_chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.spq_chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(128,128,128,0.13);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}
.spq_chip i { font-size: 10px; opacity: .65; }

/* Seller tools: icon buttons beside the close button */
.spq_tools {
	flex-shrink: 0;
	display: flex;
	gap: 6px;
	margin-right: 4px;
	padding-right: 10px;
	border-right: 1px solid rgba(128,128,128,0.25);
}
.spq_tool {
	position: relative;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(128,128,128,0.18);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.spq_tool:hover { background: rgba(3,173,216,0.18); color: #03add8; }
.spq_tool:disabled { opacity: .5; cursor: wait; }
.spq_vis_btn { color: #43a047; }
.spq_vis_btn.spq_tool_off { color: #fb8c00; background: rgba(251,140,0,0.16); }
.spq_tool_dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #fb8c00; box-shadow: 0 0 0 2px rgba(255,255,255,0.8); }
.spq:has(.spq_tools) .spq_hero { padding-right: 190px; }

/* Just added to the cart */
.spq_added i { animation: spqPop .4s cubic-bezier(.2,1.4,.4,1); }
@keyframes spqPop { from { transform: scale(.3); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .spq_added i { animation: none; } }

/* Body */
.spq_grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 26px;
	align-items: start;
	padding: 20px 28px 28px;
}
.spq_main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.spq .spv_stage { height: 330px; }
.spq_section { min-width: 0; }
.spq_h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}
.spq_h_hint { font-size: 11px; font-weight: 400; opacity: .5; }
.spq_desc { font-size: 14px; line-height: 1.7; word-break: break-word; }
.spv_desc_clamp {
	max-height: 240px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
	mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.spq_more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 4px 0;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}
.spq_more i { font-size: 10px; }
.spq_reqs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.spq_reqs li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(128,128,128,0.08);
	font-size: 13px;
	line-height: 1.4;
}
.spq_reqs li i { color: #43a047; font-size: 11px; flex-shrink: 0; }

/* Buy panel */
/* Sticks just below the 62px top bar */
.spq_side { position: sticky; top: 76px; }
.spq_panel {
	padding: 18px;
	border-radius: 18px;
	border: 1px solid rgba(128,128,128,0.2);
	box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.spq_buy { display: flex; flex-direction: column; gap: 12px; }
.spq_price { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; min-width: 0; }
.spq_price_now { font-size: 30px; letter-spacing: -.02em; }
.spq_owned { display: inline-flex; align-items: center; gap: 8px; color: #43a047; }
.spq_owned i { font-size: .8em; }
.spq_price_note { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.spq_price_note .store_price_old { margin: 0; font-size: 13px; }
.spq_buy .store_sale_timer_block { margin-top: 0; align-self: flex-start; }
.spq .spq_cta { width: 100%; height: 44px; justify-content: center; border-radius: 22px; font-size: 14px; }
.spq_wide { width: 100%; margin-top: 10px; box-sizing: border-box; }
.spq_status {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(3,173,216,0.09);
	color: #03add8;
	font-size: 12.5px;
	line-height: 1.45;
}
.spq_status i { margin-top: 2px; }
.spq_status_ok { background: rgba(67,160,71,0.1); color: #43a047; }
.spq_status_warn { background: rgba(251,140,0,0.12); color: #fb8c00; }
.spq_facts { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(128,128,128,0.16); display: flex; flex-direction: column; gap: 9px; }
.spq_fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.spq_fact dt { opacity: .6; white-space: nowrap; }
.spq_fact dt i { width: 14px; text-align: center; margin-right: 4px; font-size: 11px; }
.spq_fact dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.spq_links { display: flex; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,0.16); }
.spq_link {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	opacity: .7;
	cursor: pointer;
	transition: background .15s, opacity .15s, color .15s;
}
.spq_link:hover { background: rgba(3,173,216,0.1); color: #03add8; opacity: 1; }

/* Phone buy bar (only in the narrow layout) */
.spq_buybar { display: none; }

/* Skeleton while loading */
.spq_skel .spq_icon { background: none; box-shadow: none; }
.spq_skel .spq_hero_text .ssk_line { display: block; margin-top: 10px; }

@container spq (max-width: 720px) {
	.spq_scroll { max-height: calc(100vh - 170px); }
	.spq_hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 56px 18px 18px; }
	.spq_icon { width: 76px; height: 76px; border-radius: 20px; }
	.spq_name { font-size: 21px; }
	.spq_tagline { font-size: 13px; }
	.spq:has(.spq_tools) .spq_hero { padding-right: 56px; }
	.spq_grid { grid-template-columns: 1fr; gap: 20px; padding: 16px 18px 20px; }
	.spq .spv_stage { height: 240px; }
	.spq_side { position: static; }
	.spq_panel { padding: 14px; box-shadow: none; }
	/* The buy bar takes over price + main action */
	.spq_panel .spq_buy { display: none; }
	.spq_panel .spq_status { margin-top: 0; }
	.spq_panel .spq_facts { margin-top: 0; padding-top: 0; border-top: none; }
	.spq_panel .spq_status + .spq_facts,
	.spq_panel .spq_wide + .spq_facts { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(128,128,128,0.16); }
	.spq_buybar {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 12px 18px;
		border-top: 1px solid rgba(128,128,128,0.18);
	}
	.spq_buybar .spq_price_now { font-size: 22px; }
	.spq_buybar .spq_price_note { font-size: 11px; }
	.spq_buybar .spq_cta { flex: 1; width: auto; }
	.spq_skel .spq_buybar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .spq_close:hover { transform: none; } }

/* ============================================
   Email verification panel (vfy_)
   ============================================ */
.vfy { max-width: 520px; margin: 0 auto; }
.vfy [hidden] { display: none !important; }
.vfy_head { display: flex; gap: 14px; align-items: flex-start; }
.vfy_icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(3,173,216,0.12);
	color: #03add8;
	font-size: 20px;
}
.vfy_head_text { min-width: 0; flex: 1; }
.vfy_title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.vfy_sub { font-size: 13px; opacity: .65; margin-top: 2px; line-height: 1.5; }
.vfy_email { display: flex; align-items: center; gap: 10px; margin-top: 2px; min-width: 0; }
.vfy_email_value { font-weight: 700; font-size: 14px; min-width: 0; }
.vfy_link {
	border: 0;
	padding: 0;
	background: none;
	color: #03add8;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.vfy_link:hover { text-decoration: underline; }
.vfy_link:disabled { color: inherit; opacity: .5; cursor: default; text-decoration: none; }
.vfy_perks {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.vfy_perks li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 14px;
	background: rgba(128,128,128,0.1);
	font-size: 12px;
}
.vfy_perks i { color: #03add8; font-size: 11px; }
.vfy_dim { opacity: .35; pointer-events: none; }
.vfy_step, .vfy_change { margin-top: 18px; }
.vfy_change {
	padding: 14px;
	border-radius: 12px;
	background: rgba(128,128,128,0.07);
}
.vfy_field + .vfy_field { margin-top: 10px; }
.vfy_label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.vfy_note { font-size: 12px; opacity: .65; margin: 10px 0 0; line-height: 1.5; }
.vfy_btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vfy_step_send .vfy_btns { margin-top: 0; }
.vfy_code_row { display: flex; gap: 8px; align-items: stretch; }
.vfy_code {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 14px;
	border-radius: 10px;
	border: 2px solid rgba(128,128,128,0.25);
	background: rgba(128,128,128,0.06);
	color: inherit;
	font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: .45em;
	text-align: center;
	outline: none;
	transition: border-color .15s;
}
.vfy_code:focus { border-color: #03add8; }
.vfy_code::placeholder { opacity: .3; letter-spacing: .3em; }
.vfy_code_row .reg_button { margin: 0; height: 52px; }
.vfy_resend { margin-top: 10px; font-size: 12.5px; opacity: .8; }
.vfy_msg { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.vfy_msg:empty { display: none; }
.vfy_msg_ok { color: #43a047; }
.vfy_msg_err { color: #e53935; }
.vfy_done { text-align: center; padding: 10px 0; }
.vfy_done_icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #43a047;
	color: #fff;
	font-size: 24px;
	animation: vfyPop .35s ease;
}
@keyframes vfyPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vfy_done_icon { animation: none; } }
/* Verified / not verified pill next to an email */
.vfy_badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.vfy_badge_on { background: rgba(67,160,71,0.12); color: #43a047; }
.vfy_badge_off { background: rgba(251,140,0,0.14); color: #fb8c00; border: 0; cursor: pointer; font-family: inherit; }
.vfy_login_note { font-size: 12.5px; opacity: .75; margin-top: 8px; line-height: 1.5; }
/* Full-page verification screen (control/verification.php) */
.vfy_page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.vfy_page_card {
	width: 100%;
	max-width: 480px;
	padding: 28px 24px;
	border-radius: 16px;
}
.vfy_page_foot { margin-top: 18px; text-align: center; font-size: 13px; }
@media (max-width: 480px) {
	.vfy_code { font-size: 22px; letter-spacing: .35em; }
	.vfy_code_row { flex-direction: column; }
}
.vfy .reg_button:disabled { opacity: .45; cursor: default; }

/* ============================================
   Account setup box (sas_): BoomCoding account + email
   ============================================ */
.sas { padding: 4px 0 2px; }
.sas [hidden] { display: none !important; }
.sas_head { padding: 0 2px 16px; }
.sas_title { font-size: 18px; font-weight: 700; }
.sas_sub { font-size: 13px; opacity: .6; margin-top: 2px; }
.sas_bar { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(128,128,128,0.15); overflow: hidden; }
.sas_bar span { display: block; height: 100%; border-radius: 3px; background: #43a047; transition: width .4s; }
.sas_step {
	border: 1px solid rgba(128,128,128,0.2);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .15s;
}
.sas_step + .sas_step { margin-top: 10px; }
.sas_open { border-color: rgba(3,173,216,0.55); }
.sas_step_head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sas_step_icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(3,173,216,0.12);
	color: #03add8;
	font-size: 15px;
}
.sas_step_ok .sas_step_icon { background: rgba(67,160,71,0.14); color: #43a047; }
.sas_step_text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sas_step_name { font-size: 14.5px; font-weight: 700; }
.sas_step_desc { font-size: 12.5px; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sas_pill { flex-shrink: 0; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sas_pill_ok { background: rgba(67,160,71,0.12); color: #43a047; }
.sas_pill_need { background: rgba(251,140,0,0.14); color: #ef6c00; }
.sas_pill_opt { background: rgba(128,128,128,0.14); opacity: .8; }
.sas_chev { flex-shrink: 0; font-size: 12px; opacity: .45; transition: transform .2s; }
.sas_open .sas_chev { transform: rotate(180deg); }
.sas_step_body { display: none; padding: 2px 16px 16px; }
.sas_open .sas_step_body { display: block; }
.sas_how { list-style: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: rgba(128,128,128,0.07); display: grid; gap: 8px; }
.sas_how li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sas_how span {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #03add8;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}
.sas_label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.sas_input {
	display: flex;
	align-items: center;
	height: 46px;
	border-radius: 10px;
	border: 2px solid rgba(128,128,128,0.25);
	background: rgba(128,128,128,0.06);
	transition: border-color .15s;
}
.sas_input:focus-within { border-color: #03add8; }
.sas_input_bad, .sas_input_bad:focus-within { border-color: #e53935; }
.sas_input_at { padding: 0 4px 0 14px; opacity: .45; }
/* !important: the chat theme gives every input its own border and background */
.sas_input input {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
	flex: 1;
	min-width: 0;
	height: 100%;
	outline: 0;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 0 12px 0 6px;
}
.sas_hint { font-size: 12px; opacity: .6; margin: 6px 0 0; line-height: 1.5; }
.sas_hint_bad { color: #e53935; opacity: 1; }
.sas_note { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; opacity: .75; }
.sas_note i { margin-top: 3px; }
.sas_note_warn { opacity: 1; color: #ef6c00; }
.sas_msg { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.sas_msg:empty { display: none; }
.sas_msg_ok { color: #43a047; }
.sas_msg_err { color: #e53935; }
.sas_btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sas_btns .reg_button { margin: 0; }
.sas_btns .reg_button:disabled { opacity: .6; cursor: default; }
.sas_foot { font-size: 12.5px; opacity: .7; margin: 14px 0 0; }
.sas_foot a { color: #03add8; font-weight: 600; }
.sas_account { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(128,128,128,0.07); }
.sas_account_avatar {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #03add8;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}
.sas_account_avatar_ok { background: rgba(67,160,71,0.14); color: #43a047; font-size: 15px; }
.sas_account_text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.sas_account_name { font-size: 15px; font-weight: 700; }
.sas_account_sub { font-size: 12px; opacity: .6; }
.sas_stats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.sas_stats li { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(128,128,128,0.16); display: flex; flex-direction: column; line-height: 1.3; }
.sas_stats b { font-size: 20px; }
.sas_stats span { font-size: 12px; opacity: .65; }
.sas_stat_wait b { color: #ef6c00; }
.vfy_compact .vfy_email { flex-wrap: wrap; gap: 6px 10px; }
.vfy_compact .vfy_step { margin-top: 14px; }
@media (max-width: 480px) {
	.sas_step_head { padding: 12px; gap: 10px; }
	.sas_step_body { padding: 2px 12px 14px; }
	.sas_step_desc { white-space: normal; }
	.sas_chev { display: none; }
}

/* ============================================
   Store sidebar (smn): rounded rows, icon tiles, section headings, dropdowns drawn as a tree.
   Scoped to the store menu (element/base_store_menu) so the chat admin menus keep their look.
   ============================================ */
.smn .page_menu_content, .smn .side_smenu_content { padding: 10px 10px 18px; }
.smn .page_menu_item, .smn .page_drop_item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	width: auto;
	margin: 1px 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	transition: background .15s, color .15s;
}
.smn .blisting, .smn .bsub { border-bottom: 0; background: transparent; }
/* main.css clips menu rows (overflow: hidden), which would hide the active bar and the tree branches;
   the text cell still ellipsizes on its own */
.smn .page_menu_item, .smn .page_drop_item { overflow: visible; }
/* The theme's click highlight (pselected) would leave the last clicked row cyan; page_active is the one marker */
.smn .pselected:not(.page_active) { color: inherit; }
.smn .page_menu_item:hover, .smn .page_drop_item:hover { background: rgba(128,128,128,0.1); }
.smn .page_menu_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 9px;
	background: rgba(3,173,216,0.1);
	font-size: 13px;
	transition: background .15s;
}
.smn .page_menu_text {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.smn .page_menu_notify { display: block; width: auto; }
.smn .page_drop_icon { display: block; width: auto; font-size: 10px; opacity: .45; }
/* Counts sit at the right edge */
.smn .count_button {
	margin-left: auto;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 10px;
	background: rgba(128,128,128,0.12) !important;
	color: inherit !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	opacity: .8;
}
/* Current page */
.smn .page_menu_item.page_active {
	background: rgba(3,173,216,0.12);
	color: #0287ab;
	font-weight: 600;
}
.smn .page_menu_item.page_active::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 9px;
	bottom: 9px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: #03add8;
}
.smn .page_active .page_menu_icon { background: #03add8; }
.smn .page_active .page_menu_icon .menup { color: #fff; }
.smn .page_active .count_button { background: rgba(3,173,216,0.18) !important; color: #0287ab !important; opacity: 1; }
/* Section headings */
.smn .store_menu_heading {
	margin: 16px 10px 6px;
	padding: 0;
	border: 0;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	opacity: .5;
}
/* Dropdown groups: children hang off a guide line under the group icon, each with its own branch */
.smn .page_drop_control:has(.fa-chevron-up) { font-weight: 600; }
.smn .page_drop {
	margin: 2px 0 6px 24px;
	padding-left: 12px;
	border-left: 2px solid rgba(128,128,128,0.18);
}
.smn .page_drop_item {
	padding: 6px 10px;
	font-size: 13px;
	opacity: .85;
}
.smn .page_drop_item::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 50%;
	width: 8px;
	height: 2px;
	background: rgba(128,128,128,0.18);
}
.smn .page_drop_item:hover { opacity: 1; }
.smn .page_drop_item.page_active {
	opacity: 1;
	background: rgba(3,173,216,0.12);
	color: #0287ab;
	font-weight: 600;
}
.smn .page_drop_item.page_active::before { background: #03add8; }
.smn .page_drop_text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
	.smn .page_menu_item, .smn .page_drop_item, .smn .page_menu_icon { transition: none; }
}

/* ============================================
   Sidebar extras: the staff Shop | Manage switch, the collapse button and the collapsed icon rail
   (html.smn_rail, desktop only). The section and the rail are set on <html> before the menu paints.
   ============================================ */
:root { --smn-seg-on: #fff; --smn-on: #0b7f9c; }
.smn_switch { display: flex; gap: 4px; margin: 0 0 8px; padding: 4px; border-radius: 12px; background: rgba(128,128,128,0.1); }
.smn_switch_btn {
	position: relative;
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 34px;
	padding: 0 8px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	opacity: .65;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.smn_switch_btn:hover { opacity: 1; }
html:not([data-smn="manage"]) .smn_switch_btn[data-sec="shop"],
html[data-smn="manage"] .smn_switch_btn[data-sec="manage"] { background: var(--smn-seg-on); color: var(--smn-on); opacity: 1; box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.smn_switch_dot { display: none; position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #f57c00; }
.smn_switch_alert .smn_switch_dot { display: block; }
html[data-smn="manage"] .smn_sec[data-sec="shop"],
html:not([data-smn="manage"]) .smn_sec[data-sec="manage"] { display: none; }
.smn_sec > .store_menu_heading:first-child { margin-top: 6px; }
.smn_collapse { display: none; }

@media screen and (min-width: 1101px) {
	#page_content #page_menu { display: flex; flex-direction: column; transition: width .2s ease; }
	#page_content #page_menu .store_menu_scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
	.smn_collapse {
		display: flex;
		align-items: center;
		gap: 12px;
		flex-shrink: 0;
		margin: 0 10px 10px;
		padding: 9px 12px 9px 17px;
		border: 0;
		border-top: 1px solid rgba(128,128,128,0.14);
		border-radius: 0 0 10px 10px;
		background: transparent;
		color: inherit;
		font: inherit;
		font-size: 13px;
		font-weight: 500;
		opacity: .6;
		cursor: pointer;
	}
	.smn_collapse:hover { opacity: 1; background: rgba(128,128,128,0.08); }
	.smn_collapse i { width: 16px; text-align: center; transition: transform .2s; }

	/* Collapsed: a 72px column of icons (names on hover); headings turn into thin dividers */
	html.smn_rail #page_content #page_menu { width: 72px; }
	html.smn_rail .stb #main_header .stb_logo { flex: 0 0 auto; width: auto; padding-right: 14px; }
	html.smn_rail #page_menu .smn .page_menu_content { padding: 10px 8px 14px; }
	html.smn_rail #page_menu .smn .page_menu_item { justify-content: center; gap: 0; padding: 6px 0; }
	html.smn_rail #page_menu .smn .page_menu_icon { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
	html.smn_rail #page_menu .smn .page_menu_text,
	html.smn_rail #page_menu .smn .page_drop_icon { display: none; }
	html.smn_rail #page_menu .smn .page_drop { display: none !important; }
	html.smn_rail #page_menu .smn .page_menu_notify { position: absolute; top: 1px; right: 6px; }
	html.smn_rail #page_menu .smn .page_menu_item.page_active::before { left: -8px; }
	html.smn_rail #page_menu .smn .store_menu_heading { height: 1px; margin: 10px 12px; font-size: 0; background: rgba(128,128,128,0.2); opacity: 1; }
	html.smn_rail #page_menu .smn_switch { flex-direction: column; gap: 3px; padding: 3px; }
	html.smn_rail #page_menu .smn_switch_btn { flex: 0 0 auto; height: 34px; padding: 0; gap: 0; }
	html.smn_rail #page_menu .smn_switch_btn span { display: none; }
	html.smn_rail #page_menu .smn_switch_dot { top: 5px; right: 6px; }
	html.smn_rail .smn_collapse { justify-content: center; margin: 0 8px 10px; padding: 9px 0; }
	html.smn_rail .smn_collapse span { display: none; }
	html.smn_rail .smn_collapse i { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
	#page_content #page_menu, .smn_collapse i, .smn_switch_btn { transition: none; }
}

/* ============================================
   Store top bar (stb_). Rules carry #main_header (and the account button its id) because
   main.css / responsive.css style the header by id. Logo column lined up with the sidebar, icon tiles, account button + menu
   ============================================ */
.stb.bhead { background: #16191d; box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.stb #main_header { display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.stb #main_header .stb_logo {
	display: flex;
	align-items: center;
	flex: 0 0 260px;
	width: 260px;
	height: 100%;
	padding: 0 0 0 18px;
	box-sizing: border-box;
}
.stb #main_header .stb_logo img { height: 34px; max-width: 170px; }
.stb #main_header .stb_search { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; padding: 0 12px 0 16px; }
.stb #main_header .gs_trigger { max-width: 560px; height: 38px; border-radius: 11px; }
.stb #main_header .gs_trigger kbd { margin-left: auto; }
.stb #main_header #open_sub_mobile {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-left: 6px;
	border-radius: 10px;
	color: rgba(255,255,255,0.85);
	font-size: 19px;
	cursor: pointer;
}
.stb #main_header #open_sub_mobile:hover { background: rgba(255,255,255,0.1); }
/* Icon buttons */
.stb #main_header .store_head_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: rgba(255,255,255,0.72);
	transition: background .15s, color .15s;
}
.stb #main_header .store_head_icon .i_btm { font-size: 16px; line-height: 1; }
/* The search icon is the phone version of the search pill */
.stb #main_header .gs_trigger_mob { display: none; }
.stb #main_header .store_head_icon:hover { background: rgba(255,255,255,0.1); color: #fff; }
/* The page this button opens is the one showing */
.stb #main_header .store_head_icon.stb_on { background: rgba(3,173,216,0.22); color: #5fd3ef; }
/* Counts: ringed in the bar colour so they read as separate from the icon */
.stb #main_header .store_head_badge {
	top: 2px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 5px;
	border-radius: 9px;
	background: #ef4444;
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	box-shadow: 0 0 0 2px #16191d;
	box-sizing: border-box;
}
.stb #main_header .stb_sep { flex: 0 0 1px; height: 24px; margin: 0 8px 0 6px; background: rgba(255,255,255,0.14); }
.stb #main_header .stb_sep_mid { margin: 0 6px; }
/* Account button: avatar, name, chevron; a dot when setup is unfinished */
.stb #main_header #main_mob_menu.stb_account {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
	width: auto;
	height: 40px;
	padding: 0 10px 0 4px;
	border-radius: 20px;
	color: #fff;
	transition: background .15s;
}
.stb #main_header #main_mob_menu.stb_account:hover { background: rgba(255,255,255,0.1); }
.stb #main_header #main_mob_menu.stb_account .avatar_menu { width: 32px; height: 32px; margin: 0; box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }
.stb #main_header .stb_account_name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.stb #main_header .stb_account_chev { font-size: 10px; opacity: .55; }
.stb #main_header .stb_account_dot {
	position: absolute;
	top: 3px;
	left: 28px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 0 2px #16191d;
}
/* Account menu */
#page_main_menu.stb_menu { width: 300px; padding: 0; border-radius: 14px; }
.stb_menu_head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(128,128,128,0.14); }
.stb_menu_avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.stb_menu_who { min-width: 0; flex: 1; line-height: 1.35; }
.stb_menu_name { font-size: 15px; font-weight: 700; }
.stb_menu_sub { font-size: 12px; opacity: .6; }
.stb_menu_setup { display: grid; gap: 6px; padding: 12px 12px 4px; }
.stb_nudge {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: rgba(251,140,0,0.12);
	color: #c2570c;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.stb_nudge:hover { background: rgba(251,140,0,0.2); }
.stb_nudge span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.stb_nudge b { font-size: 13px; }
.stb_nudge small { font-size: 11.5px; opacity: .8; }
.stb_nudge_soft { background: rgba(3,173,216,0.1); color: #0287ab; }
.stb_nudge_soft:hover { background: rgba(3,173,216,0.18); }
.stb_nudge_go { font-size: 10px; opacity: .6; }
.stb_menu_list { padding: 8px; }
.stb_menu_item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.stb_menu_item:hover { background: rgba(128,128,128,0.1); }
.stb_menu_item > i { width: 18px; text-align: center; font-size: 14px; color: #03add8; }
.stb_menu_item span { flex: 1; }
.stb_menu_flag { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 9px; background: rgba(251,140,0,0.14); color: #ef6c00; }
.stb_menu_foot { padding-top: 6px; border-top: 1px solid rgba(128,128,128,0.14); }
.stb_menu_out, .stb_menu_out > i { color: #e53935; }
.stb_menu_out:hover { background: rgba(229,57,53,0.08); }
/* Quick tiles at the top of the account menu (every screen size) */
.stb_menu_tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px 14px 6px; }
.stb_tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 12px 4px 10px;
	border: 1px solid var(--stb-line);
	border-radius: 14px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.stb_tile:active { background: rgba(128,128,128,0.08); }
.stb_tile i { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
.stb_tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stb_tile_badge {
	position: absolute;
	top: 6px;
	right: 8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #ef4444;
	color: #fff;
	font-style: normal;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 18px;
	box-sizing: border-box;
}
#page_main_menu.stb_menu { width: 360px; }
#page_main_menu .stb_tile { font-size: 11.5px; padding-left: 2px; padding-right: 2px; }
/* Sidebar hidden: menu button instead, logo column shrinks */
@media screen and (max-width: 1100px) {
	.stb #main_header #open_sub_mobile { display: flex; }
	.stb #main_header .stb_logo { flex: 0 0 auto; width: auto; padding-left: 6px; }
}
@media screen and (max-width: 768px) {
	.stb #main_header .stb_account_name, .stb #main_header .stb_account_chev, .stb #main_header .stb_sep { display: none; }
	.stb #main_header #main_mob_menu.stb_account { padding: 0 4px; }
	.stb #main_header .stb_account_dot { left: 28px; }
	.stb #main_header .store_head_icon.gs_trigger_mob { display: flex; }
}
@media screen and (max-width: 600px) {
	.stb #main_header { gap: 0; padding-right: 6px; }
	/* No room for the logo next to the buttons (staff get two more); the menu button leads instead */
	.stb #main_header .stb_logo { display: none; }
	.stb #main_header #open_sub_mobile { margin-left: 4px; }
	.stb #main_header .store_head_icon { flex: 0 0 38px; border-radius: 10px; }
	.stb #main_header .store_head_badge { top: 1px; right: 0; }
	#page_main_menu.stb_menu { width: auto; left: 5px; right: 5px; max-width: none; }
}

/* ============================================
   Activity pop-ups (sac_): bottom-left, clear of the chat bubble on the right
   ============================================ */
.sac_toast {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 190;
	display: flex;
	align-items: stretch;
	width: 340px;
	max-width: calc(100vw - 40px);
	border-radius: 14px;
	background: #fff;
	color: #1f2933;
	box-shadow: 0 10px 30px rgba(15,23,42,0.18), 0 0 0 1px rgba(15,23,42,0.06);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .25s, transform .25s;
}
.sac_toast.sac_in { opacity: 1; transform: translateY(0); }
.sac_body {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 6px 12px 12px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sac_media {
	position: relative;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 11px;
	background: #f1f5f8;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sac_media img { width: 40px; height: 40px; object-fit: contain; }
.sac_badge {
	position: absolute;
	right: -5px;
	bottom: -5px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #03add8;
	color: #fff;
	font-size: 10px;
	box-shadow: 0 0 0 2px #fff;
}
/* No picture (bundle collage, store rating): the badge becomes the picture */
.sac_media_icon .sac_badge { position: static; width: 100%; height: 100%; border-radius: 11px; box-shadow: none; font-size: 18px; }
.sac_purchase .sac_badge { background: #43a047; }
.sac_claim .sac_badge { background: #8e24aa; }
.sac_cart .sac_badge { background: #fb8c00; }
.sac_sale .sac_badge { background: #e53935; }
.sac_best .sac_badge { background: #f4511e; }
.sac_rating .sac_badge { background: #fbc02d; }
.sac_text { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.sac_title { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sac_title b { font-weight: 700; }
.sac_meta { font-size: 12px; color: #7b8794; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sac_close {
	flex-shrink: 0;
	width: 32px;
	border: 0;
	border-radius: 0 14px 14px 0;
	background: transparent;
	color: #9aa5b1;
	cursor: pointer;
	font-size: 12px;
}
.sac_close:hover { color: #1f2933; background: rgba(15,23,42,0.04); }
@media (max-width: 600px) {
	/* Leave the chat bubble's corner free */
	.sac_toast { left: 10px; bottom: 12px; width: auto; max-width: none; right: 86px; }
	.sac_media { width: 42px; height: 42px; }
	.sac_media img { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.sac_toast { transition: none; transform: none; }
}
/* Activity pop-up settings (Broadcast & email page) */
.smb_sac_label { margin: 16px 0 8px; }
.smb_sac_types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.smb_sac_type {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(128,128,128,0.18);
	cursor: pointer;
}
.smb_sac_type:has(input:checked) { border-color: rgba(3,173,216,0.5); background: rgba(3,173,216,0.05); }
.smb_sac_type input { margin-top: 3px; accent-color: #03add8; }
.smb_sac_type span { display: flex; flex-direction: column; line-height: 1.4; }
.smb_sac_type b { font-size: 13px; }
.smb_sac_type small { font-size: 11.5px; opacity: .6; }
.smb_sac_names { max-width: 620px; }

/* ============================================
   Notification dropdown (stn_), matching the account menu
   ============================================ */
#store_notify_menu.stn_menu {
	left: auto;
	right: 12px;
	top: 50px;
	width: 380px;
	max-height: min(560px, calc(100vh - 70px));
	padding: 0;
	border-radius: 14px;
	display: none;
	flex-direction: column;
	overflow: hidden;
}
#store_notify_menu.stn_menu[style*="block"] { display: flex !important; }
.stn_error { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; font-size: 13px; opacity: .85; }
.stn_error .fa-wifi { font-size: 22px; opacity: .5; }
.stn_head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.stn_title { font-size: 16px; font-weight: 700; }
.stn_clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	opacity: .6;
	cursor: pointer;
}
.stn_clear:hover { opacity: 1; background: rgba(229,57,53,0.08); color: #e53935; }
.stn_list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.stn_group {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 8px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .55;
}
.stn_count { padding: 0 6px; border-radius: 8px; background: #03add8; color: #fff; letter-spacing: 0; line-height: 16px; }
.stn_item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
	border-radius: 10px;
	cursor: default;
	transition: background .15s;
}
.stn_item.snotify_link { cursor: pointer; }
.stn_item:hover { background: rgba(128,128,128,0.08); }
.stn_unread { background: rgba(3,173,216,0.07); }
.stn_unread:hover { background: rgba(3,173,216,0.12); }
.stn_item + .stn_item { margin-top: 2px; }
.stn_av { position: relative; flex-shrink: 0; width: 40px; height: 40px; }
.stn_av > img:first-child { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.stn_type { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px var(--stn-ring, #fff); }
.stn_main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stn_text { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.stn_unread .stn_text { font-weight: 600; }
.stn_time { font-size: 11.5px; opacity: .55; }
.stn_dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #03add8; }
.stn_go { flex-shrink: 0; margin-top: 4px; font-size: 10px; opacity: .35; }
.stn_empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 20px 30px; text-align: center; }
.stn_empty_icon { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(3,173,216,0.1); color: #03add8; font-size: 20px; }
.stn_empty b { font-size: 14px; }
.stn_empty span:last-child { font-size: 12.5px; opacity: .6; }
.stn_all {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border: 0;
	border-top: 1px solid rgba(128,128,128,0.14);
	background: transparent;
	color: #03add8;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.stn_all:hover { background: rgba(3,173,216,0.06); }
@media (max-width: 600px) {
	#store_notify_menu.stn_menu { left: 5px; right: 5px; width: auto; max-width: none; }
}

/* ============================================
   Empty library / cart with suggestions (ses_)
   ============================================ */
.ses { padding: 10px 4px 6px; }
.ses_head { text-align: center; max-width: 460px; margin: 0 auto; padding: 18px 0 8px; }
.ses_icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(3,173,216,0.1);
	color: #03add8;
	font-size: 26px;
}
.ses_title { font-size: 18px; font-weight: 700; }
.ses_text { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; opacity: .65; }
.ses_actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.ses_row { margin-top: 26px; }
.ses_row_title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ses_row_title i { color: #03add8; margin-right: 4px; }
.ses_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ses_card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	border: 1px solid rgba(128,128,128,0.16);
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.ses_card:hover { border-color: rgba(3,173,216,0.4); box-shadow: 0 6px 18px rgba(15,23,42,0.07); }
.ses_card_main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 12px 10px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	min-width: 0;
}
.ses_card_img { display: flex; align-items: center; justify-content: center; height: 72px; margin-bottom: 6px; border-radius: 9px; background: rgba(128,128,128,0.07); }
.ses_card_img img { width: 52px; height: 52px; object-fit: contain; }
.ses_card_name { font-size: 13.5px; font-weight: 700; }
.ses_card_price { font-size: 13px; }
.ses_card_price s { opacity: .5; font-size: 12px; }
.ses_free { color: #43a047; }
.ses_card_btn {
	margin: 0 10px 10px;
	height: 34px;
	border: 0;
	border-radius: 9px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
@media (max-width: 900px) {
	.ses_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================
   Phones and tablets: navigation (stb_). Colours are tokens (Dark.css redefines them).
   - Drawer (under 1100px): the sidebar slides in from the left with its own header, over a scrim.
   - Under 600px the top bar keeps menu, logo, search and alerts; a bottom bar holds Home, Shop,
     Wishlist, Cart and Account; the account menu and notifications open as bottom sheets.
   Everything else pinned to the bottom (chat bubble, activity pop-ups, product buy bar) moves up.
   ============================================ */
:root {
	--stb-bar: rgba(255,255,255,0.94);
	--stb-line: rgba(15,23,42,0.08);
	--stb-ink: #5f6b76;
	--stb-on: #0b7f9c;
	--stb-on-bg: rgba(3,173,216,0.14);
	--stb-ring: #fff;
	--stb-grab: rgba(15,23,42,0.18);
	--stb-scrim: rgba(10,14,18,0.48);
}
.stb_nav, .stb_scrim, .stb_grab, .stb_drawer_head { display: none; }
/* Dark mode row in the account menu: a switch showing the current state */
.stb_switch { display: block; position: relative; flex-shrink: 0; width: 40px; height: 24px; border-radius: 12px; background: rgba(128,128,128,0.32); transition: background .2s; }
.stb_switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform .2s; }
.stb_switch_on { background: #03add8; }
.stb_switch_on::after { transform: translateX(16px); }

/* Scrim behind the drawer and sheets */
@keyframes stb_fade { from { opacity: 0; } }
@keyframes stb_drawer_in { from { transform: translateX(-100%); } }
@keyframes stb_sheet_in { from { transform: translateY(100%); } }
.stb_scrim {
	position: fixed;
	inset: 0;
	z-index: 203;
	background: var(--stb-scrim);
	animation: stb_fade .2s ease-out;
	-webkit-tap-highlight-color: transparent;
}

@media screen and (max-width: 1100px) {
	body:has(#side_menu[style*="block"]) .stb_scrim { display: block; }
	body:has(#side_menu[style*="block"]) { overflow: hidden; }
	#side_menu {
		top: 0;
		bottom: 0;
		height: auto;
		width: min(300px, 86vw);
		padding: 0 0 calc(18px + env(safe-area-inset-bottom));
		z-index: 204;
		border-radius: 0 18px 18px 0;
		box-shadow: 8px 0 32px rgba(0,0,0,0.18);
		animation: stb_drawer_in .24s cubic-bezier(.2,.8,.2,1);
		overscroll-behavior: contain;
		transition: transform .2s ease;
	}
	#side_menu .stb_drawer_head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		height: 56px;
		padding: 0 10px 0 18px;
		background: #16191d;
	}
	.stb_drawer_logo { height: 28px; max-width: 160px; object-fit: contain; }
	.stb_drawer_close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 0;
		border-radius: 10px;
		background: rgba(255,255,255,0.08);
		color: rgba(255,255,255,0.85);
		font-size: 16px;
		cursor: pointer;
	}
	.stb_drawer_close:active { background: rgba(255,255,255,0.16); }
}

@media (max-width: 600px) {
	:root { --stb-nav: calc(62px + env(safe-area-inset-bottom)); }

	/* Top bar: menu, logo, then search and alerts (staff keep the support queue) */
	.stb #main_header { padding-right: 8px; }
	.stb #main_header .stb_logo { display: flex; flex: 0 0 auto; padding: 0 0 0 4px; }
	.stb #main_header .stb_logo img { height: 26px; max-width: 124px; object-fit: contain; }
	.stb #main_header .stb_phone_off,
	.stb #main_header .store_head_icon[data-page="store/store_cart.php"],
	.stb #main_header #main_mob_menu.stb_account { display: none; }
	.stb #main_header .store_head_icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; }
	.stb #main_header .store_head_icon .i_btm { font-size: 17px; }
	.stb #main_header .store_head_badge { top: 3px; right: 3px; }

	/* Bottom bar */
	.stb_nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 180;
		display: flex;
		height: var(--stb-nav);
		padding: 0 4px env(safe-area-inset-bottom);
		background: var(--stb-bar);
		-webkit-backdrop-filter: saturate(1.6) blur(14px);
		backdrop-filter: saturate(1.6) blur(14px);
		border-top: 1px solid var(--stb-line);
	}
	.stb_nav_item {
		position: relative;
		flex: 1 1 0;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--stb-ink);
		font: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.stb_nav_ico {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 30px;
		border-radius: 15px;
		transition: background .2s, transform .15s;
	}
	.stb_nav_ico i { font-size: 18px; }
	.stb_nav_ico img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px var(--stb-line); }
	.stb_nav_label { font-size: 11px; font-weight: 600; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
	.stb_nav_item:active .stb_nav_ico { transform: scale(.92); }
	.stb_nav_item.stb_on { color: var(--stb-on); }
	.stb_nav_item.stb_on .stb_nav_ico { background: var(--stb-on-bg); }
	.stb_nav_item.stb_on .stb_nav_label { font-weight: 700; }
	/* Account tab: lit while its sheet is open */
	body:has(#page_main_menu[style*="block"]) .stb_nav_acct { color: var(--stb-on); }
	body:has(#page_main_menu[style*="block"]) .stb_nav_acct .stb_nav_ico { background: var(--stb-on-bg); }
	body:has(#page_main_menu[style*="block"]) .stb_nav_acct img { box-shadow: 0 0 0 2px var(--stb-on); }
	.stb_nav_badge, .stb_nav_dot { position: absolute; font-style: normal; box-shadow: 0 0 0 2px var(--stb-ring); }
	.stb_nav_badge {
		top: -3px;
		left: 31px;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: #ef4444;
		color: #fff;
		font-size: 10.5px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
		box-sizing: border-box;
	}
	.stb_nav_dot { top: 1px; left: 35px; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; }

	/* Bottom sheets: account menu and notifications */
	/* Ids outrank main.css, which positions both menus by id */
	#page_main_menu.stb_sheet,
	#store_notify_menu.stb_sheet {
		position: fixed;
		top: auto !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		z-index: 205;
		border-radius: 20px 20px 0 0 !important;
		padding-bottom: env(safe-area-inset-bottom) !important;
		box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
		animation: stb_sheet_in .26s cubic-bezier(.2,.8,.2,1);
		overscroll-behavior: contain;
		transition: transform .2s ease;
	}
	#page_main_menu.stb_sheet { max-height: 88dvh; overflow-y: auto; }
	#store_notify_menu.stb_sheet { max-height: 80dvh; }
	body:has(.stb_sheet.sysmenu[style*="block"]) .stb_scrim { display: block; }
	body:has(.stb_sheet.sysmenu[style*="block"]) { overflow: hidden; }
	/* The chat bubble steps aside while a sheet or the drawer is open */
	body:has(.stb_sheet.sysmenu[style*="block"]) .slc,
	body:has(#side_menu[style*="block"]) .slc { display: none; }
	.stb_sheet .stb_grab { display: block; flex-shrink: 0; width: 38px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: var(--stb-grab); }
	.stb_sheet .stb_phone_off { display: none; }
	#page_main_menu .stb_menu_head { padding: 12px 18px 14px; border-bottom: 0; }
	#page_main_menu .stb_menu_avatar { width: 52px; height: 52px; }
	#page_main_menu .stb_menu_name { font-size: 17px; }
	#page_main_menu .stb_menu_setup { padding: 0 14px 4px; }
	#page_main_menu .stb_menu_list { padding: 6px 10px; }
	#page_main_menu .stb_menu_item { padding: 12px 10px; font-size: 15px; }
	#page_main_menu .stb_menu_foot { margin: 0 14px; padding: 6px 0 10px; }
	#store_notify_menu .stn_head { padding-top: 10px; }

	/* Room for the bar under the page, and everything else pinned to the bottom moves up */
	#page_content #page_wrapper { padding-bottom: calc(var(--stb-nav) + 16px); }
	.slc { bottom: calc(var(--stb-nav) + 12px); }
	body:has(#spg_mbar:not(.spg_mbar_off)) .slc { bottom: calc(var(--stb-nav) + 82px); }
	#page_wrapper .spg_mbar { bottom: var(--stb-nav); }
	.sac_toast { bottom: calc(var(--stb-nav) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
	.stb_scrim, #side_menu, #page_main_menu.stb_sheet, #store_notify_menu.stb_sheet { animation: none !important; }
	.stb_nav_ico, .stb_switch, .stb_switch::after { transition: none; }
}

/* ============================================
   Support queue on phones: filters in tidy rows, the whole screen for an open ticket, and room for
   the bottom bar (which steps aside while a ticket is open, like a chat app)
   ============================================ */
@container shdpage (max-width: 720px) {
	/* Title + live chat switches on one row, then status chips, then topic chips (each row swipes) */
	.shd_staff .shd_rail {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 10px;
		padding: 12px 12px 10px;
		overflow: visible;
	}
	.shd_staff .shd_rail_head { display: flex; flex: 1 1 auto; min-width: 0; padding: 0; gap: 10px; }
	.shd_staff .shd_rail_head .shd_brand { width: 34px; height: 34px; font-size: 14px; }
	.shd_staff .shd_rail_text { display: block; }
	.shd_staff .shd_lc {
		display: flex;
		flex: 0 0 auto;
		gap: 6px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}
	.shd_staff .shd_lc_row {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 5px 6px 5px 10px;
		border-radius: 18px;
		background: rgba(128,128,128,0.1);
	}
	.shd_staff .shd_lc_label { font-size: 12px; white-space: nowrap; }
	.shd_staff .shd_lc_label .fa { display: none; }
	.shd_staff .shd_lc .smf_switch { transform: scale(.82); transform-origin: right center; margin-left: -4px; }
	.shd_staff .shd_nav {
		flex: 0 0 100%;
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
		padding-right: 24px;
	}
	.shd_staff .shd_nav::-webkit-scrollbar { display: none; }
	.shd_staff .shd_topics { margin: 0; padding: 0 24px 0 0; border: 0; }
	.shd_staff .shd_rail_label { display: none; }
	.shd_staff .shd_nav_item {
		flex: 0 0 auto;
		width: auto;
		gap: 6px;
		padding: 6px 12px;
		border: 1px solid rgba(128,128,128,0.2);
		border-radius: 18px;
		font-size: 12.5px;
	}
	.shd_staff .shd_nav_item > i { width: auto; font-size: 11px; }
	.shd_staff .shd_nav_on { border-color: rgba(3,173,216,0.5); }
	.shd_staff .shd_nav_label { display: inline; overflow: visible; }
	.shd_staff .shd_topics .shd_nav_count:not(:empty) { display: inline; }
	/* Reading a ticket: the conversation gets the whole screen */
	.shd_staff.shd_chat_open { grid-template-rows: minmax(0, 1fr); }
	.shd_staff.shd_chat_open .shd_rail { display: none; }
	.shd_staff.shd_chat_open .shd_conv { grid-row: 1; }
}
@media (max-width: 600px) {
	.shd:not(.shd_chat_open) { height: calc(100dvh - 85px - var(--stb-nav)); }
	.shd.shd_chat_open { height: calc(100dvh - 76px); }
	body:has(.shd_chat_open) .stb_nav { display: none; }
	body:has(.shd_chat_open) #page_content #page_wrapper { padding-bottom: 10px; }
}

/* ============================================
   Services (svc_): catalog, order form (svo_), My services, service requests, plans & pricing.
   Status, steps, bars and history reuse .sap_pill, .shd_steps, .sad_usage_bar and .sad_hist.
   ============================================ */
.svc_page .sap_head_title { min-width: 0; }
.svc_back { margin-right: 4px; flex-shrink: 0; }
.svc_how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.svc_how_step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(128,128,128,0.07); font-size: 12.5px; line-height: 1.4; }
.svc_how_num { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #03add8; color: #fff; font-weight: 700; font-size: 12px; }

.svc_kind_head { display: flex; align-items: center; gap: 12px; }
.svc_kind_ico, .svc_row_ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.svc_kind_name { font-size: 17px; }
.svc_hints { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 14px; font-size: 12px; opacity: .75; }
.svc_hint i { color: #03add8; margin-right: 4px; }
.svc_soon, .svc_note { margin-top: 10px; }
.svc_pkg_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.svc_pkg { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid rgba(128,128,128,0.2); }
.svc_pkg_pop { border-color: #03add8; box-shadow: 0 0 0 1px #03add8; }
.svc_pkg_badge { position: absolute; top: -9px; right: 14px; padding: 2px 9px; border-radius: 10px; background: #03add8; color: #fff; font-size: 10px; font-weight: 700; }
.svc_pkg_name { font-size: 15px; }
.svc_pkg_price { display: flex; align-items: baseline; gap: 6px; }
.svc_pkg_amount { font-size: 24px; font-weight: 800; }
.svc_pkg_specs { font-weight: 600; opacity: .8; }
.svc_pkg_desc { line-height: 1.45; }
.svc_pkg_features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; flex: 1; }
.svc_pkg_features i { color: #43a047; width: 14px; font-size: 11px; }
.svc_pkg_foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Order form */
.svo_pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.svo_pkg, .svc_term { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(128,128,128,0.25); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.svo_pkg:hover, .svc_term:hover { border-color: #03add8; }
.svo_pkg_on, .svc_term_on { border-color: #03add8; box-shadow: 0 0 0 1px #03add8; background: rgba(3,173,216,0.06); }
.svo_pkg_price { font-size: 15px; font-weight: 800; }
.svo_pkg_price small { font-size: 11px; font-weight: 400; opacity: .6; }
.svo_pkg_sub { line-height: 1.35; }
.svo_terms, .svc_renew_terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.svc_term { font-size: 12.5px; }
.svc_term .sap_pill { margin-top: 2px; }
.svo_summary { padding: 12px 14px; border-radius: 12px; background: rgba(128,128,128,0.07); font-size: 13px; }
.svo_line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.svo_total { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(128,128,128,0.2); font-size: 15px; font-weight: 800; }
.svo_switch_btn { margin-top: 8px; }

/* Order lists */
.svc_row { cursor: pointer; }
.svc_row .sad_main { min-width: 0; }
.svc_row .svc_row_ico { margin-right: 12px; }
.svc_unread .sad_title { color: #03add8; }
.svc_dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #03add8; vertical-align: 1px; }
.svc_row_side { flex-direction: column; align-items: flex-end; gap: 6px; }
.svc_row_bar { display: flex; align-items: center; gap: 6px; width: 140px; }
.svc_row_bar .sad_usage_bar { flex: 1; }
.svc_warn { color: #e67000; font-weight: 600; }

/* Order page */
.svc_steps { margin: 14px -14px 0; border-top: 1px solid rgba(128,128,128,0.12); overflow-x: auto; }
.svc_steps[data-status="needs_info"] .shd_step_on .shd_step_dot,
.svc_steps[data-status="pending_payment"] .shd_step_on .shd_step_dot,
.svc_steps[data-status="expiring"] .shd_step_on .shd_step_dot { background: #f57c00; box-shadow: 0 0 0 4px rgba(245,124,0,0.18); }
.svc_steps[data-status="completed"] .shd_step_on .shd_step_dot,
.svc_steps[data-status="delivered"] .shd_step_on .shd_step_dot,
.svc_steps[data-status="active"] .shd_step_on .shd_step_dot { background: #43a047; box-shadow: 0 0 0 4px rgba(67,160,71,0.18); }
.svc_steps[data-status="expired"] .shd_step_on .shd_step_dot,
.svc_steps[data-status="suspended"] .shd_step_on .shd_step_dot { background: #e53935; box-shadow: 0 0 0 4px rgba(229,57,53,0.18); }
.svc_banner { margin: 14px 0 0; }
.shd_banner_closed { background: rgba(128,128,128,0.1); }
.svc_progress { margin-top: 14px; }
.svc_progress_head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.svc_progress_bar { height: 8px; border-radius: 4px; }
.svc_progress_bar span { border-radius: 4px; transition: width .4s; }
.svc_actions, .svc_staff_status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.svc_st_btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; border: 1px solid rgba(128,128,128,0.25); background: transparent; color: inherit; font-size: 12px; cursor: pointer; }
.svc_st_btn:hover { border-color: #03add8; color: #03add8; }
.svc_st_on { border-color: transparent; font-weight: 700; cursor: default; font-size: 12px; padding: 6px 12px; border-radius: 16px; letter-spacing: 0; }
.svc_st_on:hover { color: inherit; }

.svc_card { padding: 14px; }
.page_350 .svc_card + .svc_card, .page_left .svc_card { margin-top: 10px; }
.svc_card_title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.svc_card_title i { color: #03add8; margin-right: 4px; }
.svc_checklist { display: flex; flex-direction: column; gap: 2px; }
.svc_check { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; }
.svc_check:hover { background: rgba(128,128,128,0.06); }
.svc_check_main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; font-size: 13px; cursor: default; }
label.svc_check_main { cursor: pointer; }
.svc_check_main input { position: absolute; opacity: 0; width: 0; height: 0; }
.svc_check_box { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(128,128,128,0.4); font-size: 10px; color: transparent; transition: background .15s, border-color .15s; }
.svc_check_done .svc_check_box { background: #43a047; border-color: #43a047; color: #fff; }
.svc_check_done .svc_check_title { opacity: .6; text-decoration: line-through; }
.svc_check_main input:focus-visible + .svc_check_box { box-shadow: 0 0 0 3px rgba(3,173,216,0.3); }
.svc_check_when { flex-shrink: 0; }
.svc_check_x { border: none; background: transparent; color: inherit; opacity: 0; cursor: pointer; padding: 2px 6px; }
.svc_check:hover .svc_check_x { opacity: .5; }
.svc_check_x:hover { opacity: 1 !important; color: #e53935; }
.svc_check_add { display: flex; gap: 6px; margin-top: 10px; }
.svc_check_add .full_input { flex: 1; min-width: 0; height: 36px; }
.svc_kv { display: flex; flex-direction: column; }
.svc_kv_row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,0.1); font-size: 12.5px; }
.svc_kv_row:last-child { border-bottom: none; }
.svc_kv_label { font-size: 11px; font-weight: 600; opacity: .55; }
.svc_kv_value { word-break: break-word; line-height: 1.45; }
.svc_quote_line { display: flex; justify-content: space-between; gap: 10px; }
.svc_secret { display: block; margin: 4px 0; }
.svc_secret_text { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(128,128,128,0.1); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-all; user-select: all; }
.svc_card_access { border: 1px solid rgba(67,160,71,0.35); }
.svc_renew_pending { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: rgba(251,140,0,0.1); }
.svc_renew_terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc_hist .sad_hist_item { padding: 8px 0; }
.svc_share_foot, .svc_save_row, .svc_access_tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.svc_save_row { justify-content: flex-end; margin-top: 14px; }
.svc_conv { padding: 14px 0 0; display: flex; flex-direction: column; }
.svc_conv > .svc_card_title { padding: 0 14px; margin-bottom: 0; }
.svc_msgs { max-height: 520px; min-height: 160px; }
.svc_quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.svc_progress_set { display: flex; align-items: center; gap: 10px; height: 38px; }
.svc_progress_set input[type="range"] { flex: 1; accent-color: #03add8; }
.svc_renew_row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,0.1); }
.svc_cart_thumb { display: flex; align-items: center; justify-content: center; font-size: 22px; color: #03add8; }

/* Plans & pricing */
.svc_profit_wrap { overflow-x: auto; margin-top: 14px; }
.svc_profit { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.svc_profit th { text-align: left; font-size: 11px; font-weight: 700; opacity: .55; padding: 6px 8px; border-bottom: 1px solid rgba(128,128,128,0.2); white-space: nowrap; }
.svc_profit td { padding: 8px; border-bottom: 1px solid rgba(128,128,128,0.1); vertical-align: top; white-space: nowrap; }
.svc_gain { color: #43a047; font-weight: 600; }
.svc_loss { color: #e53935; font-weight: 700; }
.svc_pkg_row .sad_side { display: flex; flex-direction: row; align-items: center; gap: 6px; }

@media (max-width: 760px) {
	.svc_how { grid-template-columns: 1fr; }
	.svo_terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc_row_bar { width: 110px; }
	.svc_row .sad_side { margin-left: 0; align-items: flex-start; flex-direction: row; }
	.svc_msgs { max-height: 60vh; }
	.page_350 .svc_card:first-child { margin-top: 10px; }
}

/* ============================================
   Wishlist (swl_): heart toggle on cards and product views, and the wishlist page
   ============================================ */
.store_wish {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid rgba(128,128,128,0.25);
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.store_wish:hover { color: #e91e63; border-color: rgba(233,30,99,0.45); }
.store_wish_on, .store_wish_on:hover { color: #e91e63; border-color: rgba(233,30,99,0.45); background: rgba(233,30,99,0.08); }
.store_wish_pop i { animation: swlPop .35s ease; }
@keyframes swlPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .store_wish_pop i { animation: none; } }
/* On a product card: round button over the image */
.sap_card_wish {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.92);
	color: #555;
	box-shadow: 0 1px 4px rgba(0,0,0,0.18);
	font-size: 14px;
}
.sap_card_wish:hover { background: #fff; }
.sap_card_wish.store_wish_on { background: #fff; color: #e91e63; }
/* Labelled: "Save for later" under the buy button */
.store_wish_label { min-height: 38px; padding: 0 16px; border-radius: 19px; font-size: 13px; font-weight: 600; }
.spq_buy .store_wish_label { margin-top: 8px; width: 100%; }
.spg_buy_actions .store_wish_label { margin-top: 8px; }
.spq_bar_wish { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; font-size: 15px; }

.swl_hint { margin-top: 12px; }
.swl_hint i { color: #e91e63; margin-right: 4px; }
.swl_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}
.swl_grid .sap_card { transition: opacity .25s, transform .25s; }
.swl_grid .swl_leaving { opacity: 0; transform: scale(.96); }
@media (max-width: 640px) {
	.swl_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 380px) {
	.swl_grid { grid-template-columns: 1fr; }
}

/* ============================================
   Audit trail (saud_): Store logs > Audit trail, old → new values per field
   ============================================ */
.saud_item { border: 1px solid rgba(128,128,128,0.18); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.saud_head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.saud_item:has(.saud_diff) .saud_head { cursor: pointer; }
.saud_item:has(.saud_diff) .saud_head:hover { background: rgba(128,128,128,0.05); }
.saud_icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.saud_main { flex: 1; min-width: 0; }
.saud_title { font-size: 13px; line-height: 1.5; word-break: break-word; }
.saud_title .sap_pill { vertical-align: 1px; }
.saud_av { width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 4px; object-fit: cover; }
.saud_note { margin-top: 4px; opacity: .8; }
.saud_count { color: #03add8; font-weight: 600; }
.saud_chev { margin-top: 10px; opacity: .45; transition: transform .2s; }
.saud_open .saud_chev { transform: rotate(180deg); }
.saud_diff { display: none; border-top: 1px solid rgba(128,128,128,0.14); font-size: 12px; }
.saud_open .saud_diff { display: block; }
.saud_diff_head, .saud_diff_row { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 2fr; gap: 10px; padding: 7px 14px; }
.saud_diff_head { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .55; background: rgba(128,128,128,0.05); }
.saud_diff_row + .saud_diff_row { border-top: 1px solid rgba(128,128,128,0.08); }
.saud_field { font-weight: 600; word-break: break-word; }
.saud_old, .saud_new { word-break: break-word; line-height: 1.45; padding: 2px 6px; border-radius: 5px; }
.saud_old { background: rgba(229,57,53,0.08); color: #c62828; text-decoration: line-through; text-decoration-color: rgba(198,40,40,0.4); }
.saud_new { background: rgba(67,160,71,0.1); color: #2e7d32; }
.saud_old .store_muted, .saud_new .store_muted { text-decoration: none; }
@media (max-width: 640px) {
	.saud_diff_head { display: none; }
	.saud_diff_row { grid-template-columns: 1fr 1fr; }
	.saud_field { grid-column: 1 / -1; }
}

/* Products > Needs attention (product health) */
.spa_issue_high { color: #e53935; box-shadow: inset 0 0 0 1px rgba(229,57,53,0.5); }
.spa_issue_high:hover { background: rgba(229,57,53,0.1); }
.spa_issue_low { color: inherit; opacity: .65; box-shadow: inset 0 0 0 1px rgba(128,128,128,0.35); }
.spa_health { align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.spa_health .sap_cats { flex: 1; min-width: 0; }
.spa_issue_none { opacity: .45; }
.spa_stale { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.spa_stale select { height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(128,128,128,0.3); background: transparent; color: inherit; font-size: 12px; }
.sdb_health { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* License API > BoomCoding */
.sboom_intro { margin: -4px 0 14px; line-height: 1.5; }
.sboom_actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.sboom_actions > span, .sboom_actions > label { margin-right: auto; }
.sboom_grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sboom_grid > .page_element { margin-bottom: 0; }
.sboom_status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sboom_status .shx_stat { flex: 1; min-width: 200px; }
.sboom_logs { margin-top: 14px; display: flex; flex-direction: column; }
.sboom_log { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(128,128,128,0.1); }
.sboom_log:last-child { border-bottom: none; }
.sboom_log_text { flex: 1; min-width: 0; word-break: break-word; }
.sboom_ok { color: #43a047; }
.sboom_fail { color: #e53935; }
#sboom_test_out { margin-top: 12px; max-height: 260px; overflow: auto; }
@media (max-width: 860px) { .sboom_grid { grid-template-columns: 1fr; } }

/* ============================================
   Flash sales (sfl_ / sfb_): strip above every page, banners, sale page, admin list and edit box.
   --sfl-accent is the sale's colour.
   ============================================ */
.sfl_strip {
	--sfl-accent: #e53935;
	display: flex;
	align-items: center;
	gap: 10px 14px;
	flex-wrap: wrap;
	margin: 10px 10px 0;
	padding: 9px 14px;
	border-radius: 12px;
	background: var(--sfl-accent);
	color: #fff;
	font-size: 13px;
}
.sfl_strip_badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 10px; background: rgba(255,255,255,0.22); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.sfl_strip_text { flex: 1; min-width: 160px; line-height: 1.4; }
.sfl_strip_text span { opacity: .9; }
.sfl_strip .sfl_count { background: rgba(0,0,0,0.22); }
.sfl_strip_btn { border: none; background: #fff; color: #222; font-weight: 800; font-size: 12px; padding: 6px 14px; border-radius: 16px; cursor: pointer; white-space: nowrap; }
.sfl_strip_btn:hover { opacity: .9; }
.sfl_strip_x { border: none; background: transparent; color: #fff; opacity: .75; cursor: pointer; padding: 4px 6px; }
.sfl_strip_x:hover { opacity: 1; }
.sfl_count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sfl_banner {
	--sfl-accent: #e53935;
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 170px;
	margin-bottom: 10px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sfl-accent);
	color: #fff;
	cursor: pointer;
	isolation: isolate;
}
.sfl_banner_full { min-height: 240px; cursor: default; }
.sfl_banner_plain { background: linear-gradient(120deg, var(--sfl-accent), color-mix(in srgb, var(--sfl-accent) 55%, #000)); }
.sfl_banner_pic, .sfl_banner_img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sfl_banner_img { object-fit: cover; z-index: -1; }
.sfl_banner:not(.sfl_banner_plain):not(.sfl_banner_art) .sfl_banner_body { background: linear-gradient(0deg, rgba(0,0,0,0.62), rgba(0,0,0,0.05) 85%); }
.sfl_banner_art { aspect-ratio: 16 / 6; min-height: 0; background: #111; }
.sfl_banner_art .sfl_banner_img { object-fit: cover; z-index: 0; }
.sfl_art_count { position: absolute; right: 12px; bottom: 12px; z-index: 1; background: rgba(0,0,0,0.6); color: #fff; }
.sfl_banner_body { position: relative; width: 100%; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.sfl_banner_badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 12px; background: rgba(255,255,255,0.22); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sfl_banner_title { font-size: 28px; font-weight: 900; line-height: 1.1; margin-top: 6px; word-break: break-word; }
.sfl_banner_full .sfl_banner_title { font-size: 36px; }
.sfl_banner_pct { font-size: 18px; font-weight: 800; }
.sfl_banner_pct span { font-weight: 600; opacity: .9; }
.sfl_banner_sub { opacity: .92; font-size: 13.5px; max-width: 640px; }
.sfl_banner_foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sfl_banner .sfl_count { background: rgba(0,0,0,0.3); }
.sfl_banner_cta { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 16px; background: #fff; color: #222; font-weight: 800; font-size: 12.5px; }
.sfl_banner:not(.sfl_banner_full):hover .sfl_banner_cta { transform: translateX(2px); }
.sfl_head_count { background: rgba(229,57,53,0.12); color: #e53935; }
.sfl_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.store_sale_flash { background: #e53935 !important; color: #fff !important; }

/* Admin list */
.sfl_live_note { margin-top: 14px; }
.sfl_row { align-items: center; }
.sfl_thumb { --sfl-accent: #e53935; width: 120px; height: 46px; flex-shrink: 0; margin-right: 12px; border-radius: 8px; overflow: hidden; background: var(--sfl-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.sfl_thumb img { width: 100%; height: 100%; object-fit: cover; }
.sfl_row_side { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.sfl_meta_live .sfl_count { padding: 0; font-size: inherit; color: #e53935; }

/* Edit box */
.sfb_preview .sfl_banner { cursor: default; margin-bottom: 4px; }
.sfb_preview_note { text-align: center; }
.sfb_pick { margin-top: 10px; padding: 8px; border-radius: 10px; background: rgba(128,128,128,0.06); max-height: 220px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; }
.sfb_pick_products { display: block; }
.sfb_pick_products .sfb_pick_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 10px; }
.sfb_pick_search { margin-bottom: 8px; }
.sfb_pick_item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; cursor: pointer; font-size: 12.5px; min-width: 0; }
.sfb_pick_item:hover { background: rgba(128,128,128,0.08); }
.sfb_pick_item span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfb_drop { position: relative; display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 10px; border: 1px dashed rgba(128,128,128,0.45); cursor: pointer; overflow: hidden; }
.sfb_drop:hover { border-color: #03add8; }
.sfb_drop_img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .9; }
.sfb_drop_text { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfb_remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.sfb_colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sfb_color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(128,128,128,0.3); }
.sfb_color_on { border-color: #fff; box-shadow: 0 0 0 2px #03add8; }
.sfb_color_pick { width: 34px; height: 30px; border: none; background: transparent; cursor: pointer; padding: 0; }
.sfb_slug { display: flex; align-items: center; gap: 6px; }
.sfb_slug .store_muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.sfb_slug .full_input { flex: 1; min-width: 0; }

@media (max-width: 640px) {
	.sfl_strip { margin: 8px 8px 0; padding: 8px 10px; font-size: 12px; }
	.sfl_strip_text { min-width: 100%; order: 3; }
	.sfl_strip_x { margin-left: auto; }
	.sfl_banner { min-height: 190px; border-radius: 12px; }
	.sfl_banner_full { min-height: 230px; }
	.sfl_banner_title, .sfl_banner_full .sfl_banner_title { font-size: 24px; }
	.sfl_banner_body { padding: 16px; }
	.sfl_banner_art { aspect-ratio: 4 / 3; }
	.sfl_grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.sfl_row { flex-wrap: wrap; }
	.sfl_thumb { width: 96px; height: 38px; }
	.sfl_row_side { width: 100%; justify-content: flex-end; margin-top: 8px; }
}
/* Product card: badges wrap instead of running under the wishlist heart */
.sap_card_media .sap_card_badges { right: 48px; flex-wrap: wrap; }

/* ============================================
   Showcase (ssc_ / ssb_): gallery cards, "your sites", the submit box and the admin list
   ============================================ */
.ssc_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ssc_card { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid rgba(128,128,128,0.18); }
.ssc_featured { border-color: #f6b400; box-shadow: 0 0 0 1px #f6b400; }
.ssc_star { position: absolute; top: 10px; right: 12px; color: #f6b400; }
.ssc_logo { width: 60px; height: 60px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #03add8, #8e24aa); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 800; }
.ssc_logo img { width: 100%; height: 100%; object-fit: cover; }
.ssc_body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ssc_name { font-weight: 800; font-size: 14.5px; color: inherit; word-break: break-word; }
.ssc_domain { font-size: 12px; opacity: .65; color: inherit; word-break: break-all; }
.ssc_domain .fa-external-link-alt { font-size: 9px; }
.ssc_desc { font-size: 12.5px; opacity: .75; margin: 3px 0 0; line-height: 1.45; }
.ssc_built { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 7px; }
.ssc_built_label { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .55; margin-right: 2px; }
.ssc_chip { border: none; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(3,173,216,0.12); color: #0288c7; font-weight: 600; cursor: pointer; }
.ssc_chip_more { cursor: default; background: rgba(128,128,128,0.14); color: inherit; }
.ssc_mine_list { display: flex; flex-direction: column; gap: 8px; }
.ssc_mine_row, .ssc_row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(128,128,128,0.18); }
.ssc_mine_logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(128,128,128,0.12); font-size: 18px; opacity: .9; }
.ssc_mine_logo img { width: 100%; height: 100%; object-fit: cover; }
.ssc_mine_main { flex: 1; min-width: 0; }
.ssc_mine_main .sap_pill { margin-left: 4px; vertical-align: 1px; }
.ssc_mine_actions, .ssc_row_side { display: flex; align-items: center; gap: 6px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.ssc_note { margin-top: 4px; color: #e67000; }
.ssc_mine_empty { display: flex; align-items: center; gap: 8px; }
.ssc_row_desc { margin-top: 4px; }
.ssc_feat_on { color: #f6b400; }
.ssc_ask { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid rgba(142,36,170,0.3); }
.ssc_ask_ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(142,36,170,0.14); color: #8e24aa; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ssc_ask_text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.ssc_ask_btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ssb_logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.ssb_logo_img { width: 72px; height: 72px; border-radius: 16px; border: 1px dashed rgba(128,128,128,0.5); background: center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: .85; flex-shrink: 0; }
.ssb_consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; line-height: 1.45; cursor: pointer; }
.ssb_consent input { margin-top: 3px; }
@media (max-width: 640px) {
	.ssc_mine_row, .ssc_row { flex-wrap: wrap; }
	.ssc_mine_actions, .ssc_row_side { width: 100%; }
	.ssc_grid { grid-template-columns: 1fr; }
}

/* ============================================
   Sales reports (srpt_): one blue for single-series marks (#0288c7 passes contrast on both surfaces),
   recessive grid, text in text colours, one shared tooltip
   ============================================ */
.srpt { --srpt-mark: #0288c7; --srpt-track: rgba(2,136,199,0.12); --srpt-grid: rgba(128,128,128,0.16); }
.srpt_filters { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 14px; }
.srpt_custom { display: flex; align-items: center; gap: 6px; }
.srpt_custom .full_input { height: 34px; width: 150px; padding: 0 8px; }
.srpt_tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.srpt_tiles .page_element { margin-bottom: 0; }
.srpt_tile { padding: 14px 16px; }
.srpt_tile_label { font-size: 12px; opacity: .65; display: flex; align-items: center; gap: 6px; }
.srpt_tile_value { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.srpt_delta { margin-top: 4px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.srpt_delta .store_muted { font-weight: 400; }
.srpt_delta_up { color: #2e7d32; }
.srpt_delta_down { color: #c62828; }
.srpt_delta_flat, .srpt_delta_new { opacity: .75; }
.srpt_card { padding: 16px; }
.srpt_card_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.srpt_card_tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.srpt_seg .smf_seg_btn { min-height: 30px; padding: 4px 12px; font-size: 12px; }
.srpt_grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.srpt_grid2 > .page_element { margin-bottom: 10px; }
.srpt_empty { padding: 20px 0; text-align: center; }

/* Column chart */
.srpt_cols { position: relative; }
.srpt_plot { display: flex; gap: 8px; height: 240px; }
.srpt_y { position: relative; width: 44px; flex-shrink: 0; margin-bottom: 22px; }
.srpt_y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }
.srpt_area_wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srpt_area { position: relative; flex: 1; }
.srpt_grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--srpt-grid); }
.srpt_colrow { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.srpt_col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; min-width: 0; }
.srpt_col:hover, .srpt_col:focus-visible { background: rgba(128,128,128,0.06); }
.srpt_col_bar { position: relative; width: 100%; max-width: 24px; min-height: 0; background: var(--srpt-mark); border-radius: 4px 4px 0 0; transition: height .3s; }
.srpt_col_zero { height: 0 !important; }
.srpt_col_label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.srpt_x { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
.srpt_x span { flex: 1; min-width: 0; font-size: 10.5px; opacity: .6; text-align: center; white-space: nowrap; overflow: visible; }
.srpt_empty_over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* Horizontal bars */
.srpt_bars { display: flex; flex-direction: column; gap: 10px; }
.srpt_bar { cursor: default; }
.srpt_bar_head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.srpt_bar_label { min-width: 0; }
.srpt_bar_value { flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.srpt_bar_value .store_muted { font-weight: 400; margin-left: 4px; }
.srpt_bar_track { height: 8px; border-radius: 4px; background: var(--srpt-track); overflow: hidden; }
.srpt_bar_track span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--srpt-mark); }
.srpt_bar:hover .srpt_bar_track span { filter: brightness(1.1); }
.srpt_more { margin-top: 2px; }

/* Tables */
.srpt_table_wrap { overflow-x: auto; }
.srpt_table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.srpt_table th { text-align: left; font-size: 11px; font-weight: 700; opacity: .6; padding: 6px 8px; border-bottom: 1px solid rgba(128,128,128,0.2); white-space: nowrap; }
.srpt_table td { padding: 8px; border-bottom: 1px solid rgba(128,128,128,0.1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.srpt_cols + .srpt_table_wrap { max-height: 320px; overflow: auto; }
.srpt_bad { color: #c62828; font-weight: 600; }

/* Lifetime value */
.srpt_ltv_stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.srpt_ltv_stats > div { padding: 12px 14px; border-radius: 10px; background: rgba(128,128,128,0.06); display: flex; flex-direction: column; gap: 2px; }
.srpt_ltv_stats .srpt_tile_value { margin: 0; font-size: 20px; }
.srpt_ltv_grid { gap: 20px; }
.srpt_sub { margin-bottom: 10px; }
.srpt_people { display: flex; flex-direction: column; }
.srpt_person { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border: none; border-bottom: 1px solid rgba(128,128,128,0.1); background: transparent; color: inherit; text-align: left; cursor: pointer; font-size: 12.5px; }
.srpt_person:hover { background: rgba(128,128,128,0.06); }
.srpt_person img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.srpt_person_main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srpt_rank { width: 18px; text-align: center; font-size: 11px; font-weight: 700; opacity: .55; }

.srpt_tip { position: fixed; z-index: 99999; pointer-events: none; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: #222; color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0,0,0,0.25); opacity: 0; transition: opacity .1s; }
.srpt_tip_on { opacity: 1; }

@media (max-width: 1100px) {
	.srpt_tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.srpt_tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srpt_grid2 { grid-template-columns: 1fr; }
	.srpt_ltv_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.srpt_plot { height: 200px; }
	.srpt_y { width: 36px; }
	.srpt_card_head { flex-wrap: wrap; }
	.srpt_custom { width: 100%; }
	.srpt_custom .full_input { flex: 1; width: auto; min-width: 0; }
}
/* main.css pins .full_input to min/max-width 100%, which stretched each date box to the whole row */
.srpt .srpt_custom input.full_input,
.sor .srpt_custom input.full_input { width: 150px; min-width: 0; max-width: 150px; flex: 0 0 150px; }
.srpt_filters { justify-content: flex-start; }
.srpt_filters .sap_sort { flex-wrap: wrap; flex-shrink: 1; max-width: 100%; margin-left: 0; }
@media (max-width: 760px) {
	.srpt .srpt_custom input.full_input,
	.sor .srpt_custom input.full_input { width: auto; max-width: none; flex: 1 1 0; }
}
.spa_stale select { width: auto; min-width: 104px; flex: 0 0 auto; }

/* ============================================
   Site pages (privacy, terms, rules): readable long-form text from the Pages editor (pageDataHtml)
   ============================================ */
.page_doc { max-width: 820px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.page_doc > :first-child { margin-top: 0; }
.page_doc p { margin: 0 0 14px; }
.page_doc h2, .page_doc h3, .page_doc h4, .page_doc h5, .page_doc h6 { margin: 28px 0 10px; line-height: 1.3; font-weight: 700; }
.page_doc h2 { font-size: 22px; }
.page_doc h3 { font-size: 18px; padding-top: 18px; border-top: 1px solid rgba(128,128,128,0.16); }
.page_doc h3:first-child { border-top: 0; padding-top: 0; }
.page_doc h4 { font-size: 15.5px; margin-top: 20px; }
.page_doc ul, .page_doc ol { margin: 0 0 16px; padding-left: 22px; }
.page_doc ul { list-style: disc outside; }
.page_doc ol { list-style: decimal outside; }
.page_doc ul li, .page_doc ol li { display: list-item; margin: 5px 0; padding-left: 4px; }
.page_doc ul > li { list-style: disc outside; }
.page_doc ol > li { list-style: decimal outside; }
.page_doc li::marker { color: #03add8; }
.page_doc a { color: #0287ab; text-decoration: underline; text-underline-offset: 2px; }
.page_doc small { font-size: 12.5px; opacity: .65; }
.page_doc blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid #03add8; background: rgba(3,173,216,0.06); border-radius: 0 8px 8px 0; }
.page_doc code { padding: 1px 6px; border-radius: 5px; background: rgba(128,128,128,0.12); font-size: 13px; }
.page_doc hr { margin: 24px 0; border: 0; border-top: 1px solid rgba(128,128,128,0.2); }
.page_doc table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14px; }
.page_doc th, .page_doc td { padding: 8px 10px; border-bottom: 1px solid rgba(128,128,128,0.16); text-align: left; vertical-align: top; }
@media (max-width: 600px) {
	.page_doc { font-size: 14.5px; }
	.page_doc h3 { font-size: 17px; }
}


/* ============================================
   Site pages editor (spe_): HTML on the left, the cleaned page on the right
   ============================================ */
.spe_tabs { margin: 14px 0 0; flex-wrap: wrap; }
.spe_bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.spe_view { margin-left: 0; }
.spe_dirty { color: #ef6c00; font-weight: 600; }
.spe_dirty i { font-size: 7px; vertical-align: middle; margin-right: 3px; }
.spe_bar_end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.spe_split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.spe_split[data-view="edit"] { grid-template-columns: minmax(0, 1fr); }
.spe_split[data-view="edit"] .spe_preview_wrap { display: none; }
.spe_split[data-view="preview"] { grid-template-columns: minmax(0, 1fr); }
.spe_split[data-view="preview"] .spe_edit { display: none; }
#page_wrapper .spe_text {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 64vh;
	min-height: 360px;
	padding: 14px 16px;
	border: 1px solid rgba(128,128,128,0.2);
	border-radius: 10px;
	background: rgba(128,128,128,0.05);
	color: inherit;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.6;
	resize: vertical;
	tab-size: 2;
}
#page_wrapper .spe_text:focus { outline: none; border-color: rgba(3,173,216,0.6); box-shadow: 0 0 0 3px rgba(3,173,216,0.12); }
.spe_preview_wrap { display: flex; flex-direction: column; min-width: 0; height: 64vh; min-height: 360px; border: 1px solid rgba(128,128,128,0.2); border-radius: 10px; overflow: hidden; }
.spe_preview_label { flex-shrink: 0; padding: 8px 14px; border-bottom: 1px solid rgba(128,128,128,0.14); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.spe_preview { flex: 1; min-height: 0; padding: 16px 20px; overflow-y: auto; }
.spe_split[data-view="preview"] .spe_preview_wrap { height: auto; max-height: none; }
.spe_help { margin-top: 12px; line-height: 1.6; }
.spe_help code { padding: 0 4px; border-radius: 4px; background: rgba(128,128,128,0.12); font-size: 11px; }
@media (max-width: 900px) {
	.spe_split, .spe_split[data-view="split"] { grid-template-columns: minmax(0, 1fr); }
	.spe_split[data-view="split"] .spe_preview_wrap { height: 50vh; }
	#page_wrapper .spe_text { height: 50vh; }
	.spe_view .sap_sort_btn span { display: none; }
	.spe_bar_end { margin-left: 0; width: 100%; }
	.spe_bar_end > * { flex: 1; justify-content: center; }
}

/* ============================================
   System settings pages: Moderation (smo_), Members (smb_), Registration (sre_), System status (sst_)
   ============================================ */
/* Moderation */
.smo_stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.smo_tabs { margin: 14px 0 0; flex-wrap: wrap; }
.smo_toolbar { flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.smo_toolbar .sap_search { flex: 1 1 260px; max-width: 420px; }
.smo_list, .smo_iplist { gap: 8px; }
.smo_user { align-items: flex-start; }
.smo_pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 6px; }
.smo_reason { max-width: 100%; font-style: italic; }
.smo_side { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.smo_lift { height: 32px; padding: 0 12px; }
.smo_ipadd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; background: rgba(229,57,53,0.06); }
.smo_ipadd_text { flex: 1 1 280px; min-width: 0; }
.smo_ipadd_form { display: flex; gap: 8px; flex: 0 1 360px; min-width: 0; }
#page_wrapper .smo_ipadd_form .full_input { flex: 1; min-width: 0; max-width: none; height: 38px; padding: 0 12px; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.smo_ipadd_form .sap_buy_btn { flex-shrink: 0; }
.smo_ipsearch { margin-bottom: 12px; max-width: 420px; }
.smo_ip_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; }
.smo_ip_addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.smo_hist { display: flex; flex-direction: column; gap: 2px; }
.smo_hist_row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(128,128,128,0.1); }
.smo_hist_row:last-child { border-bottom: 0; }
.smo_hist_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.smo_hist_main { flex: 1; min-width: 0; line-height: 1.5; }
.smo_hist_when { flex-shrink: 0; white-space: nowrap; }
/* Members */
.smb_stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.smb_tools .sap_search { flex: 1 1 320px; max-width: 520px; }
.smb_count { white-space: nowrap; }
.smb_grid { grid-template-columns: minmax(200px, 2.2fr) minmax(0, 1.7fr) 0.8fr 0.9fr 0.8fr auto; }
.smb_list { gap: 6px; }
.smb_row { border-radius: 12px; }
.smb_row > * { min-width: 0; }
.smb_row .bellips { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smb_av { position: relative; flex-shrink: 0; display: inline-flex; }
.smb_online { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #43a047; box-shadow: 0 0 0 2px var(--stb-ring, #fff); }
.smb_badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.smb_badges .sap_pill { font-size: 10.5px; }
.smb_ok { color: #2e7d32; }
.smb_warn { color: #ef6c00; }
.smb_actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.smb_del:hover { color: #e53935; }
/* Registration */
.sre_state { flex-shrink: 0; }
.sre_state .fa-circle { font-size: 7px; }
.sre_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.sre_grid .page_element { margin-bottom: 0; }
.sre_card_head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.sre_row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(128,128,128,0.12); }
.sre_row .smf_switch_text { flex: 1; min-width: 0; }
.sre_num { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#page_wrapper .sre_num .full_input { width: 84px; min-width: 0; max-width: 84px; height: 36px; padding: 0 10px; border-radius: 10px; text-align: center; font-weight: 700; }
.sre_link_row .sap_outline_btn { flex-shrink: 0; gap: 8px; }
.sre_foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* System status */
.sst_summary { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; }
.sst_summary_icon { font-size: 26px; }
.sst_summary_ok { background: rgba(67,160,71,0.1); color: #2e7d32; }
.sst_summary_warn { background: rgba(251,140,0,0.12); color: #c25e00; }
.sst_summary_bad { background: rgba(229,57,53,0.1); color: #c62828; }
.sst_issues { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.sst_issue { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(128,128,128,0.06); font-size: 13px; line-height: 1.45; }
.sst_issue > i { margin-top: 3px; }
.sst_issue_hint { opacity: .7; margin-top: 2px; }
.sst_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sst_grid .page_element { margin-bottom: 0; }
.sst_card_head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.sst_rows { display: flex; flex-direction: column; }
.sst_row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(128,128,128,0.1); }
.sst_row:first-child { border-top: 0; }
.sst_row_small { padding: 5px 0; border-top: 0; }
.sst_state { flex-shrink: 0; width: 16px; margin-top: 1px; text-align: center; font-size: 13px; }
.sst_ok, .sst_issue.sst_ok > i { color: #43a047; }
.sst_warn, .sst_issue.sst_warn > i { color: #fb8c00; }
.sst_bad, .sst_issue.sst_bad > i { color: #e53935; }
.sst_info { color: rgba(128,128,128,0.6); }
.sst_row_main { flex: 1; min-width: 0; }
.sst_row_top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.sst_label { flex-shrink: 0; opacity: .85; }
.sst_label code, code.sst_label { font-size: 12px; }
.sst_value { min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.sst_hint { margin-top: 3px; opacity: .65; line-height: 1.45; }
.sst_sub { margin: 10px 0 2px 26px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }
@media (max-width: 1280px) {
	.smb_stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sre_grid, .sst_grid { grid-template-columns: minmax(0, 1fr); }
	.smo_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sad_tx.smb_grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.smb_actions { grid-column: 1 / -1; justify-content: flex-start; }
	.smo_user { flex-wrap: wrap; }
	.smo_side { width: 100%; justify-content: flex-start; }
}
@media (max-width: 600px) {
	.smb_stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sre_row { flex-wrap: wrap; }
	.sst_row_top { flex-direction: column; gap: 2px; }
	.sst_value { text-align: left; }
	.smo_ipadd_form { flex-basis: 100%; }
}

/* ============================================
   System settings: Main options (smn_), Security (ssx_), Upload and database (sud_), Cache (sca_),
   Filters (sfl_). Cards, rows and switches reuse the Registration page (sre_) and form (smf_) styles.
   ============================================ */
.sre_card .smf_field { margin-top: 12px; }
.sre_card .smf_field:first-of-type { margin-top: 4px; }
#page_wrapper .sre_card .smf_field > .full_input,
#page_wrapper .sre_card .smf_field > .full_textarea { min-width: 0; max-width: none; }
.smn_col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.smn_col .page_element { margin-bottom: 0; }
.smn_card_foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(128,128,128,0.12); }
.smn_warn { margin-top: 6px; color: #ef6c00; }
.smn_over { color: #e53935; font-weight: 700; }
.smn_serp { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(128,128,128,0.06); }
.smn_serp_label { margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }
.smn_serp_url { font-size: 12.5px; opacity: .7; overflow-wrap: anywhere; }
.smn_serp_title { margin-top: 2px; font-size: 18px; line-height: 1.3; color: #1a0dab; }
.smn_serp_desc { margin-top: 4px; font-size: 13px; line-height: 1.5; opacity: .75; }
.smn_maint_on { box-shadow: 0 0 0 2px rgba(251,140,0,0.55) !important; }
.smn_color { display: flex; align-items: center; gap: 8px; }
.smn_color input[type=color] { flex-shrink: 0; width: 42px; height: 38px; padding: 2px; border: 1px solid rgba(128,128,128,0.25); border-radius: 10px; background: transparent; cursor: pointer; }
#page_wrapper .smn_color .full_input { flex: 1; min-width: 0; max-width: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.smn_app_preview { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; margin: 14px 0 4px; }
.smn_app_icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); overflow: hidden; }
.smn_app_icon img { width: 44px; height: 44px; object-fit: contain; }
.smn_app_name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Security */
.ssx_pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ssx_providers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.ssx_provider { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid rgba(128,128,128,0.2); border-radius: 12px; background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ssx_provider > i { font-size: 18px; opacity: .7; margin-bottom: 2px; }
.ssx_provider:hover { border-color: rgba(3,173,216,0.45); }
.ssx_provider_on { border-color: #03add8; background: rgba(3,173,216,0.08); box-shadow: 0 0 0 1px #03add8 inset; }
.ssx_provider_on > i { color: #03add8; opacity: 1; }
.ssx_keys { margin-top: 6px; }
.ssx_getkeys { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.ssx_pair { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* The theme turns selects into SelectBoxIt widgets: give each one a usable width side by side */
.ssx_pair > .selectboxit-container { display: block; width: 150px; }
.ssx_pair > .selectboxit-container > .selectboxit { width: 100% !important; }
.ssx_pair .selectboxit-options { min-width: 150px; }
.ssx_pair .selectboxit-text { max-width: 110px !important; white-space: nowrap; }
.ssx_getkeys[hidden] { display: none; }
.ssx_vpn { margin-top: 4px; }
/* Upload and database */
.sud_bars { margin-top: 6px; }
.sud_bars code { font-size: 10.5px; }
.sud, .sca { --srpt-mark: #0288c7; --srpt-track: rgba(2,136,199,0.12); }
.sud_over { color: #ef6c00 !important; opacity: 1 !important; }
.sud_over[hidden] { display: none !important; }
.sud_search { width: 220px; max-width: 100%; }
.sud_tables { margin-top: 10px; }
.sud_share { display: inline-block; width: 70px; height: 6px; margin-right: 6px; border-radius: 3px; background: rgba(128,128,128,0.15); vertical-align: middle; overflow: hidden; }
.sud_share span { display: block; height: 100%; border-radius: 3px; background: var(--srpt-mark, #0288c7); }
.sud_all { margin-top: 12px; }
/* Cache */
.sca_clear { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(3,173,216,0.07); }
.sca_clear > div { flex: 1 1 320px; min-width: 0; }
.sca_facts { margin-top: 12px; }
.sca_mem { margin: 8px 0 4px; }
/* Filters */
.sfl_tabs { margin: 14px 0 0; flex-wrap: wrap; }
.sfl_intro { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.sfl_intro_text { min-width: 0; }
.sap_tint_grey { background: rgba(128,128,128,0.14); color: inherit; opacity: .7; }
.sfl_rule { margin-bottom: 4px; }
.sfl_add { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; }
#page_wrapper .sfl_add_input { flex: 1; min-width: 0; max-width: none; min-height: 40px; max-height: 160px; padding: 10px 12px; border-radius: 10px; resize: vertical; line-height: 1.4; }
.sfl_add .sap_buy_btn { flex-shrink: 0; height: 40px; }
.sfl_search { margin-bottom: 12px; max-width: 360px; }
.sfl_chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sfl_chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 4px 4px 4px 11px; border-radius: 16px; background: rgba(128,128,128,0.1); font-size: 13px; transition: opacity .15s; }
.sfl_chip_text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfl_chip_x { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 10px; opacity: .55; cursor: pointer; }
.sfl_chip_x:hover { opacity: 1; background: rgba(229,57,53,0.14); color: #e53935; }
.sfl_chip_new { background: rgba(67,160,71,0.14); }
.sfl_chip_busy { opacity: .4; pointer-events: none; }
.sfl_empty { margin-top: 4px; }
@media (max-width: 900px) {
	.ssx_providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ssx_pair { width: 100%; }
	.ssx_pair > .selectboxit-container { flex: 1; width: auto; min-width: 0; }
	.sca_clear .sap_buy_btn { width: 100%; justify-content: center; }
	.smn_serp_title { font-size: 16px; }
}

/* ============================================
   My Account > Transactions (stx_): rows that open into a receipt
   ============================================ */
.stx_cust_bar { justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.stx_cust_sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.stx_row { border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.stx_row:hover, .stx_open { border-color: rgba(3,173,216,0.45); }
.stx_open { box-shadow: 0 4px 16px rgba(15,23,42,0.06); }
.stx_row_head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.stx_row_head:focus-visible { outline: 2px solid #03add8; outline-offset: -2px; }
.stx_row_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(3,173,216,0.12); color: #03add8; font-size: 15px; }
.stx_row_icon_free { background: rgba(67,160,71,0.13); color: #43a047; }
.stx_row_main { flex: 1; min-width: 0; }
.stx_row_title { font-size: 14px; }
.stx_row_side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: right; }
.stx_row_chev { flex-shrink: 0; font-size: 11px; opacity: .45; transition: transform .2s; }
.stx_open .stx_row_chev { transform: rotate(180deg); }
.stx_rcpt { padding: 0 14px 14px; }
.stx_rcpt[hidden] { display: none; }
.stx_rcpt_paper { padding: 14px 16px; border-radius: 12px; background: rgba(128,128,128,0.06); }
.stx_rcpt_top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed rgba(128,128,128,0.3); }
.stx_rcpt_lines { display: flex; flex-direction: column; }
.stx_rcpt_line { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(128,128,128,0.1); }
.stx_rcpt_img { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; }
.stx_rcpt_img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.stx_rcpt_name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; }
.stx_rcpt_price { flex-shrink: 0; font-size: 13.5px; font-weight: 600; }
.stx_rcpt_none { padding: 8px 0; }
.stx_rcpt_sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; font-size: 13px; }
.stx_rcpt_sum dt { opacity: .6; }
.stx_rcpt_sum dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.stx_rcpt_sum .stx_rcpt_total { opacity: 1; font-size: 15px; font-weight: 700; padding: 4px 0; }
.stx_rcpt_actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Payment settings (spy_) */
.spy [hidden], .scg [hidden], .sdb_page [hidden], .stx_row [hidden] { display: none !important; }
.spy_checkout { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(128,128,128,0.06); }
.spy_checkout_label { margin-bottom: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.spy_checkout_opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spy_opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(128,128,128,0.22); border-radius: 12px; font-size: 14px; }
.spy_opt[hidden] { display: none; }
.spy_opt i { font-size: 18px !important; }
.spy_none { color: #e53935; font-weight: 600; }
.spy_gw { border-left: 3px solid transparent; transition: border-color .2s; }
.spy_gw_on { border-left-color: #43a047; }
.spy_gw_head { display: flex; align-items: center; gap: 12px; }
.spy_gw_logo { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; }
.spy_gw_head .sad_main { flex: 1; min-width: 0; }
.spy_gw_head .sad_title .sap_pill { margin-left: 4px; vertical-align: 2px; }
.spy_switch { flex-shrink: 0; }
.spy_perf { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0 60px; }
.spy_gw_body { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(128,128,128,0.12); }
.spy_gw_body[hidden], .spy_off[hidden] { display: none; }
.spy_off { margin: 8px 0 0 60px; }
.spy_row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; margin-bottom: 4px; }
.spy_mode { margin: 2px 0 6px; }
.spy_mode_hint { max-width: 460px; }
#page_wrapper .spy_currency { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.spy .smf_field > .full_input, .spy .sad_secret .full_input { min-width: 0; max-width: none; }

/* Categories (scg_) */
.scg_head, .scg_row { display: grid; grid-template-columns: 22px minmax(200px, 2.2fr) 0.8fr 1fr 1.2fr 70px auto; align-items: center; gap: 12px; }
.scg_head { padding: 0 14px 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .5; }
.scg_list { display: flex; flex-direction: column; gap: 6px; }
.scg_row { padding: 10px 14px; border-radius: 12px; background: var(--card, transparent); transition: border-color .15s, box-shadow .15s, opacity .15s; }
.scg_row:hover { border-color: rgba(3,173,216,0.4); }
.scg_off { opacity: .7; }
.scg_dragging { opacity: .45; box-shadow: 0 0 0 2px #03add8; }
.scg_moved { box-shadow: 0 0 0 2px rgba(3,173,216,0.45); }
.scg_grip { cursor: grab; opacity: .4; text-align: center; }
.scg_row:hover .scg_grip { opacity: .8; }
.scg_name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scg_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.scg_flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.scg_flags .sap_pill { font-size: 10.5px; }
.scg_bar { width: 100%; max-width: 140px; height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(2,136,199,0.12); overflow: hidden; }
.scg_bar span { display: block; height: 100%; border-radius: 3px; background: #0288c7; }
.scg_actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.scg_actions .sap_icon_btn:disabled { opacity: .35; cursor: not-allowed; }
.scg_list .scg_row:first-child .scg_move:first-child,
.scg_list .scg_row:last-child .scg_move:nth-child(2) { visibility: hidden; }

/* Dashboard header figures and attention strip (sdb_) */
.sdb_kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sdb_kpi { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 12px; color: inherit; font: inherit; text-align: left; overflow: hidden; }
button.sdb_kpi { cursor: pointer; transition: box-shadow .15s; }
button.sdb_kpi:hover { box-shadow: 0 0 0 1px rgba(3,173,216,0.45); }
.sdb_kpi_label { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .7; }
.sdb_kpi_value { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sdb_kpi_sub { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; position: relative; z-index: 1; }
.sdb_spark { position: absolute; right: 12px; top: 14px; width: 90px; height: 30px; stroke: #0288c7; opacity: .6; }
.sdb_delta_flat { opacity: .6; }
.sdb_lifetime { margin-top: 10px; }
.sdb_attn_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.sdb_attn_grid .sdb_att_item { margin: 0; }
.sdb_order_side { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1100px) {
	.sdb_kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.scg_head { display: none; }
	.scg_row { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "grip name switch" "grip stats stats" "grip actions actions"; row-gap: 8px; }
	.scg_row > .scg_grip { grid-area: grip; }
	.scg_row > .scg_name { grid-area: name; }
	.scg_row > [data-label="In store"] { grid-area: switch; }
	.scg_row > .scg_actions { grid-area: actions; justify-content: flex-start; }
	.scg_row > [data-label="Products"], .scg_row > [data-label="Sales · 30 days"], .scg_row > [data-label="All-time revenue"] { display: none; }
}
@media (max-width: 600px) {
	.sdb_kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.sdb_kpi { padding: 12px; }
	.sdb_kpi_value { font-size: 19px; }
	.sdb_spark { display: none; }
	.spy_row { grid-template-columns: minmax(0, 1fr); }
	.spy_perf, .spy_off { margin-left: 0; }
	.stx_rcpt { padding: 0 10px 10px; }
	.stx_rcpt_actions > * { flex: 1 1 auto; justify-content: center; }
	.stx_row_head { padding: 10px; gap: 10px; }
}

/* ============================================
   Staff popups from a member's profile (mbx_): ban, mute, kick, ghost, warn and admin edits
   ============================================ */
.mbx { margin: -1px; }
.mbx_head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px; }
.mbx_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.mbx_red .mbx_icon { background: rgba(229,57,53,0.13); color: #e53935; }
.mbx_orange .mbx_icon { background: rgba(251,140,0,0.15); color: #ef6c00; }
.mbx_purple .mbx_icon { background: rgba(142,36,170,0.13); color: #8e24aa; }
.mbx_grey .mbx_icon { background: rgba(128,128,128,0.16); color: inherit; }
.mbx_blue .mbx_icon { background: rgba(3,173,216,0.13); color: #0288b0; }
.mbx_green .mbx_icon { background: rgba(67,160,71,0.14); color: #2e7d32; }
.mbx_head_text { flex: 1; min-width: 0; }
.mbx_title { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mbx_desc { margin-top: 3px; font-size: 12.5px; line-height: 1.5; opacity: .7; }
.mbx_close { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: inherit; opacity: .55; cursor: pointer; }
.mbx_close:hover { opacity: 1; background: rgba(128,128,128,0.12); }
.mbx_who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(128,128,128,0.07); }
.mbx_av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mbx_who_text { flex: 1; min-width: 0; }
.mbx_name { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbx_rank { margin-left: 4px; font-size: 11px; font-weight: 600; opacity: .6; }
.mbx_meta { font-size: 11.5px; opacity: .6; }
.mbx_body { padding: 6px 16px 4px; }
.mbx_scroll { max-height: min(60vh, 520px); overflow-y: auto; }
.mbx_field { margin-top: 12px; }
.mbx_label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; }
.mbx_opt { font-weight: 500; opacity: .55; }
.mbx_chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mbx_chip { padding: 6px 11px; border: 1px solid rgba(128,128,128,0.25); border-radius: 15px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; transition: background .15s, border-color .15s; }
.mbx_chip:hover { border-color: rgba(3,173,216,0.55); }
.mbx_chip_on { border-color: #03add8; background: rgba(3,173,216,0.12); color: #0287ab; font-weight: 700; }
.mbx_reasons .mbx_chip { padding: 4px 10px; font-size: 12px; }
.mbx_reasons { margin-bottom: 8px; }
.mbx_more { height: 31px; padding: 0 8px; border: 1px solid rgba(128,128,128,0.25); border-radius: 15px; background: transparent; color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }
.mbx_until { margin-top: 7px; font-size: 12px; opacity: .7; }
.mbx_text, .mbx_input, .mbx_select { display: block; width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid rgba(128,128,128,0.25); border-radius: 10px; background: rgba(128,128,128,0.05); color: inherit; font: inherit; font-size: 13.5px; }
.mbx_text { resize: vertical; min-height: 72px; line-height: 1.5; }
.mbx_text_tall { min-height: 220px; }
.mbx_input, .mbx_select { height: 40px; }
.mbx_text:focus, .mbx_input:focus, .mbx_select:focus { outline: none; border-color: rgba(3,173,216,0.6); box-shadow: 0 0 0 3px rgba(3,173,216,0.12); }
.mbx_note { margin-top: 8px; font-size: 12px; opacity: .7; }
.mbx_pass { display: flex; gap: 6px; }
.mbx_pass .mbx_input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mbx_icon_btn { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid rgba(128,128,128,0.25); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.mbx_icon_btn:hover { border-color: rgba(3,173,216,0.55); color: #0288b0; }
.mbx_strength { height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(128,128,128,0.15); overflow: hidden; }
.mbx_strength span { display: block; width: 0; height: 100%; border-radius: 3px; background: #e53935; transition: width .2s, background .2s; }
.mbx_strength span[data-s="2"] { background: #fb8c00; }
.mbx_strength span[data-s="3"] { background: #fdd835; }
.mbx_strength span[data-s="4"], .mbx_strength span[data-s="5"] { background: #43a047; }
.mbx_foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px 16px; }
.mbx_btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 19px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mbx_btn_ghost { background: rgba(128,128,128,0.12); color: inherit; }
.mbx_btn_danger { background: #e53935; color: #fff; }
.mbx_btn_warn { background: #ef6c00; color: #fff; }
.mbx_btn_primary { background: #03add8; color: #fff; }
.mbx_btn:hover { filter: brightness(1.06); }
.mbx_switches { display: flex; flex-direction: column; gap: 6px; }
.mbx_switch_row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(128,128,128,0.06); }
.mbx_switch_row b { display: block; font-size: 13.5px; }
.mbx_switch_row small { display: block; font-size: 11.5px; opacity: .6; }
.mbx_hist { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,0.12); }
.mbx_hist:last-child { border-bottom: 0; }
.mbx_hist_icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.mbx_hist_main { flex: 1; min-width: 0; }
.mbx_hist_top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mbx_hist_when { flex-shrink: 0; font-size: 11.5px; opacity: .55; }
.mbx_hist_meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 3px; font-size: 12px; opacity: .7; }
.mbx_hist .mbx_icon_btn { width: 28px; height: 28px; border: 0; opacity: .5; }
.mbx_empty { padding: 26px 10px; text-align: center; font-size: 13px; opacity: .75; }
.mbx_empty i { color: #43a047; margin-right: 4px; }
.mbx_facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 10px 0 0; font-size: 13px; }
.mbx_facts dt { opacity: .6; }
.mbx_facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mbx_copy { cursor: pointer; border-bottom: 1px dashed rgba(128,128,128,0.45); }
.mbx_link { margin-left: 6px; padding: 0; border: 0; background: none; color: #0288b0; font: inherit; font-size: 12px; cursor: pointer; }
.mbx_ipdetails { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(128,128,128,0.06); font-size: 12.5px; }
.mbx_tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mbx_tag { padding: 4px 10px; border: 0; border-radius: 12px; background: rgba(3,173,216,0.12); color: #0287ab; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mbx_tag_plain { background: rgba(128,128,128,0.12); color: inherit; cursor: default; font-weight: 500; }
.mbx_muted { font-size: 12.5px; opacity: .55; }
/* Sign-in, sign-up and recovery variants of the box */
.mbx_guest .mbx_head { padding-top: 20px; }
.mbx_foot_stack { flex-direction: column; align-items: stretch; gap: 10px; }
.mbx_btn_wide { width: 100%; height: 44px; border-radius: 22px; font-size: 14.5px; }
.mbx_foot_links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.mbx_textlink { padding: 2px 0; border: 0; background: none; color: #0288b0; font: inherit; font-size: 13px; cursor: pointer; }
.mbx_textlink:hover { text-decoration: underline; }
.mbx_terms { font-size: 12px; line-height: 1.5; text-align: center; opacity: .75; }
.mbx_terms a, .mbx_terms .rules_click { color: #0288b0; text-decoration: underline; }
.mbx_date { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 8px; }
.mbx_match[hidden] { display: none; }

/* Support queue: at a glance, shown until a ticket is opened (ssg_) */
.ssg { padding: 22px 24px; overflow-y: auto; }
.ssg_title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.ssg_tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ssg_tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: rgba(128,128,128,0.07); }
.ssg_tile_warn { background: rgba(251,140,0,0.12); }
.ssg_tile_warn .ssg_val { color: #ef6c00; }
.ssg_val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ssg_lbl { font-size: 11.5px; opacity: .65; }
.ssg_sub { margin: 20px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.ssg_list { display: flex; flex-direction: column; gap: 6px; }
.ssg_item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid rgba(128,128,128,0.16); border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.ssg_item:hover { border-color: rgba(3,173,216,0.5); }
.ssg_av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ssg_item_text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.ssg_item_text span { font-size: 12px; opacity: .65; }
.ssg_wait { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #ef6c00; }
.ssg_clear { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(67,160,71,0.1); font-size: 13px; }
.ssg_clear i { color: #43a047; margin-right: 4px; }


/* Notifications page: day groups, filters, email preferences */
.snt_page .snt_list { gap: 18px; }
.snt_group { display: flex; flex-direction: column; gap: 6px; }
.snt_group_title { margin: 0 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.snt_page .snt_dot[hidden] { display: none; }
.snt_filters { margin-top: 12px; }
.snt_prefs .smf_switch_row { margin-top: 6px; }
