/* ==========================================================================
   Redesign layer - "x-blue" UserCP theme.
   Full visual overhaul on top of Pixel Admin / Bootstrap 3: new type,
   color system, navbar, sidebar, cards, forms, tables, buttons.
   Loaded last in <head> on every page (via header.tpl and every
   standalone auth template) so it re-skins the whole theme everywhere.
   RTL is the default layout here (.right-to-left on <body>); only visual
   properties are touched, layout/positioning is left to rtl.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

:root {
	--brand-h: 252;
	--brand: oklch(0.56 0.19 var(--brand-h));
	--brand-dark: oklch(0.44 0.19 var(--brand-h));
	--brand-light: oklch(0.94 0.03 var(--brand-h));
	--accent: oklch(0.72 0.16 190);
	--ink: oklch(0.24 0.02 var(--brand-h));
	--ink-soft: oklch(0.48 0.02 var(--brand-h));
	--paper: oklch(0.955 0.008 var(--brand-h));
	--card: #ffffff;
	--field: oklch(0.965 0.007 var(--brand-h));
	--line: oklch(0.87 0.015 var(--brand-h));
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(20, 20, 43, 0.06), 0 1px 1px rgba(20, 20, 43, 0.04);
	--shadow-md: 0 8px 24px rgba(20, 20, 43, 0.08), 0 2px 6px rgba(20, 20, 43, 0.06);
	--shadow-lg: 0 20px 45px rgba(20, 20, 43, 0.14);
}

/* Typography ---------------------------------------------------------------- */
html, body, .btn, .form-control, input, select, textarea, .navigation, table {
	font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

body {
	background: var(--paper) !important;
	color: var(--ink);
}

h1, h2, h3, h4, h5, h6, .caption, .page-title h1 {
	font-weight: 700;
	color: var(--ink);
	letter-spacing: 0;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

* { transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease; }

/* Top navbar ------------------------------------------------------------------ */
#main-navbar {
	background: var(--card) !important;
	border: none !important;
	box-shadow: var(--shadow-sm);
}

#main-navbar .navbar-brand {
	color: var(--ink) !important;
	font-weight: 900;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

#main-navbar .navbar-brand img {
	filter: none;
	border-radius: 8px;
}

#main-menu-toggle {
	color: var(--ink) !important;
}

.dropdown-toggle.user-menu {
	display: flex !important;
	align-items: center;
	gap: 8px;
	height: auto !important;
	padding: 6px 8px !important;
	border-radius: 6px !important;
	background: transparent !important;
}

.dropdown-toggle.user-menu:hover,
.dropdown-toggle.user-menu:focus {
	background: oklch(0.96 0.003 var(--brand-h)) !important;
}

.user-menu .user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	color: #fff;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
}

.user-menu .user-name {
	color: var(--ink) !important;
	font-weight: 600;
	font-size: 14.5px;
}

.user-menu .user-caret {
	color: var(--ink-soft) !important;
	font-size: 11px;
}

/* This user's own dropdown menu only - scoped so other dropdowns in the
   app (mega menu etc.) keep their existing look. */
.user-menu ~ .dropdown-menu {
	border-radius: 8px !important;
	padding: 6px !important;
	min-width: 200px;
}

.user-menu ~ .dropdown-menu > li > a {
	display: flex !important;
	align-items: center;
	border-radius: 6px !important;
	padding: 8px 10px !important;
}

.user-menu ~ .dropdown-menu > li > a:hover,
.user-menu ~ .dropdown-menu > li > a:focus {
	background: oklch(0.96 0.003 var(--brand-h)) !important;
}

.user-menu ~ .dropdown-menu > li.danger > a,
.user-menu ~ .dropdown-menu > li.danger > a .dropdown-icon {
	color: oklch(0.55 0.19 25) !important;
}

.user-menu ~ .dropdown-menu > li.danger > a:hover {
	background: oklch(0.96 0.02 25) !important;
}

/* Sidebar ----------------------------------------------------------------------- */
#main-menu,
#main-menu-bg {
	background: linear-gradient(180deg, oklch(0.22 0.05 var(--brand-h)) 0%, oklch(0.16 0.04 var(--brand-h)) 100%) !important;
}

/* Sidebar content (the background gradient above is unchanged) --------------------- */
#main-menu .menu-content {
	/* Pixel Admin's "menu-content.top" overlaps the nav list with a negative margin and
	   hidden overflow; neutralised because this block is taller. The 59px top padding
	   clears the fixed top navbar (~46px) the sidebar renders underneath: keep it. */
	margin: 0 !important;
	padding: 59px 14px 6px !important;
	border: none !important;
	overflow: visible !important;
}

/* Pixel Admin caps direct child divs of #menu-content-demo at 120px */
#menu-content-demo > div {
	width: 100% !important;
}

/* Profile --------------------------------------------------------------------------- */
#main-menu .sb-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 4px 14px;
}

#main-menu .sb-avatar {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--brand), var(--accent));
	color: #fff;
	font-weight: 900;
	font-size: 19px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

