/* ==========================================================================
   Semnan Platform — account HUB
   Loads after account.css on the same two screens (see semnan_account_hub_assets).

   What it adds on top of account.css:
     · a real dashboard — greeting banner, three counters, one tile per section
     · a «بازگشت به پیشخوان» control at the top of every section page
     · «دوره‌های من» + «گواهینامه‌های من» sections and a printable certificate
     · icons in the dashboard tiles and on the section pages (the WooCommerce
      sidebar rail itself is hidden — see section 2, user request 2026-10-16)

   Design language is the site's own (AGENTS.md §7 / §14.1): navy #102A71 ·
   navy-dark #001840 · gold #F5C400 · cream #FFFDF0 · Kalameh · RTL, cards at
   18px with a soft navy-tinted shadow, and the header's icon language —
   a black glyph on a modern-gray pill that turns gold on hover.

   SPECIFICITY NOTE: account.css styles the content with
   `body.woocommerce-account .woocommerce-MyAccount-content p` / `… a`
   (0,2,2). Everything here therefore carries the same prefix plus `:is(…)`,
   which lands at (0,3,1) and wins without a single `!important`.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) Icon set — one custom property per glyph, shared by the nav and the
      tiles. Pure stroke SVG, no arcs (AGENTS.md gotcha 34).
   -------------------------------------------------------------------------- */
body.woocommerce-account,
body.page-id-188 {
	--sp-i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5.5 9.5V20h13V9.5'/%3E%3Cpath d='M10 20v-5.5h4V20'/%3E%3C/svg%3E");
	--sp-i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5A1.5 1.5 0 0 1 5.5 3H10a3 3 0 0 1 2 1 3 3 0 0 1 2-1h4.5A1.5 1.5 0 0 1 20 4.5v12A1.5 1.5 0 0 1 18.5 18H14a3 3 0 0 0-2 1 3 3 0 0 0-2-1H5.5A1.5 1.5 0 0 1 4 16.5z'/%3E%3Cpath d='M12 6.5V19'/%3E%3C/svg%3E");
	--sp-i-cert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='m8.6 13.7L7 22l5-2.8L17 22l-1.6-8.3'/%3E%3C/svg%3E");
	--sp-i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.6 2.6 5.2 5.8.9-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L3.6 9.7l5.8-.9z'/%3E%3C/svg%3E");
	--sp-i-orders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6'/%3E%3Cpath d='M9 12.5h6'/%3E%3C/svg%3E");
	--sp-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 21v-1.6A5.4 5.4 0 0 1 9.9 14h4.2a5.4 5.4 0 0 1 5.4 5.4V21'/%3E%3C/svg%3E");
	--sp-i-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4H18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3.5'/%3E%3Cpath d='m9.5 8-4 4 4 4'/%3E%3Cpath d='M5.5 12H15'/%3E%3C/svg%3E");
	--sp-i-go: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
	--sp-i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
	--sp-i-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V3h10v5'/%3E%3Cpath d='M7 18H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M7 14h10v7H7z'/%3E%3C/svg%3E");
	--sp-i-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2) The shell — ONE column. The sidebar rail is gone (user, 2026-10-16).
   -------------------------------------------------------------------------- */
/* `.woocommerce-MyAccount-navigation` is redundant here: the dashboard's
   «دسترسی سریع» tiles reach every section and each section carries a
   «بازگشت به پیشخوان» bar, so the rail is hidden on every breakpoint.
   Hidden with CSS rather than removed from the template: the markup (and the
   nav's own is-active state) stays intact, and restoring it is a one-line
   change. */
body.woocommerce-account .woocommerce-MyAccount-navigation { display: none; }

/* account.css builds its grid on `main#content .woocommerce`, but the
   [woocommerce_my_account] shortcode renders into `.elementor-shortcode` — so
   that rule never matched and the nav and the content were stacked full-width.
   Re-declare it against the container that actually exists. Scoped to
   body.woocommerce-account only: /login/ is a different screen with its own
   layout and is not ours to restyle. */
body.woocommerce-account main#content .elementor-shortcode {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

