/* Shared DataTable styling for the admin, seller and customer panels.
   Loaded after each panel's head_script <style> blocks, which already set the base table
   look (header, row padding, hover, pagination, coloured action icons). This file adds the
   product-list refinements on top so every list reads the same, plus the reusable pl-* cell
   components that controllers can emit for richer cells. */

/* ---- Frame: the rounded, bordered box of the product list (.dr-table) on every list.
   Corners are rounded on the edge cells rather than with overflow:hidden on the table, which
   would clip the "⋮" dropdown menus that open inside the cells. ---- */
table.dataTable {
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px;
}
table.dataTable thead th {
	border-top: none !important;
}
table.dataTable thead tr:first-child th:first-child { border-top-left-radius: 12px; }
table.dataTable thead tr:first-child th:last-child { border-top-right-radius: 12px; }
table.dataTable tbody tr:last-child td { border-bottom: none !important; }
table.dataTable tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
table.dataTable tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
/* The theme's footer rule would draw a second line right under the frame. */
.dataTables_wrapper .datatable-footer {
	border-top: 0 !important;
}
/* Tables placed straight in a .card (no .card-body) otherwise run edge to edge. */
.card > .dataTables_wrapper .datatable-scroll-wrap,
.card > .dataTables_wrapper .datatable-scroll {
	padding: 0 1.25rem;
}

/* Lists with their own DataTables "dom" (city, seller products, ...) put the table and the
   info/pagination straight into a wrapper that has no .card-body around it, so give those
   the same 1.25rem side gutter the header row already has. */
.card > .dataTables_wrapper > table.dataTable {
	margin-left: 1.25rem !important;
	margin-right: 1.25rem !important;
	width: calc(100% - 2.5rem) !important;
}
.card > .dataTables_wrapper > .dataTables_info,
.card > .dataTables_wrapper > .dataTables_paginate {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
/* table-bordered lists: the frame replaces the per-cell grid, as on the product list. */
table.dataTable.table-bordered th,
table.dataTable.table-bordered td {
	border-left: 0 !important;
	border-right: 0 !important;
}

/* ---- scrollX support: when a DataTable uses scrollX:true, DataTables wraps the thead and
   tbody in separate .dataTables_scrollHead / .dataTables_scrollBody divs. These must allow
   horizontal scroll so all columns stay visible on narrow screens. The card's overflow:clip
   lets these inner scroll containers work without being silently swallowed. ---- */
.dataTables_scrollHead,
.dataTables_scrollBody,
.dataTables_scrollFoot {
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
}
/* scrollBody itself: show a scrollbar only when content overflows */
.dataTables_scrollBody {
	overflow-y: auto;
}
/* Keep table width=100% inside the scroll viewport, not outside it */
.dataTables_scrollHeadInner,
.dataTables_scrollBody table.dataTable {
	min-width: 100%;
}
/* Sync header/body horizontal scroll position (DataTables does this via JS; give the
   scroll head overflow:hidden so only the body shows the scrollbar). */
.dataTables_scrollHead {
	overflow: hidden !important;
}
/* Table scrollbars: the project-wide pill from assets/css/scrollbar.css. */

/* ---- Eliminate unwanted duplicate header / column row between table header and body ----
   When scrollX: true is active, DataTables creates a cloned measurement <thead> inside
   .dataTables_scrollBody. Without these explicit resets, global thead th padding, borders,
   backgrounds and sort icons (:before/:after) cause this measurement row to render as an
   empty, unwanted row of column headers between the real header and table body rows. */
.dataTables_scrollBody thead {
	visibility: collapse !important;
	line-height: 0 !important;
}
.dataTables_scrollBody thead tr {
	height: 0 !important;
	border: none !important;
}
.dataTables_scrollBody thead th,
.dataTables_scrollBody thead td {
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
	color: transparent !important;
	background: transparent !important;
	pointer-events: none !important;
}
.dataTables_scrollBody thead th::before,
.dataTables_scrollBody thead th::after,
.dataTables_scrollBody thead td::before,
.dataTables_scrollBody thead td::after {
	display: none !important;
	content: none !important;
}
.dataTables_scrollBody thead .dataTables_sizing {
	height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 0 !important;
}

/* Seamless frame connection between scrollHead and scrollBody */
.dataTables_scrollHead table.dataTable {
	border-bottom: none !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	margin-bottom: 0 !important;
}
.dataTables_scrollBody table.dataTable {
	border-top: none !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
	margin-top: 0 !important;
}
.dataTables_scrollHead table.dataTable thead th {
	border-bottom: 1px solid #e2e8f0 !important;
}


/* ---- Header: labels stay on one line and never run into the sort arrows ---- */
table.dataTable thead th,
table.table thead th {
	white-space: nowrap;
}
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	padding-right: 2rem !important;
}

/* ---- Body cells ---- */
table.dataTable tbody td {
	padding-top: .65rem !important;
	padding-bottom: .65rem !important;
}
/* Responsive tables: keep short values (dates, names, amounts) on one line. Columns that no
   longer fit move into the row's "+" details, as on the product list, instead of every cell
   squeezing into two or three lines. Rich cells that are meant to wrap opt back in. */
table.dataTable.dtr-inline tbody td,
table.dataTable.dtr-column tbody td {
	white-space: nowrap;
}
table.dataTable tbody td .pl-name,
table.dataTable tbody td .pl-wrap,
table.dataTable tbody td .pl-tags {
	white-space: normal;
}
/* A cell holding the row controls (checkbox, action icons, the responsive "+") stays on one
   line instead of stacking; a long text first column is still allowed to wrap. */