#main-menu .sb-who {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

#main-menu .sb-name {
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#main-menu .sb-sub {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	direction: ltr;
	text-align: start;
}

/* Balance tiles --------------------------------------------------------------------- */
#main-menu .sb-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

#main-menu .sb-stat {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 10px 12px;
	min-width: 0;
}

#main-menu .sb-stat i {
	color: var(--accent);
	font-size: 14px;
	margin-bottom: 6px;
	display: block;
}

#main-menu .sb-stat .sb-val {
	display: block;
	color: #fff;
	font-weight: 900;
	font-size: 18px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#main-menu .sb-stat .sb-lbl {
	display: block;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11.5px;
	margin-top: 2px;
}

#main-menu .sb-expiry {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 4px;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.6);
	font-size: 12.5px;
}

#main-menu .sb-expiry i {
	color: rgba(255, 255, 255, 0.45);
}

#main-menu .sb-expiry b {
	margin-inline-start: auto;
	color: #fff;
	font-weight: 700;
	direction: ltr;
}

/* Navigation ------------------------------------------------------------------------ */
#main-menu .navigation {
	margin: 6px 0 0 !important;
	padding: 6px 10px 24px !important;
}

#main-menu .navigation > li {
	margin: 2px 0 !important;
	width: auto !important; /* Pixel Admin fixes it at the sidebar width, overflowing the list padding */
}

#main-menu .navigation > li > a {
	display: flex !important;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 6px 10px !important;
	border-radius: var(--radius-sm);
	color: rgba(255, 255, 255, 0.82) !important;
	font-weight: 500;
	font-size: 14.5px;
	line-height: 1.3;
	position: relative;
}

/* icon tile */
#main-menu .navigation > li > a .menu-icon {
	position: static !important;
	flex: 0 0 32px;
	width: 32px !important;
	height: 32px;
	margin: 0 !important;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 15px;
	line-height: 32px;
	text-align: center;
}

#main-menu .navigation > li > a .mm-text {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 1 1 auto;
}

#main-menu .navigation > li > a:hover,
#main-menu .navigation > li > a:focus {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #fff !important;
}

#main-menu .navigation > li > a:hover .menu-icon {
	background: rgba(255, 255, 255, 0.14);
	color: #fff !important;
}

/* open group / current page */
#main-menu .navigation > li.open > a,
#main-menu .navigation > li.active > a,
#main-menu .navigation > li.active-page > a {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
}

#main-menu .navigation > li.open > a .menu-icon,
#main-menu .navigation > li.active > a .menu-icon,
#main-menu .navigation > li.active-page > a .menu-icon {
	background: var(--brand);
	color: #fff !important;
	box-shadow: var(--shadow-sm);
}

/* caret: replaces Pixel Admin's absolutely positioned one, flows at the row end */
#main-menu .navigation .mm-dropdown > a:before {
	display: none !important;
}

#main-menu .navigation .mm-dropdown > a:after {
	display: none !important;
}

#main-menu .navigation .sb-caret {
	margin-inline-start: auto;
	flex: 0 0 auto;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.5);
	transition: transform .2s ease;
}

#main-menu .navigation .mm-dropdown.open > a .sb-caret {
	transform: rotate(180deg);
	color: #fff;
}

/* sub items: indented list with a rail */
#main-menu .navigation li ul {
	background: transparent !important;
	margin: 2px 22px 6px !important;
	padding: 2px 0 !important;
	border-inline-start: 2px solid rgba(255, 255, 255, 0.1);
}

#main-menu .navigation li ul > li > a {
	display: block !important;
	padding: 8px 14px !important;
	margin: 1px 6px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.66) !important;
	font-size: 13.5px;
	font-weight: 500;
	position: relative;
}

#main-menu .navigation li ul > li > a .mm-text {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
}

#main-menu .navigation li ul > li > a:hover {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #fff !important;
}

#main-menu .navigation li ul > li.active > a,
#main-menu .navigation li ul > li.active-page > a {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	font-weight: 700;
}

/* log out row */
#main-menu .navigation > li.sb-logout {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#main-menu .navigation > li.sb-logout > a .menu-icon {
	background: oklch(0.55 0.19 25 / 0.25);
	color: oklch(0.85 0.1 25) !important;
}

#main-menu .navigation > li.sb-logout > a:hover {
	background: oklch(0.55 0.19 25 / 0.2) !important;
}

/* Buttons -------------------------------------------------------------------------- */
.btn {
	border-radius: var(--radius-sm) !important;
	font-weight: 700;
	border-width: 1px;
}

.btn:active { transform: translateY(1px); }

.btn.blue, .btn-primary, .btn.green, .btn-success, .btn.info, .btn-info {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
	color: #fff !important;
	box-shadow: var(--shadow-sm);
}