body.woocommerce-account main#content .elementor-shortcode > .woocommerce-notices-wrapper,
body.woocommerce-account main#content .elementor-shortcode > h2 { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   3) Account navigation — icon + label, RTL, gold on hover.
   ⚠ DORMANT since 2026-10-16 — section 2 hides the whole rail, so none of
     these rules apply today. Kept verbatim so the rail can be restored by
     deleting the `display: none` in section 2 and putting the two grid
     columns back.
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	--sp-ico: var(--sp-i-home);
	position: relative;
	display: block;
	box-sizing: border-box;
	padding-block: 9px;
	padding-inline: 58px 14px;
	border-radius: var(--sp-radius-sm);
	color: var(--sp-navy);
	font-size: .93rem;
	font-weight: 700;
	line-height: 1.9;
	text-decoration: none;
	transition: background .18s, color .18s;
}

/* the pill … */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
	content: "";
	position: absolute;
	inset-inline-start: 12px;
	top: 50%;
	width: 34px;
	height: 34px;
	margin-block-start: -17px;
	border-radius: 11px;
	background: #eef0f3;
	transition: background .18s;
}

/* … and the glyph on it (mask + currentColor, so it follows the text colour) */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::after {
	content: "";
	position: absolute;
	inset-inline-start: 20px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-block-start: -9px;
	background-color: currentColor;
	-webkit-mask: var(--sp-ico) center / contain no-repeat;
	mask: var(--sp-ico) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a { --sp-ico: var(--sp-i-home); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--my-courses a { --sp-ico: var(--sp-i-book); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--tickets a { --sp-ico: var(--sp-i-ticket); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--certificates a { --sp-ico: var(--sp-i-cert); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--favorites a { --sp-ico: var(--sp-i-star); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a { --sp-ico: var(--sp-i-orders); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a { --sp-ico: var(--sp-i-user); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { --sp-ico: var(--sp-i-out); }

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
	background: var(--sp-gold-soft);
	color: var(--sp-navy-dark);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover::before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible::before {
	background: var(--sp-gold);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background: var(--sp-navy-dark);
	color: #fff;
	box-shadow: 0 16px 30px -22px rgba(0, 24, 64, .9);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before { background: rgba(255, 255, 255, .16); }

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-block-start: 8px;
	padding-block-start: 8px;
	border-block-start: 1px dashed var(--sp-line);
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--sp-danger); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: rgba(179, 38, 30, .09); color: var(--sp-danger); }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover::before { background: rgba(179, 38, 30, .16); }

/* --------------------------------------------------------------------------
   4) «بازگشت به پیشخوان» — the control every section page carries.
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-back {
	display: flex;
	justify-content: flex-start;
	margin: 0 0 16px;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding-block: 8px;
	padding-inline: 16px 14px;
	border: 1px solid var(--sp-line);
	border-radius: 999px;
	background: #f7f8fb;
	color: var(--sp-navy);
	font-size: .84rem;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
	transition: background .18s, border-color .18s, transform .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-back-link:hover {
	background: var(--sp-gold-soft);
	border-color: rgba(245, 196, 0, .8);
	color: var(--sp-navy-dark);
	transform: translateX(2px);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-back-ico {
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: var(--sp-i-back) center / contain no-repeat;
	mask: var(--sp-i-back) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   5) Dashboard hub
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub { display: grid; gap: 18px; }

/* --- the greeting banner --- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-hero {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 22px 20px;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #001840 0%, #102a71 62%, #1b3d8f 100%);
	color: #fff;
	box-shadow: 0 26px 48px -32px rgba(0, 24, 64, .95);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-hero::before {
	content: "";
	position: absolute;
	inset-inline-end: -80px;
	top: -100px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 196, 0, .38), transparent 68%);
	pointer-events: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sp-gold), rgba(245, 196, 0, 0));
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-avatar {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(160deg, #ffe98f, var(--sp-gold) 52%, var(--sp-gold-deep));
	color: var(--sp-navy-dark);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 4px rgba(245, 196, 0, .18), 0 14px 26px -16px rgba(0, 0, 0, .7);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-id { position: relative; z-index: 1; min-width: 0; }

body.woocommerce-account .woocommerce-MyAccount-content :is(.sp-hub-eyebrow, .sp-hub-name, .sp-hub-meta) { margin: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-eyebrow {
	margin-block-end: 3px;
	color: rgba(255, 255, 255, .6);
	font-size: .74rem;
	font-weight: 700;
	line-height: 1.8;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-name {
	margin-block-end: 5px;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.5;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, .74);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-dot { color: rgba(255, 255, 255, .4); }

/* --- counters --- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat {
	padding: 16px 8px;
	border: 1px solid var(--sp-line);
	border-radius: 14px;
	background: linear-gradient(180deg, #fffdf3, #fff 72%);
	text-align: center;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat b {
	display: block;
	color: var(--sp-navy-dark);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.25;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat span {
	display: block;
	margin-block-start: 2px;
	color: var(--sp-muted);
	font-size: .76rem;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-heading {
	margin: 2px 0 -6px;
	color: var(--sp-navy-dark);
	font-size: .95rem;
	font-weight: 800;
}

/* --- the tile per section --- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--sp-line);
	border-radius: 16px;
	background: #fff;
	color: var(--sp-navy-dark);
	font-weight: 700;
	text-decoration: none;
	transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile:hover,
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile:focus-visible {
	border-color: rgba(245, 196, 0, .85);
	background: linear-gradient(180deg, #fffdf3, #fff);
	color: var(--sp-navy-dark);
	box-shadow: 0 20px 36px -28px rgba(0, 24, 64, .75);
	transform: translateY(-2px);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico {
	--sp-ico: var(--sp-i-home);
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #eef0f3;
	transition: background .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico::before {
	content: "";
	width: 19px;
	height: 19px;
	background-color: #000;
	-webkit-mask: var(--sp-ico) center / contain no-repeat;
	mask: var(--sp-ico) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile:hover .sp-tile-ico,
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile:focus-visible .sp-tile-ico { background: var(--sp-gold); }

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--cert { --sp-ico: var(--sp-i-cert); }
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--courses { --sp-ico: var(--sp-i-book); }
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--ticket { --sp-ico: var(--sp-i-ticket); }
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--star { --sp-ico: var(--sp-i-star); }
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--orders { --sp-ico: var(--sp-i-orders); }
body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-ico--user { --sp-ico: var(--sp-i-user); }

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-body { display: grid; gap: 2px; min-width: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-label {
	color: var(--sp-navy-dark);
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-desc {
	color: var(--sp-muted);
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.7;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile-go {
	width: 18px;
	height: 18px;
	background-color: var(--sp-muted);
	-webkit-mask: var(--sp-i-go) center / contain no-repeat;
	mask: var(--sp-i-go) center / contain no-repeat;
	transition: background-color .18s, transform .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-tile:hover .sp-tile-go {
	background-color: var(--sp-gold-deep);
	transform: translateX(-3px);
}

/* --- logout --- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-out {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px;
	border: 1px solid rgba(179, 38, 30, .22);
	border-radius: 14px;
	background: rgba(179, 38, 30, .05);
	color: var(--sp-danger);
	font-size: .92rem;
	font-weight: 800;
	text-decoration: none;
	transition: background .18s, border-color .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-out:hover {
	border-color: rgba(179, 38, 30, .45);
	background: rgba(179, 38, 30, .1);
	color: var(--sp-danger);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-out-ico {
	width: 17px;
	height: 17px;
	background-color: currentColor;
	-webkit-mask: var(--sp-i-out) center / contain no-repeat;
	mask: var(--sp-i-out) center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   6) Section scaffolding — headings, empty states, buttons
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-section { display: grid; gap: 14px; }

body.woocommerce-account .woocommerce-MyAccount-content :is(.sp-section-title, .sp-section-sub) { margin: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-section-title {
	color: var(--sp-navy-dark);
	font-size: 1.28rem;
	font-weight: 800;
	line-height: 1.6;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-section-sub {
	margin-block-start: -8px;
	color: var(--sp-muted);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.95;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-section-foot { margin: 0; font-size: .87rem; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 34px 20px;
	border: 1px dashed rgba(16, 42, 113, .22);
	border-radius: 16px;
	background: linear-gradient(180deg, #fffdf6, #fff);
	text-align: center;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty-ico {
	--sp-ico: var(--sp-i-book);
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--sp-gold-soft);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty-ico::before {
	content: "";
	width: 26px;
	height: 26px;
	background-color: var(--sp-navy);
	-webkit-mask: var(--sp-ico) center / contain no-repeat;
	mask: var(--sp-ico) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty-ico--cert { --sp-ico: var(--sp-i-cert); }

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty-title {
	margin: 8px 0 0;
	color: var(--sp-navy-dark);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-empty-text {
	max-width: 44ch;
	margin: 0 0 8px;
	color: var(--sp-muted);
	font-size: .84rem;
	line-height: 1.95;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding-block: 0;
	padding-inline: 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: .88rem;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-btn--gold {
	background: linear-gradient(180deg, #ffd948, var(--sp-gold) 58%, var(--sp-gold-deep));
	color: var(--sp-navy-dark);
	box-shadow: 0 16px 28px -18px rgba(224, 176, 0, .95);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-btn--gold:hover {
	color: var(--sp-navy-dark);
	transform: translateY(-1px);
	box-shadow: 0 20px 32px -18px rgba(224, 176, 0, 1);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-btn--ghost {
	border-color: var(--sp-line);
	background: #fff;
	color: var(--sp-navy);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-btn--ghost:hover {
	border-color: rgba(245, 196, 0, .8);
	background: var(--sp-gold-soft);
	color: var(--sp-navy-dark);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-mini-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding-inline: 15px;
	border: 1px solid var(--sp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--sp-navy);
	font-size: .82rem;
	font-weight: 800;
	line-height: 1.7;
	text-decoration: none;
	transition: background .18s, border-color .18s, color .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-mini-btn:hover {
	border-color: rgba(245, 196, 0, .8);
	background: var(--sp-gold-soft);
	color: var(--sp-navy-dark);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-mini-btn--ghost { background: #f7f8fb; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--sp-gold-soft);
	color: var(--sp-navy-dark);
	font-size: .72rem;
	font-weight: 800;
	line-height: 1.9;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-chip--ok { background: rgba(26, 127, 69, .13); color: var(--sp-ok); }

/* ---- Favourites without a cover image -------------------------------------
   `semnan_favorites_render()` omits `.semnan-fav-thumb` when the record has no
   featured image, but account.css's `.semnan-fav-item` grid always reserves the
   68px cover column — so the body fell into that 68px column and the title
   wrapped to six lines (a 231px card next to a 146px one). Give the body the
   whole width whenever the cover is absent. */
body.woocommerce-account .woocommerce-MyAccount-content .semnan-fav-item:not(:has(.semnan-fav-thumb)) {
	grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-account .woocommerce-MyAccount-content .semnan-fav-item:not(:has(.semnan-fav-thumb)) .semnan-fav-body { grid-column: 1 / -1; }

body.woocommerce-account .woocommerce-MyAccount-content .semnan-fav-item:not(:has(.semnan-fav-thumb)) .semnan-fav-remove { margin-block-start: 10px; }

/* --------------------------------------------------------------------------
   7) «دوره‌های من»
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-courses,
body.woocommerce-account .woocommerce-MyAccount-content .sp-certs {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--sp-line);
	border-radius: 16px;
	background: #fff;
	transition: border-color .18s, box-shadow .18s;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course:hover {
	border-color: rgba(245, 196, 0, .75);
	box-shadow: 0 20px 34px -30px rgba(0, 24, 64, .8);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-thumb {
	display: grid;
	place-items: center;
	width: 96px;
	height: 72px;
	overflow: hidden;
	border-radius: 12px;
	background: linear-gradient(150deg, #eef0f3, #f7f8fb);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-mono {
	color: var(--sp-navy);
	font-size: 1.6rem;
	font-weight: 800;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-body { display: grid; gap: 4px; min-width: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-price {
	color: var(--sp-muted);
	font-size: .74rem;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-title {
	color: var(--sp-navy-dark);
	font-size: .97rem;
	font-weight: 800;
	line-height: 1.75;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-title:hover { color: var(--sp-gold-deep); }

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-teacher {
	color: var(--sp-muted);
	font-size: .78rem;
	font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-course-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* --------------------------------------------------------------------------
   8) «گواهینامه‌های من»
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-cert {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid rgba(245, 196, 0, .55);
	border-radius: 16px;
	background: linear-gradient(135deg, #fffdf3, #fff 62%);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-ico {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--sp-navy-dark);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-ico::before {
	content: "";
	width: 23px;
	height: 23px;
	background-color: var(--sp-gold);
	-webkit-mask: var(--sp-i-cert) center / contain no-repeat;
	mask: var(--sp-i-cert) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-body { display: grid; gap: 2px; min-width: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-kicker {
	color: var(--sp-muted);
	font-size: .72rem;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-title {
	color: var(--sp-navy-dark);
	font-size: .97rem;
	font-weight: 800;
	line-height: 1.75;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-meta {
	color: var(--sp-muted);
	font-size: .76rem;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   9) The printable certificate
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-page { gap: 16px; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-cert-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-print-btn::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--sp-i-print) center / contain no-repeat;
	mask: var(--sp-i-print) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet {
	padding: 10px;
	border-radius: 18px;
	background: linear-gradient(140deg, var(--sp-gold-deep), #ffe894 42%, var(--sp-gold) 78%, var(--sp-gold-deep));
	box-shadow: 0 28px 52px -34px rgba(0, 24, 64, .7);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-inner {
	position: relative;
	padding: 30px 26px 24px;
	border: 1px solid rgba(16, 42, 113, .2);
	border-radius: 11px;
	background: #fffdf5;
	text-align: center;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-inner::before {
	content: "";
	position: absolute;
	inset: 13px;
	border: 1px dashed rgba(16, 42, 113, .24);
	border-radius: 6px;
	pointer-events: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block-end: 16px;
	border-block-end: 1px solid rgba(16, 42, 113, .12);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--sp-navy-dark);
	font-size: .92rem;
	font-weight: 800;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--sp-navy-dark);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-mark::before {
	content: "";
	width: 17px;
	height: 17px;
	background-color: var(--sp-gold);
	-webkit-mask: var(--sp-i-cert) center / contain no-repeat;
	mask: var(--sp-i-cert) center / contain no-repeat;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-code {
	color: var(--sp-muted);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .02em;
}

body.woocommerce-account .woocommerce-MyAccount-content :is(.sp-sheet-kicker, .sp-sheet-name, .sp-sheet-text, .sp-sheet-course, .sp-sheet-teacher) { position: relative; margin: 0; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-kicker {
	margin-block-start: 26px;
	color: var(--sp-navy);
	font-size: .86rem;
	font-weight: 800;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-name {
	margin-block-start: 6px;
	color: var(--sp-navy-dark);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.5;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-text {
	margin-block-start: 6px;
	color: var(--sp-muted);
	font-size: .88rem;
	line-height: 1.95;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-course {
	display: inline-block;
	margin-block-start: 14px;
	padding: 9px 22px;
	border: 1px solid rgba(16, 42, 113, .16);
	border-radius: 999px;
	background: var(--sp-gold-soft);
	color: var(--sp-navy-dark);
	font-size: 1.02rem;
	font-weight: 800;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-teacher {
	margin-block-start: 10px;
	color: var(--sp-muted);
	font-size: .82rem;
	font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-foot {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-block-start: 28px;
	padding-block-start: 18px;
	border-block-start: 1px solid rgba(16, 42, 113, .12);
	text-align: start;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-field {
	display: grid;
	gap: 2px;
	color: var(--sp-ink);
	font-size: .84rem;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-field b {
	color: var(--sp-muted);
	font-size: .72rem;
	font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-field--end { text-align: end; }

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-seal {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	border: 2px dashed rgba(16, 42, 113, .3);
	background: radial-gradient(circle, rgba(245, 196, 0, .32), rgba(245, 196, 0, 0) 72%);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-seal i {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(160deg, #ffe98f, var(--sp-gold) 52%, var(--sp-gold-deep));
	box-shadow: 0 10px 20px -12px rgba(224, 176, 0, .95);
}

body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-hint {
	margin: 0;
	color: var(--sp-muted);
	font-size: .8rem;
	text-align: center;
}

/* --------------------------------------------------------------------------
   10) Login-form fixes (2026-10-17) — the password eye, the fine-print link.
   -------------------------------------------------------------------------- */
/* (a) The eye toggle is positioned on the RIGHT of `.semnan-pass-wrap` (an RTL
   parent → `inset-inline-start` = right), but the password input itself is
   `dir="ltr"`, so its text starts on the LEFT. The logical
   `padding-inline-start: 46px` that account.css ships therefore reserves the
   WRONG edge — and Chrome lets a physical shorthand (`padding: 12px 14px`)
   outrank a logical longhand, so the computed padding stayed 14px and the
   typed password ran straight under the glyph («حروف و آیکون در هم رفت»).
   Reserve the RIGHT edge with a PHYSICAL property. `!important` is deliberate:
   the login input ALSO matches `body.woocommerce-account form .form-row
   input.input-text` in account.css at specificity (0,3,3) — higher than the
   (0,2,2) this file can reach without coupling to Agent 5's inner classes —
   and account.css is being actively edited, so a specificity race would recur. */
body.woocommerce-account .semnan-pass-wrap input,
body.page-id-188 .semnan-pass-wrap input {
	padding-right: 46px !important;
}

/* (b) `.semnan-fine` colours the <p>, but an <a> with NO author colour takes
   the UA link blue (#0000EE = rgb(0,0,238)) — a UA rule beats inheritance, so
   the muted parent never reaches it. That is the «ثبت‌نام کن» / «وارد شو»
   link the user flagged as a colour that was never approved. Match the other
   form links (`.semnan-forgot` → --sp-navy). */
body.woocommerce-account .semnan-fine a,
body.page-id-188 .semnan-fine a {
	color: var(--sp-navy);
	text-decoration: none;
}

body.woocommerce-account .semnan-fine a:hover,
body.page-id-188 .semnan-fine a:hover,
body.woocommerce-account .semnan-fine a:focus-visible,
body.page-id-188 .semnan-fine a:focus-visible {
	color: var(--sp-navy-dark);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11) WooCommerce notice icons — recolour + fix the RTL overlap.
   -------------------------------------------------------------------------- */
/* WooCommerce ships its own notice glyphs (info/message/error) coloured with
   its own palette (#1e85be / #8fae1b / #b81c23) and an LTR padding assumption.
   In RTL the icon sits on the RIGHT but the padding was on the LEFT, so the
   glyph landed inside the text («یه آیکون با رنگ ممنوعه که داخل متن رفته»).
   Recolour to the site palette and flip the padding so the text clears the icon.
   !important is deliberate: this overrides both WooCommerce's own CSS and
   account.css (Agent 5's file, actively edited) without coupling to their
   inner classes. */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.page-id-188 .woocommerce-info,
body.page-id-188 .woocommerce-message,
body.page-id-188 .woocommerce-error {
	padding: 14px 46px 14px 18px !important;
}

body.woocommerce-account .woocommerce-info::before,
body.page-id-188 .woocommerce-info::before { color: var(--sp-navy) !important; }
body.woocommerce-account .woocommerce-message::before,
body.page-id-188 .woocommerce-message::before { color: var(--sp-ok) !important; }
body.woocommerce-account .woocommerce-error::before,
body.page-id-188 .woocommerce-error::before { color: var(--sp-danger) !important; }

/* --------------------------------------------------------------------------
   12) Phones — everything stacks. (The nav chip rules below are dormant for
        the same reason as section 3 — the rail is hidden.)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	body.woocommerce-account main#content .elementor-shortcode {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
		margin-inline: -16px;
		padding-block: 4px 10px;
		padding-inline: 16px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.woocommerce-account .woocommerce-MyAccount-navigation ul li { flex: 0 0 auto; scroll-snap-align: start; }

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 9px 14px;
		border: 1px solid var(--sp-line);
		border-radius: 999px;
		background: #fff;
		box-shadow: var(--sp-shadow-sm);
		font-size: .86rem;
		white-space: nowrap;
	}

	/* inside a chip the glyph sits in the flow — no absolute pill */
	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before { display: none; }

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::after {
		position: static;
		margin: 0;
		width: 17px;
		height: 17px;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
		border-color: var(--sp-navy-dark);
		box-shadow: 0 14px 26px -22px rgba(0, 24, 64, .95);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { border-color: rgba(179, 38, 30, .28); }

	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-tiles { grid-template-columns: minmax(0, 1fr); }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-hero { padding: 18px 16px; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-name { font-size: 1.16rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-avatar { width: 52px; height: 52px; font-size: 1.32rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stats { gap: 8px; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat { padding: 13px 6px; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat b { font-size: 1.28rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat span { font-size: .72rem; }

	/* course row: thumbnail + text, the buttons move under the title */
	body.woocommerce-account .woocommerce-MyAccount-content .sp-course {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 12px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .sp-course-thumb { width: 76px; height: 76px; }

	body.woocommerce-account .woocommerce-MyAccount-content .sp-course-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .sp-course-actions .sp-mini-btn { flex: 1 1 auto; }

	body.woocommerce-account .woocommerce-MyAccount-content .sp-cert {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 12px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .sp-cert .sp-mini-btn { grid-column: 1 / -1; }

	body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-inner { padding: 22px 16px 18px; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-name { font-size: 1.42rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-foot { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-field { justify-items: center; text-align: center; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-sheet-field--end { text-align: center; }
}

@media (max-width: 420px) {
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat b { font-size: 1.16rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stat span { font-size: .68rem; }
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-eyebrow { font-size: .7rem; }
}

/* --------------------------------------------------------------------------
   13) Print — a certificate is the only thing on the sheet
   -------------------------------------------------------------------------- */
@media print {
	body.semnan-cert-view,
	body.semnan-cert-view main#content { background: #fff !important; }

	body.semnan-cert-view .site-header,
	body.semnan-cert-view .site-footer,
	body.semnan-cert-view .elementor-location-header,
	body.semnan-cert-view .elementor-location-footer,
	body.semnan-cert-view .woocommerce-MyAccount-navigation,
	body.semnan-cert-view .sp-back,
	body.semnan-cert-view .woocommerce-notices-wrapper,
	body.semnan-cert-view .sp-cert-actions,
	body.semnan-cert-view .sp-sheet-hint { display: none !important; }

	body.semnan-cert-view main#content { padding: 0 !important; }

	body.semnan-cert-view .woocommerce,
	body.semnan-cert-view .elementor-shortcode { display: block !important; }

	body.semnan-cert-view .woocommerce-MyAccount-content {
		max-width: none;
		padding: 0 !important;
		border: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
	}

	body.semnan-cert-view .sp-sheet { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body.semnan-cert-view .sp-sheet-inner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

	@page {
		size: A4 landscape;
		margin: 12mm;
	}
}

/* --------------------------------------------------------------------------
   20) Four counters — «دوره · بلیط · گواهینامه · علاقه»   (module «تیکت»)

   Appended at the very END on purpose: a media query adds NO specificity, so
   a `--4` rule must come after BOTH the base `.sp-hub-stats` rule (~line 295)
   and the `@media (max-width:420px)` `repeat(3)` override — otherwise the
   equal-specificity tie (.0,3,1 vs .0,3,1) is decided by source order and the
   four columns would collapse to three on small screens.
   -------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stats--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 640px) {
	body.woocommerce-account .woocommerce-MyAccount-content .sp-hub-stats--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