table.dataTable tbody td:has(> input[type=checkbox]),
table.dataTable tbody td:has(.list-icons),
table.dataTable tbody td:has(.pl-actions),
table.dataTable tbody td:has(a > i[class*="icon-"][class*="text-"]) {
	white-space: nowrap;
}
table.dataTable tbody td input[type=checkbox] {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	accent-color: var(--dr-accent, #8C52FF);
}
table.dataTable tbody td .list-icons {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	vertical-align: middle;
}

/* "⋮" menu toggles (list-icons-item + icon-menu9 in Customers, Pages, Delivery_executive, ...)
   become the same soft square button as the product list's pl-icon-btn. */
table.dataTable td .list-icons a.list-icons-item[data-toggle="dropdown"],
table.dataTable td .list-icons a.list-icons-item[data-bs-toggle="dropdown"],
.pl-icon-btn {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	color: #475569 !important;
	font-size: .85rem;
	opacity: 1;
	transition: background-color .15s ease, color .15s ease;
}
table.dataTable td .list-icons a.list-icons-item[data-toggle="dropdown"]:hover,
table.dataTable td .list-icons a.list-icons-item[data-bs-toggle="dropdown"]:hover,
table.dataTable td .list-icons .show > a.list-icons-item,
.pl-icon-btn:hover {
	background: rgba(var(--dr-accent-rgb), .12);
	color: var(--dr-accent, #8C52FF) !important;
}

/* Images in cells: a uniform rounded thumbnail whatever inline size the controller set.
   Avatars that ask for a circle keep it. */
table.dataTable tbody td img:not(.pl-keep) {
	width: 44px !important;
	height: 44px !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	border-radius: 10px !important;
	border: 1px solid #eef0f5;
	background: #f8fafc;
}
table.dataTable tbody td img.rounded-circle {
	border-radius: 50% !important;
}

/* Badges in cells: soft pills, matching the stock/status pills of the product list. */
table.dataTable tbody td .badge {
	display: inline-flex;
	align-items: center;
	padding: .2rem .6rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

/* ---- Reusable cell components (see Admin\Products::ajaxproductlist) ---- */
.pl-actions { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
.pl-actions input[type=checkbox] { margin: 0 .25rem 0 0; }
.pl-thumb { display: block; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #f8fafc; border: 1px solid #eef0f5; }
table.dataTable tbody td .pl-thumb img { width: 100% !important; height: 100% !important; border: 0; border-radius: 0 !important; }
.pl-name { min-width: 180px; }
.pl-name a { font-weight: 700; color: #0f172a; font-size: .86rem; }
.pl-name a:hover { color: var(--dr-accent, #8C52FF); }
.pl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; font-size: .72rem; color: #94a3b8; font-weight: 400; }
.pl-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.pl-variant { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .45rem; border-radius: 6px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-weight: 700; }
.pl-name .pl-variant { margin-left: .3rem; font-size: .68rem; vertical-align: 1px; }
.pl-price { font-weight: 700; color: #0f172a; white-space: nowrap; }
.pl-stock { display: inline-flex; min-width: 34px; justify-content: center; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pl-stock--ok { background: #dcfce7; color: #15803d; }
.pl-stock--low { background: #fef3c7; color: #b45309; }
.pl-stock--out { background: #fee2e2; color: #b91c1c; }
.pl-stock--na { background: #f1f5f9; color: #64748b; font-weight: 600; white-space: nowrap; }
.pl-tags { display: flex; flex-wrap: wrap; gap: .3rem; max-width: 220px; }
.pl-tag { display: inline-block; padding: .15rem .55rem; border-radius: 6px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.pl-tag--soft { background: #f1f5f9; color: #475569; }
.pl-tag--more { background: #e2e8f0; color: #334155; cursor: help; }
.pl-none { color: #cbd5e1; }
.pl-strong { font-weight: 700; color: #0f172a; font-size: .84rem; }
.pl-date { color: #334155; font-weight: 500; }
/* Status pills (order / payment status). Tones: ok, warn, bad, info, accent, muted. */
.pl-status { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.pl-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pl-status--ok { background: #dcfce7; color: #15803d; }
.pl-status--warn { background: #fef3c7; color: #b45309; }
.pl-status--bad { background: #fee2e2; color: #b91c1c; }
.pl-status--info { background: #dbeafe; color: #1d4ed8; }
.pl-status--accent { background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); }
.pl-status--muted { background: #f1f5f9; color: #475569; }
.pl-icon-btn--danger { background: #fef2f2; color: #dc2626 !important; }
.pl-icon-btn--danger:hover { background: #fee2e2; color: #b91c1c !important; }

@media (max-width: 575.98px) {
	.pl-name { min-width: 120px; }
	.pl-actions, table.dataTable tbody td .list-icons { gap: .2rem; }
	.pl-icon-btn,
	table.dataTable td .list-icons a.list-icons-item[data-toggle="dropdown"] { width: 28px; height: 28px; }
}

/* Compact two-line cells (order number, customer): no product-name minimum width. */
.pl-name--sm { min-width: 0; }
/* When a two-line cell is the responsive first column, keep the "+" beside it, not above. */
table.dataTable.dtr-inline tbody td:first-child > .pl-name {
	display: inline-block;
	vertical-align: middle;
}

/* Empty-table state (DataTables language.emptyTable) */
.pl-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem 0; }
.pl-empty i { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: 1.25rem; margin-bottom: .35rem; }
.pl-empty strong { color: #0f172a; font-size: .9rem; font-weight: 700; }
.pl-empty span { color: #94a3b8; font-size: .78rem; font-weight: 400; white-space: normal; }

/* Logo thumbnails (brands): show the whole logo on white instead of cropping it. */
.pl-thumb--logo { background: #fff; }
table.dataTable tbody td .pl-thumb--logo img { object-fit: contain; padding: 4px; }

/* Thumbnail + two-line name side by side (bulk price edit, brands, ...). */
.pl-product { display: flex; align-items: center; gap: .75rem; min-width: 200px; }
.pl-product .pl-thumb { flex: 0 0 auto; }
table.dataTable.dtr-inline tbody td:first-child > .pl-product {
	display: inline-flex;
	vertical-align: middle;
}
@media (max-width: 575.98px) {
	.pl-product { min-width: 0; gap: .6rem; }
}
/* Select-all column + bulk-action row under a table. */
table.dataTable th.pl-check, table.dataTable td:first-child > .checkedimg { width: 36px; }
.pl-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pl-btn-danger, .pl-btn-soft { display: inline-flex; align-items: center; border-radius: 10px; font-weight: 600; font-size: .78rem; padding: .4rem .85rem; border: 1px solid transparent; }
.pl-btn-danger { background: #fef2f2; color: #dc2626; border-color: #fee2e2; }
.pl-btn-danger:hover { background: #fee2e2; color: #b91c1c; }
.pl-btn-soft { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.pl-btn-soft:hover { background: rgba(var(--dr-accent-rgb), .08); color: var(--dr-accent, #8C52FF); border-color: rgba(var(--dr-accent-rgb), .25); }

/* Customer cells: initials avatar, contact lines with verified marks. */
.cu-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 3px 8px rgba(var(--dr-accent-rgb), .25); }
.pl-product .cu-avatar + .pl-name { min-width: 0; }
.cu-contact { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: #334155; white-space: nowrap; line-height: 1.7; }
.cu-contact > i:first-child { font-size: .78rem; color: #94a3b8; width: 14px; text-align: center; }
.cu-verify { font-size: .8rem; }
.cu-verify--ok { color: #16a34a; }
.cu-verify--no { color: #f59e0b; }

/* Review cells: text excerpt under the product name, star rating. */
.rv-text { margin-top: .25rem; font-size: .76rem; color: #64748b; font-weight: 400; white-space: normal; max-width: 360px; line-height: 1.45; }
.rv-text strong { color: #334155; font-weight: 600; }
.rv-rating { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.rv-stars { display: inline-flex; gap: 1px; }
.rv-stars i { font-size: .78rem; color: #e2e8f0; }
.rv-stars i.rv-star--on { color: #f59e0b; }
.rv-score { font-size: .74rem; font-weight: 700; color: #334155; background: #fef3c7; border-radius: 6px; padding: .05rem .4rem; }

/* Photo/logo variant of the list avatar (sellers with a profile image). */
.pl-thumb.cu-avatar--img { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; }

/* ---- Payout entry pages (seller payout, ...): search row, summary strip, pay bar. ---- */
.po-search { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.po-search .form-group { margin-bottom: 0; }
.po-search label, .po-paybar label { font-size: .76rem; font-weight: 600; color: #475569; margin-bottom: .35rem; }
.po-search-btn .btn { height: 38px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.po-input-icon { position: relative; }
.po-input-icon > i { position: absolute; left: .85rem; top: 19px; transform: translateY(-50%); line-height: 1; color: #94a3b8; font-size: .85rem; pointer-events: none; z-index: 1; }
/* !important: the admin theme forces "padding: .5rem .75rem !important" on every input. */
.po-input-icon > .form-control, .po-input-icon > input.form-control { padding-left: 2.25rem !important; }
@media (max-width: 767.98px) {
	.po-search { grid-template-columns: 1fr 1fr; }
	.po-search-seller, .po-search-btn { grid-column: 1 / -1; }
	.po-search-btn .btn { width: 100%; }
}

.po-summary { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.po-summary-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .02); }
.po-summary-seller { flex-direction: row; align-items: center; justify-content: flex-start; gap: .75rem; background: linear-gradient(135deg, #F5F0FF 0%, #FFFFFF 100%); border-color: #EDE9FE; }
.po-summary-label { display: block; font-size: .72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.po-summary-value { font-size: 1.3rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.po-summary-bank { font-weight: 700; color: #0f172a; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-summary-item .pl-meta { margin-top: .15rem; }
@media (max-width: 991.98px) { .po-summary { grid-template-columns: 1fr 1fr; } .po-summary-seller { grid-column: 1 / -1; } }
@media (max-width: 419.98px) { .po-summary { grid-template-columns: 1fr; } }

.po-table tbody tr.po-row--selected { background: rgba(var(--dr-accent-rgb), .06); }
.po-table .pl-tag { margin-left: .25rem; }

.po-paybar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid #EDE9FE; border-radius: 14px; background: linear-gradient(135deg, #F5F0FF 0%, #FFFFFF 100%); }
.po-paybar-total { display: flex; flex-direction: column; min-width: 160px; }
.po-paybar-amount { font-size: 1.5rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.po-paybar-fields { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; min-width: 0; }
.po-paybar-fields .form-group { margin-bottom: 0; }
.po-paybar-btn .btn { height: 38px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
@media (max-width: 991.98px) {
	.po-paybar-fields { grid-template-columns: 1fr 1fr; flex-basis: 100%; }
	.po-paybar-btn { grid-column: 1 / -1; }
	.po-paybar-btn .btn { width: 100%; }
}
@media (max-width: 419.98px) { .po-paybar-fields { grid-template-columns: 1fr; } }

.po-alert { display: flex; gap: .75rem; align-items: flex-start; margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }
.po-alert > i { font-size: 1.1rem; margin-top: .1rem; }
.po-alert strong { display: block; font-size: .85rem; }
.po-alert span { font-size: .78rem; color: #b91c1c; }

/* ---- Coupon cells: dashed "ticket" code, discount amount, days-left hint. ---- */
.cp-coupon { min-width: 160px; }
.cp-coupon .pl-meta span { white-space: normal; max-width: 260px; }
.cp-code { display: inline-flex; align-items: center; padding: .25rem .65rem; border: 1.5px dashed rgba(var(--dr-accent-rgb), .45); border-radius: 8px; background: rgba(var(--dr-accent-rgb), .06); color: var(--dr-accent-dark) !important; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.cp-code:hover { background: rgba(var(--dr-accent-rgb), .12); border-color: var(--dr-accent, #8C52FF); }
.cp-amount { font-size: .95rem; font-weight: 800; color: #0f172a; white-space: nowrap; }
.cp-left { font-weight: 600; color: #94a3b8; }
.cp-left--warn { color: #b45309; }
.cp-left--bad { color: #b91c1c; }
.cp-live { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 700; vertical-align: 2px; }

/* ---- Slider & banner manager (admin/sliders) ---- */
.sl-hint { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.sl-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; border: 0; }
.sl-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; font-size: .8rem; font-weight: 600; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.sl-tab i { font-size: .9rem; color: #94a3b8; }
.sl-tab:hover { border-color: #c4b5fd; color: #1e293b; text-decoration: none; }
.sl-tab.active { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; color: var(--dr-accent-dark); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .12); }
.sl-tab.active i { color: var(--dr-accent, #8C52FF); }
.sl-tab .dr-filter-pill-count { margin-left: 0; }
.sl-tab.active .dr-filter-pill-count { background: rgba(var(--dr-accent-rgb), .15); color: var(--dr-accent-dark); }
/* Each tab (icon + label + count badge + padding) naturally needs ~140-230px — "Ad Banner
   Middle" alone is wider than half a phone screen — so flex-wrap put almost every tab on its
   own line, turning 6 tabs into 6 stacked full-width rows before the page even reaches its
   content. Scroll sideways instead of wrapping: one compact row, same pattern already used
   for the product-list status filter pills (.dr-filter-pills). */
@media (max-width: 575.98px) {
	.sl-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		max-width: 100%;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 2px;
	}
	.sl-tabs::-webkit-scrollbar { display: none; }
	.sl-tab { flex-shrink: 0; }
}

.sl-pane-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.sl-pane-head strong { display: block; font-size: .95rem; color: #0f172a; }
.sl-pane-head span { font-size: .78rem; color: #64748b; }
.sl-pane-head span b { color: #334155; }
.sl-lightbox-switch { min-width: 300px; }

.dr-slide-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dr-slide-card { border-radius: 14px; display: flex; flex-direction: column; }
.dr-slide-thumb-wrap { background: #f1f5f9; }
.dr-slide-thumb-wrap .dr-slider-tile-img { height: 140px; }
.sl-noimg { display: flex !important; align-items: center; justify-content: center; color: #cbd5e1; font-size: 1.6rem; }
.sl-card--off .dr-slide-thumb-wrap img { filter: grayscale(1); opacity: .55; }
.sl-zoom { position: absolute; bottom: .4rem; right: .4rem; width: 26px; height: 26px; border-radius: 6px; background: rgba(15, 23, 42, .55); color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: .75rem; opacity: 0; transition: opacity .15s ease; }
.dr-slide-card:hover .sl-zoom { opacity: 1; }
.sl-body { padding: .7rem .8rem .75rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.sl-title { font-size: .84rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-link { display: flex; align-items: center; gap: .4rem; font-size: .74rem; color: #64748b; min-width: 0; }
.sl-link i { color: #94a3b8; font-size: .75rem; flex: 0 0 auto; }
.sl-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-link b { color: #475569; font-weight: 600; }
.sl-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .35rem; }

.sl-add { list-style: none; }
.sl-add button { width: 100%; height: 100%; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed #d8dbe5; border-radius: 14px; background: #fafbfc; color: #64748b; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.sl-add button i { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: 1.1rem; margin-bottom: .3rem; }
.sl-add button strong { font-size: .84rem; color: #334155; }
.sl-add button span { font-size: .74rem; color: #94a3b8; }
.sl-add button:hover { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }

.fm-choices.sl-positions { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.fm-choices.sl-linktypes { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.sl-upload .fm-upload-preview { width: 150px; height: 84px; flex: 0 0 auto; }
.sl-upload .fm-upload-preview img { object-fit: cover; }
.sl-size { display: block; font-size: .74rem; color: #64748b; margin-top: .15rem; }
.sl-edit-preview:empty { display: none; }
.sl-edit-preview { margin-bottom: 1rem; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9; }
.sl-edit-preview img { display: block; width: 100%; max-height: 200px; object-fit: contain; }
.fm-modal .fm-switch + .fm-field, .fm-modal .fm-field + .fm-switch { margin-top: 1rem; }
@media (max-width: 575.98px) {
	.sl-lightbox-switch { min-width: 0; width: 100%; }
	.sl-upload .fm-upload-preview { width: 96px; height: 60px; }
}

/* ---- Home page sections (admin/customize) ---- */
.cz-intro { margin: .2rem 0 0; font-size: .78rem; color: #64748b; }
.cz-count { font-size: .78rem; color: #64748b; white-space: nowrap; }
.cz-count b { color: #0f172a; }
.cz-list { display: flex; flex-direction: column; gap: .85rem; }
.cz-section { border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 1rem 1.1rem; transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.cz-section:focus-within { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .08); }
.cz-section--off { background: #fafbfc; }
.cz-section--off .cz-body { opacity: .55; }
.cz-head { display: flex; align-items: flex-start; gap: .85rem; }
.cz-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-weight: 800; font-size: .85rem; margin-top: 2px; }
.cz-section--off .cz-num { background: #cbd5e1; }
.cz-head-main { flex: 1; min-width: 0; }
.cz-title.form-control { border-color: transparent !important; background: transparent !important; padding: .3rem .5rem !important; margin-left: -.5rem; font-size: .95rem !important; font-weight: 700; color: #0f172a !important; }
.cz-title.form-control:hover { border-color: #e2e8f0 !important; }
.cz-title.form-control:focus { border-color: var(--dr-accent, #8C52FF) !important; background: #fff !important; }
.cz-summary { font-size: .76rem; color: #64748b; margin-top: .1rem; }
.cz-summary i { font-style: normal; font-weight: 600; color: #334155; }
.cz-warn { color: #b45309; font-weight: 600; }
.cz-hidden { display: inline-block; padding: .05rem .45rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 700; }
.cz-switch { border: 0; padding: 0; background: transparent; margin-top: 6px; }
.cz-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px 110px; gap: .9rem; align-items: end; margin-top: .9rem; padding-left: calc(32px + .85rem); }
.cz-field label { display: block; font-size: .74rem; font-weight: 600; color: #64748b; margin-bottom: .35rem; }
.cz-sources { display: flex; flex-wrap: wrap; gap: .35rem; }
.cz-source { margin: 0; cursor: pointer; }
.cz-source input { position: absolute; opacity: 0; pointer-events: none; }
.cz-source span { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: .76rem; font-weight: 600; color: #475569; transition: border-color .15s ease, background-color .15s ease, color .15s ease; white-space: nowrap; }
.cz-source span i { font-size: .8rem; color: #94a3b8; }
.cz-source:hover span { border-color: #c4b5fd; }
.cz-source input:checked + span { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; color: var(--dr-accent-dark); }
.cz-source input:checked + span i { color: var(--dr-accent, #8C52FF); }
.cz-source input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
.cz-fixed { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border-radius: 10px; background: #f8fafc; color: #475569; font-size: .8rem; font-weight: 600; }
.cz-fixed i { color: var(--dr-accent, #8C52FF); }
.cz-savebar { position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1rem; padding: .75rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.cz-savebar span { font-size: .78rem; color: #94a3b8; }
.cz-savebar span.is-dirty { color: #b45309; font-weight: 600; }
.cz-savebar .btn { border-radius: 10px; font-weight: 600; }
@media (max-width: 991.98px) {
	.cz-body { grid-template-columns: minmax(0, 1fr) 110px; padding-left: 0; }
	.cz-field--source { grid-column: 1 / -1; }
}
@media (max-width: 419.98px) {
	.cz-body { grid-template-columns: 1fr; }
}

/* ---- Front end settings (admin/settings_site) ---- */
.ss-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.ss-grid > .card { margin-bottom: 0; }
/* !important: the global .card-header rule (head_script.php) forces
   display: flex !important for the OTHER card-header pattern (title + filter pills side by
   side) — a plain selector can't out-rank that, so it silently never took effect here. This
   component wants the opposite: title stacked fully above the description, not squeezed into
   a flex row fighting it for width (icon+"Trust Badges" was only getting ~90px, wrapping the
   title itself to "Trust" / "Badges" on two lines while the sentence-long description ate the
   rest of the row). */
.ss-card .card-header { display: block !important; }
.ss-card .card-title { display: flex; align-items: center; gap: .6rem; }
.ss-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: .9rem; }
.ss-sub { margin: .25rem 0 0; font-size: .78rem; color: #64748b; }
.ss-card .header-elements-inline .ss-sub { margin-left: calc(32px + .6rem); }
.ss-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ss-fields .fm-field { margin-bottom: 0; }
/* Trust Badges card (admin/settings_site): switch above the texts, which dim while badges are off. */
.ss-card .fm-switch.ss-trust-switch { margin-bottom: 1.25rem; }
.ss-trust-fields { transition: opacity .15s ease; }
.ss-trust-fields.is-off { opacity: .45; }
.ss-fields .fm-field > label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.ss-span { grid-column: 1 / -1; }
.ss-switches { display: flex; flex-direction: column; gap: .65rem; }
.ss-switches .fm-switch-text strong i { color: var(--dr-accent, #8C52FF); margin-right: .3rem; font-size: .85rem; }
.ss-btn { border-radius: 10px; font-weight: 600; }
.ss-ticker-off { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .65rem .9rem; border-radius: 10px; background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; font-size: .78rem; }
/* The icon + sentence (with a <b> run inside it) used to be direct flex children with no
   wrapping element around the text — flexbox turns each run of text around an inline tag into
   its own anonymous flex item, so the icon, "Turn on", the bold run and "above and save." each
   became separate side-by-side columns that wrapped independently instead of one paragraph.
   Markup now wraps the sentence in a <span>; icon keeps its size, span takes the rest. */
.ss-ticker-off i { flex-shrink: 0; }
.ss-ticker-off span { min-width: 0; }
.ss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ss-item { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.ss-item:hover { border-color: #c4b5fd; }
.ss-item--off { background: #fafbfc; }
.ss-item--off .ss-item-text { color: #94a3b8; }
.ss-item-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fef3c7; color: #b45309; }
.ss-item--off .ss-item-icon { background: #f1f5f9; color: #94a3b8; }
.ss-item-text { flex: 1; min-width: 0; font-size: .84rem; color: #1e293b; line-height: 1.45; }
@media (max-width: 991.98px) { .ss-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
	.ss-fields { grid-template-columns: 1fr; }
	.ss-item { flex-wrap: wrap; }
	.ss-item-text { flex-basis: calc(100% - 32px - .85rem); }
	.ss-card .header-elements-inline .ss-sub { margin-left: 0; }
}

/* ---- Sliders studio (admin/sliders) — same workspace and .sx-nav / .sx-pane styles as site settings;
   the slide cards keep their own styles above. ---- */
.sl-studio .sx-pane-body { max-width: none; }
.bls-state.sl-drag-hint { background: #f1f5f9; color: #64748b; }
.bls-state.sl-drag-hint i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; font-size: .85rem; }
.sl-size-chip { display: inline-block; margin-left: .45rem; padding: .12rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; letter-spacing: 0; vertical-align: 3px; }
.sl-nav-count { flex: 0 0 auto; min-width: 26px; padding: .1rem .45rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-size: .7rem; font-weight: 800; text-align: center; }
.sl-nav-count.is-empty { background: #f1f5f9; color: #94a3b8; }
.sl-studio .sl-lightbox-switch { margin-bottom: 1.25rem; max-width: 560px; }
.sl-studio .sl-lightbox-switch strong i { color: var(--dr-accent, #8C52FF); margin-right: .3rem; }
.sl-studio .dr-slide-grid { margin: 0; }
@media (max-width: 575.98px) { .bls-state.sl-drag-hint { display: none; } .sl-studio .sl-lightbox-switch { min-width: 0; } }

/* ---- Customize studio (admin/customize) — the editors' full-screen workspace (.bl-studio / .bls-*):
   the 7 home page rows as a stack on the left, the chosen row's editor + a page map on the right.
   Overrides the list layout above only inside .cz-studio. ---- */
.cz-studio .bls-work { grid-template-columns: 340px minmax(0, 1fr); }
.cz-studio .bls-work > * { min-width: 0; }
.bls-state.cz-shown { background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); }
.bls-state.cz-shown b { font-weight: 800; }
/* Stack */
.cz-rail-head { flex: 0 0 auto; padding: 1rem 1.15rem .85rem; border-bottom: 1px solid #eef0f5; background: #fafbfd; }
.cz-rail-head strong { display: block; font-size: .9rem; font-weight: 800; color: #0f172a; }
.cz-rail-head small { display: block; margin-top: .1rem; font-size: .72rem; color: #94a3b8; }
.cz-rows { padding: .6rem; display: flex; flex-direction: column; gap: .35rem; }
.cz-studio.is-fit .cz-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cz-row { position: relative; display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem; border: 1px solid transparent; border-radius: 14px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cz-row:hover { background: #f8fafc; }
.cz-row:focus-visible { outline: 2px solid rgba(var(--dr-accent-rgb), .5); outline-offset: 1px; }
.cz-row.is-on { background: rgba(var(--dr-accent-rgb), .07); border-color: rgba(var(--dr-accent-rgb), .25); }
/* The stack reads top to bottom: a thin line joins the numbers. */
.cz-row + .cz-row::before { content: ""; position: absolute; left: calc(.65rem + 15px); top: calc(-.35rem - 1px); height: .35rem; border-left: 2px dotted #e2e8f0; }
.cz-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cz-row-text strong { font-size: .84rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-row .cz-summary { margin: 0; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-row.cz-section--off .cz-row-text strong { color: #94a3b8; }
.cz-studio .fm-switch.cz-switch { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; flex: 0 0 auto; }
/* Editor */
.cz-stage { margin: 0; }
.cz-studio.is-fit .cz-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cz-studio .cz-section { display: none; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.cz-studio .cz-section.is-on { display: block; }
.cz-studio .cz-section:focus-within { box-shadow: none; }
.cz-ed-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #eef0f5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cz-ed-head .cz-head-main small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.cz-studio .cz-title.form-control { font-size: 1.35rem !important; font-weight: 800; letter-spacing: -.01em; height: auto; }
.cz-num--lg { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; box-shadow: 0 10px 22px -12px rgba(var(--dr-accent-rgb), .8); }
.cz-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .35rem .8rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .74rem; font-weight: 700; cursor: pointer; user-select: none; }
.cz-state i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.cz-state.is-off { background: #f1f5f9; color: #64748b; }
.cz-state.is-off i { background: #94a3b8; box-shadow: none; }
.cz-ed { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 1.5rem; padding: 1.35rem 1.5rem 1.75rem; }
.cz-studio .cz-body { display: flex; flex-direction: column; align-items: stretch; gap: 1.15rem; margin: 0; padding: 0; }
.cz-studio .cz-field--limit .form-control { max-width: 140px; }
.cz-studio .cz-field--pick .form-control { max-width: 420px; }
.cz-studio .cz-section--off .cz-body { opacity: .55; }
/* Page map: header, hero, rows 1-7, footer; the chosen row glows, hidden rows are dashed. */
.cz-map-label { display: block; margin-bottom: .55rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.cz-map-page { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 14px; background: #f1f5f9; }
.cz-map-top { height: 12px; border-radius: 5px; background: #cbd5e1; }
.cz-map-hero { height: 34px; border-radius: 6px; background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.cz-map-foot { height: 18px; border-radius: 5px; background: #cbd5e1; }
.cz-map-row { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cz-map-row b { width: 16px; font-size: .62rem; font-weight: 800; color: #94a3b8; text-align: center; }
.cz-map-row i { flex: 1; height: 14px; border-radius: 3px; background: #eef2f7; }
.cz-map-row:hover { border-color: rgba(var(--dr-accent-rgb), .4); }
.cz-map-row.is-off { border-style: dashed; background: transparent; }
.cz-map-row.is-off i { background: transparent; }
.cz-map-row.is-here { border-color: var(--dr-accent, #8C52FF); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .15); }
.cz-map-row.is-here b { color: var(--dr-accent-dark); }
.cz-map-row.is-here i { background: rgba(var(--dr-accent-rgb), .18); }
@media (max-width: 1199.98px) { .cz-studio .bls-work { grid-template-columns: 290px minmax(0, 1fr); } .cz-ed { grid-template-columns: 1fr; } .cz-map { display: none; } }
@media (max-width: 991.98px) { .cz-studio .bls-work { grid-template-columns: minmax(0, 1fr); } .cz-ed-head { position: static; } }
@media (max-width: 575.98px) {
	.cz-ed-head { padding: 1rem; gap: .7rem; flex-wrap: wrap; }
	.cz-ed-head .cz-head-main { flex: 1 1 calc(100% - 44px - .7rem); }
	.cz-state { margin-left: calc(44px + .7rem); }
	.cz-ed { padding: 1rem 1rem 1.25rem; }
	.cz-studio .cz-title.form-control { font-size: 1.1rem !important; }
	.bls-state.cz-shown { display: none; }
}

/* ---- Site settings studio (admin/settings_site) — the editors' full-screen workspace (.bl-studio /
   .bls-*, "Blog post editor" below): section list on the left, one section on the right. Reuses the
   ss-* field/switch/list styles above. ---- */
.sx-studio .bls-work { grid-template-columns: 280px minmax(0, 1fr); }
.sx-studio .bls-work > * { min-width: 0; }
.bls-state.sx-saved { background: #dcfce7; color: #15803d; }
.bls-state.sx-saved i { background: #22c55e; }
.bls-state.sx-saved.is-dirty { background: #fef3c7; color: #b45309; }
.bls-state.sx-saved.is-dirty i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
/* Section list */
.sx-nav { margin: 0; padding: .6rem; justify-content: space-between; }
.sx-nav-list { display: flex; flex-direction: column; gap: .3rem; }
.sx-nav-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .65rem .7rem; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.sx-nav-item:hover { background: #f8fafc; }
.sx-nav-item.is-on { background: rgba(var(--dr-accent-rgb), .07); border-color: rgba(var(--dr-accent-rgb), .25); }
.sx-nav-icon { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #f1f5f9; color: #64748b; transition: background .15s, color .15s; }
.sx-nav-item.is-on .sx-nav-icon { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--dr-accent-rgb), .8); }
.sx-nav-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sx-nav-text strong { font-size: .84rem; font-weight: 700; color: #0f172a; }
.sx-nav-text small { font-size: .72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-nav-go { font-size: .8rem; color: #cbd5e1; transition: color .15s, transform .15s; }
.sx-nav-item.is-on .sx-nav-go { color: var(--dr-accent-dark); transform: translateX(2px); }
.sx-nav-note { display: flex; gap: .45rem; margin: .75rem .4rem .2rem; padding: .65rem .75rem; border-radius: 12px; background: #f8fafc; font-size: .72rem; line-height: 1.45; color: #94a3b8; }
.sx-nav-note i { flex: 0 0 auto; margin-top: .1rem; }
/* Sections */
.sx-canvas { margin: 0; }
.sx-studio.is-fit .sx-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sx-pane { display: none; }
.sx-pane.is-on { display: block; }
.sx-pane-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #eef0f5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sx-pane-head > div { flex: 1; min-width: 0; }
.sx-pane-head h5 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; color: #0f172a; }
.sx-pane-head p { margin: .15rem 0 0; font-size: .78rem; color: #64748b; }
.sx-pane-head .ss-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
.sx-pane-action { flex: 0 0 auto; }
.sx-pane-body { padding: 1.35rem 1.5rem 1.75rem; max-width: 980px; }
.sx-pane-body .ss-switches .fm-switch { padding: .9rem 1rem; }
.sx-pane-body .ss-ticker-off a { color: inherit; text-decoration: underline; }
@media (max-width: 1199.98px) { .sx-studio .bls-work { grid-template-columns: 240px minmax(0, 1fr); } .sx-nav-go { display: none; } }
@media (max-width: 991.98px) {
	/* Stacked: the section list turns into a row of chips that scrolls sideways. */
	.sx-studio .bls-work { grid-template-columns: minmax(0, 1fr); }
	.sx-nav { padding: .4rem; }
	.sx-nav-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.sx-nav-list::-webkit-scrollbar { display: none; }
	.sx-nav-item { flex: 0 0 auto; width: auto; padding: .45rem .7rem .45rem .45rem; gap: .5rem; }
	.sx-nav-icon { width: 30px; height: 30px; border-radius: 9px; }
	.sx-nav-text small, .sx-nav-go, .sx-nav-note { display: none; }
	.sx-pane-head { position: static; }
}
@media (max-width: 575.98px) {
	.sx-pane-head { padding: 1rem; }
	.sx-pane-head p { display: none; }
	.sx-pane-body { padding: 1rem 1rem 1.25rem; }
}

/* ---- Menu builder (admin/menu) ----
   The editors' full-screen workspace (.bl-studio / .bls-*, "Blog post editor" below): add panel on
   the left, location switch + tree on the right. Each side scrolls inside itself on wide screens. */
.mn-studio .bls-work { grid-template-columns: 360px minmax(0, 1fr); }
.mn-studio .bls-work > * { min-width: 0; }
.mn-studio .bls-bar .mn-dirty { flex: 0 0 auto; }
/* Add panel */
.mn-addpanel { margin: 0; }
.mn-panel-head { flex: 0 0 auto; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid #eef0f5; background: #fafbfd; }
.mn-panel-head strong { display: block; font-size: .95rem; font-weight: 800; color: #0f172a; }
.mn-panel-head small { display: block; font-size: .74rem; color: #64748b; }
.mn-panel-head small b { color: var(--dr-accent-dark); }
.mn-panel-icon { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; box-shadow: 0 8px 18px -10px rgba(var(--dr-accent-rgb), .8); }
.mn-panel-body { padding: 1rem 1.15rem; }
.mn-studio.is-fit .mn-panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.mn-panel-foot { flex: 0 0 auto; padding: .85rem 1.15rem; border-top: 1px solid #eef0f5; background: #fff; }
.mn-sub { margin: .2rem 0 0; font-size: .76rem; color: #64748b; }
.mn-sub b { color: #334155; }
.mn-sub i { color: var(--dr-accent, #8C52FF); }
.mn-sources { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.mn-source { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: .76rem; font-weight: 600; color: #475569; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.mn-source i { font-size: .8rem; color: #94a3b8; }
.mn-source:hover { border-color: #c4b5fd; }
.mn-source.active { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; color: var(--dr-accent-dark); }
.mn-source.active i { color: var(--dr-accent, #8C52FF); }
.mn-picker-tools { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.mn-picker-tools .po-input-icon { flex: 1; }
.mn-selectall { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: .76rem; font-weight: 600; color: #475569; cursor: pointer; white-space: nowrap; }
.mn-selectall input { accent-color: var(--dr-accent, #8C52FF); }
#groupitem .dr-menu-picker-list { max-height: 280px; margin: 0; }
/* Wide screens: the picker list takes the panel's spare height (min 160px) instead of a fixed 280px. */
.mn-studio.is-fit #mn-panel-content:not(.d-none) { flex: 1 1 auto; min-height: 200px; display: flex; flex-direction: column; }
.mn-studio.is-fit #groupitem { flex: 1 1 auto; min-height: 160px; display: flex; flex-direction: column; }
.mn-studio.is-fit #groupitem .dr-menu-picker-list { flex: 1 1 auto; max-height: none; min-height: 0; }
.dr-menu-picker-item.is-checked label { background: #faf8ff; color: var(--dr-accent-dark); font-weight: 600; }
.mn-loading { padding: 1.25rem; text-align: center; font-size: .8rem; color: #94a3b8; }
#mn-panel-custom .fm-field { margin-bottom: .85rem; }
#mn-panel-custom .fm-field > label, .mn-label { display: block; font-size: .76rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.mn-sources + #mn-panel-content, .mn-label:first-child { margin-top: 0; }
.mn-placement { flex: 0 0 auto; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.mn-place-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; margin-bottom: .5rem; }
.mn-place { margin: 0; cursor: pointer; }
.mn-place input { position: absolute; opacity: 0; pointer-events: none; }
.mn-place span { display: block; padding: .45rem .6rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: .76rem; font-weight: 600; color: #475569; text-align: center; }
.mn-place input:checked + span { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; color: var(--dr-accent-dark); }
.mn-place input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
.mn-addbtn { width: 100%; justify-content: center; }
/* Builder: location switch (segmented) + tree */
.mn-canvas-head { flex: 0 0 auto; padding: 1rem 1.25rem .85rem; border-bottom: 1px solid #eef0f5; }
.mn-locations { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: 14px; background: #f1f5f9; }
.mn-location { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 0; border-radius: 11px; background: transparent; color: #64748b; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.mn-location > i { font-size: .95rem; }
.mn-location:hover { color: #0f172a; }
.mn-location.active { background: #fff; color: var(--dr-accent-dark); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 16px -10px rgba(15, 23, 42, .35); }
.mn-location-count { min-width: 22px; padding: .05rem .4rem; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: .66rem; font-weight: 800; text-align: center; }
.mn-location.active .mn-location-count { background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); }
.mn-hint { margin: .7rem 0 0; font-size: .76rem; color: #64748b; line-height: 1.5; }
.mn-hint i { color: var(--dr-accent, #8C52FF); }
.mn-canvas-body { padding: 1rem 1.25rem 1.25rem; background: #fafbfd; }
.mn-studio.is-fit .mn-canvas-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mn-canvas-body .pl-empty { background: #fff; border-radius: 16px; }

.mn-total { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; vertical-align: 2px; }
.mn-dirty { font-size: .76rem; font-weight: 600; color: #b45309; }
.mn-dirty:empty { display: none; }
.mn-save--pulse { box-shadow: 0 0 0 4px rgba(var(--dr-accent-rgb), .25), 0 8px 18px -8px rgba(var(--dr-accent-rgb), .7) !important; }
.mn-builder .dr-menu-item { border-radius: 14px; border-color: #e8ebf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s; }
.mn-builder .dr-menu-item-head { padding: .65rem .85rem; }
.mn-builder .dr-menu-item-head:hover { background: #fcfcfe; border-radius: 14px; }
.mn-builder .dr-menu-item:hover { border-color: rgba(var(--dr-accent-rgb), .3); }
.mn-builder .dr-menu-drag { color: #94a3b8; }
.mn-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mn-item-main .dr-menu-name { flex: none; }
.mn-item-link { font-size: .72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-item-link--warn { color: #b45309; }
.mn-badge--child { color: #0369a1; background: #e0f2fe; }
.mn-badge--link { color: var(--dr-accent-dark); background: #ede9fe; }
.dr-menu-grand { margin-left: 22px; border-left: 2px dashed #e2e8f0; padding-left: 10px; min-height: 26px; }
/* Empty drop zones stay a hairline until a drag starts (.is-dragging, set by the sortable), instead
   of a striped "Drop items here" box under every top-level item. */
.mn-builder .dr-menu-children:empty { min-height: 0; height: 0; margin: 0 0 0 2.1rem; padding: 0; border: 0; background: none; }
.mn-builder .dr-menu-children:empty::before { content: none; }
.mn-canvas.is-dragging .mn-builder .dr-menu-children:empty { height: auto; min-height: 34px; margin: .5rem 0 .6rem 2.1rem; padding: .5rem; border-left: 2px dashed rgba(var(--dr-accent-rgb), .35); border-radius: 6px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px); }
.mn-canvas.is-dragging .mn-builder .dr-menu-children:empty::before { content: "Drop here to nest under this item"; display: block; font-size: .72rem; color: #94a3b8; font-style: italic; }
/* .dr-menu-item-head packs drag handle + name + a badge (Dropdown/Column/Mega) + edit/delete
   buttons into one row. Each nesting level eats 22px off the row via .dr-menu-grand's indent,
   so a mega-menu column item (2+ levels deep) can be down to ~190px of row width while the
   badge + two 28px icon buttons + gaps alone need ~180px+ — .mn-item-main (min-width: 0, by
   design so it doesn't block the row from ever fitting) absorbed the entire deficit alone and
   got squeezed to ~14px, well under any single character's width, so the name wrapped one
   letter per line. Let the row wrap instead: name gets a floor it can actually read at, badge
   + action buttons drop to their own line when a name that size doesn't leave them room. */
@media (max-width: 767.98px) {
	.dr-menu-item-head {
		flex-wrap: wrap;
		row-gap: .4rem;
	}
	.mn-item-main {
		flex: 1 1 110px;
		min-width: 110px;
	}
}
.mn-builder .dr-menu-body { padding-top: .85rem; }
.mn-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: .75rem 1rem; }
.mn-fields .fm-field > label { display: block; font-size: .74rem; font-weight: 600; color: #64748b; margin-bottom: .3rem; }
.mn-fields .mn-mega { grid-column: 1 / -1; }
.mn-fixlink a { font-weight: 600; text-decoration: underline; }
.mn-flat .dr-menu-children:empty { display: none; }
@media (max-width: 1199.98px) {
	.mn-studio .bls-work { grid-template-columns: 320px minmax(0, 1fr); }
	.mn-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
	.mn-studio .bls-work { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
	.mn-locations { display: flex; }
	.mn-location { flex: 1; justify-content: center; gap: .3rem; padding: .45rem .35rem; font-size: .74rem; white-space: nowrap; }
	.mn-location-count { min-width: 0; }
	.mn-location > i { display: none; }
	.mn-canvas-head, .mn-canvas-body { padding-left: 1rem; padding-right: 1rem; }
}

/* ---- Themes & colours (admin/themes) ---- */
/* Theme studio: the editors' full-screen workspace (.bl-studio / .bls-*, "Blog post editor" below)
   with a stage (selected theme in a browser frame, its screenshot scrolls inside) and a side panel
   (theme list + colours). */
.tg-studio .bls-work { grid-template-columns: minmax(0, 1fr) 420px; }
.tg-stage { background: radial-gradient(120% 90% at 100% 0%, rgba(var(--dr-accent-rgb), .08), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(92, 225, 230, .10), transparent 60%), #fff; }
.tg-stage-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.35rem .9rem; }
.tg-stage-info { min-width: 0; }
.tg-stage-title { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.tg-stage-title h3 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.tg-stage-info p { margin: .3rem 0 0; color: #64748b; font-size: .82rem; line-height: 1.5; max-width: 640px; }
.tg-stage-view { flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-start; padding: 0 1.35rem 1.35rem; }
.tg-stage-view .tg-frame { flex: 1; min-width: 0; max-height: 100%; display: flex; flex-direction: column; }
.tg-screen { flex: 0 1 auto; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; background: #f1f5f9; scrollbar-width: thin; }
.tg-studio.is-fit .tg-screen { max-height: none; min-height: 0; }
.tg-screen:focus { outline: 2px solid rgba(var(--dr-accent-rgb), .45); outline-offset: -2px; }
.tg-screen img { display: block; width: 100%; height: auto; }
.tg-frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid #e5e7ef; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .45); }
.tg-frame-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f6f7fb; border-bottom: 1px solid #eceef4; }
.tg-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e5ee; }
.tg-frame-bar i:nth-child(1) { background: #ff6159; }
.tg-frame-bar i:nth-child(2) { background: #ffbd2e; }
.tg-frame-bar i:nth-child(3) { background: #28c941; }
.tg-frame-bar span { flex: 1; margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: #fff; border: 1px solid #eceef4; color: #94a3b8; font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-size: .72rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tg-badge--live { background: #dcfce7; color: #15803d; }
.tg-badge--live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: tg-pulse 2s infinite; }
@keyframes tg-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .tg-badge--live i { animation: none; } }
.tg-palette { display: flex; gap: .3rem; }
.tg-palette span { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 3px 8px -5px rgba(15, 23, 42, .5); }
.tg-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tg-actions form { margin: 0; }
.tg-btn { display: inline-flex; align-items: center; gap: .4rem; border-radius: 12px; font-weight: 700; padding: .5rem 1rem; text-transform: none; letter-spacing: 0; }
.tg-btn--main { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)) !important; border: 0 !important; color: #fff !important; box-shadow: 0 8px 18px -8px rgba(var(--dr-accent-rgb), .7); }
.tg-btn--main:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* Panel: theme list */
.tg-studio .bls-pane > .bls-hint:first-child { margin: 0 0 .85rem; }
.tg-list { display: flex; flex-direction: column; gap: .6rem; }
.tg-item { display: flex; align-items: center; gap: .85rem; padding: .55rem .7rem .55rem .55rem; border: 1px solid #eef0f5; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tg-item:hover { color: inherit; border-color: rgba(var(--dr-accent-rgb), .35); box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .45); transform: translateY(-1px); }
.tg-item.is-on { border-color: rgba(var(--dr-accent-rgb), .55); background: rgba(var(--dr-accent-rgb), .05); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .12); }
.tg-thumb { flex: 0 0 104px; height: 68px; border-radius: 10px; border: 1px solid #e5e7ef; background-color: #f1f5f9; background-size: cover; background-position: center top; }
.tg-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.tg-item-name { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .9rem; font-weight: 800; color: #0f172a; }
.tg-item-name .tg-badge { padding: .12rem .5rem; font-size: .64rem; }
.tg-item-go { color: #cbd5e1; transition: color .15s, transform .15s; }
.tg-item:hover .tg-item-go, .tg-item.is-on .tg-item-go { color: var(--dr-accent-dark); transform: translateX(2px); }
/* Panel: colours (one column: preview on top, then the fields) */
.tg-colours-head { margin-bottom: .9rem; }
.tg-colours-head .bls-hint { margin-top: .5rem; }
.tg-studio .sl-tabs { margin-bottom: .9rem; }
.tg-studio .th-editor { grid-template-columns: 1fr; gap: .6rem; }
/* The fields join the editor grid, so the sticky Save bar can pin anywhere in the pane (not just within the fields). */
.tg-studio .th-fields { display: contents; }
.tg-studio .th-preview-wrap { order: -1; position: static; padding: .9rem; margin-bottom: .3rem; }
.tg-studio .th-preview-label { margin-bottom: .55rem; }
.tg-studio .th-field { padding: .55rem .65rem; gap: .65rem; }
.tg-studio .th-hex.form-control { flex-basis: 100px; width: 100px; }
.tg-studio .th-actions { position: sticky; bottom: -1.25rem; margin: .2rem -1.15rem -1.25rem; padding: .75rem 1.15rem; background: linear-gradient(180deg, rgba(255, 255, 255, .7), #fff 40%); }
.tg-studio .th-actions .btn { flex: 0 0 auto; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.tg-studio .th-actions .btn-primary { flex: 1 1 auto; }
@media (max-width: 1199.98px) { .tg-studio .bls-work { grid-template-columns: minmax(0, 1fr) 360px; } .tg-stage-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 991.98px) { .tg-studio .bls-work { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .tg-stage-head { padding: 1rem; } .tg-stage-view { padding: 0 1rem 1rem; } .tg-stage-title h3 { font-size: 1.25rem; } .tg-screen { max-height: 50vh; } .tg-thumb { flex-basis: 84px; height: 56px; } }

.th-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
.th-fields { display: flex; flex-direction: column; gap: .6rem; }
.th-field { display: flex; align-items: center; gap: .85rem; padding: .65rem .8rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s ease; }
.th-field:focus-within { border-color: #c4b5fd; }
.th-field.is-invalid { border-color: #fca5a5; background: #fef2f2; }
.th-swatch { position: relative; flex: 0 0 auto; width: 40px; height: 40px; margin: 0; border-radius: 10px; cursor: pointer; background: repeating-conic-gradient(#e2e8f0 0 25%, #fff 0 50%) 0 0 / 12px 12px; box-shadow: 0 0 0 1px #e2e8f0; overflow: hidden; }
.th-swatch-fill { position: absolute; inset: 0; }
.th-picker { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.th-field-text { flex: 1; min-width: 0; }
.th-field-text label { display: block; margin: 0; font-size: .82rem; font-weight: 700; color: #0f172a; }
.th-field-text small { display: block; font-size: .72rem; color: #94a3b8; }
.th-hex.form-control { flex: 0 0 112px; width: 112px; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem !important; text-transform: uppercase; }
.th-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; }
.th-actions .btn { border-radius: 10px; font-weight: 600; }

.th-preview-wrap { position: sticky; top: 1rem; padding: 1.25rem; border-radius: 16px; background: #f1f5f9; }
.th-preview-label { display: block; margin-bottom: .75rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.th-line { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; margin-bottom: .3rem; }
.th-line--short { width: 60%; }
.th-web-img { display: block; aspect-ratio: 4 / 3; border-radius: 6px; background: #eef2f7; margin-bottom: .45rem; }

.th-web { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .1); }
.th-web-top { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; background: #0078ad; color: #fff; transition: background-color .15s ease; }
.th-web-logo { width: 38px; height: 10px; border-radius: 3px; background: currentColor; opacity: .9; }
.th-web-nav { flex: 1; display: flex; gap: .35rem; }
.th-web-nav i { width: 26px; height: 6px; border-radius: 3px; background: currentColor; opacity: .45; }
.th-web-nav i.is-active { opacity: 1; }
.th-web-cart { position: relative; font-size: .85rem; }
.th-web-cart b, .th-app-nav b { position: absolute; top: -6px; right: -8px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; font-size: .58rem; line-height: 15px; text-align: center; font-weight: 800; font-style: normal; background: #0078ad; color: #fff; }
.th-web-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .7rem; }
.th-web-card { border: 1px solid #eef0f5; border-radius: 8px; padding: .4rem; }
.th-web-btn, .th-app-btn { display: block; margin-top: .4rem; padding: .25rem 0; border-radius: 6px; font-size: .58rem; font-weight: 700; text-align: center; background: #0078ad; color: #fff; }
.th-web-foot { display: flex; gap: .5rem; padding: .7rem .8rem; background: #371515; }
.th-web-foot span { flex: 1; height: 6px; border-radius: 3px; background: currentColor; opacity: .35; }

.th-phone { width: 230px; margin: 0 auto; border-radius: 28px; padding: 10px; background: #0f172a; box-shadow: 0 14px 34px rgba(15, 23, 42, .22); }
.th-phone > div { background: #fff; }
.th-app-bar { display: flex; align-items: center; gap: .6rem; padding: 1rem .8rem .7rem; border-radius: 20px 20px 0 0; font-size: .72rem; font-weight: 700; background: #0078ad; color: #fff; }
.th-app-bar span { flex: 1; }
.th-app-body { padding: .6rem; display: flex; flex-direction: column; gap: .5rem; min-height: 190px; background: #f8fafc !important; }
.th-app-card { display: flex; gap: .5rem; padding: .45rem; border-radius: 10px; background: #fff; border: 1px solid #eef0f5; }
.th-app-card .th-web-img { flex: 0 0 56px; margin: 0; }
.th-app-card > div { flex: 1; }
.th-app-btn { display: inline-block; padding: .2rem .6rem; }
.th-app-nav { display: flex; justify-content: space-around; padding: .7rem .5rem .9rem; border-radius: 0 0 20px 20px; font-size: 1rem; background: #371515; }
.th-app-nav i { position: relative; color: #868585; }
@media (max-width: 1199.98px) { .th-editor { grid-template-columns: 1fr; } .th-preview-wrap { position: static; } }
@media (max-width: 767.98px) {
}
@media (max-width: 419.98px) {
	.th-field { flex-wrap: wrap; }
	.th-hex.form-control { flex: 1 0 100%; width: 100%; }
}

/* ---- Custom CSS / JS editor (admin/settings_custom) ---- */
.cc-state { font-size: .66rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.cc-state--on { background: #dcfce7; color: #15803d; }
.cc-help { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .85rem; padding: .65rem .85rem; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: .78rem; color: #475569; }
.cc-help i { color: var(--dr-accent, #8C52FF); margin-top: .15rem; }
.cc-help code { font-size: .74rem; color: var(--dr-accent-dark); background: rgba(var(--dr-accent-rgb), .08); padding: 0 .25rem; border-radius: 4px; }
.cc-editor-wrap { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.cc-editor-wrap:focus-within { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .08); }
.cc-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .5rem .75rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.cc-lang { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--dr-accent-dark); background: rgba(var(--dr-accent-rgb), .1); padding: .15rem .5rem; border-radius: 6px; }
.cc-stats { font-size: .74rem; color: #94a3b8; }
.cc-issues { font-size: .74rem; font-weight: 600; }
.cc-issues.is-bad { color: #b91c1c; }
.cc-tools { margin-left: auto; display: flex; gap: .25rem; }
.cc-tool { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid transparent; background: transparent; color: #64748b; font-size: .74rem; font-weight: 600; padding: .25rem .5rem; border-radius: 8px; cursor: pointer; }
.cc-tool:hover { background: #fff; border-color: #e2e8f0; color: #1e293b; }
.cc-tool.is-on { background: #faf8ff; border-color: #c4b5fd; color: var(--dr-accent-dark); }
.cc-editor { width: 100%; font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.cc-editor-wrap.is-full { position: fixed; inset: 1rem; z-index: 1080; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
.cc-editor-wrap.is-full .cc-editor { flex: 1; height: auto !important; }
body.cc-noscroll { overflow: hidden; }
body.cc-noscroll::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1079; }
.cc-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cc-actions .btn { border-radius: 10px; font-weight: 600; }
.cc-dirty { margin-right: auto; font-size: .78rem; font-weight: 600; color: #b45309; }
.cc-kbd { font-size: .72rem; color: #94a3b8; }
.cc-kbd kbd { font-size: .66rem; padding: .1rem .35rem; border-radius: 4px; background: #f1f5f9; color: #475569; box-shadow: inset 0 -1px 0 #e2e8f0; }
@media (max-width: 575.98px) {
	.cc-tool span, .cc-kbd { display: none; }
}

/* ---- Static pages (admin/static_pages, admin/static_pages/view) ---- */
.sp-search { max-width: 320px; margin-bottom: 1rem; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.sp-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.sp-card:hover { border-color: #c4b5fd; box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.sp-card--off { background: #fafbfc; }
.sp-card-top { display: flex; align-items: center; justify-content: space-between; }
.sp-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: 1rem; }
.sp-card--off .sp-icon { background: #f1f5f9; color: #94a3b8; }
.sp-title { font-size: .95rem; font-weight: 700; color: #0f172a !important; margin-top: .2rem; }
.sp-title:hover { color: var(--dr-accent, #8C52FF) !important; }
.sp-excerpt { margin: 0; font-size: .76rem; color: #64748b; line-height: 1.45; flex: 1; }
.sp-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .72rem; color: #94a3b8; }
.sp-meta i { font-size: .7rem; margin-right: .15rem; }
.sp-seo--ok { color: #15803d; }
.sp-seo--no { color: #b45309; }
.sp-actions { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; padding-top: .7rem; border-top: 1px solid #f1f5f9; }
.sp-actions .btn { flex: 1; border-radius: 10px; font-weight: 600; }

.sp-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.sp-side { position: sticky; top: 1rem; }
.sp-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: #64748b; margin-bottom: .6rem; }
.sp-back:hover { color: var(--dr-accent, #8C52FF); }
.sp-title-input.form-control { border-color: transparent !important; padding: .35rem .5rem !important; margin-left: -.5rem; font-size: 1.35rem !important; font-weight: 800; color: #0f172a !important; }
.sp-title-input.form-control:hover { border-color: #e2e8f0 !important; }
.sp-title-input.form-control:focus { border-color: var(--dr-accent, #8C52FF) !important; }
.sp-url { display: flex; align-items: center; gap: .35rem; font-size: .74rem; color: #94a3b8; margin: .15rem 0 1rem; word-break: break-all; }
.sp-content .cke { border-radius: 10px; overflow: hidden; border-color: #e2e8f0 !important; }
.sp-count { margin-top: .5rem; font-size: .74rem; color: #94a3b8; text-align: right; }
.sp-serp { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.1rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font-family: Arial, sans-serif; }
.sp-serp-url { font-size: .74rem; color: #4d5156; }
.sp-serp-title { font-size: 1.05rem; color: #1a0dab; line-height: 1.3; }
.sp-serp-desc { font-size: .8rem; color: #4d5156; line-height: 1.45; }
.sp-editor .fm-field { margin-bottom: .9rem; }
.sp-editor .fm-field > label { display: flex; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.sp-editor .fm-count.is-over, .sp-editor .is-over { color: #b91c1c; font-weight: 700; }
.sp-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 1rem 0; font-size: .76rem; }
.sp-facts dt { color: #94a3b8; font-weight: 500; }
.sp-facts dd { margin: 0; color: #334155; font-weight: 600; text-align: right; font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.sp-save, .sp-view { border-radius: 10px; font-weight: 600; }
.sp-view { margin-top: .5rem; }
.sp-dirty { margin: .6rem 0 0; font-size: .76rem; font-weight: 600; color: #b45309; text-align: center; }
.sp-dirty:empty { display: none; }
@media (max-width: 991.98px) { .sp-editor { grid-template-columns: 1fr; } .sp-side { position: static; } }

/* ---- Content pages (admin/pages, page editor) — reuses the sp-* static page editor. ---- */
.pg-noimg { display: flex !important; align-items: center; justify-content: center; color: #cbd5e1; font-size: 1.1rem; }
.pg-seo-title { font-size: .8rem; color: #1a0dab; }
.pg-slug-note { margin-left: .35rem; color: #cbd5e1; }
.pg-status { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.pg-status small { font-size: .74rem; color: #94a3b8; }
.pg-trash { display: block; width: 100%; margin-top: .9rem; padding-top: .8rem; border: 0; border-top: 1px solid #f1f5f9; background: transparent; color: #dc2626; font-size: .78rem; font-weight: 600; text-align: center; cursor: pointer; }
.pg-trash:hover { color: #991b1b; text-decoration: underline; }
.pg-upload { flex-direction: column; align-items: stretch; text-align: center; }
.pg-preview.fm-upload-preview { width: 100%; height: 150px; border-radius: 10px; }
.pg-preview img { object-fit: cover !important; }
.pg-remove { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 0; font-size: .76rem; color: #64748b; cursor: pointer; }
.pg-remove input { accent-color: #dc2626; }
.sp-side .card + .card { margin-top: 1rem; }

/* ---- Blog (admin/blog, post editor) — editor reuses sp-* / pg-*. ---- */
.bl-thumb.pl-thumb { width: 64px; height: 44px; }
.bl-comments { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #334155; white-space: nowrap; }
.bl-comments span { padding: .05rem .45rem; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: .68rem; font-weight: 700; }
.bl-comments:hover { color: var(--dr-accent, #8C52FF); }
.bl-pending-note { color: #b45309; font-weight: 600; }
.mn-sub a { font-weight: 600; }
.bl-manage { font-size: .76rem; font-weight: 600; }
.bl-cats { display: flex; flex-wrap: wrap; gap: .35rem; }
.bl-cats .cz-source span { white-space: normal; }
/* ---- Blog post editor (admin/blog/blog_edit) — full-screen workspace, scoped to .bl-studio so the
   other sp-editor pages keep theirs. On wide screens (.is-fit, set by the page script) the
   workspace is sized to the window: the page doesn't scroll, the editor and the side panel scroll
   inside themselves. Narrow screens stack normally. ---- */
.bl-studio { --bls-radius: 18px; }
.bls-bar { position: relative; z-index: 30; display: flex; align-items: center; gap: .85rem; margin: -.25rem 0 .85rem; padding: .6rem .85rem;
	border: 1px solid rgba(226, 232, 240, .9); border-radius: 16px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
	box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.bls-bar.is-fixed { position: fixed; z-index: 1020; margin: 0; }
.bls-back { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #f1f5f9; color: #334155; transition: background .15s, color .15s; }
.bls-back:hover { background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); }
.bls-bar-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bls-bar-title small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.bls-bar-title strong { font-size: .95rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.bls-state { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 700; }
.bls-state i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.bls-state.is-live { background: #dcfce7; color: #15803d; }
.bls-state.is-live i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.bls-state.is-draft { background: #fef3c7; color: #b45309; }
.bls-state.is-draft i { background: #f59e0b; }
.bls-state.is-trash { background: #f1f5f9; color: #94a3b8; }
/* Page editor bits (admin/page_view.php uses the same workspace). */
.bls-status { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .75rem .85rem; border-radius: 14px; border: 1px solid #eef0f5; background: #fafbfd; }
.bls-status small { font-size: .74rem; color: #94a3b8; }
.bl-studio .sp-facts { margin: .9rem 0 0; }
.bls-stats--2 { grid-template-columns: 1fr 1fr; }
.bls-chip.bls-chip--url b { font-weight: 700; color: #0f172a; }
.bl-studio .pg-trash { margin-top: 1.1rem; }
.bls-dirty.sp-dirty { margin: 0; text-align: left; }
.bls-bar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.bls-btn { border-radius: 12px; font-weight: 700; padding: .5rem 1rem; text-transform: none; letter-spacing: 0; }
.bls-save { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)) !important; border: 0 !important; box-shadow: 0 8px 18px -8px rgba(var(--dr-accent-rgb), .7); }
.bls-save:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* Workspace */
.bls-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
/* The admin layout gives every .card margin-bottom: 1.5rem !important; workspace cards sit in a grid. */
.bl-studio .bls-work > .card { margin-bottom: 0 !important; }
.bl-studio .bls-work > .card { margin: 0; border-radius: var(--bls-radius); border-color: #eef0f5; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -24px rgba(15, 23, 42, .25); }
.bl-studio.is-fit .bls-work { align-items: stretch; }
.bl-studio.is-fit .bls-work > .card { height: 100%; min-height: 0; }
/* Canvas */
.bls-canvas { display: flex; flex-direction: column; overflow: hidden; }
.bls-head { flex: 0 0 auto; padding: 1.1rem 1.4rem .2rem; }
.bl-studio .bls-title.form-control { font-size: 1.85rem !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; height: auto; min-height: 0; padding: .15rem .5rem !important; color: #0f172a; resize: none; overflow: hidden; }
.bls-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0 .9rem; }
.bls-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .26rem .65rem; border-radius: 999px; background: #f8fafc; border: 1px solid #eef0f5; color: #475569; font-size: .74rem; font-weight: 600; }
.bls-chip i { font-size: .78rem; color: #94a3b8; }
.bls-chip b { color: #b45309; }
.bls-chip--link:hover { border-color: rgba(var(--dr-accent-rgb), .45); color: var(--dr-accent-dark); }
.bls-content { flex: 1 1 auto; min-height: 0; padding: 0 1.4rem 1.4rem; }
.bls-content .cke { border-radius: 14px !important; border: 1px solid #e8ebf2 !important; box-shadow: none !important; overflow: hidden; }
.bls-content .cke_top { background: #fafbfd !important; border-bottom: 1px solid #eef0f5 !important; padding: 8px 10px 4px !important; }
.bls-content .cke_bottom { background: #fafbfd !important; border-top: 1px solid #eef0f5 !important; }
.bls-content .cke_toolgroup { border-radius: 9px !important; border-color: #e8ebf2 !important; background: #fff !important; }
.bls-content .cke_combo_button { border-radius: 9px !important; background: #fff !important; }
/* Side panel + tabs */
.bls-panel { display: flex; flex-direction: column; overflow: hidden; }
.bls-tabs { flex: 0 0 auto; display: flex; gap: .3rem; padding: .5rem; border-bottom: 1px solid #eef0f5; background: #fafbfd; }
.bls-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .4rem; border: 0; border-radius: 10px; background: transparent; color: #64748b; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.bls-tab i { font-size: .85rem; }
.bls-tab:hover { color: #0f172a; background: #f1f5f9; }
.bls-tab.is-on { background: #fff; color: var(--dr-accent-dark); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 0 0 1px #eef0f5; }
.bls-tab-badge { min-width: 22px; padding: .05rem .4rem; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: .66rem; font-weight: 800; }
.bls-tab-badge.is-good { background: #dcfce7; color: #15803d; }
.bls-tab-badge.is-warn { background: #fef3c7; color: #b45309; }
.bls-pane { display: none; padding: 1rem 1.15rem 1.25rem; }
.bls-pane.is-on { display: block; }
.bl-studio.is-fit .bls-pane.is-on { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.bls-label { display: flex; align-items: center; justify-content: space-between; margin: 1.1rem 0 .5rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.bls-label .bl-manage { text-transform: none; letter-spacing: 0; }
.bls-hint { display: block; margin: .4rem 0 0; font-size: .72rem; color: #94a3b8; }
.bls-publish { margin-bottom: 0; }
.bls-cover { position: relative; display: block; height: 160px; margin: 0; border-radius: 14px; cursor: pointer; overflow: hidden; background: linear-gradient(135deg, rgba(var(--dr-accent-rgb), .10), rgba(92, 225, 230, .14)); }
.bls-cover:not(.has-image) { height: 96px; border: 1px dashed rgba(var(--dr-accent-rgb), .4); }
.bls-cover-media, .bls-cover-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bls-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .55)); }
.bls-cover-cta { position: absolute; z-index: 1; left: .75rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #0f172a; font-size: .76rem; box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .4); transition: transform .2s; }
.bls-cover:not(.has-image) .bls-cover-cta { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.bls-cover-cta i { color: var(--dr-accent, #8C52FF); }
.bls-cover:hover .bls-cover-cta { transform: translateY(-2px); }
.bls-cover:not(.has-image):hover .bls-cover-cta { transform: translate(-50%, -56%); }
.bls-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bls-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1.1rem; }
.bls-stats div { padding: .55rem .5rem; border-radius: 12px; background: #f8fafc; border: 1px solid #eef0f5; text-align: center; }
.bls-stats b { display: block; font-size: 1.05rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.bls-stats small { font-size: .6rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.bls-stats .is-warn { background: #fffbeb; border-color: #fde68a; }
.bls-stats .is-warn b { color: #b45309; }
.bls-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.bls-pill { margin: 0; cursor: pointer; }
.bls-pill input { position: absolute; opacity: 0; pointer-events: none; }
.bls-pill span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: .76rem; font-weight: 600; transition: all .15s; }
.bls-pill span i { display: none; font-size: .7rem; }
.bls-pill:hover span { border-color: rgba(var(--dr-accent-rgb), .45); }
.bls-pill input:checked + span { background: rgba(var(--dr-accent-rgb), .1); border-color: rgba(var(--dr-accent-rgb), .55); color: var(--dr-accent-dark); }
.bls-pill input:checked + span i { display: inline; }
.bls-pill input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
/* SEO pane */
.bls-seo-top { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: .85rem; border-radius: 14px; background: #fafbfd; border: 1px solid #eef0f5; }
.bls-score { --c: #ef4444; position: relative; width: 74px; height: 74px; }
.bls-score.is-mid { --c: #f59e0b; }
.bls-score.is-good { --c: #22c55e; }
.bls-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bls-score circle { fill: none; stroke-width: 3.2; }
.bls-score-bg { stroke: #e8ebf2; }
.bls-score-fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: calc(var(--p) * 1px) 100; transition: stroke-dasharray .5s ease, stroke .3s; }
.bls-score span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.bls-score b { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.bls-score small { font-size: .58rem; font-weight: 700; letter-spacing: .08em; color: #94a3b8; margin-top: .15rem; }
.bls-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .74rem; color: #64748b; }
.bls-checks li i { color: #cbd5e1; margin-right: .25rem; font-size: .8rem; }
.bls-checks li.is-ok { color: #0f172a; }
.bls-checks li.is-ok i { color: #22c55e; }
.bls-checks small { color: #94a3b8; }
.bls-seo-gen { margin: .75rem 0; }
.bls-seo-gen .seo-gen { float: none !important; width: 100%; border-radius: 10px; font-weight: 700; }
.bls-serp { border-radius: 14px; }
.bls-serp-site { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: #4d5156; }
.bls-serp-site i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-style: normal; font-weight: 800; font-size: .7rem; }
/* Comments pane */
.bls-pane .cm-item { gap: .7rem; }
.bls-pane .cm-item--pending { margin: 0 -1.15rem; padding-left: 1.15rem; padding-right: 1.15rem; }
.bls-pane .cm-avatar { width: 34px; height: 34px; }
.bls-pane .cm-email { display: block; font-size: .72rem; color: #94a3b8; }
.bls-pane .cm-actions { margin-top: .5rem; justify-content: flex-start; }
.bls-pane > .bls-hint:first-child { margin: 0 0 .75rem; }
@media (max-width: 991.98px) {
	.bls-work { grid-template-columns: 1fr; }
	.bls-bar-title strong { max-width: 30vw; }
}
@media (max-width: 575.98px) {
	.bls-bar { gap: .5rem; padding: .55rem; }
	.bls-bar-title small, .bls-state, .bls-dirty, .bls-btn span { display: none; }
	.bls-btn { padding: .5rem .75rem; }
	.bls-head { padding: 1rem 1rem .2rem; }
	.bls-content { padding: 0 1rem 1rem; }
	.bl-studio .bls-title.form-control { font-size: 1.4rem !important; }
	.bls-stats { grid-template-columns: 1fr 1fr; }
}
/* Post comments (blog_edit "Comments" section). */
.cm-comments { margin-top: 1.25rem; scroll-margin-top: 80px; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm-item { display: flex; align-items: flex-start; gap: .85rem; padding: .9rem 0; border-top: 1px solid #f1f5f9; }
.cm-item:first-child { border-top: 0; padding-top: 0; }
.cm-item--pending { background: linear-gradient(90deg, #fffbeb, transparent 60%); margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
.cm-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ede9fe; color: #6d28d9; font-weight: 800; }
.cm-body { flex: 1; min-width: 0; }
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .8rem; }
.cm-meta strong { color: #0f172a; }
.cm-email, .cm-time { color: #94a3b8; }
.cm-text { margin: .35rem 0 0; color: #334155; white-space: normal; overflow-wrap: anywhere; }
.cm-actions { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.cm-form { margin: 0; }
@media (max-width: 575.98px) { .cm-item { flex-wrap: wrap; } .cm-actions { width: 100%; justify-content: flex-end; } }

/* ---- Blog categories & tags (admin/blog/blog_category) ---- */
.bc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.bc-grid > .card { margin-bottom: 0; }
.bc-card .card-header { display: block; }
.bc-card .card-title { display: flex; align-items: center; gap: .6rem; }
.bc-card .mn-total { margin-left: 0; }
.bc-add { display: flex; gap: .5rem; margin-bottom: 1rem; }
.bc-add .form-control { flex: 1; }
.bc-add .btn { border-radius: 10px; font-weight: 600; white-space: nowrap; }
.bc-filter { margin-bottom: .75rem; }
.bc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.bc-item { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s ease; }
.bc-item:hover { border-color: #c4b5fd; }
.bc-view { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem .55rem .9rem; }
.bc-name { flex: 1; min-width: 0; font-size: .85rem; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-count { flex: 0 0 auto; padding: .1rem .55rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-size: .7rem; font-weight: 700; }
.bc-count--zero { background: #f1f5f9; color: #94a3b8; }
.bc-locked { color: #cbd5e1 !important; cursor: help; }
.bc-rename { display: flex; align-items: center; gap: .4rem; padding: .45rem .5rem; }
.bc-rename .form-control { flex: 1; }
.bc-rename .btn { border-radius: 8px; font-weight: 600; }
@media (max-width: 991.98px) { .bc-grid { grid-template-columns: 1fr; } }
@media (max-width: 419.98px) { .bc-add .btn span { display: none; } }

/* ---- Imports (admin/import) ---- */
.im-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.im-layout .card { margin-bottom: 0; }
/* Same gotcha as admin/menu's .mn-add/.mn-tree: grid items default to min-width: auto, so
   they don't shrink below their content's intrinsic width even when their track is smaller.
   .im-types' track is a fixed 320px on desktop (fine) but collapses to a mobile 1fr below —
   without this, it rendered at its content's width instead (the type list row's icon + text +
   arrow, and the column-name chips in the second card, both refusing to shrink), overflowing
   the 320-375px screen and clipped by the card's own overflow: hidden. */
.im-types, .im-layout > .tab-content { min-width: 0; }
.im-types { position: sticky; top: 1rem; }
.im-type-list { display: flex; flex-direction: column; gap: .4rem; }
.im-type { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 12px; color: #334155; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.im-type:hover { background: #f8fafc; text-decoration: none; color: #0f172a; }
.im-type.active { background: #faf8ff; border-color: #c4b5fd; }
.im-type-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; }
.im-type.active .im-type-icon { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; }
.im-type-text { flex: 1; min-width: 0; }
.im-type-text strong { display: block; font-size: .84rem; }
.im-type-text small { display: block; font-size: .72rem; color: #94a3b8; line-height: 1.35; }
.im-type-go { color: #cbd5e1; font-size: .8rem; }
.im-type.active .im-type-go { color: var(--dr-accent, #8C52FF); }
/* !important on both: head_script.php's global .card-header rule is itself
   display: flex !important (the OTHER card-header pattern: title + filter pills sharing a
   row), which silently wins over a plain selector regardless of how specific it is. Without
   it, the title and the .ss-sub/.mn-sub description sentence next to it were squeezed into
   whatever's left of one row, instead of the title getting its own line — same bug as
   admin/settings_site's "Trust Badges" card, just two more instances of it here (both already
   had an attempted display: block fix, from before that root cause was understood). */
.im-types .card-header,
.im-layout .tab-pane .card-header { display: block !important; }
.im-layout .tab-pane .card-title { display: flex; align-items: center; gap: .6rem; }

.im-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.im-steps > li { position: relative; padding: 0 0 1.5rem 2.75rem; }
.im-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: #eef0f5; }
.im-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; min-height: 30px; font-size: .88rem; color: #0f172a; }
.im-step-num { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-size: .8rem; font-weight: 800; }
.im-step-body { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* Same min-width: auto gotcha as .im-types/.im-layout above, a third time on this page: a
   flex item (the <form> wrapping the Seller select2 + file-drop zone) defaults to not
   shrinking below its content's natural width, so flex-basis: 100% only set the PREFERRED
   size — the form still rendered at its content's ~289px over its actual 234px-wide
   container, 55px past the step's right edge and the card's own overflow: hidden. */
.im-step-body > form, .im-step-body > .im-cols, .im-step-body > .dr-field-hint { flex-basis: 100%; min-width: 0; }
.im-step-body .dr-field-hint { margin: 0; }
.im-muted { font-size: .76rem; color: #94a3b8; font-weight: 400; }
.im-btn { border-radius: 10px; font-weight: 600; }
.im-cols { display: flex; flex-wrap: wrap; gap: .35rem; }
.im-cols code { padding: .2rem .5rem; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: .74rem; }
.im-seller { margin-bottom: .75rem; max-width: 460px; }
.im-seller > label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }

.im-drop { position: relative; display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.4rem 1.25rem; border: 2px dashed #d8dbe5; border-radius: 14px; background: #fafbfc; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.im-drop:hover, .im-drop.is-over { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }
.im-drop.has-file { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; }
.im-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.im-drop-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: 1.3rem; }
.im-drop.has-file .im-drop-icon { background: #dcfce7; color: #16a34a; }
.im-drop-text strong { display: block; font-size: .86rem; color: #0f172a; }
.im-drop-text span { font-size: .76rem; color: #94a3b8; }
.im-file { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600; color: #166534; min-width: 0; }
.im-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im-file-clear { border: 0; background: transparent; color: #64748b; width: 28px; height: 28px; border-radius: 8px; }
.im-file-clear:hover { background: #fee2e2; color: #b91c1c; }
.im-submit { margin-top: .9rem; border-radius: 10px; font-weight: 600; }

.im-busy { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.im-busy-box { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem 2rem; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); text-align: center; }
.im-busy-box i { font-size: 1.8rem; color: var(--dr-accent, #8C52FF); margin-bottom: .35rem; }
.im-busy-box strong { font-size: .95rem; color: #0f172a; }
.im-busy-box span { font-size: .76rem; color: #64748b; }
@media (max-width: 991.98px) { .im-layout { grid-template-columns: minmax(0, 1fr); } .im-types { position: static; } }

/* ---- Business settings (admin/settings_business) — reuses im-*, ss-*, cz-savebar. ---- */
.bz-id { display: flex; align-items: center; gap: .75rem; padding: .25rem .25rem 1rem; margin-bottom: .75rem; border-bottom: 1px solid #f1f5f9; }
.bz-id img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #f8fafc; border: 1px solid #eef0f5; padding: 4px; }
.bz-id strong { display: block; font-size: .9rem; color: #0f172a; margin-bottom: .15rem; }
.bz-maint-flag { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; padding: .5rem .7rem; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: .76rem; font-weight: 600; }
.bz-mono { font-family: SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.bz-coords { display: flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .75rem; border-radius: 10px; background: #f8fafc; color: #475569; font-size: .8rem; font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.im-layout .tab-pane > form > .card, .im-layout .tab-pane > .card { margin-bottom: 1.25rem; }
/* !important on both this and the .header-elements-inline exception right below: see the
   comment above .im-types .card-header for why a plain display: block here never actually
   applied (head_script.php's global .card-header is itself !important). The exception needs
   its own !important too, now that the block rule carries one — otherwise the block rule
   would start winning over it as well, rather than the two staying in their intended order. */
.im-layout .tab-pane > form > .card .card-header, .im-layout .tab-pane > .card .card-header, .bz-brand-grid .card-header { display: block !important; }
.im-layout .tab-pane .card-header.header-elements-inline { display: flex !important; }
.im-layout .tab-pane .card-title { display: flex; align-items: center; gap: .6rem; }

.bz-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.bz-brand-grid .card { margin-bottom: 0; }
.bz-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; min-height: 150px; margin-bottom: 1rem; padding: 1.25rem; border-radius: 14px; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid #eef0f5; }
.bz-preview > img { max-width: 100%; max-height: 110px; object-fit: contain; }
.bz-preview--site_icon > img { width: 64px; height: 64px; }
.bz-tab-mock { display: inline-flex; align-items: center; gap: .45rem; max-width: 220px; padding: .4rem .7rem; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 -1px 0 #e2e8f0, 0 2px 8px rgba(15, 23, 42, .08); font-size: .74rem; color: #334155; }
.bz-tab-mock img { width: 16px; height: 16px; object-fit: contain; }
.bz-tab-mock span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-tab-mock i { font-size: .6rem; color: #94a3b8; }
.bz-drop { padding: 1rem; }

.bz-social { display: flex; flex-direction: column; gap: .5rem; }
.bz-social-row { display: grid; grid-template-columns: 38px 120px minmax(0, 1fr) 32px; align-items: center; gap: .75rem; padding: .45rem .6rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.bz-social-row label { margin: 0; font-size: .82rem; font-weight: 600; color: #334155; }
.bz-social-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #94a3b8; font-size: 1.05rem; transition: background-color .15s ease, color .15s ease; }
.bz-social-row.is-set .bz-social-icon { background: var(--brand); color: #fff; }
.bz-social-row .form-control { border-color: transparent !important; background: #f8fafc !important; }
.bz-social-row .form-control:focus { border-color: var(--dr-accent, #8C52FF) !important; background: #fff !important; }

.bz-app-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 140px; align-items: end; gap: .9rem; padding: .75rem 0; border-top: 1px solid #f1f5f9; }
.bz-app-row:first-child { border-top: 0; padding-top: 0; }
.bz-app-row > strong { align-self: center; font-size: .84rem; color: #0f172a; }
.bz-app-row .fm-field { margin: 0; }
.bz-app-row .fm-field > label { display: block; font-size: .74rem; font-weight: 600; color: #64748b; margin-bottom: .3rem; }

.bz-maint.is-on { border-color: #fcd34d; background: #fffbeb; }
.bz-maint.is-on .fm-switch-text strong { color: #92400e; }
.bz-maint input:checked ~ .fm-switch-track { background: #f59e0b; }
@media (max-width: 991.98px) { .bz-brand-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
	.bz-social-row { grid-template-columns: 38px minmax(0, 1fr) 32px; }
	.bz-social-row .form-control { grid-column: 1 / -1; }
	.bz-app-row { grid-template-columns: 1fr; }
}

/* ---- Tax rates (admin/settings_tax) ---- */
.tx-add { max-width: 420px; }
.tx-input { position: relative; flex: 1; }
.tx-input .form-control { padding-right: 2rem !important; }
.tx-input span { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-weight: 700; pointer-events: none; }
.tx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .85rem; }
.tx-rate { display: flex; flex-direction: column; gap: .75rem; padding: .9rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; transition: border-color .15s ease; }
.tx-rate:hover { border-color: #c4b5fd; }
.tx-rate--off { background: #fafbfc; }
.tx-rate--off .tx-value { color: #94a3b8; }
.tx-rate-top { display: flex; align-items: center; justify-content: space-between; }
.tx-value { font-size: 1.6rem; font-weight: 800; line-height: 1; color: #0f172a; letter-spacing: -.02em; }
.tx-value small { font-size: .95rem; font-weight: 700; color: #94a3b8; margin-left: .1rem; }
.tx-switch { padding: 0; border: 0; background: transparent; }
.tx-rate-foot { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .74rem; }
.tx-rate-foot .pl-icon-btn { margin-left: auto; }
.tx-used { font-weight: 600; color: var(--dr-accent-dark); }
.tx-unused { color: #94a3b8; }
/* Country-based rates: country picker, quick switcher, tax name, standard rates. */
.tx-head { gap: 1rem; flex-wrap: wrap; }
.tx-country { width: 300px; max-width: 100%; }
.tx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; font-size: .78rem; color: #64748b; }
.tx-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border: 1px solid #e2e8f0; border-radius: 999px; color: #334155; font-weight: 600; }
.tx-chip b { font-weight: 700; color: #94a3b8; }
.tx-chip:hover, .tx-chip.is-on { border-color: var(--dr-accent, #8C52FF); color: var(--dr-accent-dark); }
.tx-tools { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: flex-start; }
.tx-name { max-width: 260px; }
.tx-preset { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .65rem .9rem; border-radius: 12px; background: #f5f3ff; color: #4c1d95; font-size: .8rem; }
.tx-preset span { flex: 1; min-width: 200px; }
.tx-preset .btn { border-radius: 10px; font-weight: 600; }
@media (max-width: 575.98px) { .tx-country, .tx-name { width: 100%; max-width: none; } }

/* ---- Admin users (admin/users) ---- */
.us-avatar--info { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.us-avatar--ok { background: linear-gradient(135deg, #10b981, #34d399); }
.us-avatar--warn { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.us-avatar--muted { background: linear-gradient(135deg, #64748b, #94a3b8); }
.us-you { padding: .05rem .45rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.us-2fa { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: .68rem; font-weight: 700; }
.us-2fa.is-on { background: #dcfce7; color: #15803d; }
.us-meter { height: 4px; margin-top: .4rem; border-radius: 2px; background: #eef0f5; overflow: hidden; }
.us-meter span { display: block; height: 100%; width: 0; transition: width .2s ease, background-color .2s ease; }
.us-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.us-role-opt { margin: 0; cursor: pointer; }
.us-role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.us-role-opt span { display: block; height: 100%; padding: .65rem .8rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.us-role-opt strong { display: block; font-size: .82rem; color: #0f172a; }
.us-role-opt small { display: block; margin-top: .15rem; font-size: .72rem; color: #94a3b8; line-height: 1.35; }
.us-role-opt input:checked + span { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .12); }
.us-role-opt input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
/* Users table: disabled accounts dimmed, "You" badge beside the name. */
table.dataTable tbody tr.us-off td { background: #fafbfc; }
table.dataTable tbody tr.us-off .pl-name a, table.dataTable tbody tr.us-off .pl-strong { color: #94a3b8; }
.pl-name .us-you { margin-left: .35rem; vertical-align: 1px; }

/* ---- General settings (admin/settings_general) — reuses im-*, ss-*, fm-*, cz-savebar. ---- */
.sg-chips.fm-choices { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.im-layout .fm-field > label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.im-layout .fm-field { margin-bottom: 1rem; }
.sg-warn { display: flex !important; align-items: center; gap: .3rem; margin-top: .25rem; color: #b45309 !important; font-weight: 600; }
.ss-switches .fm-switch-text small a { font-weight: 600; }

.sg-prefixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.sg-prefix label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.sg-prefix-row { display: flex; align-items: center; gap: .6rem; }
.sg-prefix-row .form-control { width: 90px; flex: 0 0 90px; text-align: center; font-weight: 700; }
.sg-sample { font-size: .76rem; color: #94a3b8; }
.sg-sample b { color: var(--dr-accent-dark); font-family: SFMono-Regular, Menlo, Consolas, monospace; }

.sg-unit { position: relative; }
.sg-unit .form-control { padding-right: 3.5rem !important; }
.sg-unit span { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: .76rem; color: #94a3b8; pointer-events: none; }
.sg-muted { opacity: .5; }

.sg-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.sg-method { margin: 0; cursor: pointer; }
.sg-method input { position: absolute; opacity: 0; pointer-events: none; }
.sg-method span { display: block; height: 100%; padding: .7rem .85rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.sg-method strong { display: block; font-size: .82rem; color: #0f172a; }
.sg-method small { display: block; margin-top: .15rem; font-size: .72rem; color: #94a3b8; line-height: 1.35; }
.sg-method input:checked + span { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .12); }
.sg-method input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
.sg-method-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.sg-zone-box { padding: .9rem 1rem .1rem; border: 1px solid #eef0f5; border-radius: 12px; background: #fafbfc; }
.sg-zone-box > strong { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; font-size: .82rem; color: #0f172a; }
.sg-zone-box > strong i { color: var(--dr-accent, #8C52FF); }

.sg-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.sg-level { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .7rem; border: 1px solid #e2e8f0; border-radius: 12px; }
.sg-level-num { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-weight: 800; font-size: .8rem; }
.sg-level label { margin: 0 0 .3rem; font-size: .76rem; font-weight: 600; color: #64748b; }

/* ---- Plugins (admin/plugins) ---- */
.pg-card--off { background: #fafbfc; }
.pg-card--off .pg-icon { background: #f1f5f9; color: #94a3b8; }
.pg-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: 1.15rem; }
.pg-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.pg-badges:empty { display: none; }
.pg-switch { border: 0; padding: 0; background: transparent; margin-top: 4px; }
.pg-invoice { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid #f1f5f9; }
.pg-fields { padding-top: .85rem; }
.pg-fields .fm-field > label { display: block; font-size: .76rem; font-weight: 600; color: #334155; margin-bottom: .3rem; }
.pg-fields .fm-field { margin-bottom: .75rem; }
.pg-secret { position: relative; }
.pg-secret .form-control { padding-right: 2.6rem !important; }
.pg-secret .pg-reveal { position: absolute; right: 5px; top: 5px; }
.pg-masked { -webkit-text-security: disc; }
.pg-qr { display: flex; align-items: center; gap: .75rem; }
.pg-qr img { width: 72px; height: 72px; object-fit: contain; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.pg-qr input[type=file] { font-size: .76rem; }
.pg-actions { display: flex; align-items: center; gap: .5rem; padding-top: .75rem; border-top: 1px solid #f1f5f9; }
.pg-actions .bz-dirty { margin-left: auto; font-size: .74rem; font-weight: 600; color: #b45309; }
.pg-actions .btn-link { padding-left: 0; font-size: .78rem; font-weight: 600; }

/* ---- Currency settings (admin/settings_currency) ---- */
.cy-top { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; }
.cy-top > .card { margin: 0; }
.cy-top .card-header { display: block; }
.cy-top .card-title { display: flex; align-items: center; gap: .6rem; }
.cy-top .fm-field > label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.cy-top .fm-field { margin-bottom: 1rem; }
.cy-preview { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); border: 0; color: #fff; }
.cy-preview .card-body { display: flex; flex-direction: column; justify-content: center; }
.cy-preview-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.cy-price { margin: .4rem 0 1rem; font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; word-break: break-all; }
.cy-sample { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .8rem; }
.cy-sample span { opacity: .85; }
.cy-fmt { display: block; font-size: .95rem; color: #0f172a; font-weight: 800; }
.fm-choice input:checked + span .cy-fmt { color: var(--dr-accent-dark); }
.cy-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.cy-actions .bz-dirty { font-size: .74rem; font-weight: 600; color: #b45309; }
@media (max-width: 1199.98px) { .cy-top { grid-template-columns: 1fr 1fr; } .cy-preview { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .cy-top { grid-template-columns: 1fr; } }

/* ---- SEO settings (admin/settings_seo) — reuses im-*, sp-serp, us-role-opt. ---- */
.seo-health { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.seo-health-head { display: flex; justify-content: space-between; margin-bottom: .4rem; font-size: .78rem; color: #334155; }
.seo-health-head span { font-weight: 700; color: var(--dr-accent-dark); }
.seo-check { display: flex; align-items: center; gap: .45rem; padding: .3rem .25rem; font-size: .76rem; color: #b45309; border-radius: 8px; }
.seo-check:hover { background: #f8fafc; text-decoration: none; }
.seo-check.is-ok { color: #475569; }
.seo-check.is-ok i { color: #16a34a; }
.seo-inline { display: flex; gap: .5rem; }
.seo-inline .form-control { flex: 1; }
.seo-example { font-weight: 600; color: #1a0dab; }
.seo-robots { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.im-layout .fm-count.is-over { color: #b91c1c; font-weight: 700; }

/* ---- Email / SMTP settings (admin/settings_smtp) — reuses sp-editor, ss-*, pg-secret. ---- */
.sp-main > form > .card, .sp-main > .card { margin-bottom: 1.25rem; }
.sp-main .card-header:not(.header-elements-inline) { display: block; }
.sp-main .card-title, .sp-side .card-title { display: flex; align-items: center; gap: .6rem; }
.sp-main .fm-field > label, .sp-side .fm-field > label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.sp-main .fm-field, .sp-side .fm-field { margin-bottom: 1rem; }
.em-methods { grid-template-columns: 1fr 1fr; }
.em-presets { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .74rem; color: #94a3b8; }
.em-presets .btn { border-radius: 8px; font-size: .74rem; font-weight: 600; padding: .2rem .6rem; }
.em-enc.fm-choices { grid-template-columns: 1fr 1fr; }
.em-status { display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; border-radius: 12px; }
.em-status i { font-size: 1.4rem; }
.em-status strong { display: block; font-size: .86rem; }
.em-status small { display: block; font-size: .74rem; color: #64748b; word-break: break-all; }
.em-status.is-on { background: #f0fdf4; color: #166534; }
.em-status.is-off { background: #fef2f2; color: #991b1b; }
.em-result { margin-top: .75rem; padding: .6rem .8rem; border-radius: 10px; font-size: .78rem; line-height: 1.45; word-break: break-word; }
.em-result.is-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.em-result.is-bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 767.98px) { .em-methods { grid-template-columns: 1fr; } }

/* ---- SMS settings (admin/settings_sms) ---- */
.sp-main > .sl-tabs { margin-bottom: 1rem; }
.sl-tab .pl-status { margin-left: .2rem; }
.sms-master { margin-bottom: 1rem; border-color: #c4b5fd; background: #faf8ff; }
.sms-mobile { margin: 0 0 0 1rem; padding-left: 1rem; border-left: 2px solid #eef0f5; }
.sms-balance { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .75rem; font-size: .8rem; color: #64748b; }
.sms-balance b { font-size: 1.05rem; color: #0f172a; }
.sms-bubble { padding: .75rem .9rem; border-radius: 16px 16px 16px 4px; background: #f1f5f9; }
.sms-sender { display: block; margin-bottom: .3rem; font-size: .7rem; font-weight: 800; letter-spacing: .05em; color: var(--dr-accent-dark); }
.sms-bubble p { margin: 0; font-size: .82rem; color: #1e293b; line-height: 1.45; }

/* ---- Send notification (admin/send_notification) ---- */
.nt-compose { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; min-width: 0; max-width: 100%; }
.nt-fields { min-width: 0; max-width: 100%; }
.nt-fields .fm-field { margin-bottom: 1rem; min-width: 0; }
.nt-fields .fm-field > label { display: flex; align-items: baseline; gap: .35rem; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; width: 100%; min-width: 0; }
.nt-fields .fm-count { margin-left: auto; flex-shrink: 0; white-space: nowrap; }
.nt-fields .fm-count.is-over { color: #b91c1c; font-weight: 700; }
.nt-fields .fm-upload { max-width: 100%; min-width: 0; }
.nt-fields .fm-upload-text { flex: 1; min-width: 0; }
.nt-send { display: flex; justify-content: flex-end; margin-top: 1rem; }
.nt-send .btn { border-radius: 10px; font-weight: 600; }
.nt-preview { position: sticky; top: 1rem; min-width: 0; }
.nt-lock { padding: 1.4rem 1rem 1.6rem; border-radius: 28px; background: linear-gradient(160deg, #1e1b4b, #4c1d95 55%, #0e7490); box-shadow: 0 14px 34px rgba(15, 23, 42, .22); }
.nt-time { margin-bottom: 1rem; text-align: center; font-size: 2rem; font-weight: 300; color: #fff; letter-spacing: .02em; }
.nt-card { padding: .7rem .8rem; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.nt-card-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .03em; }
.nt-app-icon { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-size: .6rem; }
.nt-now { margin-left: auto; text-transform: none; }
.nt-card strong { display: block; font-size: .84rem; color: #0f172a; word-break: break-word; }
.nt-card p { margin: .1rem 0 0; font-size: .78rem; color: #334155; line-height: 1.4; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card img { display: block; width: 100%; margin-top: .5rem; border-radius: 10px; max-height: 140px; object-fit: cover; }
.content > .ss-ticker-off { margin-bottom: 1.25rem; }
@media (max-width: 991.98px) {
	.nt-compose { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.nt-preview { position: static; width: 100%; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
	.nt-preview { max-width: 100%; margin: 0; }
	.nt-lock { padding: 1.25rem .85rem 1.4rem; border-radius: 20px; }
	.nt-send { justify-content: stretch; }
	.nt-send .btn { width: 100%; justify-content: center; }
	.sg-chips.fm-choices,
	.nt-compose .fm-choices {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: .4rem;
	}
	.fm-choice span,
	.nt-compose .fm-choice span {
		padding: .55rem .3rem;
		font-size: .72rem;
		word-break: break-word;
		line-height: 1.25;
	}
}

/* ---- Newsletter (admin/send_newsletter) ---- */
.nl-subject.form-control { font-size: 1rem !important; font-weight: 600; }
.nl-audience { display: flex; align-items: baseline; gap: .5rem; }
.nl-audience b { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1; }
.nl-audience span { font-size: .84rem; color: #475569; }
.nl-audience small { display: block; font-size: .72rem; color: #94a3b8; }
.nl-note { margin: .6rem 0 1rem; font-size: .74rem; line-height: 1.4; }
.sp-side .ss-btn + .ss-btn, .sp-side .nl-note + .ss-btn { margin-top: .5rem; }
.nl-inbox { display: flex; flex-direction: column; gap: .1rem; padding: .75rem .85rem; border: 1px solid #e2e8f0; border-radius: 12px; }
.nl-from { font-size: .74rem; font-weight: 700; color: #0f172a; }
.nl-inbox strong { font-size: .82rem; color: #1e293b; }
.nl-inbox span:last-child { font-size: .76rem; color: #64748b; line-height: 1.4; }

/* ---- Blocked IPs (admin/security/ip_blocked) ---- */
/* admin/security/ip_blocked — same studio + table layout as the audit log (.al-studio / .al-*). */
.bls-state.ip-mine-pill { background: #f0fdf4; color: #15803d; }
.bls-state.ip-mine-pill i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
.bls-state.ip-mine-pill b { font-weight: 700; color: #166534; }
.ip-add { display: flex; flex-direction: column; margin: 0 0 1.25rem; padding: 0 0 1.25rem; border-bottom: 1px solid #eef0f5; }
.ip-add-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.ip-add-head strong { display: block; font-size: .95rem; font-weight: 800; color: #0f172a; }
.ip-add-head small { display: block; font-size: .72rem; color: #94a3b8; }
.ip-add-icon { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fee2e2; color: #b91c1c; font-size: 1.05rem; }
.ip-add-btn { width: 100%; justify-content: center; margin-top: 1rem; }
.ip-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ip-notes li { display: flex; gap: .6rem; font-size: .76rem; line-height: 1.45; color: #64748b; }
.ip-notes li i { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: .8rem; }
.ip-notes b { color: #334155; }
@media (max-width: 575.98px) { .bls-state.ip-mine-pill { display: none; } }
.ip-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fef2f2; color: #dc2626; }

/* ---- Edit user / My profile (admin/users/edituser) ---- */
.ue-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .5rem 0 1rem; margin-bottom: .75rem; border-bottom: 1px solid #f1f5f9; }
.ue-avatar { width: 64px !important; height: 64px !important; border-radius: 18px !important; font-size: 1.5rem !important; margin-bottom: .35rem; }
.ue-id strong { font-size: .98rem; color: #0f172a; }
.ue-handle { font-size: .76rem; color: #94a3b8; }
.ue-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin-top: .4rem; }
.ue-qr-row { align-items: flex-start !important; gap: 1.25rem !important; }
.ue-qr { padding: .6rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; line-height: 0; }
.ue-qr img, .ue-qr svg { width: 168px !important; height: 168px !important; }
.ue-manual { display: flex; flex-direction: column; gap: .35rem; max-width: 260px; }
.ue-manual code { padding: .45rem .6rem; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: .82rem; letter-spacing: .06em; word-break: break-all; }
.ue-code.form-control { width: 150px; flex: 0 0 150px; text-align: center; font-size: 1.15rem !important; letter-spacing: .35em; font-weight: 700; }

/* ---- Change password, split layout (admin/users/changepassword) ---- */
.cp2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 20px; }
.cp2-side { position: relative; padding: 2rem 1.75rem; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; overflow: hidden; }
.cp2-side::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cp2-shield { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); font-size: 1.5rem; margin-bottom: 1rem; }
.cp2-side h4 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
.cp2-side > p { margin: 0 0 1.25rem; font-size: .82rem; line-height: 1.5; opacity: .9; }
.cp2-account { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.cp2-avatar { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--dr-accent-dark); font-weight: 800; }
.cp2-account strong { display: block; font-size: .86rem; }
.cp2-account span { font-size: .74rem; opacity: .8; }
.cp2-status { display: flex; gap: .6rem; margin-top: .75rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(15, 23, 42, .18); }
.cp2-status > i { font-size: 1.05rem; margin-top: .05rem; }
.cp2-status.is-on > i { color: #86efac; }
.cp2-status.is-off > i { color: #fde68a; }
.cp2-status strong { display: block; font-size: .82rem; }
.cp2-status span, .cp2-status a { font-size: .74rem; color: #fff; opacity: .9; }
.cp2-status a { font-weight: 700; text-decoration: underline; }
.cp2-tips { position: relative; z-index: 1; list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cp2-tips li { display: flex; gap: .55rem; font-size: .78rem; line-height: 1.45; opacity: .95; }
.cp2-tips i { flex: 0 0 auto; margin-top: .1rem; }

.cp2-main { padding: 2rem 1.75rem; background: #fff; }
.cp2-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.cp2-sub { margin: .25rem 0 1.5rem; font-size: .8rem; color: #64748b; }
.cp2-field { margin-bottom: 1rem; }
.cp2-field label { display: block; margin-bottom: .35rem; font-size: .78rem; font-weight: 600; color: #334155; }
.cp2-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.cp2-suggest { border: 0; background: none; padding: 0; font-size: .74rem; font-weight: 700; color: var(--dr-accent, #8C52FF); cursor: pointer; }
.cp2-suggest:hover { text-decoration: underline; }
.cp2-input { position: relative; }
.cp2-input > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .85rem; pointer-events: none; z-index: 1; }
.cp2-input .form-control { height: 44px; padding-left: 2.4rem !important; padding-right: 2.6rem !important; border-radius: 12px; }
.cp2-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; }
.cp2-eye:hover { background: #f1f5f9; color: #475569; }
.cp2-match { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: #16a34a; }
.cp2-match.is-bad { color: #dc2626; }
.cp2-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.cp2-meter span { height: 5px; border-radius: 3px; background: #eef0f5; transition: background-color .2s ease; }
.cp2-meter-label { margin-top: .3rem; font-size: .72rem; font-weight: 600; color: #94a3b8; }
.cp2-divider { display: flex; align-items: center; gap: .6rem; margin: 1.25rem 0 1rem; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.cp2-divider::before, .cp2-divider::after { content: ""; flex: 1; height: 1px; background: #eef0f5; }
.cp2-rules { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.cp2-rules span { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.cp2-rules span.is-ok { background: #dcfce7; color: #166534; }
.cp2-submit { height: 44px; border-radius: 12px; font-weight: 700; }
.cp2-submit:disabled { opacity: .5; }
@media (max-width: 767.98px) { .cp2 { grid-template-columns: 1fr; } .cp2-tips { display: none; } }

/* ===== Dashboard: Needs attention + Top products ===== */
.dr-dash-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 991.98px) { .dr-dash-panels { grid-template-columns: 1fr; } }
.dr-dash-card-header h5 i { color: var(--dr-accent, #4f46e5); margin-right: .35rem; }
.dd-att { padding: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.dd-att-item { --tone: #4f46e5; --tone-bg: #eef2ff; display: flex; align-items: center; gap: .8rem; padding: .7rem .75rem; border-radius: 12px; color: #1e2433; text-decoration: none; transition: background .15s; }
.dd-att-item:hover { background: #f8fafc; color: #1e2433; text-decoration: none; }
.dd-att-item--warn { --tone: #d97706; --tone-bg: #fef3c7; }
.dd-att-item--bad { --tone: #dc2626; --tone-bg: #fee2e2; }
.dd-att-item--info { --tone: #0284c7; --tone-bg: #e0f2fe; }
.dd-att-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--tone-bg); color: var(--tone); font-size: 1.05rem; }
.dd-att-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dd-att-text strong { font-size: .85rem; font-weight: 700; }
.dd-att-text small { font-size: .74rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-att-count { min-width: 2rem; padding: .15rem .55rem; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-weight: 800; font-size: .8rem; text-align: center; }
.dd-att-go { color: #cbd5e1; font-size: .8rem; transition: transform .15s, color .15s; }
.dd-att-item:hover .dd-att-go { color: var(--tone); transform: translateX(2px); }
.dd-clear { padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; }
.dd-clear i { font-size: 2rem; color: #16a34a; background: #dcfce7; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.dd-clear strong { font-size: .92rem; color: #1e2433; }
.dd-clear span { font-size: .8rem; color: #94a3b8; }
.dd-top { list-style: none; margin: 0; padding: .6rem 1.25rem 1rem; display: flex; flex-direction: column; gap: .85rem; }
.dd-top li { display: flex; align-items: center; gap: .75rem; }
.dd-top-rank { width: 22px; font-size: .78rem; font-weight: 800; color: #94a3b8; text-align: center; flex-shrink: 0; }
.dd-top li:first-child .dd-top-rank { color: #d97706; }
.dd-top-img { width: 40px; height: 40px; flex-shrink: 0; }
.dd-top-body { flex: 1; min-width: 0; }
.dd-top-line { display: flex; align-items: baseline; gap: .5rem; }
.dd-top-line strong { flex: 1; min-width: 0; font-size: .83rem; font-weight: 600; color: #1e2433; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-top-line span { font-size: .8rem; font-weight: 700; color: #0f172a; }
.dd-top-bar { height: 6px; border-radius: 999px; background: #f1f5f9; margin: .35rem 0 .2rem; overflow: hidden; }
.dd-top-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dr-accent, #4f46e5), #818cf8); }
.dd-top small { font-size: .72rem; color: #94a3b8; }
#dashtable td { vertical-align: middle; }

/* ===== Reports overview (admin/reports) ===== */
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.rp-title { margin: 0; font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.rp-sub { margin: .2rem 0 0; font-size: .82rem; color: #64748b; display: flex; align-items: center; gap: .45rem; }
.rp-chip { padding: .1rem .55rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 700; }
.rp-year { display: flex; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0 .35rem 0 .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.02); }
.rp-year label { margin: 0; color: var(--dr-accent, #8C52FF); }
.rp-year select.form-control { border: 0 !important; box-shadow: none !important; background-color: transparent; font-weight: 700; font-size: .85rem; min-width: 130px; cursor: pointer; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
@media (max-width: 1199.98px) { .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .rp-kpis { grid-template-columns: 1fr; } }
.rp-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: 0 2px 6px rgba(0,0,0,.02); min-width: 0; }
.rp-kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: .45rem; }
.rp-kpi-icon--purple { background: #f3e8ff; color: #8C52FF; }
.rp-kpi-icon--green { background: #dcfce7; color: #16a34a; }
.rp-kpi-icon--blue { background: #dbeafe; color: #2563eb; }
.rp-kpi-icon--red { background: #fee2e2; color: #dc2626; }
.rp-kpi-label { font-size: .76rem; font-weight: 600; color: #64748b; }
.rp-kpi-value { font-size: 1.45rem; font-weight: 800; color: #0f172a; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-kpi-value i.fa { font-size: 1.1rem !important; }
.rp-delta { font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.rp-delta small { font-weight: 500; color: #94a3b8; font-size: .72rem; }
.rp-delta--up { color: #16a34a; }
.rp-delta--down { color: #dc2626; }
.rp-delta--flat { color: #94a3b8; font-weight: 500; }
.rp-chart { padding: .75rem 1rem .5rem; min-width: 0; }
.rp-chart--donut { padding: 1rem 1.25rem 1.25rem; }
.rp-empty { padding: 3rem 1rem; }
.dr-dash-card-header h5 i { color: var(--dr-accent, #8C52FF); margin-right: .35rem; }
.rp-group { margin: 1.4rem 0 .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.rp-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.rp-report { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1rem 1.1rem; color: #1e2433; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rp-report:hover { border-color: var(--dr-accent, #8C52FF); box-shadow: 0 8px 20px rgba(15,23,42,.06); transform: translateY(-1px); color: #1e2433; text-decoration: none; }
.rp-report .dr-report-link-icon { flex-shrink: 0; }
.rp-report-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.rp-report-text strong { font-size: .87rem; font-weight: 700; }
.rp-report-text small { font-size: .75rem; color: #94a3b8; line-height: 1.35; }
.rp-report-go { color: #cbd5e1; transition: transform .15s, color .15s; }
.rp-report:hover .rp-report-go { color: var(--dr-accent, #8C52FF); transform: translateX(3px); }

/* ===== Seller order lists (seller/orders.php: orders / cancelled / returned) ===== */
.so-lists { display: flex; gap: .5rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.so-lists::-webkit-scrollbar { display: none; }
.so-list { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; font-size: .82rem; font-weight: 700; text-decoration: none; transition: border-color .15s, color .15s, background-color .15s; }
.so-list i { color: #94a3b8; }
.so-list span { min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 800; text-align: center; }
.so-list:hover { border-color: rgba(var(--dr-accent-rgb),.4); color: var(--dr-accent); text-decoration: none; }
.so-list.is-active { background: var(--dr-accent); border-color: var(--dr-accent); color: #fff; }
.so-list.is-active i { color: #fff; }
.so-list.is-active span { background: rgba(255,255,255,.22); color: #fff; }
.so-head { flex-wrap: wrap; gap: .75rem; }
.so-sub { margin: .15rem 0 0; font-size: .78rem; color: #94a3b8; }
#ordertable td { vertical-align: middle; }

/* ===== Seller reviews (seller/reviews.php) ===== */
.sr-stars { display: inline-flex; gap: .1rem; color: #f59e0b; font-size: .8rem; white-space: nowrap; }
.sr-stars .bi-star { color: #cbd5e1; }
.sr-stars--lg { font-size: 1.05rem; gap: .15rem; }
.sr-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr) 220px; gap: 1.5rem; align-items: center; padding: 1.25rem 1.5rem; }
@media (max-width: 991.98px) { .sr-summary { grid-template-columns: 1fr; } }
.sr-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.sr-score strong { font-size: 2.6rem; font-weight: 800; color: #0f172a; line-height: 1; }
.sr-score small { font-size: .78rem; color: #94a3b8; }
.sr-bars { display: flex; flex-direction: column; gap: .35rem; }
.sr-bar { display: grid; grid-template-columns: 42px minmax(0, 1fr) 36px; align-items: center; gap: .6rem; border: 0; background: none; padding: .15rem .35rem; border-radius: 8px; cursor: pointer; font: inherit; }
.sr-bar:hover, .sr-bar.is-active { background: rgba(var(--dr-accent-rgb),.07); }
.sr-bar-label { font-size: .78rem; font-weight: 700; color: #475569; text-align: left; }
.sr-bar-label i { color: #f59e0b; font-size: .7rem; }
.sr-bar-track { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.sr-bar-track span { display: block; height: 100%; border-radius: inherit; background: #f59e0b; }
.sr-bar-count { font-size: .76rem; color: #64748b; text-align: right; }
.sr-kpis { display: grid; gap: .6rem; }
.sr-kpi { display: flex; align-items: baseline; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; }
.sr-kpi strong { font-size: 1.3rem; font-weight: 800; }
.sr-kpi span { font-size: .78rem; font-weight: 600; }
.sr-kpi--warn { background: #fef3c7; color: #b45309; }
.sr-kpi--ok { background: #dcfce7; color: #15803d; }
.sr-rating-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .4rem .3rem .75rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb),.1); color: var(--dr-accent); font-size: .76rem; font-weight: 700; }
.sr-rating-chip button { border: 0; background: rgba(var(--dr-accent-rgb),.15); color: inherit; width: 20px; height: 20px; border-radius: 50%; line-height: 1; cursor: pointer; }
.sr-prod { display: inline-block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.sr-snippet { display: inline-block; max-width: 280px; color: #64748b; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
#reviewtable td { vertical-align: middle; }
.sr-modal-head { align-items: center; }
.sr-modal-img { width: 44px; height: 44px; flex-shrink: 0; }
.sr-m-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.sr-m-title { font-weight: 800; color: #0f172a; margin: 0 0 .35rem; }
.sr-m-text { margin: 0 0 1rem; color: #334155; font-size: .88rem; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.sr-m-foot { display: flex; gap: .5rem; }
.sr-delete { color: #dc2626 !important; }
.sr-delete:hover { background: #fee2e2 !important; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ===== Shared form helpers (also in user-account.css for the customer panel) ===== */
.fm-grid .fm-field--full { grid-column: 1 / -1; }
.fm-optional { font-weight: 500; font-size: .72rem; color: #94a3b8; }

/* ===== Seller bank details (seller/bank_details.php) ===== */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 1199.98px) { .bk-layout { grid-template-columns: 1fr; } .bk-side { order: -1; } }
.bk-layout .sp-card { margin-bottom: 0; }
.bk-hint { display: block; margin-top: .3rem; font-size: .72rem; color: #94a3b8; }
.bk-match { display: block; margin-top: .3rem; font-size: .74rem; font-weight: 700; color: #16a34a; }
.bk-match.is-bad { color: #dc2626; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.bk-secure { font-size: .76rem; color: #64748b; display: inline-flex; align-items: center; gap: .35rem; }
.bk-side { display: flex; flex-direction: column; gap: .9rem; position: sticky; top: 1rem; }
.bk-card { position: relative; overflow: hidden; border-radius: 18px; padding: 1.25rem 1.35rem; color: #fff; background: linear-gradient(135deg, var(--dr-accent-dark), var(--dr-accent, #8C52FF) 55%, var(--dr-accent-2)); box-shadow: 0 14px 30px rgba(var(--dr-accent-rgb),.28); min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.bk-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.bk-card-top { display: flex; align-items: center; gap: .55rem; font-weight: 700; position: relative; z-index: 1; }
.bk-card-top i { font-size: 1.3rem; }
.bk-card-bank { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-card-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; letter-spacing: .12em; margin: 1.1rem 0; position: relative; z-index: 1; word-break: break-all; }
.bk-card-bottom { display: flex; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; }
.bk-card-bottom small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.bk-card-bottom span { display: block; font-size: .85rem; font-weight: 700; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-state { display: flex; gap: .65rem; padding: .85rem 1rem; border-radius: 14px; font-size: .8rem; }
.bk-state i { font-size: 1.1rem; margin-top: .05rem; }
.bk-state strong { display: block; font-size: .85rem; }
.bk-state--ok { background: #dcfce7; color: #15803d; }
.bk-state--warn { background: #fef3c7; color: #b45309; }
.bk-link { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #334155; font-size: .82rem; font-weight: 600; text-decoration: none; }
.bk-link:hover { border-color: var(--dr-accent, #8C52FF); color: var(--dr-accent, #8C52FF); text-decoration: none; }

/* ===== Seller payout history (seller/payout_history.php) ===== */
.ph-balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 1rem; margin-bottom: 1.1rem; }
@media (max-width: 1199.98px) { .ph-balance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ph-balance { grid-template-columns: 1fr; } }
.ph-stat, .ph-bank { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; min-width: 0; }
.ph-stat small, .ph-bank small { display: block; font-size: .74rem; font-weight: 600; color: #64748b; }
.ph-stat strong, .ph-bank strong { display: block; font-size: 1.15rem; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-bank strong { font-size: .92rem; }
.ph-stat-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.ph-stat-icon--indigo { background: #e0e7ff; color: #4f46e5; }
.ph-stat-icon--green { background: #dcfce7; color: #16a34a; }
.ph-stat-icon--amber { background: #fef3c7; color: #d97706; }
.ph-bank { text-decoration: none; color: inherit; transition: border-color .15s; }
.ph-bank > i:first-child { font-size: 1.3rem; color: var(--dr-accent, #8C52FF); }
.ph-bank > i:last-child { color: #cbd5e1; }
.ph-bank:hover { border-color: var(--dr-accent, #8C52FF); text-decoration: none; color: inherit; }
.ph-bank--missing { background: #fffbeb; border-color: #fde68a; }
.ph-bank--missing > i:first-child { color: #d97706; }
.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ph-range { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ph-dates { display: flex; align-items: center; gap: .4rem; }
.ph-dates .form-control { width: 150px; height: 34px; font-size: .8rem; }
.ph-dates span { font-size: .78rem; color: #94a3b8; }
.ph-mode { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #334155; }
.ph-mode i { color: var(--dr-accent, #8C52FF); }
.ph-ref { padding: .15rem .45rem; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: .76rem; }
#payouttable td { vertical-align: middle; }

/* ===== Seller earnings & commission (seller/commission_history.php; reuses .ph-*) ===== */
.ch-totals { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ch-icon--pink { background: #fce7f3; color: #db2777; }
.ch-comm { color: #be185d; font-weight: 600; }
.ch-filters { padding: 0 1.25rem .75rem; }
#commtable td { vertical-align: middle; }

/* ===== Seller profile (seller/basic_profile.php) ===== */
.pf-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; min-width: 0; max-width: 100%; }
.pf-main, .pf-side { min-width: 0; max-width: 100%; }
@media (max-width: 1199.98px) { .pf-layout { grid-template-columns: minmax(0, 1fr); } .pf-side { position: static; } }
.pf-side { position: sticky; top: 1rem; }
.pf-card { padding: 1.5rem 1.25rem 1.25rem; text-align: center; margin-bottom: 0; }
.pf-avatar { position: relative; display: inline-flex; width: 96px; height: 96px; border-radius: 28px; overflow: visible; cursor: pointer; margin: 0 auto .75rem; }
.pf-avatar img, .pf-avatar > span { width: 96px; height: 96px; border-radius: 28px; object-fit: cover; }
.pf-avatar > span { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dr-accent, #8C52FF), var(--dr-accent-2)); color: #fff; font-size: 2.2rem; font-weight: 800; }
.pf-avatar > i { position: absolute; right: -6px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--dr-accent, #8C52FF); box-shadow: 0 4px 12px rgba(15,23,42,.15); }
.pf-name { margin: 0; font-weight: 800; color: #0f172a; word-break: break-word; }
.pf-biz { margin: .15rem 0 0; font-size: .85rem; color: #475569; font-weight: 600; word-break: break-word; }
.pf-id { margin: .2rem 0 .8rem; font-size: .74rem; color: #94a3b8; }
.pf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-bottom: 1rem; }
.pf-chips .pl-status:has(> .bi)::before, .pf-contact .pl-status::before { display: none; }
.pf-facts { text-align: left; margin: 0 0 1rem; border-top: 1px solid #f1f2f6; }
.pf-facts > div { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #f1f2f6; font-size: .8rem; }
.pf-facts dt { font-weight: 600; color: #64748b; }
.pf-facts dd { margin: 0; font-weight: 700; color: #0f172a; text-align: right; word-break: break-word; }
.pf-share { text-align: left; }
.pf-share > span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: .35rem; }
.pf-share > div { display: flex; gap: .4rem; align-items: center; }
.pf-share input { font-size: .74rem; min-width: 0; flex: 1; }
.pf-share #pf-copy { flex-shrink: 0; }
.pf-tabs { margin-bottom: 1rem !important; }
.pf-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; margin-left: .2rem; vertical-align: middle; }
.pf-main .sp-card {
	display: block;
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(0,0,0,.02);
	margin-bottom: 1.1rem;
	overflow: hidden;
	padding: 0;
}
.pf-main .sp-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,.02); border-color: #E2E8F0; }
.pf-main .sp-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1.1rem 1.35rem;
	border-bottom: 1px solid #F1F2F6;
}
.pf-main .sp-card-title { display: flex; align-items: center; gap: .85rem; }
.pf-main .sp-card-title h5 { margin: 0; font-size: 1rem; font-weight: 700; color: #1E2433; }
.pf-main .sp-card-title p { margin: .1rem 0 0; font-size: .8rem; color: #64748B; }
.pf-main .sp-card-icon {
	width: 40px; height: 40px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.15rem;
	background: rgba(var(--dr-accent-rgb),.1); color: var(--dr-accent, #8C52FF);
	flex-shrink: 0;
}
.pf-main .sp-card-body { padding: 1.35rem; }
.pf-main .sp-card-footer {
	display: flex; justify-content: flex-end;
	padding: .9rem 1.35rem; background: #F8FAFC; border-top: 1px solid #F1F2F6;
}
.pf-prefix { display: flex; align-items: stretch; width: 100%; }
.pf-prefix > span { display: inline-flex; align-items: center; padding: 0 .7rem; border: 1px solid #e2e8f0; border-right: 0; border-radius: 10px 0 0 10px; background: #f8fafc; font-family: ui-monospace, monospace; font-weight: 700; color: #475569; white-space: nowrap; flex-shrink: 0; }
.pf-prefix .form-control { border-radius: 0 10px 10px 0 !important; min-width: 0; flex: 1; }
.pf-prefix-msg { display: block; margin-top: .35rem; font-size: .74rem; color: #64748b; }
.pf-prefix-msg.is-ok { color: #15803d; font-weight: 600; }
.pf-prefix-msg.is-bad { color: #dc2626; font-weight: 600; }
.pf-prefix-set code { display: inline-block; padding: .45rem .7rem; border-radius: 10px; background: #f1f5f9; font-weight: 700; color: #0f172a; word-break: break-all; }
.pf-prefix-set small { display: block; margin-top: .35rem; font-size: .72rem; color: #94a3b8; }
.pf-cat-filter { max-width: 320px; margin-bottom: .8rem; }
.pf-cats { display: flex; flex-wrap: wrap; gap: .45rem; max-height: 260px; overflow-y: auto; padding: .15rem; }
.pf-cat { margin: 0; cursor: pointer; }
.pf-cat input { position: absolute; opacity: 0; pointer-events: none; }
.pf-cat span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; color: #475569; transition: all .12s; }
.pf-cat:hover span { border-color: rgba(var(--dr-accent-rgb),.45); }
.pf-cat.is-on span { background: rgba(var(--dr-accent-rgb),.1); border-color: var(--dr-accent, #8C52FF); color: var(--dr-accent, #8C52FF); }
.pf-cat.is-on span::before { content: "\2713"; font-weight: 800; }
.pf-cat input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb),.25); }
.pf-pin { display: flex; align-items: center; gap: .6rem; min-height: 38px; flex-wrap: wrap; }
.pf-contact { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 0; }
.pf-contact + .pf-contact { border-top: 1px solid #f1f2f6; }
.pf-contact-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dr-accent-rgb),.1); color: var(--dr-accent, #8C52FF); }
.pf-contact-body { flex: 1; min-width: 0; }
.pf-contact-body > small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.pf-contact-value { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.pf-contact-value strong { font-size: .92rem; color: #0f172a; word-break: break-all; }
.pf-contact-edit { margin-top: .65rem; max-width: 420px; }
.pf-inline { display: flex; gap: .45rem; margin-top: .5rem; flex-wrap: wrap; align-items: center; }
.pf-inline .pf-code { max-width: 160px; }
.pf-code { letter-spacing: .3em; font-weight: 700; font-size: 1rem !important; }
.pf-resend { margin: 1rem 0 0; font-size: .78rem; color: #64748b; }
.pf-tfa-on { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 14px; background: #dcfce7; color: #15803d; margin-bottom: 1rem; }
.pf-tfa-on i { font-size: 1.4rem; }
.pf-tfa-on strong { display: block; }
.pf-tfa-on span { font-size: .8rem; }
.pf-tfa-off label { font-size: .8rem; font-weight: 600; color: #334155; }
.pf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.pf-steps > li { display: flex; gap: .85rem; }
.pf-steps > li > span { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dr-accent, #8C52FF); color: #fff; font-weight: 800; font-size: .8rem; }
.pf-steps strong { display: block; color: #0f172a; font-size: .88rem; }
.pf-steps small { color: #64748b; font-size: .78rem; }
.pf-qr-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .6rem; }
.pf-qr { padding: .5rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; line-height: 0; }
.pf-qr svg, .pf-qr img { width: 170px; height: 170px; max-width: 100%; height: auto; }
.pf-manual code { display: block; margin-top: .3rem; padding: .45rem .6rem; border-radius: 8px; background: #f1f5f9; font-weight: 700; letter-spacing: .08em; color: #0f172a; word-break: break-all; }
.af-map-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.af-search { position: absolute; top: .6rem; left: .6rem; right: .6rem; z-index: 2; width: auto !important; box-shadow: 0 4px 14px rgba(15,23,42,.12); }
.af-map-found { display: block; margin-top: .4rem; font-size: .76rem; color: #15803d; }
.pac-container { z-index: 100000 !important; }

@media (max-width: 575.98px) {
	.pf-card { padding: 1.25rem 1rem 1rem; }
	.pf-tabs {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		max-width: 100% !important;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
		gap: .25rem;
	}
	.pf-tabs::-webkit-scrollbar { display: none; }
	.pf-tabs .nav-item { flex-shrink: 0; }
	.pf-tabs .nav-link { white-space: nowrap; padding: .55rem .75rem !important; font-size: .8rem !important; }
	.pf-cat-filter { max-width: 100%; }
	.pf-cats { max-height: 220px; }
	.pf-main .sp-card-header, .pf-main .sp-card-body { padding: 1rem; }
	.pf-main .sp-card-footer { padding: .8rem 1rem; }
	.pf-main .sp-card-footer .btn { width: 100%; }
	.pf-contact { flex-wrap: wrap; }
	.pf-contact .pf-change { margin-left: auto; }
	.pf-contact-edit { max-width: 100%; width: 100%; }
	.pf-inline { width: 100%; }
	.pf-inline .pf-code { max-width: 100%; flex: 1; }
	.pf-inline .btn { flex-shrink: 0; }
	.pf-qr-row { flex-direction: column; align-items: flex-start; gap: .75rem; }
	.pf-manual { width: 100%; }
	.pf-manual code { word-break: break-all; }
}

/* Change-password "forgot it?" hint (seller/changepassword.php; customer copy in user-account.css) */
.cp2-forgot { display: block; margin-top: .4rem; font-size: .74rem; color: #94a3b8; }
.cp2-forgot a { color: var(--dr-accent, #8C52FF); font-weight: 600; }

/* ===== Seller "Profile photo" dialog (seller/layout/header.php #profileimage) ===== */
.pi-stage { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.pi-preview { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dr-accent, #8C52FF), var(--dr-accent-2)); box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(var(--dr-accent-rgb),.25), 0 12px 26px rgba(15,23,42,.12); }
.pi-preview img { width: 100%; height: 100%; object-fit: cover; }
.pi-preview > span { color: #fff; font-size: 2.8rem; font-weight: 800; }
.pi-caption { max-width: 100%; font-size: .76rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: 0; padding: 1.25rem 1rem; border: 2px dashed #d8dbe5; border-radius: 14px; background: #fafbfc; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pi-drop:hover, .pi-drop:focus-within, .pi-drop.is-over { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }
.pi-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pi-drop i { font-size: 1.8rem; color: var(--dr-accent, #8C52FF); }
.pi-drop strong { font-size: .85rem; color: #0f172a; }
.pi-drop strong u { color: var(--dr-accent, #8C52FF); text-decoration: none; }
.pi-drop span { font-size: .74rem; color: #94a3b8; }
.pi-error { margin: .6rem 0 0; padding: .55rem .75rem; border-radius: 10px; background: #fee2e2; color: #b91c1c; font-size: .78rem; font-weight: 600; }

/* ---------- Legacy bootstrap-switch (.form-check-input-switch) re-skinned as a pill toggle ----------
   Used by a few older forms (social login, customer/seller status, review approval). The plugin
   and its events stay; only the red/green block look changes to match .fm-switch. */
.bootstrap-switch { border: 1px solid #e2e8f0 !important; border-radius: 999px !important; overflow: hidden; background: #f1f5f9 !important; box-shadow: none !important; vertical-align: middle; }
.bootstrap-switch.bootstrap-switch-focused { border-color: var(--dr-accent, #8C52FF) !important; box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .15) !important; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off { font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .02em; text-transform: none; line-height: 1.4; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary { background: var(--dr-accent, #8C52FF) !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default { background: #f1f5f9 !important; color: #64748b !important; }
.bootstrap-switch .bootstrap-switch-label { background: #fff !important; border-radius: 999px !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .25) !important; margin: 3px 0 !important; }
.bootstrap-switch .bootstrap-switch-label:hover { background: #fff !important; }

/* Profile pages (customer/seller) put the content next to a fixed-width side card in a
   .d-md-flex row; without min-width:0 a wide table grows that column past the card edge. */
.d-md-flex > .w-100 { min-width: 0; }

/* ---- Cache & Cookies (admin/cache_tools) ---- */
.ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.ct-grid > .card { margin-bottom: 0; }
.ct-grid .card-header { display: flex; flex-direction: column; align-items: flex-start; }
.ct-grid .card-title { display: flex; align-items: center; gap: .6rem; margin: 0; }
.ct-grid .ss-sub { margin: .5rem 0 0; }
.ct-grid .btn-block { display: block; width: 100%; }
.ct-stats { list-style: none; margin: 0 0 1rem; padding: 0; }
.ct-stats li { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .84rem; color: #475569; }
.ct-stats b { color: #0f172a; font-weight: 700; }
.ct-stats small { color: #94a3b8; font-weight: 500; margin-left: .25rem; }
.ct-rows { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ct-rows li { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid #e2e8f0; border-radius: 12px; }
.ct-rows form { margin: 0; }
.ct-row-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #475569; }
.ct-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .84rem; color: #1e293b; }
.ct-row-text em { font-style: normal; display: inline-block; min-width: 22px; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent, #8C52FF); font-size: .72rem; text-align: center; }
.ct-row-text small { color: #64748b; font-size: .74rem; }
.ct-note { display: flex; gap: .5rem; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: #f8fafc; color: #475569; font-size: .8rem; line-height: 1.5; }
.ct-note--warn { background: #fffbeb; color: #92400e; }
@media (max-width: 1199.98px) { .ct-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) { .ct-grid { grid-template-columns: 1fr; } }

/* ---- Themes (admin/themes): two storefront themes side by side ---- */

/* Settings > System: maintenance tools and field hints */
.bz-maint-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; }
.bz-maint-tools small { flex-basis: 100%; color: #64748b; font-size: .74rem; }
.bz-field-hint { display: block; margin-top: .35rem; color: #64748b; font-size: .74rem; line-height: 1.45; }
.bz-field-hint code { font-size: .72rem; padding: .05rem .3rem; border-radius: 4px; background: #f1f5f9; color: #334155; }

/* Customer profile: two-factor sign-in card */
.up-2fa-lead { margin: 0 0 1rem; color: #334155; font-size: .86rem; }
.up-2fa-steps { margin: 0 0 1.1rem; padding-left: 1.1rem; color: #475569; font-size: .84rem; line-height: 1.7; }
.up-2fa-setup { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
.up-2fa-qr { flex: 0 0 auto; padding: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; line-height: 0; }
.up-2fa-qr svg, .up-2fa-qr img { display: block; width: 168px; height: 168px; }
.up-2fa-side { flex: 1 1 260px; min-width: 0; }
.up-2fa-side small { display: block; color: #64748b; font-size: .76rem; margin-bottom: .3rem; }
.up-2fa-key { display: inline-block; margin-bottom: 1.1rem; padding: .35rem .6rem; border-radius: 8px; background: #f1f5f9; color: #0f172a; font-size: .85rem; letter-spacing: .06em; word-break: break-all; }
.up-2fa-form label { display: block; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }
.up-2fa-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.up-2fa-row .form-control { flex: 1 1 140px; max-width: 200px; }
.up-2fa-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3em; font-size: 1rem; }
.sp-card-title h5 .pl-status { margin-left: .4rem; vertical-align: middle; font-size: .68rem; }

/* Panel headers (admin, seller, customer): globe button with a "View site" label */
.dr-topbar-icon-btn.dr-topbar-site { width: auto; gap: 7px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dr-topbar-site i { font-size: 15px; }
.dr-topbar-site:hover { border-color: var(--dr-accent, #854ac1); color: var(--dr-accent, #854ac1); }

/* Customer panel header: cart item count on the cart icon */
.dr-topbar-cart { position: relative; margin-left: 12px; } /* room after the "View site" pill */
.dr-topbar-count { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: var(--dr-gradient, linear-gradient(135deg, #854ac1 0%, #ee71ff 100%)); color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; font-variant-numeric: tabular-nums; }

/* Admin > Security > Audit log */
/* Studio layout (the editors' workspace, .bl-studio / .bls-*): stats + filters + retention on the
   left, the log on the right; the DataTable's scroll body is sized by the page script. */
.al-studio .bls-work { grid-template-columns: 300px minmax(0, 1fr); }
.al-studio .bls-work > * { min-width: 0; }
.bls-state.al-match { background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); }
.bls-state.al-alert { background: #fee2e2; color: #b91c1c; }
.bls-state.al-alert i { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.al-side-scroll { padding: 1rem; }
.al-studio.is-fit .al-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.al-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.al-stat { padding: .75rem .85rem; border: 1px solid #eef0f5; border-radius: 14px; background: #fafbfd; }
.al-stat span { display: block; font-size: .74rem; font-weight: 600; color: #64748b; }
.al-stat strong { display: block; margin-top: .2rem; font-size: 1.35rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.al-stat .al-stat-sm { font-size: 1rem; }
.al-stat.is-warn { border-color: #fecaca; background: #fef2f2; }
.al-stat.is-warn strong { color: #b91c1c; }
.al-filters { display: flex; flex-direction: column; }
.al-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.al-filters-head strong { font-size: .9rem; font-weight: 800; color: #0f172a; }
.al-reset { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border: 0; border-radius: 8px; background: transparent; color: #64748b; font-size: .74rem; font-weight: 700; }
.al-reset:hover { background: #f1f5f9; color: #0f172a; }
.al-label { display: block; margin: .85rem 0 .35rem; font-size: .74rem; font-weight: 700; color: #475569; }
.al-label:first-of-type { margin-top: 0; }
.al-types { display: flex; flex-wrap: wrap; gap: .3rem; }
.al-type { margin: 0; cursor: pointer; }
.al-type input { position: absolute; opacity: 0; pointer-events: none; }
.al-type span { display: inline-block; padding: .3rem .65rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: .74rem; font-weight: 700; transition: all .15s; }
.al-type:hover span { border-color: #c4b5fd; }
.al-type input:checked + span { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; color: var(--dr-accent-dark); }
.al-type--bad input:checked + span { border-color: #f87171; background: #fef2f2; color: #b91c1c; }
.al-type input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
.al-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .35rem; }
.al-dates span { font-size: .72rem; color: #94a3b8; }
.al-dates .form-control { padding-left: .5rem !important; padding-right: .3rem !important; font-size: .78rem !important; }
.al-ev { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; }
.al-ev--info { background: #ede9fe; color: var(--dr-accent-dark); }
.al-ev--ok { background: #dcfce7; color: #15803d; }
.al-ev--danger { background: #fee2e2; color: #b91c1c; }
.al-out { font-size: .8rem; color: #334155; }
.al-out.is-bad { color: #b91c1c; font-weight: 600; }
.al-keep { flex: 0 0 auto; margin: 0; padding: .85rem 1rem 1rem; border-top: 1px solid #eef0f5; background: #fafbfd; }
.al-keep .al-label { margin-top: 0; }
.al-keep .al-label i { color: var(--dr-accent, #8C52FF); margin-right: .2rem; }
.al-keep-row { display: flex; gap: .4rem; }
.al-keep-row .form-control { flex: 1; min-width: 0; }
.al-keep-row .btn { border-radius: 10px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.al-keep small { display: block; margin-top: .45rem; font-size: .7rem; line-height: 1.4; color: #94a3b8; }
/* The log card */
.al-canvas-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #eef0f5; }
.al-canvas-head h5 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.al-canvas-head p { margin: .15rem 0 0; font-size: .76rem; color: #64748b; }
.al-search { flex: 0 1 320px; }
.al-table { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0 .5rem; }
.al-table .dataTables_wrapper { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.al-table .al-dt-body { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
/* Wide screens: the rows fill the space between the header and the paging bar (DataTables sets an
   inline height from scrollY; this replaces it with a flex fill). */
.al-studio.is-fit .al-table .dataTables_scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.al-studio.is-fit .al-table .dataTables_scrollHead { flex: 0 0 auto; }
.al-studio.is-fit .al-table .dataTables_scrollBody { flex: 1 1 auto; min-height: 0; height: auto !important; max-height: none !important; }
.al-table .dataTables_scrollHead th { position: relative; background: #fafbfd; }
.al-table .al-dt-foot { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; padding: .7rem .75rem; border-top: 1px solid #eef0f5; }
.al-table .al-dt-foot .dataTables_length, .al-table .al-dt-foot .dataTables_info { margin: 0; padding: 0; font-size: .76rem; color: #64748b; }
.al-table .al-dt-foot .dataTables_paginate { margin: 0 0 0 auto; padding: 0; }
.al-table .dataTables_processing { top: 2.5rem; }
.al-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .35rem 1rem; margin: 0 0 1rem; font-size: .82rem; }
.al-dl dt { color: #64748b; font-weight: 600; }
.al-dl dd { margin: 0; color: #0f172a; word-break: break-word; }
.al-d-h { font-size: .8rem; font-weight: 700; color: #334155; margin: 0 0 .4rem; }
.al-json { max-height: 340px; overflow: auto; margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: .76rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 1199.98px) { .al-studio .bls-work { grid-template-columns: 260px minmax(0, 1fr); } .al-canvas-head p { display: none; } }
@media (max-width: 991.98px) { .al-studio .bls-work { grid-template-columns: minmax(0, 1fr); } .al-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .al-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .al-canvas-head { flex-wrap: wrap; } .al-search { flex-basis: 100%; } .al-table .al-dt-foot .dataTables_paginate { margin-left: 0; } }

/* ---- Image crop dialog (assets/js/image-crop.js) — every image upload in the admin and seller
   panels. Its own overlay (not a Bootstrap modal) so it can open on top of an upload dialog. ---- */
body.ic-open { overflow: hidden; }
.ic-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ic-overlay[hidden] { display: none; }
.ic-dialog { width: min(920px, 100%); max-height: calc(100vh - 2.5rem); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55); overflow: hidden; }
.ic-head { flex: 0 0 auto; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid #eef0f5; }
.ic-icon { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; }
.ic-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ic-heading strong { font-size: 1rem; font-weight: 800; color: #0f172a; }
.ic-file { font-size: .74rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-step:not(:empty) { padding: .2rem .65rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ic-close { flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #f1f5f9; color: #475569; }
.ic-close:hover { background: #e2e8f0; color: #0f172a; }
.ic-stage { flex: 1 1 auto; min-height: 240px; height: min(56vh, 520px); background: #0f172a; }
.ic-stage img { display: block; max-width: 100%; }
.ic-stage .cropper-view-box { outline: 2px solid #fff; outline-color: rgba(255, 255, 255, .9); }
.ic-stage .cropper-line, .ic-stage .cropper-point { background-color: var(--dr-accent, #8C52FF); }
.ic-tools { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: .75rem 1.1rem; border-bottom: 1px solid #eef0f5; }
.ic-ratios { display: flex; flex-wrap: wrap; gap: .3rem; padding: .25rem; border-radius: 12px; background: #f1f5f9; }
.ic-ratio { padding: .35rem .75rem; border: 0; border-radius: 9px; background: transparent; color: #64748b; font-size: .76rem; font-weight: 700; cursor: pointer; }
.ic-ratio:hover { color: #0f172a; }
.ic-ratio.is-on { background: #fff; color: var(--dr-accent-dark); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.ic-actions-mini { display: flex; gap: .3rem; }
.ic-actions-mini button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #475569; }
.ic-actions-mini button:hover { border-color: rgba(var(--dr-accent-rgb), .45); color: var(--dr-accent-dark); }
.ic-foot { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; }
.ic-out { flex: 1; min-width: 0; font-size: .78rem; color: #64748b; }
.ic-out b { color: #0f172a; }
.ic-warn { display: block; color: #b45309; font-size: .72rem; }
.ic-foot .btn { border-radius: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ic-foot .btn-primary { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)) !important; border: 0 !important; }
@media (max-width: 575.98px) {
	.ic-overlay { padding: 0; align-items: stretch; }
	.ic-dialog { max-height: none; border-radius: 0; }
	.ic-stage { height: auto; flex: 1 1 auto; }
	.ic-foot { flex-wrap: wrap; }
	.ic-out { flex-basis: 100%; }
	.ic-foot .btn { flex: 1; }
}

/* ---- Send notification studio (admin/send_notifications) — workspace + audit log table layout;
   composer on the left, Preview / Sent history tabs on the right. ---- */
.al-studio.nt-studio .bls-work { grid-template-columns: 400px minmax(0, 1fr); }
.nt-composer { margin: 0; }
.nt-scroll { padding: 1.1rem 1.15rem; }
.nt-studio.is-fit .nt-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nt-scroll .ip-add-head { margin-bottom: 1rem; }
.nt-head-icon { background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); }
.nt-scroll .ss-ticker-off { margin-bottom: 1rem; }
.nt-scroll .nt-fields .fm-choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.nt-sendbtn { width: 100%; justify-content: center; }
.nt-canvas-head { flex-wrap: wrap; }
.nt-tabs { margin: 0; }
.nt-history-tools { display: flex; align-items: center; gap: .5rem; flex: 0 1 460px; }
.nt-history-tools.d-none { display: none !important; }
.nt-history-tools .al-search { flex: 1 1 auto; }
.nt-delbtn { flex: 0 0 auto; color: #b91c1c !important; }
.nt-pane { display: none; }
.nt-pane.is-on { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Preview: the lock screen, larger and centred, on a soft backdrop. */
.nt-stage { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: radial-gradient(80% 70% at 50% 40%, rgba(var(--dr-accent-rgb), .07), transparent 70%), #fafbfd; }
.nt-studio.is-fit .nt-stage { min-height: 0; overflow-y: auto; }
.nt-stage .nt-preview { position: static; width: 100%; max-width: 360px; }
.nt-stage .nt-lock { min-height: 440px; padding: 2rem 1rem 1.5rem; border-radius: 36px; border: 8px solid #0f172a; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .55); }
.nt-stage .nt-time { margin-bottom: .1rem; font-size: 3.2rem; font-weight: 200; }
.nt-date { margin-bottom: 1.5rem; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.nt-stage-note { display: flex; gap: .4rem; max-width: 360px; margin: 0; font-size: .74rem; color: #94a3b8; }
@media (max-width: 1199.98px) { .al-studio.nt-studio .bls-work { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 991.98px) { .al-studio.nt-studio .bls-work { grid-template-columns: minmax(0, 1fr); } .nt-stage .nt-lock { min-height: 0; } }
@media (max-width: 575.98px) { .nt-history-tools { flex-basis: 100%; } .nt-delbtn span { display: none; } .nt-stage { padding: 1rem; } }

/* ---- Email settings studio (admin/settings_smtp) — same workspace + section list as site settings. ---- */
.em-studio .sx-pane-head .em-presets { flex: 0 0 auto; }
.em-test { display: flex; flex-direction: column; gap: 1rem; }
.em-test .fm-field { margin: 0; }
.em-test-row { display: flex; gap: .5rem; }
.em-test-row .po-input-icon { flex: 1 1 auto; min-width: 0; }
.em-test-row .btn { flex: 0 0 auto; }
.em-test .em-status { max-width: 520px; }
@media (max-width: 1199.98px) { .em-studio .sx-pane-head { flex-wrap: wrap; } .em-studio .sx-pane-head .em-presets { flex-basis: 100%; } }
@media (max-width: 575.98px) { .em-test-row { flex-direction: column; } }

/* ---- Coupons studio (admin/coupons) — audit log workspace + table layout. ---- */
.al-stat.cp-stat--live { border-color: #bbf7d0; background: #f0fdf4; }
.al-stat.cp-stat--live strong { color: #15803d; }
.al-type .cp-n { margin-left: .2rem; font-weight: 800; color: #94a3b8; }
.al-type input:checked + span .cp-n { color: inherit; opacity: .7; }
.cp-notes { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid #eef0f5; }

/* ---- Plugins studio (admin/plugins) — the editors' workspace: installed plugins on the left (each
   with its switch), the chosen plugin's settings on the right. Card bits (.pg-icon, .pg-badges,
   .pg-secret, .pg-qr, .pg-actions) are above. ---- */
.pg-studio .bls-work { grid-template-columns: 340px minmax(0, 1fr); }
.pg-studio .bls-work > * { min-width: 0; }
.bls-state.is-draft i { background: #f59e0b; }
.pg-rail-scroll { padding: .6rem; }
.pg-studio.is-fit .pg-rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pg-group { display: flex; align-items: center; gap: .4rem; margin: .7rem .5rem .35rem; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.pg-group:first-child { margin-top: .2rem; }
.pg-group i { color: var(--dr-accent, #8C52FF); }
.pg-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .25rem; padding: .55rem .6rem; border: 1px solid transparent; border-radius: 14px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pg-row:hover { background: #f8fafc; }
.pg-row:focus-visible { outline: 2px solid rgba(var(--dr-accent-rgb), .5); outline-offset: 1px; }
.pg-row.is-on { background: rgba(var(--dr-accent-rgb), .07); border-color: rgba(var(--dr-accent-rgb), .25); }
.pg-row .pg-icon { width: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
.pg-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-row-text strong { font-size: .84rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-row-text small { font-size: .72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-row.is-setup .pg-row-text small { color: #b45309; }
.pg-row.pg-card--off .pg-row-text strong { color: #94a3b8; }
.pg-studio .fm-switch.pg-switch { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; flex: 0 0 auto; }
/* Settings */
.pg-stage { margin: 0; }
.pg-pane { display: none; }
.pg-pane.is-on { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.pg-pane > form, .pg-pane > .pg-form-static { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.pg-pane-head { position: static; }
.pg-pane-head > div { flex: 1; min-width: 0; }
.pg-icon--lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1.25rem; }
.pg-pane-head .pg-badges { margin-top: .5rem; }
.pg-pane-body { flex: 1 1 auto; padding: 1.25rem 1.5rem 1.5rem; }
.pg-studio.is-fit .pg-pane-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pg-pane-body .pg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; max-width: 900px; padding-top: 0; }
.pg-pane-body .pg-fields > .ss-switches, .pg-pane-body .pg-fields > .fm-field:has(textarea) { grid-column: 1 / -1; }
.pg-pane-body .pg-invoice { margin: 0 0 1.25rem; padding: 0; border: 0; max-width: 900px; }
.pg-nosettings { display: flex; gap: .4rem; margin: 0; font-size: .8rem; color: #64748b; }
.pg-actions--bar { flex: 0 0 auto; margin: 0; padding: .8rem 1.5rem; border-top: 1px solid #eef0f5; background: #fff; }
.pg-actions--bar .btn-primary { margin-left: .5rem; }
.pg-actions--bar .bz-dirty:empty { margin-left: auto; }
.pg-pane[data-pane="banks"] .pg-pane-body { padding-top: 1rem; }
.pg-blank { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
@media (max-width: 1199.98px) { .pg-studio .bls-work { grid-template-columns: 290px minmax(0, 1fr); } .pg-pane-body .pg-fields { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .pg-studio .bls-work { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .pg-pane-head { flex-wrap: wrap; } .pg-pane-body, .pg-actions--bar { padding-left: 1rem; padding-right: 1rem; } }
.pg-actions--bar .pg-remove { margin: 0; color: #dc2626 !important; text-transform: none; letter-spacing: 0; text-decoration: none; }
#pg-oncount b { font-weight: 800; }

/* ---- Admin users as cards (admin/users → site_admin.php). Tone per role: .us-card--accent / info /
   ok / warn / muted (same tones as the role badges and .us-avatar--*). ---- */
.us-board .card-header { border-bottom: 0; }
.us-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding: 0 1.25rem 1rem; border-bottom: 1px solid #eef0f5; }
.us-search { flex: 0 1 300px; }
.us-board > .card-body { background: #fafbfd; }
.us-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.us-card { --us-tone: #8C52FF; --us-tone-soft: rgba(140, 82, 255, .12); position: relative; display: flex; flex-direction: column; border: 1px solid #e8ebf2; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.us-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--us-tone) 35%, #e8ebf2); box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.us-card--info { --us-tone: #3b82f6; --us-tone-soft: rgba(59, 130, 246, .12); }
.us-card--ok { --us-tone: #10b981; --us-tone-soft: rgba(16, 185, 129, .12); }
.us-card--warn { --us-tone: #f59e0b; --us-tone-soft: rgba(245, 158, 11, .14); }
.us-card--muted { --us-tone: #64748b; --us-tone-soft: rgba(100, 116, 139, .12); }
.us-card.is-me { border-color: color-mix(in srgb, var(--us-tone) 45%, #e8ebf2); box-shadow: 0 0 0 3px var(--us-tone-soft); }
/* Tinted strip with the role name; the avatar overlaps its lower edge. */
.us-card-top { display: flex; align-items: flex-start; justify-content: space-between; height: 64px; padding: .7rem .85rem; background: linear-gradient(135deg, var(--us-tone-soft), transparent 75%), radial-gradient(120% 120% at 100% 0%, var(--us-tone-soft), transparent 60%); }
.us-card-role { padding: .2rem .6rem; border-radius: 999px; background: #fff; color: var(--us-tone); font-size: .68rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.us-card-lock { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; color: #64748b; font-size: .75rem; }
.us-card-id { display: flex; flex-direction: column; align-items: center; margin-top: -34px; padding: 0 1rem; text-align: center; }
.us-card-avatar { width: 68px; height: 68px; border-radius: 22px; font-size: 1.6rem; border: 4px solid #fff; box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .5); }
.us-card-id h6 { margin: .6rem 0 0; font-size: 1rem; font-weight: 800; color: #0f172a; line-height: 1.3; word-break: break-word; }
.us-card-id h6 a { color: inherit; }
.us-card-id h6 a:hover { color: var(--us-tone); }
.us-card-id h6 .us-you { vertical-align: 2px; }
.us-card-handle { font-size: .76rem; color: #94a3b8; }
.us-card-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .6rem; }
.us-card-info { list-style: none; margin: 1rem 0 0; padding: .85rem 1rem; border-top: 1px dashed #eef0f5; display: flex; flex-direction: column; gap: .45rem; }
.us-card-info li { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: .78rem; color: #334155; }
.us-card-info li > i { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: .78rem; }
.us-card-info li a, .us-card-info li > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #334155; }
.us-card-info li a:hover { color: var(--us-tone); }
.us-card-foot { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding: .75rem 1rem .9rem; border-top: 1px solid #f1f5f9; }
.us-card-btn { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: .35rem; border-radius: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.us-card-note { flex: 1; display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: #94a3b8; }
/* Disabled accounts: greyed out, still readable. */
.us-card.is-off { background: #fafbfc; }
.us-card.is-off .us-card-avatar, .us-card.is-off .us-card-top { filter: grayscale(1); opacity: .6; }
.us-card.is-off .us-card-id h6 { color: #94a3b8; }
/* "Add user" tile */
.us-card--add { align-items: center; justify-content: center; gap: .35rem; min-height: 320px; padding: 1.5rem; border: 2px dashed #dfe3ec; background: transparent; box-shadow: none; cursor: pointer; text-align: center; }
.us-card--add:hover { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; transform: none; box-shadow: none; }
.us-add-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .4rem; border-radius: 16px; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-size: 1.3rem; }
.us-card--add strong { font-size: .9rem; color: #334155; }
.us-card--add small { font-size: .74rem; color: #94a3b8; }
#us-none { padding: 2.5rem 1rem; }
@media (max-width: 575.98px) { .us-toolbar { padding: 0 1rem 1rem; } .us-search { flex-basis: 100%; } .us-grid { grid-template-columns: 1fr; } .us-card--add { min-height: 160px; } }

/* ---- Coupons as tickets (admin/coupons) — inside the coupons studio's list card. A tinted stub with
   the discount, a perforated cut, then code / details / actions. Expired and inactive ones are muted. ---- */
.cp-scroll { flex: 1 1 auto; padding: 1.1rem 1.25rem 1.25rem; background: #fafbfd; }
.cp-studio.is-fit .cp-scroll, .al-studio.is-fit .cp-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.cp-card { --cp-a: #8C52FF; --cp-b: #5CE1E6; position: relative; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #e8ebf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease; }
.cp-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.cp-card-top { position: relative; padding: 1rem 1.1rem .9rem; border-radius: 19px 19px 0 0; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(135deg, var(--cp-a), var(--cp-b)); }
.cp-card--expired { --cp-a: #94a3b8; --cp-b: #cbd5e1; }
.cp-card--inactive { --cp-a: #64748b; --cp-b: #94a3b8; }
.cp-card-amount { display: flex; align-items: baseline; gap: .35rem; }
.cp-card-amount strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cp-card-amount strong small { font-size: 1.1rem; font-weight: 800; margin: 0 .05rem; }
.cp-card-amount > span { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.cp-card-top .pl-status { position: absolute; top: .9rem; right: .9rem; background: #fff; }
.cp-card-kind { margin-top: .45rem; font-size: .74rem; font-weight: 600; opacity: .92; }
/* Perforation: two notches + a dashed line. */
.cp-card-cut { position: relative; height: 0; border-top: 2px dashed #e8ebf2; margin: 0 14px; }
.cp-card-cut::before, .cp-card-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #fafbfd; border: 1px solid #e8ebf2; }
.cp-card-cut::before { left: -26px; clip-path: inset(0 0 0 50%); }
.cp-card-cut::after { right: -26px; clip-path: inset(0 50% 0 0); }
.cp-card-body { flex: 1; padding: .9rem 1.1rem .4rem; }
.cp-card-code { display: flex; align-items: center; gap: .5rem; }
.cp-card-code .cp-code { flex: 1; min-width: 0; text-align: center; font-size: .95rem; padding: .45rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-card-desc { margin: .55rem 0 0; font-size: .76rem; color: #64748b; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-card-info { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.cp-card-info li { display: flex; align-items: center; gap: .55rem; font-size: .78rem; color: #334155; }
.cp-card-info li > i { flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: .78rem; }
.cp-card-info li > span { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.cp-card-info .pl-tag { font-size: .66rem; }
.cp-card-foot { display: flex; align-items: center; gap: .4rem; padding: .75rem 1.1rem .9rem; border-top: 1px solid #f1f5f9; }
.cp-card--expired .cp-card-code .cp-code, .cp-card--inactive .cp-card-code .cp-code { opacity: .7; }
/* "New coupon" tile (shares the users page's dashed tile look). */
.cp-card.cp-card--add { min-height: 300px; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem; border: 2px dashed #dfe3ec; background: transparent; box-shadow: none; text-align: center; text-decoration: none !important; }
.cp-card.cp-card--add:hover { border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }
.cp-card--add:hover { transform: none; }
#cp-none { padding: 2.5rem 1rem; }
@media (max-width: 575.98px) { .cp-scroll { padding: 1rem; } .cp-grid { grid-template-columns: 1fr; } .cp-card--add { min-height: 150px; } }

/* ---- Customer overview (admin/customers/viewcustprofile → customer_profile.php): header, stat
   tiles, details + settings + recent orders. Scoped to .cpf (data-table's .sp-card is another thing). ---- */
.cpf { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.cpf-hero { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.35rem 1.5rem; border-radius: 22px; border: 1px solid #eef0f5; overflow: hidden;
	background: radial-gradient(120% 160% at 100% 0%, rgba(var(--dr-accent-rgb), .12), transparent 55%), radial-gradient(90% 140% at 0% 100%, rgba(92, 225, 230, .14), transparent 60%), #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -30px rgba(15, 23, 42, .35); }
.cpf-hero-title { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.cpf-hero-title h4 { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; text-transform: capitalize; }
.cpf-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.cpf-pill i { width: 7px; height: 7px; border-radius: 50%; }
.cpf-pill.is-ok { background: #dcfce7; color: #15803d; }
.cpf-pill.is-ok i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.cpf-pill.is-bad { background: #fee2e2; color: #b91c1c; }
.cpf-pill.is-bad i { background: #ef4444; }
.cpf-hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .45rem 0 0; font-size: .8rem; color: #64748b; }
.cpf-hero-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.cpf-hero-meta i { color: var(--dr-accent, #8C52FF); }
.cpf-hero-actions { display: flex; align-items: center; gap: .5rem; }
.cpf-act { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 1rem; transition: all .15s; }
.cpf-act:hover { border-color: rgba(var(--dr-accent-rgb), .45); color: var(--dr-accent-dark); transform: translateY(-1px); }
.cpf-btn { display: inline-flex; align-items: center; gap: .4rem; height: 40px; border-radius: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
/* Stat tiles */
.cpf-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.cpf-stat { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .85rem .9rem; border-radius: 16px; border: 1px solid #eef0f5; background: #fff; color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.cpf-stat:hover { border-color: rgba(var(--dr-accent-rgb), .35); transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .45); }
.cpf-stat > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.cpf-stat small { font-size: .7rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.cpf-stat strong { font-size: 1.15rem; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cpf-stat .cpf-stat-sm { font-size: .92rem; }
.cpf-stat-icon { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(var(--dr-accent-rgb), .12); color: var(--dr-accent-dark); font-size: 1rem; }
.cpf-stat-icon.is-ok { background: #dcfce7; color: #15803d; }
.cpf-stat-icon.is-info { background: #dbeafe; color: #1d4ed8; }
.cpf-stat-icon.is-warn { background: #e0f2fe; color: #0369a1; }
.cpf-stat-icon.is-pink { background: #fce7f3; color: #be185d; }
.cpf-stat-icon.is-amber { background: #fef3c7; color: #b45309; }
/* Columns */
.cpf-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.1rem; align-items: start; }
.cpf-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.cpf .cpf-card { margin: 0; }
.cpf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cpf-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed #eef0f5; }
.cpf-list li:last-child { border-bottom: 0; }
.cpf-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cpf-list small { font-size: .7rem; font-weight: 600; color: #94a3b8; }
.cpf-list li > div > span { font-size: .88rem; font-weight: 600; color: #0f172a; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.cpf-list-icon { flex: 0 0 auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #f1f5f9; color: #64748b; }
.cpf .ss-switches { gap: .6rem; }
.cpf-more { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cpf-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cpf-orders li { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid #eef0f5; border-radius: 12px; transition: border-color .15s; }
.cpf-orders li:hover { border-color: rgba(var(--dr-accent-rgb), .35); }
.cpf-orders li > a { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; }
.cpf-order-id { font-size: .84rem; font-weight: 800; color: var(--dr-accent-dark); }
.cpf-order-meta { font-size: .72rem; color: #94a3b8; }
.cpf-order-amt { font-size: .86rem; font-weight: 800; color: #0f172a; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 1199.98px) { .cpf-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .cpf-hero { padding: 1.1rem; } .cpf-hero-title h4 { font-size: 1.25rem; } .cpf-hero-actions { width: 100%; } .cpf-hero-actions form { flex: 1; } .cpf-btn { width: 100%; justify-content: center; } .cpf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cpf-orders li { flex-wrap: wrap; } }

/* ---- Customer sidebar (layout/customer_sidebar.php — every customer page): a white card with a
   gradient cover, overlapping avatar, status, verification, quick contact and the page menu with
   counts. Menu items keep .ss-nav (head_script.php) for their link / active styles. ---- */
.csb .csb-card { border-radius: 22px; border: 1px solid #eef0f5; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -32px rgba(15, 23, 42, .4); }
.csb-cover { position: relative; display: flex; align-items: flex-start; justify-content: space-between; height: 92px; padding: .75rem; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%), var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); }
.csb-back { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 255, 255, .22); color: #fff !important; backdrop-filter: blur(6px); transition: background .15s; }
.csb-back:hover { background: rgba(255, 255, 255, .35); }
.csb-status { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: #fff; font-size: .7rem; font-weight: 800; }
.csb-status i { width: 7px; height: 7px; border-radius: 50%; }
.csb-status.is-ok { color: #15803d; }
.csb-status.is-ok i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.csb-status.is-bad { color: #b91c1c; }
.csb-status.is-bad i { background: #ef4444; }
.csb-id { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: -42px; padding: 0 1rem 1rem; text-align: center; border-bottom: 1px solid #f1f5f9; }
.csb-avatar { width: 84px; height: 84px; display: inline-flex; align-items: center; justify-content: center; border-radius: 26px; border: 4px solid #fff; background: linear-gradient(135deg, #f5f3ff, #ecfeff); color: var(--dr-accent-dark); font-size: 2rem; font-weight: 800; box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .55); }
.csb-name { margin: .65rem 0 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; text-transform: capitalize; word-break: break-word; }
.csb-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .15rem; font-size: .74rem; color: #94a3b8; }
.csb-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }
.csb-verify { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .7rem; }
.csb-verify span { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.csb-verify .is-ok { background: #dcfce7; color: #15803d; }
.csb-verify .is-bad { background: #fee2e2; color: #b91c1c; }
.csb-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .45rem; width: 100%; margin-top: .9rem; }
.csb-quick a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .5rem; border: 1px solid #e2e8f0; border-radius: 12px; color: #475569; font-size: .76rem; font-weight: 700; text-decoration: none !important; transition: all .15s; }
.csb-quick a:hover { border-color: rgba(var(--dr-accent-rgb), .45); color: var(--dr-accent-dark); background: #faf8ff; }
.csb-nav { padding-top: .75rem; }
.csb-nav .ss-count.is-zero { opacity: .5; }
/* Customer overview: return / cancelled tiles carry a sub line. */
.cpf-stat em { font-style: normal; font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpf-stat-icon.is-ret { background: #ffedd5; color: #c2410c; }
.cpf-stat-icon.is-bad { background: #fee2e2; color: #b91c1c; }
.cpf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .cpf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Customer reviews (customer_reviews.php): rating summary + review cards. Uses .cpf tiles. ---- */
.crv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 260px); gap: 1.5rem; align-items: center; padding: 1.35rem 1.5rem; border-radius: 22px; border: 1px solid #eef0f5;
	background: radial-gradient(120% 160% at 100% 0%, rgba(245, 158, 11, .10), transparent 55%), radial-gradient(90% 140% at 0% 100%, rgba(var(--dr-accent-rgb), .08), transparent 60%), #fff; }
.crv-score { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding-right: 1.5rem; border-right: 1px dashed #e2e8f0; }
.crv-score strong { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #0f172a; }
.crv-score small { font-size: .74rem; color: #94a3b8; }
.crv-stars { display: inline-flex; gap: .1rem; color: #f59e0b; font-size: .8rem; }
.crv-stars .bi-star { color: #e2e8f0; }
.crv-stars--lg { font-size: 1rem; }
.crv-bars { display: flex; flex-direction: column; gap: .35rem; }
.crv-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: .6rem; font-size: .74rem; color: #64748b; }
.crv-bar i { color: #f59e0b; font-size: .65rem; }
.crv-bar b { text-align: right; color: #334155; }
.crv-track { height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.crv-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.crv-mod { display: flex; flex-direction: column; gap: .6rem; }
.crv-head { display: flex; align-items: center; justify-content: space-between; }
.crv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.crv-card { display: flex; flex-direction: column; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid #e8ebf2; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.crv-card:hover { transform: translateY(-2px); border-color: rgba(var(--dr-accent-rgb), .3); box-shadow: 0 20px 40px -28px rgba(15, 23, 42, .45); }
.crv-card.is-wait { border-left: 4px solid #f59e0b; }
.crv-prod { display: flex; align-items: center; gap: .7rem; }
.crv-prod > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crv-prod strong { font-size: .86rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crv-prod small { font-size: .7rem; color: #94a3b8; }
.crv-thumb { flex: 0 0 auto; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #f1f5f9; color: #94a3b8; overflow: hidden; }
.crv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.crv-rate { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; }
.crv-rate .crv-stars { font-size: .95rem; }
.crv-date { font-size: .72rem; color: #94a3b8; }
.crv-title { margin: .55rem 0 0; font-size: .9rem; font-weight: 800; color: #0f172a; }
.crv-text { flex: 1; margin: .35rem 0 0; font-size: .82rem; line-height: 1.55; color: #475569; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.crv-foot { display: flex; align-items: center; gap: .4rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #f1f5f9; }
@media (max-width: 1199.98px) { .crv-summary { grid-template-columns: auto minmax(0, 1fr); } .crv-mod { grid-column: 1 / -1; flex-direction: row; } .crv-mod .cpf-stat { flex: 1; } }
@media (max-width: 575.98px) { .crv-summary { grid-template-columns: 1fr; padding: 1.1rem; } .crv-score { padding: 0 0 1rem; border-right: 0; border-bottom: 1px dashed #e2e8f0; } .crv-mod { flex-direction: column; } .crv-grid { grid-template-columns: 1fr; } }

/* ---- Customer addresses (customer_address.php): summary tiles + address cards. Uses .cpf tiles. ---- */
.cad-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.cad-card { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid #e8ebf2; background: #fff; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cad-card:hover { transform: translateY(-2px); border-color: rgba(var(--dr-accent-rgb), .3); box-shadow: 0 20px 40px -28px rgba(15, 23, 42, .45); }
.cad-card.is-primary { border-color: rgba(var(--dr-accent-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb), .1); }
/* Top strip: a faint map grid behind the pin. */
.cad-top { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background-color: #f8fafc; background-image: linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px); background-size: 16px 16px; border-bottom: 1px solid #eef0f5; }
.cad-card.is-primary .cad-top { background-color: #faf8ff; background-image: linear-gradient(rgba(var(--dr-accent-rgb), .10) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--dr-accent-rgb), .10) 1px, transparent 1px); }
.cad-pin { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: #fff; color: #64748b; box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .35); }
.cad-card.is-primary .cad-pin { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; }
.cad-label { flex: 1; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
.cad-card.is-primary .cad-label { color: var(--dr-accent-dark); }
.cad-gps { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .66rem; font-weight: 700; }
.cad-body { flex: 1; padding: .9rem 1rem .6rem; }
.cad-body h6 { margin: 0; font-size: .98rem; font-weight: 800; color: #0f172a; text-transform: capitalize; }
.cad-biz { display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; font-size: .74rem; color: #64748b; }
.cad-lines { margin: .55rem 0 0; font-size: .82rem; line-height: 1.6; color: #334155; }
.cad-landmark { display: flex; gap: .35rem; margin: .35rem 0 0; font-size: .76rem; color: #64748b; }
.cad-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.cad-chips span { padding: .15rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; }
.cad-phones { list-style: none; margin: .75rem 0 0; padding: .65rem 0 0; border-top: 1px dashed #eef0f5; display: flex; flex-direction: column; gap: .35rem; }
.cad-phones li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.cad-phones i { color: #94a3b8; }
.cad-phones a { font-weight: 700; color: #0f172a; }
.cad-phones a:hover { color: var(--dr-accent-dark); }
.cad-phones small { font-size: .68rem; color: #94a3b8; }
.cad-foot { display: flex; gap: .4rem; padding: .7rem 1rem .9rem; border-top: 1px solid #f1f5f9; }
@media (max-width: 1199.98px) { .cad-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cad-grid { grid-template-columns: 1fr; } }

/* ---- Customer wishlist (customer_wishlist.php): summary tiles (.cad-summary) + product cards. ---- */
.cwl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.cwl-card { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid #e8ebf2; background: #fff; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cwl-card:hover { transform: translateY(-3px); border-color: rgba(var(--dr-accent-rgb), .3); box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.cwl-img { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #cbd5e1; font-size: 2rem; }
.cwl-img { overflow: hidden; min-height: 0; }
.cwl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cwl-off { position: absolute; top: .6rem; left: .6rem; padding: .2rem .55rem; border-radius: 999px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 800; box-shadow: 0 6px 14px -8px rgba(220, 38, 38, .8); }
.cwl-hidden { position: absolute; top: .6rem; right: .6rem; padding: .2rem .55rem; border-radius: 999px; background: rgba(15, 23, 42, .75); color: #fff; font-size: .66rem; font-weight: 700; }
.cwl-card.is-out .cwl-img img { filter: grayscale(.7); opacity: .7; }
.cwl-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem .4rem; }
.cwl-body > strong { font-size: .88rem; font-weight: 800; color: #0f172a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cwl-sub { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.cwl-sub small { font-size: .72rem; color: #94a3b8; }
.cwl-chip { padding: .1rem .5rem; border-radius: 999px; background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); font-size: .68rem; font-weight: 700; }
.cwl-price { display: flex; align-items: baseline; gap: .45rem; margin-top: .15rem; }
.cwl-price b { font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.cwl-price s { font-size: .78rem; color: #94a3b8; }
.cwl-stock { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; }
.cwl-stock i { width: 7px; height: 7px; border-radius: 50%; }
.cwl-stock.is-ok { color: #15803d; }
.cwl-stock.is-ok i { background: #22c55e; }
.cwl-stock.is-bad { color: #b91c1c; }
.cwl-stock.is-bad i { background: #ef4444; }
.cwl-foot { padding: .6rem .9rem .9rem; }
.cwl-foot .us-card-btn { width: 100%; }
.cwl-card.is-gone { border-style: dashed; }
.cwl-card.is-gone .cwl-body small { font-size: .7rem; color: #94a3b8; }
@media (max-width: 575.98px) { .cwl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .cwl-price b { font-size: 1rem; } }

/* ---- Review dialog on admin/reviews (replaces the review page). Stars reuse .crv-stars. ---- */
.rvm-loading { padding: 2rem; text-align: center; color: #94a3b8; font-size: .85rem; }
.rvm-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rvm-prod { display: flex; align-items: center; gap: .8rem; min-width: 0; color: inherit; text-decoration: none !important; }
.rvm-prod.is-static { pointer-events: none; }
.rvm-prod strong { display: block; font-size: .95rem; font-weight: 800; color: #0f172a; }
.rvm-prod:hover strong { color: var(--dr-accent-dark); }
.rvm-prod small { font-size: .72rem; color: #94a3b8; }
.rvm-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #f1f5f9; }
.rvm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rvm-rate { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.rvm-rate b { font-size: 1rem; font-weight: 800; color: #0f172a; }
.rvm-date { margin-left: auto; font-size: .78rem; color: #94a3b8; }
.rvm-title { margin: .75rem 0 0; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.rvm-text { margin: .5rem 0 0; padding: .9rem 1.1rem; border-left: 4px solid rgba(var(--dr-accent-rgb), .45); border-radius: 0 14px 14px 0; background: #fafbfd; font-size: .9rem; line-height: 1.65; color: #334155; white-space: pre-line; max-height: 300px; overflow-y: auto; }
.rvm-text.is-empty { color: #94a3b8; font-style: italic; }
.rvm-cust { display: flex; align-items: center; gap: .65rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed #eef0f5; }
.rvm-cust > span:last-child { display: flex; flex-direction: column; }
.rvm-cust a#rvm-cname { font-size: .88rem; font-weight: 700; }
.rvm-cust small { font-size: .72rem; color: #94a3b8; }
.rvm-foot .btn { border-radius: 10px; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* ---- Seller pages: sidebar money row + profile form bits (sidebar card = "Customer sidebar" .csb-*). ---- */
img.csb-avatar--img { object-fit: cover; padding: 0; background: #fff; }
.ssb-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; width: 100%; margin-top: .9rem; }
.ssb-money > div { display: flex; flex-direction: column; padding: .45rem .3rem; border-radius: 12px; background: #f8fafc; }
.ssb-money small { font-size: .64rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #94a3b8; }
.ssb-money b { font-size: .82rem; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssb-money .is-due { background: #fef3c7; }
.ssb-money .is-due b { color: #b45309; }
.cpf .sp-commission-row { cursor: default; }
.cpf .sp-commission { flex: 0 0 140px; width: 140px; }
.cpf .fm-switch.is-locked { opacity: .75; }
.cpf-formfoot { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.cpf-formfoot .sp-dirty { font-size: .76rem; font-weight: 700; color: #b45309; }

/* ---- Seller orders (seller_orders.php): summary tiles (.cpf) + filters + one card per order. ---- */
.sod-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.sod-search { flex: 0 1 300px; }
.sod-list { display: flex; flex-direction: column; gap: .9rem; }
.sod-card { border-radius: 18px; border: 1px solid #e8ebf2; background: #fff; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.sod-card:hover { border-color: rgba(var(--dr-accent-rgb), .3); box-shadow: 0 18px 40px -30px rgba(15, 23, 42, .45); }
.sod-head { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .85rem 1.1rem; background: #fafbfd; border-bottom: 1px solid #eef0f5; }
.sod-id { display: flex; flex-direction: column; min-width: 110px; }
.sod-id a { font-size: .95rem; font-weight: 800; color: var(--dr-accent-dark); }
.sod-id span { font-size: .72rem; color: #94a3b8; }
.sod-cust { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; }
.sod-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: .8rem; }
.sod-cust > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.sod-cust strong { font-size: .84rem; color: #0f172a; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sod-cust small { font-size: .68rem; color: #94a3b8; }
.sod-pay { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; }
.sod-items { list-style: none; margin: 0; padding: .4rem 1.1rem; }
.sod-items li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed #f1f5f9; }
.sod-items li:last-child { border-bottom: 0; }
.sod-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; background: #f1f5f9; }
.sod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sod-item-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sod-item-name strong { font-size: .84rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sod-item-name small { font-size: .72rem; color: #94a3b8; }
.sod-amt { font-size: .86rem; font-weight: 800; color: #0f172a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sod-amt.is-void { color: #94a3b8; text-decoration: line-through; }
.sod-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 1.1rem .85rem; border-top: 1px solid #f1f5f9; }
.sod-coupon { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 700; }
.sod-total { margin-left: auto; font-size: .78rem; color: #64748b; }
.sod-total b { margin-left: .35rem; font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.sod-open { flex: 0 0 auto !important; }
@media (max-width: 575.98px) { .sod-search { flex-basis: 100%; } .sod-total { margin-left: 0; } .sod-open { width: 100%; } }

/* ---- Seller reviews (seller_reviews.php): reuses the customer review cards (.crv-*) + a per-product list. ---- */
.srv-prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem 1rem; }
.srv-prods li { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 12px; border: 1px solid #f1f5f9; }
.srv-prods .crv-thumb { width: 38px; height: 38px; border-radius: 10px; }
.srv-prod-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srv-prod-name strong { font-size: .8rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-prod-name small { font-size: .68rem; color: #94a3b8; }
.srv-prod-avg { min-width: 30px; text-align: right; font-size: .85rem; font-weight: 800; color: #15803d; }
.srv-prod-avg.is-low { color: #b91c1c; }
.srv-by { display: flex; align-items: center; gap: .45rem; margin-top: .7rem; font-size: .78rem; }
.srv-by a { font-weight: 700; text-transform: capitalize; }
.srv-by small { font-size: .68rem; color: #94a3b8; }
.srv-avatar { width: 26px; height: 26px; border-radius: 8px; font-size: .7rem; }

/* ---- Seller bank details (seller_bank_details.php): card visual + copy list + payouts. ---- */
.sbk-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.sbk-card { position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding: 1.4rem 1.5rem; border-radius: 22px; color: #fff; overflow: hidden; aspect-ratio: 1.75; max-width: 460px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .25), transparent 50%), radial-gradient(90% 120% at 0% 100%, rgba(0, 0, 0, .18), transparent 60%), var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6));
	box-shadow: 0 26px 50px -28px rgba(var(--dr-accent-rgb), .9); }
.sbk-card-top { display: flex; align-items: center; justify-content: space-between; }
.sbk-bank { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; font-weight: 800; letter-spacing: .01em; }
.sbk-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.sbk-number { display: flex; align-items: center; gap: .6rem; margin-top: auto; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; }
.sbk-reveal { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .22); color: #fff; }
.sbk-reveal:hover { background: rgba(255, 255, 255, .35); }
.sbk-card-foot { display: flex; justify-content: space-between; gap: 1rem; }
.sbk-card-foot small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.sbk-card-foot strong { font-size: .9rem; font-weight: 800; text-transform: uppercase; }
.sbk-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sbk-money > div { display: flex; flex-direction: column; padding: .75rem .8rem; border-radius: 14px; background: #f8fafc; }
.sbk-money small { font-size: .7rem; font-weight: 600; color: #94a3b8; }
.sbk-money strong { font-size: 1.05rem; font-weight: 800; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbk-money .is-due { background: #fef3c7; }
.sbk-money .is-due strong { color: #b45309; }
.sbk-warn { display: flex; gap: .45rem; margin: .9rem 0 0; padding: .65rem .8rem; border-radius: 12px; background: #fffbeb; color: #92400e; font-size: .78rem; }
.sbk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.sbk-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 1199.98px) { .sbk-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) { .sbk-card { aspect-ratio: auto; padding: 1.1rem; } .sbk-number { font-size: 1.05rem; } .sbk-money { grid-template-columns: 1fr; } }

/* ---- Delivery executive edit (delivery_executive_edit.php): overview + profile / 2-step / password. ---- */
.dx-hero-id { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.dx-back { flex: 0 0 auto; background: #f1f5f9 !important; color: #475569 !important; }
.dx-avatar { position: relative; flex: 0 0 auto; width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-size: 1.5rem; font-weight: 800; box-shadow: 0 12px 24px -14px rgba(var(--dr-accent-rgb), .9); }
.dx-avatar i { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; background: #94a3b8; }
.dx-avatar i.is-on { background: #22c55e; }
.dx-online { padding: .2rem .6rem; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: .72rem; font-weight: 700; }
.dx-online.is-on { background: #dcfce7; color: #15803d; }
.dx-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dx-fields .fm-field { margin: 0; }
.dx-fields .fm-field > label { display: flex; align-items: baseline; gap: .35rem; font-size: .78rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.dx-fields .fm-count { margin-left: auto; }
.dx-span { grid-column: 1 / -1; }
.dx-note { margin: 0 0 .9rem; font-size: .8rem; color: #64748b; }
.dx-qr { margin-top: .4rem; }
.dx-code-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.dx-code-row .ue-code { flex: 0 0 160px; letter-spacing: .3em; text-align: center; font-size: 1.05rem !important; }
.dx .sp-card-header .cpf-pill { margin-left: auto; }
@media (max-width: 1199.98px) { .dx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dx-fields { grid-template-columns: 1fr; } .dx-hero-id { align-items: flex-start; } }

/* ---- Media library studio (admin/media_gallery): upload panel + library grid (scrolls inside). The
   grid's own tile styles are in assets/css/media-gallery.css (.dr-media-*). ---- */
.mg-studio .bls-work { grid-template-columns: 320px minmax(0, 1fr); }
.mg-studio .bls-work > * { min-width: 0; }
.bls-state.mg-pill { background: #f1f5f9; color: #475569; }
.bls-state.mg-pill i { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
.mg-side { margin: 0; }
.mg-side-scroll { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.mg-studio.is-fit .mg-side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mg-studio .mg-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 230px; padding: 1.5rem 1rem; border: 2px dashed #d8dce8 !important; border-radius: 20px; background: radial-gradient(90% 80% at 50% 0%, rgba(var(--dr-accent-rgb), .07), transparent 70%), #fafbfd; transition: border-color .15s, background-color .15s, transform .15s; }
.mg-studio .mg-drop:hover, .mg-studio .mg-drop.file_drag_over { border-color: var(--dr-accent, #8C52FF) !important; background-color: #faf8ff; transform: translateY(-1px); }
.mg-drop-icon { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .35rem; border-radius: 18px; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-size: 1.5rem; box-shadow: 0 14px 28px -16px rgba(var(--dr-accent-rgb), .9); }
.mg-loading-wrap { text-align: center; }
.mg-notes { padding-top: 1rem; border-top: 1px solid #eef0f5; }
.mg-canvas { margin: 0; }
.mg-scroll { flex: 1 1 auto; padding: 1rem 1.25rem 1.25rem; }
.mg-studio.is-fit .mg-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mg-studio .dr-media-toolbar { margin-bottom: 1rem; }
.mg-studio .dr-media-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.mg-studio .dr-media-item { border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mg-studio .dr-media-item:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(15, 23, 42, .5); }
.mg-studio .dr-media-thumb-wrap { height: auto; aspect-ratio: 1; }
.mg-studio .dr-media-type { top: auto; bottom: 2.4rem; }
/* Preview dialog */
.mgp-stage { display: flex; align-items: center; justify-content: center; min-height: 260px; max-height: 65vh; border-radius: 16px; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 20px 20px; overflow: hidden; }
.mgp-stage img, .mgp-stage video { max-width: 100%; max-height: 65vh; object-fit: contain; display: block; }
#mgp-path { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem !important; word-break: break-all; }
@media (max-width: 991.98px) { .mg-studio .bls-work { grid-template-columns: minmax(0, 1fr); } .mg-studio .mg-drop { min-height: 150px; } }
@media (max-width: 575.98px) { .mg-studio .dr-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bls-state.mg-pill { display: none; } }
.mg-studio .mg-drop::before, .mg-studio .mg-drop::after { content: none !important; display: none !important; }
/* Media library: infinite scroll (the numbered pager is replaced by a "loading more / all loaded" line). */
.mg-studio .dr-media-pager { display: none !important; }
.mg-more { margin: 1.25rem 0 .25rem; text-align: center; font-size: .78rem; font-weight: 600; color: #94a3b8; }
#mg-sentinel { height: 1px; }

/* ---- Product attributes as cards (admin/product_attributes) — inside the coupons studio layout
   (.cp-scroll / .cp-grid). A type tile + name, how it shows, and the category values as chips. ---- */
.pa-card { --pa: #8C52FF; --pa-soft: rgba(140, 82, 255, .1); position: relative; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #e8ebf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.pa-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pa), rgba(255, 255, 255, 0)); }
.pa-card:hover { transform: translateY(-3px); border-color: #dfe3ec; box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.pa-card--t1 { --pa: #8C52FF; --pa-soft: rgba(140, 82, 255, .1); }
.pa-card--t2 { --pa: #ec4899; --pa-soft: rgba(236, 72, 153, .1); }
.pa-card--t3 { --pa: #0ea5e9; --pa-soft: rgba(14, 165, 233, .1); }
.pa-card--t4 { --pa: #f59e0b; --pa-soft: rgba(245, 158, 11, .12); }
.pa-card-head { display: flex; align-items: flex-start; gap: .75rem; padding: 1.15rem 1.1rem .2rem; }
.pa-card-icon { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--pa-soft); color: var(--pa); font-size: 1.05rem; }
.pa-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; padding-top: .1rem; }
.pa-card-title a { font-size: .98rem; font-weight: 700; color: #0f172a; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-card-title a:hover { color: var(--pa); }
.pa-card-title small { font-size: .74rem; color: #64748b; font-weight: 600; }
.pa-builtin { color: #475569; }
.pa-builtin i { font-size: .7rem; }
.pa-card-head .pl-status { flex: 0 0 auto; white-space: nowrap; }
.pa-card-info { flex: 1; margin: .9rem 0 0; padding: 0 1.1rem; }
.pa-values { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 1.1rem 0; padding: .7rem; border-radius: 14px; background: #fafbfd; border: 1px dashed #e5e8f0; }
.pa-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; background: #fff; border: 1px solid #e8ebf2; font-size: .72rem; font-weight: 600; color: #334155; }
.pa-chip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .15); }
.pa-chip--more { background: var(--pa-soft); border-color: transparent; color: var(--pa); }
.pa-values-none { font-size: .74rem; color: #94a3b8; }
.pa-card-foot { margin-top: 1rem; }
.pa-card-foot .pl-icon-btn--danger { margin-left: auto; }
.pa-card.pa-card--add { min-height: 210px; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem; border: 2px dashed #dfe3ec; background: transparent; box-shadow: none; text-align: center; text-decoration: none !important; }
.pa-card--add::before { content: none; }
.pa-card.pa-card--add:hover { transform: none; border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }
#pa-none { padding: 2.5rem 1rem; }
@media (max-width: 575.98px) { .pa-card--add { min-height: 140px; } }

/* ---- Sub categories as cards (admin/child_sub_category) — inside the coupons studio layout
   (.cp-scroll / .cp-grid). Name + slug, Group › Category path, and the search listing's fill level.
   Value chips reuse .pa-chip from the attributes cards. ---- */
.cs-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #e8ebf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow: hidden; }
.cs-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--dr-gradient, linear-gradient(90deg, #8C52FF, #5CE1E6)); }
.cs-card--warn::before { background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, .15)); }
.cs-card:hover { transform: translateY(-3px); border-color: #dfe3ec; box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.cs-card-head { display: flex; align-items: flex-start; gap: .75rem; padding: 1.15rem 1.1rem 0; }
.cs-card-icon { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(var(--dr-accent-rgb, 140, 82, 255), .1); color: var(--dr-accent, #8C52FF); font-size: 1.1rem; font-weight: 800; }
.cs-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; padding-top: .1rem; }
.cs-card-title a { font-size: .98rem; font-weight: 700; color: #0f172a; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cs-card-title a:hover { color: var(--dr-accent, #8C52FF); }
.cs-card-title small { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .7rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-card-head .pl-status { flex: 0 0 auto; white-space: nowrap; }
.cs-path { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .85rem 1.1rem 0; }
.cs-path > i { font-size: .7rem; color: #cbd5e1; }
.cs-seo { flex: 1; display: flex; flex-direction: column; gap: .45rem; margin: .85rem 1.1rem 0; padding: .75rem .8rem; border-radius: 14px; background: #fafbfd; border: 1px solid #eef0f5; }
.cs-seo-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .1rem; }
.cs-seo-head strong { font-size: .76rem; color: #334155; }
.cs-seo-head strong i { margin-right: .2rem; color: #94a3b8; }
.cs-meter { display: grid; grid-template-columns: 74px 1fr 46px; align-items: center; gap: .5rem; font-size: .7rem; color: #64748b; }
.cs-meter i { height: 6px; border-radius: 99px; background: #eef0f5; overflow: hidden; }
.cs-meter b { display: block; height: 100%; border-radius: inherit; background: var(--dr-gradient, linear-gradient(90deg, #8C52FF, #5CE1E6)); }
.cs-meter em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.cs-keys { display: flex; flex-wrap: wrap; gap: .3rem; padding-top: .2rem; }
.cs-card-foot { margin-top: 1rem; }
.cs-card-foot .pl-icon-btn--danger { margin-left: auto; }
.cs-card.cs-card--add { min-height: 230px; align-items: center; justify-content: center; gap: .35rem; padding: 1.5rem; border: 2px dashed #dfe3ec; background: transparent; box-shadow: none; text-align: center; text-decoration: none !important; }
.cs-card--add::before { content: none; }
.cs-card.cs-card--add:hover { transform: none; border-color: var(--dr-accent, #8C52FF); background: #faf8ff; }
#cs-none { padding: 2.5rem 1rem; }
@media (max-width: 575.98px) { .cs-card--add { min-height: 140px; } }
/* No side panel: one full-width card; the filters are dropdowns beside the search box in its head. */
.cs-studio .bls-work.cs-work, .pa-studio .bls-work.cs-work { grid-template-columns: minmax(0, 1fr); }
.cs-studio .al-canvas-head, .pa-studio .al-canvas-head { flex-wrap: wrap; gap: .75rem 1rem; }
.cs-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; flex: 1 1 520px; }
.cs-filters .al-search { flex: 1 1 220px; max-width: 300px; }
.cs-select { position: relative; flex: 0 1 200px; min-width: 150px; }
.cs-select > i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .85rem; pointer-events: none; }
.cs-select select.form-control { height: auto; padding: .55rem 2rem .55rem 2.1rem !important; border-radius: 12px; font-size: .8rem; font-weight: 600; color: #334155; cursor: pointer; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right .75rem center; }
.cs-select select.form-control:focus { border-color: var(--dr-accent, #8C52FF); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb, 140, 82, 255), .12); }
.cs-select.is-on select.form-control { border-color: var(--dr-accent, #8C52FF); background-color: #faf8ff; color: var(--dr-accent-dark, #6d28d9); }
.cs-select.is-on > i { color: var(--dr-accent, #8C52FF); }
.cs-filters .al-reset { margin-left: 0; }
@media (max-width: 575.98px) { .cs-filters { flex-basis: 100%; } .cs-select { flex: 1 1 calc(50% - .25rem); min-width: 0; } .cs-filters .al-search { flex-basis: 100%; max-width: none; } }

/* ---- Sellers as cards (admin/sellers → sellers_information.php + sellers_cards.php): one full-width
   card with dropdown filters (.cs-filters), cards loaded a page at a time. Stripe tone = status. ---- */
.sl-studio .bls-work.cs-work { grid-template-columns: minmax(0, 1fr); }
.sl-studio .al-canvas-head { flex-wrap: wrap; gap: .75rem 1rem; }
.bls-state.sl-pending { background: #fef3c7; color: #b45309; }
.bls-state.sl-pending i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.sl-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.sl-card { --sl: #10b981; position: relative; display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid #e8ebf2; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--sl), rgba(255, 255, 255, 0)); }
.sl-card--warn { --sl: #f59e0b; }
.sl-card--bad { --sl: #ef4444; }
.sl-card:hover { transform: translateY(-3px); border-color: #dfe3ec; box-shadow: 0 22px 44px -28px rgba(15, 23, 42, .45); }
.sl-card-head { display: flex; align-items: flex-start; gap: .75rem; padding: 1.15rem 1rem 0 1.1rem; }
.sl-avatar { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 18px -10px rgba(var(--dr-accent-rgb, 140, 82, 255), .8); }
.sl-avatar--img { background: #f1f5f9; box-shadow: none; border: 1px solid #eef0f5; }
.sl-avatar--img img { width: 100%; height: 100%; object-fit: cover; }
.sl-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; padding-top: .15rem; }
.sl-card-title a { font-size: .98rem; font-weight: 700; color: #0f172a; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-card-title a:hover { color: var(--dr-accent, #8C52FF); }
.sl-card-title small { font-size: .72rem; color: #64748b; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-card-menu { flex: 0 0 auto; }
.sl-tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: .8rem 1.1rem 0; }
.sl-contact { margin: .8rem 0 0; padding: 0 1.1rem; }
.sl-contact li > span { flex-wrap: nowrap; }
.sl-contact a { min-width: 0; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-contact a:hover { color: var(--dr-accent, #8C52FF); }
.sl-contact .cu-verify { flex: 0 0 auto; }
.sl-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .9rem 1.1rem 0; }
.sl-nums > a, .sl-nums > span { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .3rem; border-radius: 12px; background: #fafbfd; border: 1px solid #eef0f5; text-decoration: none !important; transition: border-color .15s, background-color .15s; }
.sl-nums > a:hover { border-color: #c4b5fd; background: #faf8ff; }
.sl-nums strong { font-size: .95rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-nums small { font-size: .68rem; font-weight: 600; color: #64748b; }
.sl-card-foot { margin-top: 1rem; }
#sl-none { padding: 2.5rem 1rem; }
.sl-studio .mg-more .mg-spinner { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: .3rem; border-radius: 50%; border: 2px solid rgba(var(--dr-accent-rgb, 140, 82, 255), .25); border-top-color: var(--dr-accent, #8C52FF); animation: sl-spin .8s linear infinite; }
@keyframes sl-spin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) { .sl-grid { grid-template-columns: 1fr; } }
/* Delivery executives reuse the seller cards (.sl-*): grey stripe when offline, online dot on the avatar. */
.sl-card--idle { --sl: #94a3b8; }
.dxc-avatar { position: relative; overflow: visible; }
.dxc-avatar > i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; border: 3px solid #fff; }
.dxc-avatar > i.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.sl-nums > .is-due { border-color: #fde68a; background: #fffbeb; }
.sl-nums > .is-due strong { color: #b45309; }
.sl-nums strong .fa { font-size: .8em; }
.sl-card-foot .us-card-btn { flex: 1; }
/* Customers reuse the seller cards (.sl-*), plus a select box for "Delete selected". */
.cuc-check { flex: 0 0 auto; margin: .7rem 0 0; cursor: pointer; }
.cuc-check input { position: absolute; opacity: 0; pointer-events: none; }
.cuc-check span { display: block; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cbd5e1; background: #fff; transition: all .15s; }
.cuc-check:hover span { border-color: var(--dr-accent, #8C52FF); }
.cuc-check input:checked + span { border-color: var(--dr-accent, #8C52FF); background: var(--dr-accent, #8C52FF) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cuc-check input:focus-visible + span { outline: 2px solid var(--dr-accent, #8C52FF); outline-offset: 2px; }
.sl-card.is-selected { border-color: var(--dr-accent, #8C52FF); box-shadow: 0 0 0 3px rgba(var(--dr-accent-rgb, 140, 82, 255), .15); }
.cuc-selbar { display: inline-flex; align-items: center; gap: .4rem; padding-right: .5rem; margin-right: .1rem; border-right: 1px solid #e2e8f0; }
.cuc-selbar.d-none { display: none !important; }
.cuc-selbar > span { font-size: .78rem; font-weight: 700; color: var(--dr-accent-dark, #6d28d9); white-space: nowrap; }
@media (max-width: 575.98px) { .cuc-selbar > span { display: none; } }
/* Categories (admin/sub_category) reuse the sub category cards (.cs-*), compact: thumbnail, tags, counts. */
.sc-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sc-card--off { opacity: .8; }
.sc-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1rem 0 1.1rem; }
.sc-thumb { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; border: 1px solid #eef0f5; color: #cbd5e1; font-size: 1.2rem; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-card--off .sc-thumb img { filter: grayscale(.8); }
.sc-head .pl-status { flex: 0 0 auto; align-self: flex-start; }
.sc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .75rem 1.1rem 0; }
.sc-sort { padding: .15rem .5rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; }
.sc-counts { flex: 1; display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: .7rem 0 0; padding: 0 1.1rem; font-size: .76rem; color: #64748b; }
.sc-counts b { color: #0f172a; font-weight: 800; }
.sc-card .cs-card-foot { margin-top: .85rem; padding-top: .65rem; padding-bottom: .75rem; }
.sc-grid .cs-card--add { min-height: 0; }
.sc-thumb--letter { background: rgba(var(--dr-accent-rgb, 140, 82, 255), .1); border-color: transparent; color: var(--dr-accent, #8C52FF); font-size: 1.1rem; font-weight: 800; }
.sc-arrow { font-size: .7rem; color: #cbd5e1; }
.sc-card > :nth-last-child(2) { margin-bottom: .85rem; }
.sc-card .cs-card-foot { margin-top: auto !important; }
.sc-thumb--logo { background: #fff; }
.sc-thumb--logo img { object-fit: contain; padding: 4px; }

/* ---- Email content editor (Settings > Email > Email content, settings_smtp.php): email list,
   editor and a live preview of the email (iframe, sample data). ---- */
.et-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem; padding: 1.25rem 1.5rem 1.75rem; align-items: start; }
.et-list { display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 84px; }
.et-group { margin: .8rem 0 .25rem; padding: 0 .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.et-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .55rem; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; transition: background-color .15s, border-color .15s; }
.et-item:hover { background: #f8fafc; }
.et-item.is-on { background: #faf8ff; border-color: rgba(var(--dr-accent-rgb, 140, 82, 255), .35); }
.et-item-icon { flex: 0 0 auto; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f1f5f9; color: #64748b; font-size: .9rem; }
.et-item.is-on .et-item-icon { background: var(--dr-gradient, linear-gradient(135deg, #8C52FF, #5CE1E6)); color: #fff; }
.et-item-text { min-width: 0; display: flex; flex-direction: column; }
.et-item-text strong { font-size: .8rem; font-weight: 700; color: #0f172a; line-height: 1.25; }
.et-item-text small { font-size: .68rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-item.is-off .et-item-text strong { color: #94a3b8; text-decoration: line-through; }
.et-item.is-off .et-item-state { color: #dc2626; }
.et-item--design { margin-bottom: .2rem; }
.et-item--design .et-item-text small { white-space: normal; }
.et-edit { min-width: 0; }
.et-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.et-head-text { flex: 1; min-width: 0; }
.et-head h6 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.et-head p { margin: .2rem 0 0; font-size: .78rem; color: #64748b; }
.et-switch { flex: 0 0 auto; margin: 0; gap: .5rem; padding: .35rem .6rem; border: 1px solid #e8ebf2; border-radius: 12px; }
.et-color { display: flex; align-items: center; gap: .5rem; }
.et-color input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; }
.et-color .form-control { max-width: 130px; font-family: SFMono-Regular, Menlo, Consolas, monospace; }
.et-pane textarea.form-control { line-height: 1.55; }
.et-tags { display: flex; align-items: flex-start; gap: .5rem; margin: .25rem 0 1rem; font-size: .74rem; color: #64748b; }
.et-tags > span { padding-top: .3rem; font-weight: 700; }
#et-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.et-tag { padding: .22rem .55rem; border: 1px dashed #c4b5fd; border-radius: 8px; background: #faf8ff; color: var(--dr-accent-dark, #6d28d9); font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; font-weight: 600; }
.et-tag:hover { border-style: solid; background: #f3edff; }
.et-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding-top: 1rem; border-top: 1px solid #eef0f5; }
.et-saved { margin-right: auto; font-size: .76rem; font-weight: 600; color: #16a34a; }
.et-saved.is-dirty { color: #d97706; }
.et-reset { color: #64748b !important; font-size: .8rem; }
.et-preview { position: sticky; top: 84px; display: flex; flex-direction: column; border: 1px solid #e8ebf2; border-radius: 16px; overflow: hidden; background: #f3f4f8; }
.et-preview-head { padding: .7rem .9rem; background: #fff; border-bottom: 1px solid #eef0f5; }
.et-preview-label { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.et-preview-label small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.et-preview-subject { margin-top: .25rem; font-size: .84rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-preview-subject i { color: #94a3b8; margin-right: .2rem; }
#et-frame { width: 100%; height: 640px; border: 0; display: block; background: #f3f4f8; }
@media (max-width: 1799.98px) { .et-wrap { grid-template-columns: 230px minmax(0, 1fr); } .et-preview { grid-column: 2; position: static; } }
@media (max-width: 991.98px) { .et-wrap { grid-template-columns: minmax(0, 1fr); padding: 1rem; } .et-list { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .35rem; padding-bottom: .35rem; } .et-group { display: none; } .et-item { flex: 0 0 auto; width: auto; max-width: 220px; border-color: #eef0f5; } .et-item-text small { display: none; } .et-preview { grid-column: auto; } #et-frame { height: 560px; } }

/* ==========================================================================
   Database Update (admin/database_update.php): status hero, count tiles,
   missing / different / extra lists with the SQL each fix runs.
   ========================================================================== */
.du-hero { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 1.4rem 1.5rem; border: 0 !important; border-radius: 18px !important; color: #fff; background: var(--dr-hero-gradient); box-shadow: 0 14px 32px -18px rgba(var(--dr-accent-rgb), .8); }
.du-hero-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.du-hero-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.du-hero--ok .du-hero-icon { color: #6ee7b7; }
.du-hero--warn .du-hero-icon { color: #fcd34d; }
.du-hero-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: #fff; }
.du-hero-sub { margin: .2rem 0 0; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.du-meta { display: grid; grid-template-columns: repeat(4, auto); gap: .35rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.du-meta span { display: block; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .6); }
.du-meta b { display: block; font-size: .86rem; color: #fff; }

.du-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.du-stat { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 14px; background: #fff; border: 1px solid #eef0f4; }
.du-stat > i { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; background: #f1f5f9; color: #94a3b8; }
.du-stat b { display: block; font-size: 1.2rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.du-stat span { display: block; font-size: .72rem; font-weight: 600; color: #64748b; }
.du-stat.is-on { border-color: rgba(var(--dr-accent-rgb), .3); }
.du-stat.is-on > i { background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent); }
.du-stat--warn.is-on > i { background: #fff7ed; color: #ea580c; }
.du-stat--info > i { background: #f0f9ff; color: #0284c7; }

.du-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.du-side { display: flex; flex-direction: column; gap: 1rem; }
.du-side .card { margin-bottom: 0; }

.du-table { border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; }
.du-table + .du-table { margin-top: .75rem; }
.du-table-head { display: flex; align-items: center; gap: .45rem; padding: .55rem .85rem; background: #f8fafc; border-bottom: 1px solid #eef0f4; font-size: .82rem; font-weight: 800; color: #0f172a; }
.du-table-head i { color: var(--dr-accent); }
.du-badge { margin-left: auto; padding: .1rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.du-badge--new { background: rgba(var(--dr-accent-rgb), .1); color: var(--dr-accent-dark); }

.du-list { margin: 0; padding: 0; list-style: none; }
.du-row { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; padding: .55rem .85rem; border-top: 1px solid #f3f4f7; font-size: .8rem; }
.du-list > .du-row:first-child { border-top: 0; }
.du-kind { flex: 0 0 auto; padding: .08rem .45rem; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.du-name { font-weight: 700; color: #0f172a; word-break: break-all; }
.du-name em { font-style: normal; color: var(--dr-accent-dark); }
.du-def { flex: 1 1 220px; min-width: 0; padding: .15rem .45rem; border-radius: 6px; background: #f8fafc; color: #475569; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-sql { margin-left: auto; }
.du-sql > summary { cursor: pointer; list-style: none; font-size: .7rem; font-weight: 700; color: var(--dr-accent); }
.du-sql > summary::-webkit-details-marker { display: none; }
.du-sql[open] { flex-basis: 100%; margin-left: 0; }
.du-sql pre { margin: .4rem 0 0; padding: .6rem .75rem; max-height: 220px; overflow: auto; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: .7rem; white-space: pre-wrap; word-break: break-all; }
.du-list--cmp .du-row { align-items: flex-start; }
.du-cmp { flex-basis: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .5rem; align-items: center; }
.du-cmp span { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: #94a3b8; }
.du-cmp code { padding: .15rem .45rem; border-radius: 6px; background: #f8fafc; color: #475569; font-size: .72rem; word-break: break-all; }
.du-cmp code:last-child { background: #ecfdf5; color: #047857; }
.du-res { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.du-res--ok { background: #dcfce7; color: #16a34a; }
.du-res--bad { background: #ffe4e6; color: #e11d48; }
.du-err { flex-basis: 100%; padding-left: calc(22px + .6rem); color: #be123c; font-size: .74rem; }

.du-foot { background: #fbfcfd !important; border-top: 1px solid #f1f2f6 !important; }
.du-foot form { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.du-check { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .8rem; font-weight: 600; color: #334155; cursor: pointer; }
.du-check small { color: #94a3b8; font-weight: 600; }

.du-empty { text-align: center; padding: 1.5rem 1rem; color: #64748b; }
.du-empty h5 { font-weight: 800; color: #0f172a; margin: .75rem 0 .35rem; }
.du-empty p { margin: 0 auto; max-width: 520px; font-size: .84rem; }
.du-empty-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: #ecfdf5; color: #059669; }
.du-empty-icon--bad { background: #fff1f2; color: #e11d48; }
.du-empty--sm { padding: .75rem 0; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.du-empty--sm p { margin: 0; }
.du-empty--sm .du-empty-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }

@media (max-width: 1199.98px) {
	.du-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.du-grid { grid-template-columns: minmax(0, 1fr); }
	.du-meta { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 575.98px) {
	.du-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.du-hero { padding: 1.1rem; }
	.du-foot form .btn { width: 100%; }
}
.du-dl { display: flex; flex-direction: column; gap: .4rem; }
.du-dl small { color: #94a3b8; font-size: .74rem; text-align: center; }
.du-saved-title { display: flex; align-items: center; gap: .4rem; margin: 1.1rem 0 .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.du-saved-title span { padding: 0 .45rem; border-radius: 999px; background: #f1f5f9; color: #475569; }
.du-saved { border: 1px solid #eef0f4; border-radius: 12px; max-height: 260px; overflow-y: auto; }
.du-saved .du-row { flex-wrap: nowrap; }
.du-saved form { margin: 0; }
.du-saved-icon { flex: 0 0 auto; font-size: 1.15rem; color: var(--dr-accent); }
.du-saved-text { flex: 1; min-width: 0; }
.du-saved-text b { display: block; font-size: .76rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-saved-text small { color: #94a3b8; font-size: .7rem; }