.btn.blue:hover, .btn-primary:hover, .btn.green:hover, .btn-success:hover, .btn.info:hover, .btn-info:hover {
	background: var(--brand-dark) !important;
	border-color: var(--brand-dark) !important;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.btn.default {
	background: #fff !important;
	border-color: var(--line) !important;
	color: var(--ink) !important;
}

.btn.default:hover {
	border-color: var(--brand) !important;
	color: var(--brand) !important;
}

/* Panels / cards ------------------------------------------------------------------- */
.panel, .portlet {
	background: var(--card);
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow-sm);
}

.panel:hover, .portlet:hover {
	box-shadow: var(--shadow-md);
}

.panel > .panel-heading, .portlet > .portlet-title {
	border-radius: var(--radius) var(--radius) 0 0 !important;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
}

.form-section {
	color: var(--brand-dark);
	font-weight: 700;
	border-bottom: 2px solid var(--brand-light);
	padding-bottom: 8px;
}

/* Forms -------------------------------------------------------------------------------- */
.form-control {
	background: var(--field) !important;
	border-radius: var(--radius-sm) !important;
	border: 1px solid var(--line) !important;
	box-shadow: none !important;
	min-height: 42px;
}

.form-control:focus {
	background: #ffffff !important;
	border-color: var(--brand) !important;
	box-shadow: 0 0 0 3px oklch(0.56 0.19 var(--brand-h) / 0.16) !important;
}

.form-control[readonly], .form-control[disabled] {
	background: var(--brand-light) !important;
	color: var(--ink-soft) !important;
}

label, .control-label {
	font-weight: 600;
	color: var(--ink-soft);
}

/* Breadcrumb ------------------------------------------------------------------------------- */
.breadcrumb, .breadcrumb-page {
	background: transparent !important;
	padding: 0 !important;
	font-weight: 600;
}

.breadcrumb > li + li:before {
	color: var(--ink-soft);
}

/* Tables ---------------------------------------------------------------------------------------- */
.table {
	background: var(--card);
}

.table > thead > tr > th {
	border-bottom: 2px solid var(--line) !important;
	color: var(--ink-soft);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .04em;
}

.table-hover > tbody > tr:hover {
	background-color: var(--brand-light) !important;
}

.table > tbody > tr > td {
	vertical-align: middle;
	border-color: var(--line);
}

/* list page titles: the grid paints them cyan */
.x-blue_dg_caption {
	color: var(--ink) !important;
	font-size: 22px !important;
	font-weight: 900 !important;
	font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif !important;
	margin: 4px 0 14px !important;
}

/* Datagrid (library-generated lists: messages, contacts, templates ...) ------------------------- */
/* the grid draws a cyan header bar with white text by default; use the theme's calm header */
.table > thead > tr > th,
.x-blue_dg_th,
.x-blue_dg_th_normal {
	background: var(--brand-light) !important;
	color: var(--brand-dark) !important;
	border: none !important;
	border-bottom: 2px solid var(--line) !important;
	padding: 12px 10px !important;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.x-blue_dg_th:first-child { border-radius: 0 var(--radius-sm) 0 0; }
.x-blue_dg_th:last-child { border-radius: var(--radius-sm) 0 0 0; }

.x-blue_dg_a_header,
.x-blue_dg_a_header:hover {
	color: inherit !important;
	text-decoration: none !important;
}

.x-blue_dg_table {
	width: 100% !important;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-top: 10px;
}

.x-blue_dg_table > tbody > tr > td,
.x-blue_dg_td {
	padding: 11px 10px !important;
	border-color: var(--line) !important;
	vertical-align: middle;
	font-size: 13.5px;
}

.x-blue_dg_table > tbody > tr:hover > td {
	background: var(--brand-light) !important;
}

/* filter block: a soft card with real form controls */
.x-blue_dg_fieldset {
	width: 100% !important;
	padding: 14px 16px !important;
	margin: 6px 0 12px !important;
	background: var(--paper);
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
}

.x-blue_dg_filter_table {
	width: 100% !important;
	border-collapse: separate;
	border-spacing: 12px 8px;
}

.x-blue_dg_filter_table td {
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.x-blue_dg_textbox,
.x-blue_dg_select,
.x-blue_dg_fieldset input[type="text"],
.x-blue_dg_fieldset select {
	height: 38px !important;
	min-width: 150px;
	padding: 0 12px !important;
	margin-inline: 6px;
	background: var(--card) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--ink) !important;
	font-size: 13.5px !important;
	box-shadow: none !important;
}

.x-blue_dg_textbox:focus,
.x-blue_dg_select:focus {
	border-color: var(--brand) !important;
	box-shadow: 0 0 0 3px oklch(0.56 0.19 var(--brand-h) / 0.16) !important;
	outline: none;
}

.x-blue_dg_button,
input.x-blue_dg_button {
	height: 38px;
	padding: 0 22px !important;
	background: var(--brand) !important;
	border: 1px solid var(--brand) !important;
	border-radius: var(--radius-sm) !important;
	color: #fff !important;
	font-weight: 700;
	cursor: pointer;
}

.x-blue_dg_button:hover {
	background: var(--brand-dark) !important;
	border-color: var(--brand-dark) !important;
}

/* grid toolbar icons (refresh / search) and "no data" / counters */
#printTbl img {
	opacity: .75;
	transition: opacity .15s ease;
}

#printTbl img:hover { opacity: 1; }

.x-blue_dg_td[colspan],
td[align="center"][colspan] {
	color: var(--ink-soft);
}

/* Packages / pricing (order.tpl) ------------------------------------------------------------------- */
.pkg-page {
	padding: 10px 6px 30px;
}

.pkg-intro {
	text-align: center;
	margin: 18px auto 30px;
	max-width: 640px;
}

.pkg-intro h1 {
	font-size: 30px;
	font-weight: 900;
	margin: 0 0 8px;
}

.pkg-intro p {
	color: var(--ink-soft);
	font-size: 16px;
	margin: 0;
}

.pkg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	align-items: stretch;
}

.pkg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px 24px;
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pkg-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand);
}

.pkg-featured {
	border: 2px solid var(--brand);
	box-shadow: var(--shadow-md);
}

.pkg-badge {
	position: absolute;
	top: -13px;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	background: linear-gradient(90deg, var(--brand), var(--accent));
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

[dir="rtl"] .pkg-badge,
.right-to-left .pkg-badge {
	transform: translateX(50%);
}

.pkg-title {
	text-align: center;
	font-size: 20px;
	font-weight: 900;
	margin: 0 0 6px;
}

.pkg-desc {
	text-align: center;
	color: var(--ink-soft);
	font-size: 13.5px;
	margin: 0 0 10px;
}

.pkg-price {
	text-align: center;
	margin: 12px 0 18px;
	direction: ltr;
	color: var(--brand);
}

.pkg-currency {
	font-size: 20px;
	font-weight: 700;
	vertical-align: top;
	position: relative;
	top: 6px;
	margin-inline-end: 2px;
}

.pkg-amount {
	font-size: 46px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.5px;
}

.pkg-features {
	list-style: none;
	margin: 0 0 16px;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	flex: 1 1 auto;
}

.pkg-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: 14.5px;
	color: var(--ink);
}

.pkg-features li i {
	color: var(--accent);
	font-size: 16px;
	margin-top: 3px;
}

.pkg-stars {
	text-align: center;
	color: oklch(0.78 0.15 85);
	margin-bottom: 14px;
	letter-spacing: 3px;
}

.pkg-buy {
	padding: 12px !important;
	font-size: 15px;
	margin-top: auto;
}

/* Record counters under datagrids ("عدد السجلات : 0") --------------------------------------------- */
#content-wrapper ul:has(> li > span[lang="en-us"]) {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
	padding: 0;
}

#content-wrapper ul:has(> li > span[lang="en-us"]) > li {
	background: var(--brand-light);
	color: var(--brand-dark);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 600;
}

#content-wrapper ul:has(> li > span[lang="en-us"]) > li span {
	font-weight: 900;
}

/* Digg-style paginator (usercp/shared/css/paging/10.css paints it red) ------------------------------ */
div.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 6px !important;
	margin: 14px 0 !important;
}

div.pagination a,
div.pagination span {
	min-width: 38px;
	padding: 8px 12px !important;
	margin: 0 !important;
	text-align: center;
	background: var(--card) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--ink) !important;
	font-weight: 600;
	text-decoration: none !important;
}

div.pagination a:hover {
	background: var(--brand-light) !important;
	border-color: var(--brand) !important;
	color: var(--brand-dark) !important;
}

div.pagination span.current {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
	color: #fff !important;
}

div.pagination span.disabled {
	opacity: .45;
}

/* FAQ accordion (faqs.tpl) ------------------------------------------------------------------------- */
.faq-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 10px 6px 30px;
}

.faq-intro {
	text-align: center;
	margin: 18px 0 26px;
}

.faq-intro h1 {
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 8px;
}

.faq-intro p {
	color: var(--ink-soft);
	font-size: 15.5px;
	margin: 0;
}

.faq-item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	margin-bottom: 10px;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.faq-q {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	color: var(--ink) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none !important;
	cursor: pointer;
}

.faq-q:hover {
	background: var(--paper);
}

.faq-num {
	flex: 0 0 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--brand-light);
	color: var(--brand-dark);
	font-weight: 900;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-text {
	flex: 1 1 auto;
}

.faq-caret {
	flex: 0 0 auto;
	font-size: 18px;
	color: var(--ink-soft);
	transition: transform .2s ease;
}

.faq-q:not(.collapsed) .faq-caret {
	transform: rotate(180deg);
	color: var(--brand);
}

.faq-q:not(.collapsed) .faq-num {
	background: var(--brand);
	color: #fff;
}

.faq-a {
	padding: 4px 22px 20px 22px;
	margin-inline-start: 46px;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.9;
}

.faq-pages {
	margin-top: 18px;
}

/* File inputs (send from Excel / text file, address-book import) -------------------------------- */
input[type="file"] {
	max-width: 100%;
	padding: 6px;
	background: var(--field);
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink-soft);
	font-size: 13px;
}

input[type="file"]::file-selector-button {
	margin-inline-end: 12px;
	padding: 8px 16px;
	background: var(--brand);
	border: none;
	border-radius: var(--radius-sm);
	color: #fff;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
	background: var(--brand-dark);
}

/* Checkout (order_checkout.tpl) -------------------------------------------------------------------- */
.co-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px 6px 30px;
}

.co-head h1 {
	font-size: 26px;
	font-weight: 900;
	margin: 16px 0 6px;
}

.co-head p {
	color: var(--ink-soft);
	margin: 0 0 18px;
}

.co-alert {
	display: flex;
	align-items: center;
	gap: 14px;
	border-radius: var(--radius) !important;
}

.co-alert > i { font-size: 26px; }
.co-alert > div { flex: 1 1 auto; }
.co-alert h4 { margin: 0 0 2px; font-weight: 700; }
.co-alert p { margin: 0; }

.co-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 860px) {
	.co-grid { grid-template-columns: 1fr; }
}

.co-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 16px;
}

.co-package { position: relative; }

.co-tag {
	display: inline-block;
	background: var(--brand-light);
	color: var(--brand-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.co-package h3 {
	font-size: 24px;
	font-weight: 900;
	margin: 0 0 14px;
}

.co-features {
	list-style: none;
	margin: 0 0 18px;
	padding: 14px 0 0;
	border-top: 1px solid var(--line);
}

.co-features li {
	display: flex;
	gap: 10px;
	padding: 6px 0;
	font-size: 15px;
}

.co-features li i {
	color: var(--accent);
	margin-top: 3px;
}

.co-price {
	text-align: start;
	font-size: 40px;
	font-weight: 900;
	color: var(--brand);
	line-height: 1;
}

.co-price sup, .co-row sup {
	font-size: 12px;
	font-weight: 700;
	margin-inline-start: 4px;
	color: var(--ink-soft);
}

.co-rows { display: flex; flex-direction: column; }

.co-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	font-size: 14.5px;
	border-bottom: 1px dashed var(--line);
}

.co-row:last-child { border-bottom: none; }
.co-row > span { color: var(--ink-soft); }
.co-row b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.co-discount b { color: oklch(0.55 0.15 150); }
.co-sep { margin-top: 6px; border-top: 1px solid var(--line); border-bottom: none; padding-top: 14px; }

.co-total {
	font-size: 16px;
	padding-top: 12px;
}

.co-total b { font-size: 20px; font-weight: 900; }
.co-bad b { color: oklch(0.55 0.19 25); }

.co-label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.co-voucher {
	display: flex;
	gap: 8px;
}

.co-voucher .form-control { flex: 1 1 auto; min-width: 0; }

.co-cta {
	padding: 14px !important;
	font-size: 16px;
}

/* Gateway refill (user_gateway-refill.tpl) --------------------------------------------------------- */
.gw-page {
	max-width: 820px;
	margin: 0 auto;
	padding: 10px 6px 30px;
}

.gw-head h1 {
	font-size: 26px;
	font-weight: 900;
	margin: 16px 0 6px;
}

.gw-head p {
	color: var(--ink-soft);
	margin: 0 0 18px;
}

.gw-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 16px;
}

.gw-step {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.gw-step span {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
}

.gw-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gw-option { margin: 0; cursor: pointer; }
.gw-option input { position: absolute; opacity: 0; pointer-events: none; }

.gw-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 76px;
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.gw-box img { max-width: 100px; max-height: 44px; }

.gw-tick {
	position: absolute;
	top: 6px;
	inset-inline-start: 6px;
	color: var(--brand);
	font-size: 18px;
	opacity: 0;
	transition: opacity .15s ease;
}

.gw-option:hover .gw-box { border-color: var(--brand); }

.gw-option input:checked + .gw-box {
	border-color: var(--brand);
	background: var(--brand-light);
	box-shadow: 0 0 0 3px oklch(0.56 0.19 var(--brand-h) / 0.16);
}

.gw-option input:checked + .gw-box .gw-tick { opacity: 1; }

.gw-option input:focus-visible + .gw-box { outline: 2px solid var(--brand); outline-offset: 2px; }

.gw-amount {
	display: flex;
	gap: 10px;
}

.gw-amount .form-control {
	flex: 1 1 auto;
	max-width: 260px;
	font-size: 18px;
	font-weight: 700;
}

.gw-amount .btn { padding: 0 28px; }

.gw-confirm-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.gw-confirm-title i { color: var(--brand); margin-inline-end: 6px; }
.gw-pay { margin-top: 14px; }

.gw-note {
	background: oklch(0.97 0.03 85);
	border-color: oklch(0.88 0.07 85);
	box-shadow: none;
}

.gw-note-title {
	font-weight: 700;
	margin-bottom: 8px;
	color: oklch(0.45 0.1 70);
}

.gw-note ul { margin: 0; padding-inline-start: 20px; }
.gw-note li { padding: 3px 0; font-size: 13.5px; color: var(--ink); }

/* Dashboard (user_cp.tpl) -------------------------------------------------------------------------- */
.db-page {
	padding: 6px 4px 30px;
}

.db-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 6px 0 22px;
}

.db-welcome h1 {
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 4px;
}

.db-welcome p {
	margin: 0;
	color: var(--ink-soft);
}

.db-compose {
	padding: 12px 26px !important;
	font-size: 15px;
}

.db-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.db-stat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 20px 20px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	color: var(--ink) !important;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.db-stat:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand);
}

.db-ico {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	margin-bottom: 14px;
}

.db-ico-1 { background: oklch(0.94 0.04 252); color: oklch(0.5 0.2 252); }
.db-ico-2 { background: oklch(0.94 0.05 160); color: oklch(0.48 0.13 160); }
.db-ico-3 { background: oklch(0.95 0.06 85);  color: oklch(0.55 0.14 70); }
.db-ico-4 { background: oklch(0.95 0.04 25);  color: oklch(0.52 0.19 25); }

.db-val {
	font-size: 30px;
	font-weight: 900;
	line-height: 1.15;
}

.db-val.db-date { font-size: 22px; padding: 4px 0 3px; text-align: start; }

.db-lbl {
	color: var(--ink-soft);
	font-size: 14px;
	margin-bottom: 12px;
}

.db-go {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--brand);
	font-weight: 700;
	font-size: 13.5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.db-cols {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 1100px) {
	.db-cols { grid-template-columns: 1fr; }
}

.db-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 20px;
	min-width: 0;
}

.db-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.db-title i { color: var(--brand); }

.db-table > thead > tr > th { white-space: nowrap; }
.db-table > tbody > tr > td { font-size: 13.5px; }

.db-empty {
	text-align: center;
	padding: 34px 10px 26px;
	color: var(--ink-soft);
}

.db-empty i {
	font-size: 38px;
	color: var(--brand);
	opacity: .55;
}

.db-empty p { margin: 10px 0 14px; font-size: 15px; }

.db-bars {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.db-bars li {
	display: grid;
	grid-template-columns: 92px 1fr 34px;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.db-bar-date { color: var(--ink-soft); text-align: start; }

.db-bar-track {
	height: 10px;
	background: var(--field);
	border-radius: 999px;
	overflow: hidden;
}

.db-bar-fill {
	display: block;
	height: 100%;
	min-width: 2px;
	background: linear-gradient(90deg, var(--brand), var(--accent));
	border-radius: 999px;
}

.db-bar-num { text-align: end; font-weight: 700; }

/* Send pages (user_send*.tpl) ---------------------------------------------------------------------- */
.sd-page {
	padding: 6px 4px 30px;
}

.sd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: none !important;
	margin: 6px 0 16px !important;
}

.sd-tabs > li { float: none !important; margin: 0 !important; }

.sd-tabs > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px !important;
	background: var(--card) !important;
	border: 1px solid var(--line) !important;
	border-radius: 999px !important;
	color: var(--ink-soft) !important;
	font-weight: 600;
}

.sd-tabs > li > a:hover {
	border-color: var(--brand) !important;
	color: var(--brand-dark) !important;
}

.sd-tabs > li.active > a {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
	color: #fff !important;
	box-shadow: var(--shadow-sm);
}

.sd-form {
	background: transparent;
	padding: 0;
}

.sd-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 760px) {
	.sd-top, .sd-grid { grid-template-columns: 1fr !important; }
}

.sd-field {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	box-shadow: var(--shadow-sm);
}

.sd-field > label {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 13.5px;
	color: var(--ink-soft);
}

.sd-field .input-group { width: 100%; display: flex; }
.sd-field .input-group .form-control { flex: 1 1 auto; float: none; }
.sd-field .input-group-btn { width: auto; flex: 0 0 auto; }
.sd-field .date-set { height: 42px; border-radius: var(--radius-sm) !important; margin-inline-start: 8px; }
.sd-field .date-set i { font-size: 18px; }

.sd-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
	align-items: stretch;
}

.sd-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow-sm);
	min-width: 0;
}

.sd-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.sd-card-head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sd-card-head h3 i { color: var(--brand); }

.sd-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: var(--brand-light);
	color: var(--brand-dark) !important;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.sd-btn:hover { background: var(--brand); color: #fff !important; }
.sd-btn-alt { background: oklch(0.95 0.05 160); color: oklch(0.4 0.12 160) !important; }
.sd-btn-alt:hover { background: oklch(0.5 0.13 160); color: #fff !important; }

.sd-area {
	flex: 1 1 auto;
	min-height: 200px;
	resize: vertical;
	line-height: 1.7;
}

.sd-meter {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--line);
	font-size: 13px;
	color: var(--ink-soft);
}

.sd-meter strong { color: var(--ink); font-weight: 900; margin-inline-start: 4px; }
.sd-meter i { margin-inline-end: 4px; opacity: .7; }

.sd-file {
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 120px;
}

.sd-file input[type="file"] { width: 100%; padding: 14px; }
#drop-box:empty { display: none; }

.sd-bar {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 18px;
	box-shadow: var(--shadow-sm);
}

.sd-save {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}

.sd-save input { width: 18px; height: 18px; margin: 0; }

.sd-cost {
	color: var(--ink-soft);
	font-weight: 600;
	margin-inline-start: auto;
}

.sd-cost a { color: var(--ink); font-weight: 900; font-size: 18px; }
.sd-cost i { color: oklch(0.55 0.14 150); }

.sd-error { color: oklch(0.55 0.19 25); font-weight: 600; }
.sd-error:empty { display: none; }

.sd-send {
	padding: 12px 36px !important;
	font-size: 16px;
}

.sd-notes {
	margin-top: 18px;
	padding: 14px 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: 13.5px;
	color: var(--ink-soft);
}

.sd-notes p { margin: 4px 0; }
.sd-notes .badge { margin-inline-end: 6px; }

/* Ticket view (user_ticketview.tpl) ---------------------------------------------------------------- */
.tk-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 10px 6px 30px;
}

.tk-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin: 12px 0 14px;
}

.tk-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-title h1 { font-size: 24px; font-weight: 900; margin: 0; overflow-wrap: anywhere; }

.tk-id {
	background: var(--brand-light);
	color: var(--brand-dark);
	font-weight: 900;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 14px;
}

.tk-status {
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	background: oklch(0.93 0.01 252);
	color: var(--ink-soft);
}

.tk-status-open { background: oklch(0.94 0.05 160); color: oklch(0.4 0.12 160); }
.tk-status-answered { background: oklch(0.94 0.04 252); color: oklch(0.45 0.18 252); }
.tk-status-customer-reply { background: oklch(0.95 0.06 85); color: oklch(0.5 0.13 70); }
.tk-status-closed { background: oklch(0.94 0.02 25); color: oklch(0.5 0.15 25); }

.tk-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.tk-meta > div {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 16px;
	box-shadow: var(--shadow-sm);
}

.tk-meta span { display: block; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 2px; }
.tk-meta b { font-weight: 700; }

.tk-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }

.tk-msg {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	max-width: 92%;
}

.tk-mine { align-self: flex-start; }
.tk-staff { align-self: flex-end; border-color: var(--brand); }

.tk-msg-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	font-size: 13px;
}

.tk-staff .tk-msg-head { background: var(--brand-light); }
.tk-who { font-weight: 700; }
.tk-who i { color: var(--brand); margin-inline-end: 4px; }
.tk-who em { font-style: normal; color: var(--ink-soft); font-weight: 500; margin-inline-start: 8px; }
.tk-date { color: var(--ink-soft); }

.tk-body {
	padding: 14px 16px 16px;
	line-height: 1.85;
	font-size: 14.5px;
	overflow-wrap: anywhere;
}

.tk-reply {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 18px;
}

.tk-reply h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.tk-reply h3 i { color: var(--brand); margin-inline-end: 6px; }
.tk-actions { display: flex; gap: 8px; }

/* Dropdown menus -------------------------------------------------------------------------------------- */
.dropdown-menu {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm) !important;
	box-shadow: var(--shadow-lg) !important;
	padding: 6px;
}

.dropdown-menu > li > a {
	border-radius: 6px;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
	background: var(--brand-light) !important;
	color: var(--brand-dark) !important;
}

/* Alerts / badges / notes ------------------------------------------------------------------------------------ */
.note, .alert {
	border-radius: var(--radius-sm) !important;
	border-width: 1px !important;
}

.label, .badge {
	border-radius: 999px !important;
	font-weight: 700;
}

/* Pagination --------------------------------------------------------------------------------------------------- */
.pagination > li > a, .pagination > li > span {
	border-radius: var(--radius-sm) !important;
	margin: 0 3px;
	border-color: var(--line) !important;
	color: var(--ink) !important;
}

.pagination > .active > a, .pagination > .active > span {
	background: var(--brand) !important;
	border-color: var(--brand) !important;
}

/* Keyboard accessibility ------------------------------------------------------------------------------------------ */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

/* Scrollbar --------------------------------------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-light); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* Small-screen refinements ------------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.btn { min-height: 42px; }
	.panel, .portlet { border-radius: var(--radius-sm) !important; }
}

/* Neutralize legacy inline overrides ------------------------------------------------------------------------------------
   A lot of older content pages hard-code "FONT-FAMILY: Tahoma" and
   8-9pt legacy font sizes inline, which no external stylesheet can
   beat except with !important. Reclaim typography without touching
   every page's markup; semantic inline colors (red/green/etc.) are
   left alone on purpose. */
[style*="Tahoma" i], [style*="FONT-FAMILY" i] {
	font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}

[style*="font-size: 8pt" i], [style*="font-size:8pt" i],
[style*="font-size: 9pt" i], [style*="font-size:9pt" i] {
	font-size: 13px !important;
}

[style*="COLOR: black" i] {
	color: var(--ink) !important;
}

/* Refill by card (user_refill.tpl) and address book (user_addressbook.tpl) ----------------------------- */
.rf-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 18px;
	margin: 6px 0 16px;
	border-radius: var(--radius);
	border: 1px solid;
	font-weight: 600;
}
.rf-alert > i { font-size: 22px; margin-top: 2px; }
.rf-ok { background: oklch(0.95 0.05 155); border-color: oklch(0.75 0.12 155); color: oklch(0.36 0.1 155); }
.rf-bad { background: oklch(0.95 0.04 25); border-color: oklch(0.75 0.13 25); color: oklch(0.42 0.15 25); }
.rf-alert font { color: inherit !important; }
.rf-lead { color: var(--ink-soft); line-height: 1.8; margin: 0 0 14px; }
.rf-form .sd-field { margin-bottom: 14px; background: var(--paper); box-shadow: none; }
.rf-code { font-size: 20px; letter-spacing: 3px; text-align: center; font-weight: 700; height: 52px; }
.rf-visual { align-items: center; justify-content: center; background: var(--brand-light); }
.rf-card-img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.rf-steps { margin-top: 0; }
.rf-steps h4 { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.rf-steps h4 i { color: var(--brand); margin-inline-end: 6px; }

.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-grid .sd-card { margin-bottom: 0; }
.ab-form-row .sd-field { margin-bottom: 12px; background: var(--paper); box-shadow: none; }
.ab-fav { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 4px 0 12px; }
.ab-fav input { width: 18px; height: 18px; margin: 0; }
.ab-filter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.ab-filter .sd-field { background: var(--paper); box-shadow: none; }
.ab-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.ab-chip { background: var(--brand-light); color: var(--brand-dark); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 13px; }
.ab-chip b { font-weight: 900; margin-inline-start: 4px; }
.ab-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ab-table { margin: 0 !important; border: 0 !important; min-width: 880px; }
.ab-table thead th { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.ab-table td { vertical-align: middle !important; padding: 6px !important; }
.ab-table td .form-control { height: 38px; }
.ab-table input[type="checkbox"] { width: 17px; height: 17px; }
.ab-pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ab-pager .form-control { width: auto; display: inline-block; }
.ab-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ab-tabs-hint { color: var(--ink-soft); font-size: 13px; margin: 0 0 10px; }
@media (max-width: 760px) {
	.ab-grid, .ab-filter { grid-template-columns: 1fr; }
}

/* Profile pages (user_details.tpl, user_password.tpl) ------------------------------------------------- */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-wide { grid-column: 1 / -1; }
.pf-field { background: var(--paper) !important; box-shadow: none !important; margin: 0 0 12px; }
.pf-grid .pf-field { margin: 0; }
.pf-field .form-control[readonly] { opacity: .75; cursor: not-allowed; }
.rf-neutral { background: var(--card); border-color: var(--line); color: var(--ink); }
.pf-flash:empty { display: none; }
.pf-flash { margin: 6px 0 16px; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: 1fr; } }

/* Address book - bootstrap-table (server side, shared/javascript/addressbook.js) ------------------------ */
.ab-bar { align-items: center; margin: 4px 0 12px; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-sm); }
.ab-bar .ab-sel { margin-inline-end: auto; color: var(--ink-soft); }
.ab-bar .ab-sel b { color: var(--ink); font-size: 16px; }
.ab-bar.is-on { background: var(--brand-light); }
.ab-bar .btn[disabled] { opacity: .45; }
.ab-bt .bootstrap-table .fixed-table-container { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ab-bt .ab-table { min-width: 0; }
.ab-bt .ab-table td { padding: 10px 8px !important; }
.ab-bt .ab-table > tbody > tr.selected > td { background: var(--brand-light); }
.ab-bt .fixed-table-body { overflow-x: auto; }
.ab-muted { color: var(--line); }
.ab-fav-on { color: oklch(0.6 0.14 70); font-weight: 700; white-space: nowrap; }
#abMsg { margin: 0 0 12px; }
.ab-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.ab-check input { width: 18px; height: 18px; margin: 0; }
.ab-bt .card-view { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ab-bt .card-view-title { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) {
	.ab-bar .ab-sel { flex-basis: 100%; }
	.ab-bt .fixed-table-pagination .pagination-detail, .ab-bt .fixed-table-pagination .pagination { float: none !important; text-align: center; }
}
/* Address book - inline editing */
.ab-bt .ab-table td { padding: 5px 6px !important; }
.ab-bt .ab-in { min-width: 96px; height: 36px; }
.ab-bt td:nth-child(2) .ab-in { min-width: 140px; }
.ab-bt tr.ab-dirty > td { background: oklch(0.96 0.05 85) !important; }
.ab-in-fav.is-fav { color: oklch(0.6 0.14 70); font-weight: 700; }
.ab-hint { margin: 0 0 8px; color: var(--ink-soft); font-size: 13px; }
@media (max-width: 760px) { .ab-bt .ab-in { min-width: 0; } .ab-bt .card-view-value { flex: 1; max-width: 64%; } }
