/* ==========================================================================
   Saifi LMS — Public Stylesheet
   ========================================================================== */


/* Custom Properties */
:root {
	--saifi-primary:       #003B5C;
	--saifi-primary-light: #004f7a;
	--saifi-primary-dark:  #002840;
	--saifi-accent:        #F2A900;
	--saifi-accent-light:  #f5bb33;
	--saifi-accent-dark:   #c98e00;
	--saifi-bg:            #F4F3EF;
	--saifi-white:         #ffffff;
	--saifi-text:          #1a1a1a;
	--saifi-muted:         #6b7280;
	--saifi-border:        #e0dfd9;
	--saifi-radius:        12px;
	--saifi-radius-sm:     8px;
	--saifi-shadow:        0 2px 12px rgba(0,0,0,.08);
	--saifi-shadow-md:     0 4px 24px rgba(0,0,0,.12);
	--saifi-transition:    .2s ease;
}

/* Base reset inside plugin wrappers */
.saifi-catalog-wrap *,
.saifi-single-wrap *,
.saifi-dashboard-wrap *,
.saifi-auth-shell * {
	box-sizing: border-box;
}

/* Force Gloriola on every element inside auth shell (covers divs, spans, buttons) */
.saifi-auth-shell,
.saifi-auth-shell * {
	font-family: 'Gloriola-Regular', sans-serif;
}

/* ==========================================================================
   CATALOG
   ========================================================================== */

.saifi-catalog-outer {
	max-width: 1350px;
	margin: 0 auto;
	background: var(--saifi-white);
	border-radius: var(--saifi-radius);
	overflow: hidden;
	border: .5px solid var(--saifi-border);
}
/* Prevent horizontal scrollbar caused by the 100vw breakout */
body:has(.saifi-catalog-page) { overflow-x: hidden; }

/* Remove the theme's .pt-120 spacing on the catalog page only */
body:has(.saifi-catalog-page) .pt-120 { padding-top: 0 !important; }
body:has(.saifi-catalog-page) .pb-120 { padding-bottom: 0 !important; }

/* Catalog archive page — break out of the theme's content container */
.saifi-catalog-page {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	max-width: 100vw;
	border-radius: 0;
	border-left: none;
	border-right: none;
}

.saifi-catalog-wrap {
	color: var(--saifi-text);
	background: var(--saifi-bg);
	min-height: 100vh;
}

/* Term switcher */
.saifi-term-switcher {
	background: var(--saifi-primary-dark);
	border-bottom: 1px solid rgba(255,255,255,.1);
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.saifi-term-switcher::-webkit-scrollbar { display: none; }
.saifi-term-switcher-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	flex-shrink: 0;
	padding: 10px 0;
}
.saifi-term-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}
.saifi-term-year-sep {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,.3);
	padding: 0 6px 0 10px;
	letter-spacing: .06em;
	flex-shrink: 0;
}
.saifi-term-year-sep:first-child { padding-left: 0; }
.saifi-term-tab {
	background: transparent;
	border: none;
	color: rgba(255,255,255,.55);
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--saifi-transition);
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	flex-shrink: 0;
}
.saifi-term-tab:hover { color: rgba(255,255,255,.88); }
.saifi-term-tab.active {
	color: var(--saifi-white);
	border-bottom-color: var(--saifi-accent);
}

/* Hero dates sub-line */
.saifi-hero-dates {
	font-size: 14px;
	color: rgba(255,255,255,.65);
	margin: -6px 0 16px;
	letter-spacing: .01em;
}

/* ============================================================
   New Catalog Hero  (Catalog archive page — no current term)
   ============================================================ */
.saifi-cat-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 100vh;
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
}
.saifi-cat-hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--saifi-primary);
	opacity: .65;
	pointer-events: none;
}
.saifi-cat-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 638px;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.saifi-cat-hero-title {
	font-family: 'Gloriola-Regular', sans-serif;
	font-size: 4rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.15;
	margin: 0 0 32px;
	word-break: normal;
	white-space: normal;
	animation: saifi-fadein .9s ease both;
}
.saifi-cat-accent { color: var(--saifi-accent); }
.saifi-cat-bold   { font-weight: 600; }
.saifi-cat-hero-dates {
	display: block;
	color: var(--saifi-accent);
	font-size: 3rem;
	margin-top: 12px;
}
.saifi-cat-hero-body {
	font-family: 'Outfit', sans-serif;
	font-size: 1.2rem;
	font-weight: 400;
	color: #ffffff;
	line-height: 1.7;
	text-align: center;
	max-width: 520px;
	margin: 24px 0;
	animation: saifi-fadein .9s ease .15s both;
}
.saifi-cat-hero-body + .saifi-cat-hero-body { margin-top: 0; }
.saifi-cat-hero-btns {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
	animation: saifi-fadein .9s ease .3s both;
}
.saifi-cat-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	line-height: 1;
	border: 2px solid transparent;
	transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
	cursor: pointer;
}
.saifi-cat-btn-filled {
	background: var(--saifi-accent);
	color: #ffffff;
	border-color: #FFB236;
}
.saifi-cat-btn-filled:hover {
	background: var(--saifi-primary-dark);
	color: #ffffff;
	border-color: var(--saifi-primary-dark);
	box-shadow: 0 10px 20px -6px rgba(0,0,0,.25);
}
.saifi-cat-btn-ghost {
	background: transparent;
	color: #ffffff;
	border-color: rgba(255,255,255,.55);
}
.saifi-cat-btn-ghost:hover {
	background: var(--saifi-primary-dark);
	color: #ffffff;
	border-color: var(--saifi-primary-dark);
	box-shadow: 0 10px 20px -6px rgba(0,0,0,.25);
}
@keyframes saifi-fadein {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1200px) and (max-width: 1399px) {
	.saifi-cat-hero-inner {
		transform: translateY(32px);
	}
	.saifi-cat-hero-title {
		margin-bottom: 24px;
	}
	.saifi-cat-hero-body {
		margin: 18px 0;
	}
}
@media (min-width: 1200px) and (max-height: 820px) {
	.saifi-cat-hero {
		min-height: 780px;
	}
	.saifi-cat-hero-inner {
		transform: translateY(44px);
	}
}
@media (max-width: 1024px) {
	.saifi-cat-hero-title { font-size: 3rem; }
	.saifi-cat-hero-body  { font-size: 1.1rem; max-width: 80%; }
}
@media (max-width: 768px) {
	.saifi-cat-hero       { padding: 0 20px; height: 100vh; min-height: 100vh; }
	.saifi-cat-hero-inner { padding: 0 8px; }
	.saifi-cat-hero-title { font-size: 2.4rem; }
	.saifi-cat-hero-body  { font-size: 1rem; max-width: 100%; margin: 16px 0; }
	.saifi-cat-hero-btns  { flex-direction: column; width: 100%; gap: 10px; }
	.saifi-cat-btn        { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
	.saifi-cat-hero-title { font-size: 2rem; }
	.saifi-cat-hero-body  { font-size: .95rem; }
	.saifi-cat-btn        { padding: 14px 24px; font-size: 13px; }
}

/* ============================================================
   Legacy Catalog Hero  (Term archive pages)
   ============================================================ */
/* Hero */
.saifi-catalog-hero {
	background: linear-gradient(135deg, var(--saifi-primary-dark) 0%, var(--saifi-primary) 60%, #005070 100%);
	color: var(--saifi-white);
	padding: 30px 26px 26px;
	position: relative;
	overflow: hidden;
}
.saifi-catalog-hero::after {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 220px;
	height: 220px;
	background: var(--saifi-accent);
	opacity: .07;
	border-radius: 50%;
}
.saifi-hero-eye {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--saifi-accent-light);
	margin-bottom: 7px;
}
.saifi-hero-title {
	font-size: 22px;
	font-weight: 500;
	color: var(--saifi-white);
	margin: 0 0 6px;
	line-height: 1.25;
}
.saifi-hero-desc {
	font-size: 13px;
	color: rgba(255,255,255,.7);
	max-width: 540px;
	margin: 0 0 16px;
	line-height: 1.6;
}

/* Search — sidebar context (Catalog page) */
.saifi-search-wrap {
	display: flex;
	align-items: center;
	background: var(--saifi-white);
	border: 1px solid var(--saifi-border);
	border-radius: 15px;
	width: 100%;
	padding: 5px 5px 5px 14px;
	gap: 6px;
	margin-bottom: 8px;
}
.saifi-search-icon {
	display: flex;
	align-items: center;
	color: var(--saifi-muted);
	flex-shrink: 0;
}
.saifi-search-wrap input[type=text],
.saifi-search-wrap input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	box-shadow: none;
	padding: 7px 0;
	font-size: 13px;
	color: var(--saifi-text);
	min-width: 0;
}
.saifi-search-wrap input::placeholder { color: var(--saifi-muted); }
.saifi-search-wrap button {
	background: var(--saifi-accent);
	border: none;
	padding: 9px 20px;
	border-radius: 15px;
	color: var(--saifi-primary-dark);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	flex-shrink: 0;
	white-space: nowrap;
}
.saifi-search-wrap button:hover { background: var(--saifi-accent-light); }
.saifi-search-hint {
	font-size: 11px;
	color: var(--saifi-muted);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.saifi-search-kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--saifi-bg);
	border: 1px solid var(--saifi-border);
	border-radius: 4px;
	padding: 1px 5px;
	font-size: 11px;
	font-family: inherit;
	color: var(--saifi-muted);
	line-height: 1.4;
}

/* Search — hero context (Term page) */
.saifi-catalog-hero .saifi-search-wrap {
	background: rgba(255,255,255,.11);
	border-color: rgba(255,255,255,.22);
	border-radius: 9px;
	max-width: 480px;
	width: auto;
	padding: 0;
	gap: 0;
	margin-bottom: 0;
	overflow: hidden;
}
.saifi-catalog-hero .saifi-search-wrap input {
	color: var(--saifi-white);
	padding: 10px 14px;
}
.saifi-catalog-hero .saifi-search-wrap input::placeholder { color: rgba(255,255,255,.42); }
.saifi-catalog-hero .saifi-search-wrap button {
	border-radius: 0;
	padding: 0 18px;
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.saifi-catalog-hero {
		padding-top: 56px;
	}
}
@media (min-width: 1200px) and (max-height: 820px) {
	.saifi-catalog-hero {
		padding-top: 64px;
	}
}

/* Meta bar — constrained when inside the full-bleed catalog page */
.saifi-catalog-page .saifi-meta-bar {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

/* Meta bar */
.saifi-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	background: var(--saifi-white);
	border-bottom: 1px solid var(--saifi-border);
	flex-wrap: wrap;
	gap: 10px;
}
.saifi-meta-count { font-size: 14px; color: var(--saifi-muted); }
.saifi-meta-count strong { color: var(--saifi-text); }
.saifi-meta-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.saifi-sort-row { display: none; align-items: center; gap: 8px; font-size: 14px; }
.saifi-sort-row label { color: var(--saifi-muted); }
#saifi-sort {
	border: 1px solid var(--saifi-border);
	border-radius: var(--saifi-radius-sm);
	padding: 6px 10px;
	font-size: 14px;
	color: var(--saifi-text);
	background: var(--saifi-white);
	cursor: pointer;
}
.saifi-grid-toggle-wrap {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
	grid-column: 1 / -1;
}
.saifi-view-toggle {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border: 1px solid var(--saifi-border);
	border-radius: 12px;
	background: var(--saifi-white);
	box-shadow: 0 1px 4px rgba(0,59,92,.04);
}
.saifi-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	border-radius: 9px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--saifi-muted);
	cursor: pointer;
	transition: var(--saifi-transition);
}
.saifi-view-btn:hover { color: var(--saifi-primary); }
.saifi-view-btn.active {
	background: rgba(0,59,92,.08);
	color: var(--saifi-primary);
}
.saifi-view-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Layout */
.saifi-catalog-layout {
	display: flex;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px;
	gap: 24px;
	align-items: flex-start;
}

/* Filters sidebar */
.saifi-filters-sidebar {
	width: 300px;
	flex-shrink: 0;
	background: var(--saifi-white);
	border-radius: var(--saifi-radius);
	border: 1px solid var(--saifi-border);
	padding: 20px;
	position: sticky;
	top: 24px;
}
.saifi-filters-close {
	display: none !important;
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: var(--saifi-muted);
}
.saifi-filter-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 16px;
	color: var(--saifi-primary);
}
.saifi-filter-head-icon {
	color: var(--saifi-primary);
	flex-shrink: 0;
}
.saifi-filter-group { border-top: 1px solid var(--saifi-border); padding: 12px 0; }
.saifi-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	user-select: none;
}
.saifi-filter-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 14px;
	font-size: 14px;
	line-height: 1;
	font-weight: 600;
	color: var(--saifi-muted);
	transition: var(--saifi-transition);
}
.saifi-filter-chevron { transform: rotate(0); }
.saifi-filter-chevron.open { transform: rotate(180deg); }
.saifi-filter-body {
	margin-top: 10px;
	display: none;
	flex-direction: column;
	gap: 6px;
}
.saifi-filter-body.open { display: flex; flex-direction: column; }
.saifi-fo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
	color: var(--saifi-text);
}
.saifi-fo input[type=checkbox] { accent-color: var(--saifi-primary); width: 15px; height: 15px; cursor: pointer; }
.saifi-filter-year-divider {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-top: 10px;
}
.saifi-filter-year-divider:first-of-type { margin-top: 2px; }
.saifi-filter-year-divider::before,
.saifi-filter-year-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}
.saifi-clear-filters {
	width: 100%;
	margin-top: 12px;
	background: none;
	border: 1px solid var(--saifi-border);
	border-radius: var(--saifi-radius-sm);
	padding: 8px;
	font-size: 13px;
	color: var(--saifi-muted);
	cursor: pointer;
	transition: var(--saifi-transition);
}
.saifi-clear-filters:hover { border-color: var(--saifi-primary); color: var(--saifi-primary); }

/* Grid area */
.saifi-grid-area { flex: 1; min-width: 0; }

/* Mobile filters toggle */
.saifi-filters-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	background: var(--saifi-white);
	border: 1px solid var(--saifi-border);
	border-radius: var(--saifi-radius-sm);
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	color: var(--saifi-text);
	margin-bottom: 16px;
}

/* Course grid */
.saifi-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.saifi-course-grid.is-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.saifi-term-section { display: flex; flex-direction: column; gap: 14px; }
.saifi-term-section-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--saifi-border);
}
.saifi-term-section-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: var(--saifi-primary);
}
.saifi-term-date {
	margin-left: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--saifi-muted);
}
.saifi-term-section-count {
	font-size: 13px;
	color: var(--saifi-muted);
	white-space: nowrap;
	margin-left: auto;
	display: none; /* Request 3: hide per-term class count */
}

/* Request 3: hide the catalog search bar (sidebar + term hero) */
.saifi-search-wrap { display: none; }

/* Request 3: keep the view toggle pinned to the right edge of the section
   header now that the count (which supplied margin-left:auto) is hidden */
.saifi-term-section-head .saifi-view-toggle { margin-left: auto; }

/* Term date shown next to each term label in the sidebar Terms filter */
.saifi-filter-term-date { color: var(--saifi-muted); font-size: 11px; margin-left: 4px; white-space: nowrap; }

.saifi-term-list { display: flex; flex-direction: column; gap: 14px; }

/* Course card */
.saifi-course-card {
	background: var(--saifi-white);
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .15s;
	cursor: pointer;
}
.saifi-course-card:hover {
	box-shadow: 0 4px 18px rgba(0,59,92,.12);
	transform: translateY(-2px);
}

/* Card header (coloured gradient by type) */
.saifi-ch { padding: 13px 13px 11px; }
.saifi-ch-ua  { background: linear-gradient(135deg, var(--saifi-primary-dark) 0%, var(--saifi-primary) 100%); }
.saifi-ch-fa  { background: linear-gradient(135deg, #1A3D5C 0%, #185FA5 100%); }
.saifi-ch-uafa{ background: linear-gradient(135deg, #2A1A5C 0%, #5B35A0 100%); }

.saifi-badges-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }

.saifi-badge {
	font-size: 10px;
	font-weight: 500;
	padding: 2px 7px;
	border-radius: 20px;
	letter-spacing: .03em;
}
.saifi-b-fmt  { background: rgba(255,255,255,.17); color: rgba(255,255,255,.92); }
.saifi-b-open { background: var(--saifi-accent);    color: var(--saifi-primary-dark); }
.saifi-b-closed { background: rgba(255,255,255,.11); color: rgba(255,255,255,.76); }
.saifi-b-books { background: rgba(255,255,255,.11); color: rgba(255,255,255,.82); }

.saifi-card-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--saifi-white);
	line-height: 1.3;
	margin-bottom: 2px;
}
.saifi-card-sub { font-size: 11px; color: rgba(255,255,255,.6); }

/* Card body */
.saifi-cb { padding: 11px 13px; flex: 1; display: flex; flex-direction: column; }

.saifi-cd-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--saifi-muted);
	margin-bottom: 6px;
}
.saifi-cd-icon { width: 12px; height: 12px; flex-shrink: 0; opacity: .5; }

/* Card footer */
.saifi-cf {
	border-top: .5px solid var(--saifi-border);
	padding-top: 9px;
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}
.saifi-price { font-size: 16px; font-weight: 500; color: var(--saifi-primary); }
.saifi-cf-right { display: flex; align-items: center; gap: 6px; }

.saifi-card-seats-note { font-size: 11px; font-weight: 500; }
.saifi-seats-low  { color: #dc2626; }
.saifi-seats-full { color: var(--saifi-muted); }

.saifi-btn-card {
	border: none;
	border-radius: 7px;
	padding: 7px 13px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, transform .1s;
	white-space: nowrap;
}
.saifi-btn-card:active { transform: scale(.98); }
.saifi-btn-card-enroll { background: var(--saifi-primary); color: var(--saifi-white); }
.saifi-btn-card-enroll:hover { background: var(--saifi-primary-light); }
.saifi-btn-card-apply { background: transparent; color: var(--saifi-primary); border: 1px solid var(--saifi-primary); }
.saifi-btn-card-apply:hover { background: var(--saifi-primary); color: var(--saifi-white); }
.saifi-btn-card-full { background: var(--saifi-border); color: var(--saifi-muted); cursor: default; }
.saifi-btn-card-enrolled { background: rgba(83,185,72,.14); color: #2f7a2c; cursor: not-allowed; }

.saifi-course-row {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(220px, .9fr) minmax(150px, .5fr);
	align-items: center;
	padding: 20px;
	gap: 18px;
	border: 1px solid rgba(0,59,92,.12);
	box-shadow: 0 3px 12px rgba(0,59,92,.06);
}
.saifi-course-row:hover { transform: translateY(-1px); }
.saifi-course-row-main,
.saifi-course-row-meta,
.saifi-course-row-side {
	min-width: 0;
}
.saifi-course-row .saifi-badges-row { margin-bottom: 10px; }
.saifi-course-row .saifi-badge {
	font-size: 11px;
	padding: 3px 9px;
	border: 1px solid rgba(0,59,92,.12);
}
.saifi-course-row .saifi-b-fmt { background: rgba(0,129,201,.10); color: var(--saifi-primary); }
.saifi-course-row .saifi-b-open { background: rgba(83,185,72,.12); color: #2f7a2c; }
.saifi-course-row .saifi-b-closed { background: rgba(148,163,184,.14); color: #526070; }
.saifi-b-open { display: none; }
.saifi-course-row .saifi-b-books { background: rgba(242,169,0,.10); color: #8b6300; }
.saifi-course-row .saifi-card-title {
	color: var(--saifi-text);
	font-size: 15px;
	margin-bottom: 6px;
}
.saifi-course-row .saifi-card-sub {
	color: var(--saifi-accent-dark);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.saifi-course-row-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-left: 14px;
	border-left: 1px solid var(--saifi-border);
}
.saifi-course-row-meta .saifi-cd-row {
	margin-bottom: 0;
	font-size: 13px;
}
.saifi-course-row-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	padding-left: 14px;
	border-left: 1px solid var(--saifi-border);
}
.saifi-course-row-price-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--saifi-muted);
	display: none; /* Request: hide the "From" price label on catalog list rows */
}
.saifi-course-row-side .saifi-price { font-size: 18px; }
.saifi-course-row-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.saifi-dash-courses-list { gap: 12px; }
.saifi-dashboard-course-row { cursor: default; }
.saifi-dashboard-materials-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
}

/* Dashboard merged overview + course list */
.saifi-dash-overview-stats {
	gap: 14px;
	margin-bottom: 30px;
}
.saifi-dash-overview-stats .saifi-stat-c {
	position: relative;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 8px 26px rgba(0,59,92,.08), 0 1px 2px rgba(14,17,22,.05);
}
.saifi-dash-overview-stats .saifi-stat-c::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--saifi-primary);
}
.saifi-dash-overview-stats .saifi-stat-c-amber::before { background: var(--saifi-accent); }
.saifi-dash-overview-stats .saifi-stat-c-green::before { background: #1A6B3A; }
.saifi-stat-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.saifi-dash-overview-stats .saifi-stat-lbl {
	margin-top: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #6F716C;
}
.saifi-stat-delta {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #E8F5ED;
	color: #1A6B3A;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	white-space: nowrap;
}
.saifi-dash-overview-stats .saifi-stat-num {
	font-size: 34px;
	line-height: 1;
	color: #1A1A18;
}
.saifi-dash-overview-stats .saifi-stat-sub {
	font-size: 12.5px;
	margin-top: 7px;
	color: #6F716C;
}
.saifi-stat-spark {
	display: block;
	width: 100%;
	height: 32px;
	margin-top: 14px;
	color: var(--saifi-primary);
}
.saifi-stat-c-amber .saifi-stat-spark { color: var(--saifi-accent); }
.saifi-stat-c-green .saifi-stat-spark { color: #1A6B3A; }
.saifi-stat-spark path:first-child {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.saifi-stat-spark-fill {
	fill: currentColor;
	fill-opacity: .07;
	stroke: none !important;
}
.saifi-dashboard-course-row.saifi-course-row {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 14px;
	box-shadow: 0 6px 22px rgba(0,59,92,.08), 0 1px 2px rgba(14,17,22,.05);
}
.saifi-dashboard-course-row.saifi-course-row:hover {
	transform: translateY(-1px);
	border-color: rgba(0,59,92,.22);
	box-shadow: 0 10px 30px rgba(0,59,92,.12);
}
.saifi-dashboard-course-row-completed { opacity: .9; }
.saifi-dash-course-rail {
	position: relative;
	width: 150px;
	flex: 0 0 150px;
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	color: #fff;
	background: linear-gradient(135deg, #002440 0%, #003B5C 100%);
	overflow: hidden;
}
.saifi-dash-course-rail::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M24 4l8 8-8 8-8-8z'/%3E%3Cpath d='M24 28l8 8-8 8-8-8z'/%3E%3Cpath d='M4 24l8-8 8 8-8 8z'/%3E%3Cpath d='M28 24l8-8 8 8-8 8z'/%3E%3C/svg%3E");
	background-size: 56px 56px;
}
.saifi-dash-course-rail-fa { background: linear-gradient(135deg, #0E2C46 0%, #185FA5 100%); }
.saifi-dash-course-rail-uafa { background: linear-gradient(135deg, #2A1A5C 0%, #5B35A0 100%); }
.saifi-dashboard-course-row-completed .saifi-dash-course-rail {
	background: linear-gradient(135deg, #25282E 0%, #3F444D 100%);
}
.saifi-dash-course-code {
	position: relative;
	z-index: 1;
	font-size: 31px;
	line-height: 1;
	letter-spacing: 0;
}
.saifi-dash-course-rail-meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 11px;
	color: rgba(255,255,255,.74);
}
.saifi-dash-course-rail-badge {
	align-self: flex-start;
	border-radius: 999px;
	background: var(--saifi-accent);
	color: #1A1208;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 3px 8px;
}
.saifi-dashboard-course-row-completed .saifi-dash-course-rail-badge {
	background: rgba(255,255,255,.16);
	color: rgba(255,255,255,.86);
}
.saifi-dashboard-course-row .saifi-course-row-main {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	align-items: center;
	gap: 28px;
	padding: 20px 24px;
	border: 0;
}
.saifi-dashboard-course-row .saifi-badges-row { margin-bottom: 10px; }
.saifi-dashboard-course-row .saifi-card-title {
	font-size: 19px;
	line-height: 1.2;
	color: #1A1A18;
}
.saifi-dashboard-course-row .saifi-card-sub {
	margin-top: 4px;
	color: #6F716C;
	font-size: 12.5px;
	letter-spacing: 0;
	text-transform: none;
}
.saifi-dash-course-details {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 11px;
}
.saifi-dash-course-detail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #4F514D;
}
.saifi-dash-course-detail svg {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	color: #8A8A85;
}
.saifi-dash-course-actions {
	width: 140px;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}
.saifi-dash-course-actions .saifi-dashboard-materials-btn {
	background: var(--saifi-primary);
	color: var(--saifi-white);
	border-radius: 8px;
	padding: 11px 13px;
	min-height: 34px;
	font-size: 12.5px;
	font-weight: 600;
}
.saifi-dash-course-actions .saifi-dashboard-materials-btn:hover { background: var(--saifi-primary-light); }
.saifi-dash-course-actions .saifi-enr-status-badge {
	align-self: stretch;
	justify-content: center;
	min-height: 34px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: none;
	border: 1px solid rgba(26,107,58,.20);
	background: #E8F5ED;
	color: #1A6B3A;
}
.saifi-enr-status-badge-completed {
	background: rgba(14,17,22,.04) !important;
	color: #6F716C !important;
	border-color: rgba(14,17,22,.08) !important;
}
.saifi-enr-status-badge-completed::before { background: #6F716C; }
.saifi-sec-label-gap { margin-top: 28px; }
.saifi-dashboard-session-list .saifi-session-item {
	border: 0;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(0,59,92,.07);
}

/* States */
.saifi-loading { text-align: center; padding: 60px 20px; color: var(--saifi-muted); font-size: 15px; }
.saifi-no-results { text-align: center; padding: 60px 20px; color: var(--saifi-muted); }
.saifi-link-btn {
	background: none;
	border: none;
	color: var(--saifi-primary);
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
}
.saifi-load-more { text-align: center; margin-top: 24px; }
.saifi-load-more button {
	background: var(--saifi-white);
	border: 1px solid var(--saifi-border);
	border-radius: var(--saifi-radius-sm);
	padding: 12px 32px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--saifi-transition);
	color: var(--saifi-text);
}
.saifi-load-more button:hover { border-color: var(--saifi-primary); color: var(--saifi-primary); }

/* ==========================================================================
   SINGLE CLASS
   ========================================================================== */

.saifi-sc-wrap {
	color: var(--saifi-text);
	background: var(--saifi-bg);
	min-height: 100vh;
}

/* Breadcrumb */
.saifi-bc {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 11px 24px;
	font-size: 12px;
	color: var(--saifi-muted);
	background: var(--saifi-white);
	border-bottom: .5px solid var(--saifi-border);
	flex-wrap: wrap;
}
.saifi-bc a { color: var(--saifi-primary); text-decoration: none; transition: opacity .15s; }
.saifi-bc a:hover { opacity: .75; text-decoration: underline; }
.saifi-bc-sep { opacity: .35; font-size: 10px; }

/* Header */
.saifi-sc-head {
	background: linear-gradient(135deg, var(--saifi-primary-dark) 0%, var(--saifi-primary) 55%, #005580 100%);
	padding: 24px 24px 0;
	position: relative;
	overflow: hidden;
}
.saifi-sc-head::after {
	content: '';
	position: absolute;
	top: -60px; right: -60px;
	width: 240px; height: 240px;
	background: var(--saifi-accent);
	opacity: .07;
	border-radius: 50%;
}
.saifi-sc-head-fa  { background: linear-gradient(135deg, #1A3D5C 0%, #185FA5 100%); }
.saifi-sc-head-uafa{ background: linear-gradient(135deg, #2A1A5C 0%, #5B35A0 100%); }

.saifi-sc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.saifi-sc-badges .saifi-badge {
	font-size: 11px;
	padding: 3px 10px;
}
.saifi-sc-badge {
	font-size: 11px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 20px;
}
.saifi-sc-badge-outline {
	background: rgba(255,255,255,.15);
	color: rgba(255,255,255,.9);
	border: 1px solid rgba(255,255,255,.25);
}
.saifi-sc-badge-gold {
	background: var(--saifi-accent);
	color: var(--saifi-primary-dark);
}

.saifi-sc-title {
	font-size: 21px;
	font-weight: 500;
	color: var(--saifi-white);
	line-height: 1.3;
	margin: 0 0 8px;
	max-width: 620px;
}

.saifi-sc-meta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.saifi-sc-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: rgba(255,255,255,.68);
}

/* Tab nav inside header */
.saifi-sc-tabs { display: flex; gap: 0; }
.saifi-sc-tab {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255,255,255,.6);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	border-top: none; border-left: none; border-right: none;
	background: transparent;
	white-space: nowrap;
	transition: all .15s;
}
.saifi-sc-tab.active { color: var(--saifi-white); border-bottom-color: var(--saifi-accent); }
.saifi-sc-tab:hover:not(.active) { color: rgba(255,255,255,.88); }

/* Split layout */
.saifi-sc-split { display: flex; align-items: flex-start; }
.saifi-sc-content { flex: 1; padding: 22px 24px; min-width: 0; }

/* Tab panels */
.saifi-sc-tab-panel { display: none; }
.saifi-sc-tab-panel.active { display: block; }

/* Section heading */
.saifi-sc-sec-head {
	font-size: 15px;
	font-weight: 500;
	color: var(--saifi-text);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: .5px solid var(--saifi-border);
}

/* Books & materials section (merged into Overview tab) */
.saifi-sc-books-section { margin-top: 18px; }
.saifi-sc-books-section .saifi-sc-sec-head { margin-top: 0; }
.saifi-sc-books-note {
	font-size: 12px;
	color: var(--saifi-muted);
	margin-top: 10px;
	line-height: 1.55;
}

/* Overview text */
.saifi-sc-ov-text {
	font-size: 14px;
	color: #3a3a37;
	line-height: 1.75;
	margin-bottom: 14px;
}

/* Authored overview headings — sizes fixed per spec (H3 22 / H4 18). */
.saifi-sc-ov-text h3 {
	font-size: 22px;
	line-height: 1.3;
	font-weight: 500;
	color: #003B5C;
	margin: 22px 0 10px;
}
.saifi-sc-ov-text h4 {
	font-size: 18px;
	line-height: 1.35;
	font-weight: 500;
	color: #003B5C;
	margin: 16px 0 8px;
}
.saifi-sc-ov-text > h3:first-child,
.saifi-sc-ov-text > *:first-child { margin-top: 0; }

/* Course-details facts table — styled to match the Proficiency Table widget
   (navy header, bordered rows, rounded corners). */
.saifi-sc-ov-text .saifi-facts-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--saifi-border);
	border-radius: 10px;
	overflow: hidden;
	margin: 0 0 20px;
	font-size: 14px;
	background: #fff;
}
.saifi-sc-ov-text .saifi-facts-table td { background: #fff; }
.saifi-sc-ov-text .saifi-facts-table thead th {
	background: var(--saifi-primary);
	color: #fff;
	text-align: center;
	font-weight: 600;
	padding: 12px 16px;
	border: 0;
}
.saifi-sc-ov-text .saifi-facts-table td {
	padding: 12px 16px;
	border-top: 1px solid var(--saifi-border);
	color: #22313F;
	vertical-align: top;
}
.saifi-sc-ov-text .saifi-facts-table tbody tr:first-child td { border-top: 0; }
.saifi-sc-ov-text .saifi-facts-table td:first-child {
	font-weight: 600;
	color: var(--saifi-primary);
	width: 34%;
}

/* Overview bullet lists — brand check marker (SVG background, always renders). */
.saifi-sc-ov-text ul {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.saifi-sc-ov-text ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
	line-height: 1.6;
}
.saifi-sc-ov-text ul li::before {
	content: '';
	position: absolute;
	left: 0; top: 3px;
	width: 17px; height: 17px;
	border-radius: 50%;
	background-color: var(--saifi-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.6 11 12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 11px;
}

/* Feature list */
.saifi-feat-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 16px;
}
.saifi-feat-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: var(--saifi-muted);
}
.saifi-fcheck {
	width: 16px; height: 16px;
	flex-shrink: 0; margin-top: 2px;
	background: var(--saifi-primary);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
/* Brand check drawn with CSS borders — no icon font dependency (the previous
   '✓' glyph rendered as tofu when the active font lacked it). */
.saifi-fcheck::after {
	content: '';
	width: 4px; height: 7px;
	margin-top: -1px;
	border: solid #fff;
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
}

/* Info box */
.saifi-info-box {
	background: rgba(0,59,92,.05);
	border: .5px solid var(--saifi-border);
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 12px;
	color: var(--saifi-muted);
}
.saifi-info-box strong { color: var(--saifi-primary); }

/* Prerequisites */
.saifi-preq-grid { display: flex; flex-direction: column; gap: 8px; }
.saifi-preq-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--saifi-white);
	border: .5px solid var(--saifi-border);
	border-radius: 8px;
	font-size: 13px;
}
.saifi-preq-icon {
	width: 30px; height: 30px;
	border-radius: 7px;
	background: rgba(0,59,92,.07);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
}
.saifi-preq-label { font-weight: 500; color: var(--saifi-text); line-height: 1.25; }
.saifi-preq-sub { font-size: 11px; color: var(--saifi-muted); }

/* Books */
.saifi-book-card {
	display: flex;
	gap: 12px;
	padding: 12px;
	background: var(--saifi-white);
	border: .5px solid var(--saifi-border);
	border-radius: 8px;
	margin-bottom: 10px;
}
.saifi-book-spine {
	width: 44px; height: 58px;
	flex-shrink: 0;
	border-radius: 4px;
	background: var(--saifi-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.saifi-book-spine-inner { width: 32px; height: 44px; background: rgba(255,255,255,.15); border-radius: 2px; }
.saifi-book-spine-gold { background: var(--saifi-accent); }
.saifi-book-title { font-size: 13px; font-weight: 500; color: var(--saifi-text); margin-bottom: 2px; }
.saifi-book-author { font-size: 12px; color: var(--saifi-muted); margin-bottom: 6px; }
.saifi-book-tag {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 20px;
	background: rgba(0,59,92,.08);
	color: var(--saifi-primary);
	font-weight: 500;
	display: inline-block;
}
.saifi-book-tag-incl { background: rgba(242,169,0,.15); color: var(--saifi-accent-dark); }
.saifi-book-tag-opt  { background: rgba(0,59,92,.08);  color: var(--saifi-primary); }

/* Booking sidebar */
.saifi-sc-sidebar {
	width: 272px;
	min-width: 272px;
	padding: 18px 16px;
	background: var(--saifi-bg);
	border-left: .5px solid var(--saifi-border);
	position: sticky;
	top: 0;
	align-self: flex-start;
}
.saifi-bcard {
	background: var(--saifi-white);
	border-radius: 12px;
	border: .5px solid var(--saifi-border);
	overflow: hidden;
	margin-bottom: 12px;
}
.saifi-bcard-top {
	background: var(--saifi-bg);
	padding: 14px 16px;
	border-bottom: .5px solid var(--saifi-border);
}
.saifi-bprice { font-size: 28px; font-weight: 500; color: var(--saifi-primary); line-height: 1; }
.saifi-bprice-note { font-size: 12px; color: var(--saifi-muted); margin-top: 3px; }
.saifi-bcard-body { padding: 14px 16px; }
.saifi-brow {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 6px 0;
	border-bottom: .5px solid rgba(0,59,92,.07);
	font-size: 12px;
}
.saifi-brow:last-of-type { border-bottom: none; }
.saifi-bl { color: var(--saifi-muted); }
.saifi-bv { color: var(--saifi-text); font-weight: 500; text-align: right; max-width: 140px; }

/* Seats bar */
.saifi-spots-wrap { margin: 10px 0 4px; }
.saifi-spots-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}
.saifi-spots-label { font-size: 11px; color: var(--saifi-muted); }
.saifi-spots-avail { font-size: 11px; font-weight: 500; color: var(--saifi-muted); }
.saifi-spots-low { color: #A32D2D; }
.saifi-spots-bar-bg { height: 5px; background: rgba(0,59,92,.1); border-radius: 3px; overflow: hidden; }
.saifi-spots-bar-fill { height: 100%; background: var(--saifi-primary); border-radius: 3px; }
.saifi-spots-bar-low { background: #E24B4A; }
.saifi-bdivider { height: .5px; background: var(--saifi-border); margin: 12px 0; }

/* Enroll / Apply buttons */
.saifi-btn-enroll {
	width: 100%;
	background: var(--saifi-primary);
	color: var(--saifi-white);
	border: none;
	border-radius: 8px;
	padding: 14px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, transform .1s;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.saifi-btn-enroll:hover { background: #F2A900; color: #fff; }
.saifi-btn-enroll:active { transform: scale(.98); }
.saifi-btn-enroll:disabled { background: var(--saifi-border); color: var(--saifi-muted); cursor: not-allowed; }
.saifi-btn-enroll.saifi-btn-enrolled:disabled { background: rgba(83,185,72,.14); color: #2f7a2c; }
.saifi-btn-apply {
	background: transparent;
	color: var(--saifi-primary);
	border: 1px solid var(--saifi-border);
}
.saifi-btn-apply:hover { background: var(--saifi-bg); border-color: var(--saifi-primary); }
.saifi-btn-wish {
	width: 100%;
	background: transparent;
	border: .5px solid var(--saifi-border);
	color: var(--saifi-muted);
	border-radius: 8px;
	padding: 10px;
	font-size: 13px;
	cursor: pointer;
	transition: all .15s;
}
.saifi-btn-wish:hover { border-color: var(--saifi-primary); color: var(--saifi-primary); }

/* Instructor card */
.saifi-inst-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--saifi-white);
	border-radius: 10px;
	border: .5px solid var(--saifi-border);
	margin-bottom: 10px;
}
.saifi-inst-av {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--saifi-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	flex-shrink: 0;
}
.saifi-inst-name { font-size: 13px; font-weight: 500; color: var(--saifi-text); }
.saifi-inst-role { font-size: 11px; color: var(--saifi-muted); }

/* Other times */
.saifi-other-times {
	background: var(--saifi-white);
	border: .5px solid var(--saifi-border);
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 10px;
}
.saifi-other-times-head {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--saifi-muted);
	margin-bottom: 8px;
}
.saifi-other-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--saifi-muted);
	padding: 6px 0;
	border-bottom: .5px solid rgba(0,59,92,.07);
}
.saifi-other-row:last-child { border-bottom: none; }
.saifi-other-row a { color: var(--saifi-primary); font-weight: 500; text-decoration: none; }

/* Share */
.saifi-share-row { display: flex; gap: 6px; margin-top: 6px; }

/* Single class page — hidden per request:
   "Seats available" indicator, the "Class size" info box, and the
   Share / Print info buttons. */
.saifi-spots-wrap,
.saifi-info-box,
.saifi-share-row { display: none; }
.saifi-share-btn {
	flex: 1;
	background: transparent;
	border: .5px solid var(--saifi-border);
	border-radius: 6px;
	padding: 7px 8px;
	font-size: 11px;
	font-weight: 500;
	color: var(--saifi-muted);
	cursor: pointer;
	text-align: center;
	transition: all .12s;
}
.saifi-share-btn:hover { border-color: var(--saifi-primary); color: var(--saifi-primary); }

/* FAQ */
.saifi-faq-section {
	background: var(--saifi-white);
	border-top: .5px solid var(--saifi-border);
	padding: 28px 24px;
}
.saifi-faq-head {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 12px;
	color: var(--saifi-text);
}
.saifi-faq-item {
	border: .5px solid var(--saifi-border);
	border-radius: 8px;
	margin-bottom: 7px;
	overflow: hidden;
	background: var(--saifi-white);
}
.saifi-faq-q {
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--saifi-text);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	transition: background .12s;
	user-select: none;
}
.saifi-faq-q:hover { background: var(--saifi-bg); }
.saifi-faq-ch {
	font-size: 10px;
	color: var(--saifi-muted);
	flex-shrink: 0;
	transition: transform .2s;
	display: inline-block;
}
.saifi-faq-ch.open { transform: rotate(180deg); }
.saifi-faq-a {
	display: none;
	padding: 0 14px 12px;
	font-size: 13px;
	color: var(--saifi-muted);
	line-height: 1.7;
}
.saifi-faq-a.open { display: block; }


/* ==========================================================================
   DASHBOARD
   ========================================================================== */

/* ── Font scoping ──
   No blanket force: the dashboard inherits the site font (Outfit) for body
   text — sidebar nav, buttons, labels, profile fields, orders, materials,
   small text, notices. Gloriola is reserved for the headings/numerals below. */
.saifi-dash-brand-name,
.saifi-dash-topbar-title,
.saifi-qcard-title,
.saifi-stat-num,
.saifi-dash-course-code,
.saifi-dashboard-course-row .saifi-card-title,
.saifi-eval-dash-banner-title,
.saifi-onboarding-title {
	font-family: 'Gloriola-Regular', sans-serif;
}

/* ── Shell ── */
.saifi-dash-shell {
	display: flex;
	width: 100%;
	max-width: 1350px;
	margin: 0 auto;
	min-height: 100vh;
	background: #F4F3EF;
	color: #1A1A18;
}

/* ── Sidebar nav ── */
.saifi-dash-nav {
	width: 220px;
	min-width: 220px;
	background: #00263D;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
}
.saifi-dash-brand {
	padding: 22px 20px 18px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.saifi-dash-brand-name {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	line-height: 1.1;
	letter-spacing: .01em;
}
.saifi-dash-brand-sub {
	font-size: 11px;
	color: rgba(255,255,255,.4);
	margin-top: 2px;
	letter-spacing: .04em;
}
.saifi-dash-student {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,.12);
}
.saifi-dash-av {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #F2A900;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: #002440;
}
.saifi-dash-student-name { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.2; }
.saifi-dash-student-level { font-size: 11px; color: rgba(255,255,255,.42); }
.saifi-dash-links { flex: 1; padding: 8px 0; }
.saifi-dash-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 400;
	color: #fff;
	cursor: pointer;
	transition: background .15s;
	position: relative;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
}
.saifi-dash-link:hover { background: rgba(255,255,255,.08); }
.saifi-dash-link.active { background: rgba(242,169,0,.13); }
.saifi-dash-link.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	bottom: 5px;
	width: 3px;
	background: #F2A900;
	border-radius: 0 2px 2px 0;
}
.saifi-dash-link-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .6; transition: opacity .15s; }
.saifi-dash-link:hover .saifi-dash-link-icon,
.saifi-dash-link.active .saifi-dash-link-icon { opacity: 1; }
.saifi-dash-badge {
	margin-left: auto;
	background: #F2A900;
	color: #002440;
	font-size: 10px;
	font-weight: 600;
	border-radius: 10px;
	padding: 1px 6px;
	min-width: 18px;
	text-align: center;
}
.saifi-dash-bottom { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.saifi-dash-logout {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255,255,255,.38);
	cursor: pointer;
	transition: color .15s;
	background: transparent;
	border: none;
	width: 100%;
}
.saifi-dash-logout:hover { color: rgba(255,255,255,.75); }

/* ── Main area ── */
.saifi-dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.saifi-dash-topbar {
	background: #fff;
	border-bottom: .5px solid rgba(0,59,92,.11);
	padding: 14px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.saifi-dash-topbar-title { font-size: 19px; font-weight: 600; color: #1A1A18; }
.saifi-dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.saifi-dash-term-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 14px 5px 6px;
	border-radius: 999px;
	background: linear-gradient(135deg,#FCEBC4 0%,#FAF1DC 50%,#FCEBC4 100%);
	color: #C98900;
	text-decoration: none;
	text-align: left;
	border: .5px solid rgba(242,169,0,.3);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 0 0 4px rgba(242,169,0,.06), 0 1px 2px rgba(201,137,0,.08);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.saifi-dash-term-chip:hover {
	color: #C98900;
	text-decoration: none;
	border-color: rgba(242,169,0,.45);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 0 0 5px rgba(242,169,0,.09), 0 8px 18px rgba(201,137,0,.12);
	transform: scale(1.02);
}
.saifi-dash-term-icon {
	position: relative;
	z-index: 0;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: linear-gradient(135deg,#F9D77A 0%,#C98900 100%);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(201,137,0,.25);
}
.saifi-dash-term-icon::before {
	content: "";
	position: absolute;
	inset: -4px;
	z-index: -1;
	border-radius: inherit;
	background: #F2A900;
	opacity: .28;
	animation: saifiTermPulse 2.4s cubic-bezier(.2,.8,.2,1) infinite;
}
.saifi-dash-term-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}
.saifi-dash-term-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.05;
}
.saifi-dash-term-eyebrow {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9A6B00;
	white-space: nowrap;
}
.saifi-dash-term-name {
	font-size: 13.5px;
	font-weight: 600;
	color: #4A3208;
	line-height: 1.1;
	margin-top: 2px;
	white-space: nowrap;
}
.saifi-dash-term-arrow {
	font-size: 14px;
	font-weight: 600;
	color: #9A6B00;
	margin-left: 2px;
	transition: transform .2s ease;
}
.saifi-dash-term-chip:hover .saifi-dash-term-arrow {
	transform: translateX(2px);
}
@keyframes saifiTermPulse {
	0% { transform: scale(.9); opacity: .28; }
	70% { transform: scale(1.45); opacity: 0; }
	100% { transform: scale(1.45); opacity: 0; }
}

/* ── Pages ── */
.saifi-dash-page { display: none; padding: 24px 28px; }
.saifi-dash-page.active { display: block; }

.saifi-sec-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8A8A85;
	margin-bottom: 14px;
}

/* ── Overview stats ── */
.saifi-ov-stats {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 12px;
	margin-bottom: 24px;
}
.saifi-stat-c {
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	padding: 16px 18px;
}
.saifi-stat-num { font-size: 24px; font-weight: 500; color: #003B5C; line-height: 1; }
.saifi-stat-lbl { font-size: 12px; color: #5C5C58; margin-top: 4px; }
.saifi-stat-sub { font-size: 11px; color: #8A8A85; margin-top: 2px; }

/* ── Quick course cards (overview) ── */
.saifi-qcards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.saifi-qcard {
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	transition: box-shadow .15s;
}
.saifi-qcard:hover { box-shadow: 0 2px 12px rgba(0,59,92,.09); }
.saifi-qcard-dot {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: #003B5C;
}
.saifi-qcard-dot-fa  { background: #185FA5; }
.saifi-qcard-dot-spec { background: #C98900; }
.saifi-qcard-info { flex: 1; min-width: 0; }
.saifi-qcard-title { font-size: 13px; font-weight: 500; color: #1A1A18; }
.saifi-qcard-meta  { font-size: 12px; color: #5C5C58; }
.saifi-qcard-right { text-align: right; flex-shrink: 0; }
.saifi-prog-wrap { width: 80px; }
.saifi-prog-lbl { font-size: 11px; color: #8A8A85; margin-bottom: 4px; text-align: right; }
.saifi-prog-bar { height: 4px; background: rgba(0,59,92,.11); border-radius: 2px; overflow: hidden; }
.saifi-prog-fill { height: 100%; background: #003B5C; border-radius: 2px; }

/* ── Upcoming sessions ── */
.saifi-session-list { display: flex; flex-direction: column; gap: 8px; }
.saifi-session-item {
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.saifi-session-date { width: 38px; text-align: center; flex-shrink: 0; }
.saifi-session-day { font-size: 18px; font-weight: 500; color: #003B5C; line-height: 1; }
.saifi-session-mon { font-size: 10px; color: #5C5C58; text-transform: uppercase; letter-spacing: .06em; }
.saifi-session-info { flex: 1; }
.saifi-session-title { font-size: 13px; font-weight: 500; color: #1A1A18; }
.saifi-session-sub   { font-size: 12px; color: #5C5C58; }
.saifi-session-badge { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.saifi-sb-today    { background: rgba(242,169,0,.15); color: #C98900; }
.saifi-sb-upcoming { background: #E8F1F7; color: #003B5C; }

/* ── Courses grid ── */
.saifi-dash-courses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
	gap: 14px;
}
.saifi-crs-card {
	background: #fff;
	border-radius: 14px;
	border: .5px solid rgba(0,59,92,.11);
	overflow: hidden;
	transition: box-shadow .2s, transform .15s;
	cursor: pointer;
}
.saifi-crs-card:hover { box-shadow: 0 4px 20px rgba(0,59,92,.1); transform: translateY(-1px); }
.saifi-crs-head {
	padding: 16px 16px 14px;
	background: linear-gradient(135deg,#002440 0%,#003B5C 100%);
}
.saifi-crs-head-fa   { background: linear-gradient(135deg,#1A3D5C 0%,#185FA5 100%); }
.saifi-crs-head-uafa { background: linear-gradient(135deg,#2A1A5C 0%,#5B35A0 100%); }
.saifi-crs-head-badges { display: flex; gap: 5px; margin-bottom: 8px; }
.saifi-crs-hbadge { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 20px; }
.saifi-chb-fmt         { background: rgba(255,255,255,.18); color: rgba(255,255,255,.92); }
.saifi-chb-status-active { background: #F2A900; color: #002440; }
.saifi-chb-status-done   { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
.saifi-crs-head-title { font-size: 14px; font-weight: 500; color: #fff; line-height: 1.3; margin-bottom: 2px; }
.saifi-crs-head-sub   { font-size: 11px; color: rgba(255,255,255,.6); }
.saifi-crs-body { padding: 12px 16px; }
.saifi-crs-prog-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.saifi-crs-prog-lbl { font-size: 12px; color: #5C5C58; }
.saifi-crs-prog-pct { font-size: 12px; font-weight: 500; color: #003B5C; }
.saifi-prog-done { color: #1A6B3A !important; }
.saifi-crs-prog-bar { height: 5px; background: rgba(0,59,92,.1); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.saifi-crs-prog-fill { height: 100%; background: #003B5C; border-radius: 3px; }
.saifi-prog-fill-done { background: #1A6B3A; }
.saifi-crs-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.saifi-crs-detail-row { font-size: 12px; color: #5C5C58; }
.saifi-crs-footer { border-top: .5px solid rgba(0,59,92,.11); padding-top: 10px; display: flex; gap: 6px; }
.saifi-crs-btn { flex: 1; font-size: 12px; font-weight: 500; border-radius: 7px; padding: 7px 10px; cursor: pointer; transition: all .15s; text-align: center; border: none; }
.saifi-crs-btn-primary { background: #003B5C; color: #fff; }
.saifi-crs-btn-primary:hover { background: #004E7A; }
.saifi-crs-btn-outline { background: transparent; color: #003B5C; border: 1px solid #003B5C; }
.saifi-crs-btn-outline:hover { background: #003B5C; color: #fff; }
.saifi-crs-btn-ghost { background: transparent; color: #5C5C58; border: .5px solid rgba(0,59,92,.11); }
.saifi-crs-btn-ghost:hover { border-color: #003B5C; color: #003B5C; }

/* ── Overview badges ── */
.saifi-ov-badge { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }
.saifi-ov-badge-active { background: #F2A900; color: #002440; }
.saifi-ov-badge-done   { background: rgba(0,59,92,.1); color: #5C5C58; }

/* ── Enrollment status badge (My Courses row 3) ── */
.saifi-enr-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: #E8F5ED;
	color: #1A6B3A;
}
.saifi-enr-status-badge::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #1A6B3A;
	flex-shrink: 0;
}

/* ── Orders section label ── */
.saifi-order-section-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8A8A85;
	padding: 6px 0 4px;
}
.saifi-order-section-label:first-child { padding-top: 0; }

/* ── Materials ── */
.saifi-mat-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	padding: 14px 18px;
	margin-bottom: 20px;
}
.saifi-mat-summary-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #E8F1F7;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #003B5C;
	flex-shrink: 0;
}
.saifi-mat-summary-text { flex: 1; }
.saifi-mat-summary-title { font-size: 13px; font-weight: 500; color: #1A1A18; }
.saifi-mat-summary-sub   { font-size: 12px; color: #5C5C58; }
.saifi-mat-summary-count {
	font-size: 12px;
	font-weight: 500;
	background: #E8F1F7;
	color: #003B5C;
	border-radius: 20px;
	padding: 3px 10px;
	flex-shrink: 0;
}
.saifi-mat-group-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8A8A85;
	margin: 18px 0 10px;
}
.saifi-mat-group-label:first-of-type { margin-top: 0; }
.saifi-mat-card {
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	overflow: hidden;
	display: flex;
	align-items: stretch;
	margin-bottom: 8px;
	transition: box-shadow .15s;
}
.saifi-mat-card:hover { box-shadow: 0 2px 14px rgba(0,59,92,.09); }
.saifi-mat-spine {
	width: 6px;
	flex-shrink: 0;
}
.saifi-mat-card-body {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	min-width: 0;
}
.saifi-mat-book-icon {
	width: 44px;
	height: 58px;
	border-radius: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.saifi-mat-book-inner {
	display: flex;
	align-items: center;
	justify-content: center;
}
.saifi-mat-book-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}
.saifi-mat-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.saifi-mat-title {
	font-size: 13px;
	font-weight: 500;
	color: #1A1A18;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.saifi-mat-author {
	font-size: 12px;
	color: #5C5C58;
}
.saifi-mat-tags {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}
.saifi-mat-tag {
	font-size: 10px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 20px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.saifi-mt-included  { background: #E8F5ED; color: #1A6B3A; }
.saifi-mt-purchased { background: #E8F1F7; color: #003B5C; }
.saifi-mt-digital   { background: #FEF6E0; color: #C98900; }
.saifi-mt-physical  { background: rgba(0,59,92,.07); color: #5C5C58; }
.saifi-mat-order {
	font-size: 11px;
	color: #8A8A85;
}
.saifi-mat-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
	padding-left: 10px;
}
.saifi-mat-files {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	width: 100%;
}
.saifi-mat-file {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.saifi-mat-files .saifi-mat-dl-btn {
	max-width: 200px;
	white-space: normal;
	text-align: left;
}
.saifi-mat-free  { font-size: 12px; color: #1A6B3A; font-weight: 500; }
.saifi-mat-price { font-size: 12px; color: #003B5C; font-weight: 500; }
.saifi-mat-dl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #003B5C;
	color: #fff;
	border: none;
	border-radius: 7px;
	padding: 7px 13px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background .14s;
	white-space: nowrap;
}
.saifi-mat-dl-btn:hover:not(:disabled) { background: #004E7A; }
.saifi-mat-dl-btn:disabled { opacity: .6; cursor: not-allowed; }
.saifi-mat-dl-physical {
	background: transparent;
	color: #003B5C;
	border: 1px solid #003B5C;
}
.saifi-mat-dl-physical:hover { background: #003B5C; color: #fff; }
.saifi-mat-dl-exhausted {
	background: #d6d3cd;
	color: #6b6b66;
	cursor: not-allowed;
	pointer-events: none;
	border: 1px solid #c4c1bb;
}
.saifi-mat-dl-exhausted:hover { background: #d6d3cd; }
.saifi-mat-dl-remaining {
	font-size: 11px;
	color: #8A8A85;
	margin-top: 4px;
	text-align: center;
}

/* ── Orders ── */
.saifi-orders-list { display: flex; flex-direction: column; gap: 10px; }
.saifi-order-card { background: #fff; border-radius: 10px; border: .5px solid rgba(0,59,92,.11); }
.saifi-order-head {
	padding: 12px 16px;
	border-bottom: .5px solid rgba(0,59,92,.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.saifi-order-id   { font-size: 12px; font-weight: 500; color: #003B5C; }
.saifi-order-date { font-size: 12px; color: #5C5C58; }
.saifi-order-status { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; }
.saifi-os-paid     { background: #E8F5ED; color: #1A6B3A; }
.saifi-os-refunded { background: #fdf0f0; color: #C0392B; }
.saifi-order-body { padding: 12px 16px; }
.saifi-order-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
}
.saifi-order-item + .saifi-order-item { border-top: .5px solid rgba(0,59,92,.06); }
.saifi-order-item-name  { font-size: 13px; color: #1A1A18; }
.saifi-order-item-meta  { font-size: 11px; color: #5C5C58; }
.saifi-order-item-price { font-size: 14px; font-weight: 500; color: #003B5C; flex-shrink: 0; }
.saifi-order-foot {
	padding: 10px 16px;
	border-top: .5px solid rgba(0,59,92,.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.saifi-order-total-lbl { font-size: 12px; color: #5C5C58; }
.saifi-order-total-val { font-size: 15px; font-weight: 500; color: #003B5C; }
.saifi-order-total-red { color: #C0392B; }
.saifi-order-actions { display: flex; gap: 6px; }
.saifi-order-act-btn { font-size: 12px; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: all .15s; text-decoration: none; display: inline-flex; align-items: center; }
.saifi-oab-outline { background: transparent; border: 1px solid #003B5C; color: #003B5C; }
.saifi-oab-outline:hover { background: #003B5C; color: #fff; }
.saifi-oab-ghost { background: transparent; border: .5px solid rgba(0,59,92,.11); color: #5C5C58; }
.saifi-oab-ghost:hover { border-color: #5C5C58; color: #1A1A18; }

/* Dashboard Orders — CSS-grid "table" (responsive cards on narrow widths) */
.saifi-orders-card {
	background: #fff;
	border: 1px solid var(--saifi-border);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0,59,92,.04), 0 8px 24px -16px rgba(0,59,92,.22);
	overflow: hidden;
}
.saifi-orders-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 22px;
	background: #FBFAF7;
	border-bottom: 1px solid var(--saifi-border);
}
.saifi-orders-head .ttl {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8B939B;
}
.saifi-orders-head .count { font-size: 13px; color: #566069; font-weight: 500; }

/* Shared grid template for the header row and every order row */
.saifi-orders-cols {
	display: grid;
	grid-template-columns: 96px minmax(0,1fr) 96px 100px 150px;
	align-items: center;
	gap: 16px;
}
.saifi-orders-thead {
	padding: 13px 22px;
	border-bottom: 1px solid var(--saifi-border);
	background: #fff;
}
.saifi-oth {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8B939B;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}
.saifi-oth.num { justify-content: flex-end; }
.saifi-oth svg { width: 12px; height: 12px; opacity: .55; stroke-width: 2.2; }
.saifi-oth.sorted { color: var(--saifi-primary); }
.saifi-oth.sorted svg { opacity: 1; }

.saifi-orow {
	padding: 18px 22px;
	border-bottom: 1px solid var(--saifi-border);
	transition: background .12s;
}
.saifi-orow:last-child { border-bottom: 0; }
.saifi-orow:hover { background: #FBFAF7; }

.saifi-ocell-order { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.saifi-ord-id {
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 13px;
	font-weight: 700;
	color: var(--saifi-primary);
	text-decoration: none;
}
.saifi-ord-id:hover { text-decoration: underline; }
.saifi-ord-date { font-size: 12px; color: #8B939B; white-space: nowrap; }

.saifi-ord-title { font-size: 13.5px; font-weight: 600; color: #1A1A18; line-height: 1.35; }
.saifi-ord-meta { font-size: 12.5px; color: #566069; margin-top: 4px; line-height: 1.5; }
.saifi-ord-included {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 9px;
	font-size: 12.5px;
	color: #566069;
	background: #FBFAF7;
	border: 1px solid var(--saifi-border);
	border-radius: 7px;
	padding: 4px 9px;
	max-width: 100%;
}
.saifi-ord-included svg { width: 13px; height: 13px; color: #1A6B3A; stroke-width: 2.4; flex-shrink: 0; }
.saifi-ord-included b { color: #1A1A18; font-weight: 600; }

.saifi-ord-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .02em;
	padding: 4px 11px 4px 9px;
	white-space: nowrap;
}
.saifi-ord-status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}
.saifi-ord-status-paid { background: #E8F5ED; color: #1A6B3A; }
.saifi-ord-status-paid::before {
	background: #2E9A56;
	box-shadow: 0 0 0 2px rgba(46,154,86,.18);
}
.saifi-ord-status-refunded { background: #FDF0F0; color: #C0392B; }
.saifi-ord-status-refunded::before { background: #C0392B; }
.saifi-ord-status-cancelled,
.saifi-ord-status-muted { background: rgba(14,17,22,.06); color: #6F716C; }
.saifi-ord-status-cancelled::before,
.saifi-ord-status-muted::before { background: #8A8A85; }

.saifi-ord-amount {
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 14px;
	font-weight: 700;
	color: #1A1A18;
	white-space: nowrap;
	text-align: right;
	display: block;
}
.saifi-ord-amount-refund { color: #C0392B; }
.saifi-ord-amount-muted { color: #8A8A85; }

.saifi-ord-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.saifi-ord-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	border-radius: 8px;
	padding: 8px 12px;
	border: 1px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	min-height: 36px;
	transition: background .15s, border-color .15s, color .15s;
}
.saifi-ord-btn svg { width: 15px; height: 15px; stroke-width: 2; flex-shrink: 0; }
.saifi-ord-btn-primary { background: var(--saifi-primary); color: #fff; border-color: var(--saifi-primary); }
.saifi-ord-btn-primary:hover { background: var(--saifi-primary-light); color: #fff; }

.saifi-ord-menu-wrap { position: relative; }
.saifi-ord-kebab {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 1px solid var(--saifi-border);
	background: transparent;
	color: #566069;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, border-color .15s, color .15s;
}
.saifi-ord-kebab:hover,
.saifi-ord-kebab[aria-expanded="true"] { background: #FBFAF7; color: #1A1A18; border-color: #8B939B; }
.saifi-ord-kebab svg { width: 18px; height: 18px; stroke-width: 2.2; }
.saifi-ord-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--saifi-border);
	border-radius: 11px;
	padding: 6px;
	z-index: 40;
	box-shadow: 0 8px 28px -10px rgba(0,59,92,.28);
	display: none;
}
.saifi-ord-menu.open { display: block; }
.saifi-ord-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #1A1A18;
	text-decoration: none;
	white-space: nowrap;
}
.saifi-ord-menu a:hover { background: #FBFAF7; }
.saifi-ord-menu a svg { width: 15px; height: 15px; stroke-width: 2; color: #8B939B; flex-shrink: 0; }

.saifi-ocell-label { display: none; }

/* Stacked-card layout once the grid runs out of room (dashboard sidebar present) */
@media (max-width: 1024px) {
	.saifi-orders-thead { display: none; }
	.saifi-orow {
		display: block;
		padding: 0;
		border: 1px solid var(--saifi-border);
		border-radius: 12px;
		margin: 14px 18px;
		background: #fff;
	}
	.saifi-orow:hover { background: #fff; }
	.saifi-orow > div {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 14px;
		padding: 12px 16px;
		border-bottom: 1px solid var(--saifi-border);
	}
	.saifi-orow > .saifi-ocell-order {
		flex-direction: column;
		align-items: flex-start;
		gap: 3px;
		background: #FBFAF7;
		border-radius: 12px 12px 0 0;
	}
	.saifi-orow > .saifi-ocell-items { display: block; }
	.saifi-orow > .saifi-ocell-actions { border-bottom: 0; justify-content: flex-end; gap: 10px; padding: 14px 16px; }
	.saifi-ocell-label {
		display: block;
		font-size: 10.5px;
		font-weight: 700;
		letter-spacing: .06em;
		color: #8B939B;
		text-transform: uppercase;
		flex-shrink: 0;
		padding-top: 3px;
	}
	.saifi-ocell-items .saifi-ocell-label { margin-bottom: 8px; padding-top: 0; }
	.saifi-ord-date { white-space: normal; }
	.saifi-ord-included { white-space: normal; }
}
@media (max-width: 640px) {
	.saifi-orders-head { padding: 14px 16px; }
	.saifi-orow { margin: 14px 14px; }
	.saifi-orow > div { padding: 12px 14px; }
	.saifi-orow > .saifi-ocell-actions { padding: 12px 14px; }
	.saifi-ord-menu { min-width: 184px; }
}

/* ── Profile ── */
.saifi-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.saifi-prof-card {
	background: #fff;
	border-radius: 10px;
	border: .5px solid rgba(0,59,92,.11);
	padding: 18px 20px;
}
.saifi-prof-full { grid-column: 1 / -1; }
.saifi-prof-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.saifi-prof-card-title { font-size: 14px; font-weight: 500; color: #1A1A18; }
.saifi-prof-edit-btn { font-size: 12px; color: #003B5C; background: transparent; border: none; cursor: pointer; font-weight: 500; }
.saifi-prof-edit-btn:hover { opacity: .7; }
.saifi-prof-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.saifi-prof-av-big {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #003B5C;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 600;
	color: #F2A900;
}
.saifi-prof-av-name  { font-size: 16px; font-weight: 500; color: #1A1A18; }
.saifi-prof-av-email { font-size: 12px; color: #5C5C58; }
.saifi-prof-av-level {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 500;
	padding: 2px 9px;
	border-radius: 20px;
	background: #E8F1F7;
	color: #003B5C;
}
.saifi-prof-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.saifi-field-group { display: flex; flex-direction: column; gap: 10px; }
.saifi-field-row { display: flex; flex-direction: column; gap: 4px; }
.saifi-field-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8A8A85;
}
.saifi-field-input {
	padding: 9px 12px;
	border-radius: 7px;
	border: .5px solid rgba(0,59,92,.11);
	background: #F4F3EF;
	font-size: 13px;
	color: #1A1A18;
	outline: none;
	transition: border-color .15s;
	width: 100%;
	box-sizing: border-box;
}
.saifi-field-input:focus { border-color: #003B5C; }
.saifi-field-input[readonly] { color: #5C5C58; }
.saifi-field-locked { background: #F4F3EF; cursor: not-allowed; }
.saifi-locked-tag { font-size: 11px; opacity: .6; margin-left: 2px; }
.saifi-field-hint { font-size: 12px; color: #8A8A85; margin-top: 4px; }
.saifi-field-input[name="country"] { height: 54px; box-sizing: border-box; }
.saifi-field-select {
	padding: 9px 12px;
	border-radius: 7px;
	border: .5px solid rgba(0,59,92,.11);
	background: #F4F3EF;
	font-size: 13px;
	color: #1A1A18;
	outline: none;
	cursor: pointer;
	appearance: none;
	width: 100%;
	box-sizing: border-box;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235C5C58' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.saifi-save-btn {
	background: #003B5C;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s;
	margin-top: 14px;
}
.saifi-save-btn:hover { background: #004E7A; }
.saifi-save-msg {
	font-size: 12px;
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 6px;
}
.saifi-save-msg.ok  { background: #E8F5ED; color: #1A6B3A; }
.saifi-save-msg.err { background: #fdf0f0; color: #C0392B; }
.saifi-form-feedback { font-size: 12px; margin-top: 8px; padding: 6px 10px; border-radius: 6px; display: block; }
.saifi-form-feedback.success { background: #E8F5ED; color: #1A6B3A; }
.saifi-form-feedback.error   { background: #fdf0f0; color: #C0392B; }
.saifi-danger-zone {
	border: .5px solid rgba(192,57,43,.25);
	border-radius: 10px;
	padding: 14px 18px;
	background: #fffafa;
}
.saifi-danger-title { font-size: 13px; font-weight: 500; color: #C0392B; margin-bottom: 4px; }
.saifi-danger-sub   { font-size: 12px; color: #5C5C58; margin-bottom: 10px; }
.saifi-danger-btn {
	background: transparent;
	border: 1px solid #C0392B;
	color: #C0392B;
	border-radius: 7px;
	padding: 6px 14px;
	font-size: 12px;
	cursor: pointer;
	transition: all .15s;
}
.saifi-danger-btn:hover { background: #C0392B; color: #fff; }

/* ── Misc ── */
.saifi-notice { font-size: 13px; color: #5C5C58; padding: 12px; }
.saifi-notice a { color: #003B5C; }

/* Topbar hamburger (shown only when the sidebar is off-canvas) */
.saifi-dash-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.saifi-dash-navtoggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 1px solid var(--saifi-border);
	border-radius: 9px;
	background: #fff;
	color: var(--saifi-primary);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.saifi-dash-navtoggle:hover { background: #FBFAF7; border-color: #8B939B; }
.saifi-dash-navtoggle svg { width: 20px; height: 20px; }

/* ==========================================================================
   AUTH / REGISTER
   ========================================================================== */

/* Shell */
.saifi-auth-shell {
	display: flex;
	min-height: 100vh;
}

/* ── Left brand panel ── */
.saifi-auth-left {
	width: 420px;
	flex-shrink: 0;
	background: linear-gradient(160deg, var(--saifi-primary-dark) 0%, var(--saifi-primary) 60%, #005580 100%);
	color: #fff;
	padding: 52px 44px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.saifi-brand-block { margin-bottom: 40px; }
.saifi-brand-logo { margin-bottom: 20px; }
.saifi-brand-logo-img {
	height: 52px;
	width: auto;
	display: block;
}
.saifi-brand-tagline {
	font-size: 14px;
	opacity: .7;
	line-height: 1.6;
}
.saifi-features-block {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
	justify-content: center;
	padding: 20px 0;
}
.saifi-feature-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.saifi-feat-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
}
.saifi-feat-title {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
	opacity: .95;
}
.saifi-feat-sub {
	font-size: 12px;
	opacity: .6;
	line-height: 1.5;
}
.saifi-auth-left-footer {
	font-size: 12px;
	opacity: .45;
	margin-top: 24px;
}

/* ── Right form panel ── */
.saifi-auth-right {
	flex: 1;
	background: #f7f8fa;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
}
.saifi-auth-form-wrap {
	width: 100%;
	max-width: 400px;
}

/* Auth views */
.saifi-auth-view { display: none; }
.saifi-auth-view.active { display: block; }

/* ── Tab switcher ── */
.saifi-auth-tabs {
	display: flex;
	background: #e9edf2;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 28px;
}
.saifi-auth-tab {
	flex: 1;
	text-align: center;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 7px;
	color: #6b7280;
	background: none;
	border: none;
	transition: all .18s ease;
	user-select: none;
}
.saifi-auth-tab.active {
	background: #fff;
	color: var(--saifi-primary);
	box-shadow: 0 1px 5px rgba(0,0,0,.1);
}

/* ── Form head ── */
.saifi-form-head { margin-bottom: 22px; }
.saifi-form-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--saifi-primary);
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	margin-bottom: 12px;
}
.saifi-form-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--saifi-text);
	margin-bottom: 4px;
}
.saifi-form-sub {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
}

/* ── Alerts ── */
.saifi-alert {
	display: none;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 16px;
}
.saifi-alert-err {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}
.saifi-alert-ok {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

/* ── Field stack ── */
.saifi-field-stack { display: flex; flex-direction: column; gap: 14px; }
.saifi-field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.saifi-field { display: flex; flex-direction: column; }
/* Register step: give the password fields and consent rows that sit outside the
   field-stack the same vertical rhythm so they don't read as cramped. */
#reg-step-1 { display: flex; flex-direction: column; gap: 14px; }
.saifi-field-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--saifi-text);
	margin-bottom: 6px;
}
.saifi-required { color: #ef4444; margin-left: 2px; }
.saifi-field-error {
	font-size: 12px;
	color: #ef4444;
	margin-top: 4px;
	display: none;
}
.saifi-field-input {
	width: 100%;
	border: 1.5px solid #dde1e7;
	border-radius: 8px;
	padding: 10px 13px;
	font-size: 14px;
	color: var(--saifi-text);
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}
.saifi-field-input:focus {
	outline: none;
	border-color: var(--saifi-primary);
	box-shadow: 0 0 0 3px rgba(0,59,92,.08);
}
.saifi-field-input.saifi-error { border-color: #ef4444; }
.saifi-field-input.saifi-has-icon { padding-left: 38px; }
.saifi-field-input.saifi-has-toggle { padding-right: 40px; }

/* Input with icon wrapper */
.saifi-input-wrap { position: relative; }
.saifi-input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}
.saifi-pw-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 4px;
	display: flex;
	align-items: center;
	z-index: 2;
	line-height: 1;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7s2.5-4 6-4 6 4 6 4-2.5 4-6 4-6-4-6-4z' stroke='%239ca3af' stroke-width='1.2'/%3E%3Ccircle cx='7' cy='7' r='1.5' stroke='%239ca3af' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
}
.saifi-pw-toggle:hover {
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7s2.5-4 6-4 6 4 6 4-2.5 4-6 4-6-4-6-4z' stroke='%234f46e5' stroke-width='1.2'/%3E%3Ccircle cx='7' cy='7' r='1.5' stroke='%234f46e5' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Eye-off state (password revealed) */
.saifi-pw-toggle.saifi-pw-visible {
	background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7s2.5-4 6-4 6 4 6 4-2.5 4-6 4-6-4-6-4z' stroke='%239ca3af' stroke-width='1.2'/%3E%3Ccircle cx='7' cy='7' r='1.5' stroke='%239ca3af' stroke-width='1.2'/%3E%3Cline x1='2' y1='2' x2='12' y2='12' stroke='%239ca3af' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Hide browser-native password reveal / emoji buttons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-credentials-auto-fill-button { display: none; }

/* Password strength */
.saifi-pw-strength { margin-top: 8px; }
.saifi-pw-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.saifi-pw-bar {
	height: 4px;
	flex: 1;
	border-radius: 2px;
	background: #e5e7eb;
	transition: background .2s;
}
.saifi-pw-bar.saifi-pw-weak   { background: #ef4444; }
.saifi-pw-bar.saifi-pw-fair   { background: #f59e0b; }
.saifi-pw-bar.saifi-pw-good   { background: #10b981; }
.saifi-pw-bar.saifi-pw-strong { background: #059669; }
.saifi-pw-strength-lbl { font-size: 12px; color: #6b7280; }

/* Phone */
.saifi-phone-wrap { display: flex; gap: 8px; }
.saifi-phone-prefix {
	flex-shrink: 0;
	width: 130px;
	border: 1.5px solid #dde1e7;
	border-radius: 8px;
	padding: 10px 10px;
	font-size: 14px;
	background: #fff;
	color: var(--saifi-text);
}

/* Format radio labels */
.saifi-fmt-row {
	display: flex;
	gap: 10px;
}
.saifi-fmt-label {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px solid #dde1e7;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s, color .15s, background .15s;
	user-select: none;
}
.saifi-fmt-label input[type=radio] { display: none; }
.saifi-fmt-label:hover { border-color: var(--saifi-primary); }
.saifi-fmt-label.selected {
	border-color: var(--saifi-primary);
	background: #f0f6fb;
	color: var(--saifi-primary);
}

/* Checkbox row */
.saifi-check-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.saifi-check-row input[type=checkbox] {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--saifi-primary);
	flex-shrink: 0;
	cursor: pointer;
}
.saifi-check-label {
	font-size: 16px;
	color: #6b7280;
	line-height: 1.5;
}
.saifi-check-label a { color: var(--saifi-primary); }

/* Extra separation above the consent (Terms & Privacy) section. */
.saifi-consent-row { margin-top: 12px; }

/* Step dots */
.saifi-step-dots { display: flex; gap: 6px; margin-bottom: 24px; }
.saifi-step-dot {
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: #e5e7eb;
	transition: background .2s;
}
.saifi-step-dot.active { background: var(--saifi-primary); }
.saifi-step-dot.done   { background: var(--saifi-accent); }

/* ── Primary button ── */
.saifi-btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--saifi-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s;
	margin-top: 18px;
}
.saifi-btn-primary:hover { background: var(--saifi-primary-dark); }
.saifi-btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }

/* Back button (square icon button) */
.saifi-btn-back {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid #dde1e7;
	border-radius: 8px;
	padding: 12px 14px;
	cursor: pointer;
	color: #6b7280;
	transition: border-color .15s, color .15s;
	flex-shrink: 0;
}
.saifi-btn-back:hover { border-color: var(--saifi-primary); color: var(--saifi-primary); }

/* Spinner (inline) */
.saifi-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: saifiSpin .7s linear infinite;
}
.saifi-spinner.show { display: block; }
@keyframes saifiSpin { to { transform: rotate(360deg); } }

/* OR divider */
.saifi-or-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #9ca3af;
	margin: 18px 0;
}
.saifi-or-divider::before,
.saifi-or-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

/* Social buttons */
.saifi-social-btns { display: flex; flex-direction: column; gap: 10px; }
.saifi-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: #fff;
	border: 1.5px solid #dde1e7;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	color: var(--saifi-text);
	transition: border-color .15s;
}
.saifi-social-btn:hover { border-color: var(--saifi-primary); }

/* Switch prompt */
.saifi-switch-prompt {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin-top: 16px;
}

/* Link button */
.saifi-link-btn {
	background: none;
	border: none;
	color: var(--saifi-primary);
	font-size: inherit;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}
.saifi-link-btn:hover { opacity: .8; }

/* Success card */
.saifi-success-card {
	text-align: center;
	padding: 32px 16px;
}
.saifi-success-icon {
	width: 56px;
	height: 56px;
	background: #dcfce7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}
.saifi-success-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--saifi-text);
	margin-bottom: 8px;
}
.saifi-success-sub {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
	margin-bottom: 6px;
}
.saifi-success-email-chip {
	display: inline-block;
	background: #f3f4f6;
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--saifi-text);
	margin: 8px auto;
}

/* Login required */
.saifi-login-required { text-align: center; padding: 60px 20px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.saifi-overview-cols { grid-template-columns: 1fr; }
	.saifi-profile-grid { grid-template-columns: 1fr; }
	.saifi-auth-left { width: 360px; padding: 40px 32px; }
}

@media (max-width: 900px) {
	/* Catalog: off-canvas filters */
	.saifi-catalog-layout { padding: 16px; gap: 0; }
	.saifi-filters-toggle { display: flex; }
	.saifi-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.saifi-course-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.saifi-course-row-meta,
	.saifi-course-row-side {
		padding-left: 0;
		border-left: none;
	}
	.saifi-course-row-side {
		align-items: flex-start;
		padding-top: 8px;
		border-top: 1px solid var(--saifi-border);
	}
	.saifi-course-row-actions { align-items: flex-start; }
	.saifi-filters-sidebar {
		position: fixed;
		top: 0;
		left: -280px;
		width: 280px;
		height: 100vh;
		z-index: 1000;
		border-radius: 0;
		border: none;
		box-shadow: var(--saifi-shadow-md);
		overflow-y: auto;
		transition: left .25s ease;
	}
	.saifi-filters-sidebar.open { left: 0; }
	.saifi-filters-close { display: block !important; }

	/* Single class: stack sidebar below content on tablet */
	.saifi-sc-split { flex-direction: column; }
	.saifi-sc-sidebar { width: 100%; min-width: 0; position: static; border-left: none; border-top: .5px solid var(--saifi-border); }
	.saifi-sc-tabs { overflow-x: auto; scrollbar-width: none; }
	.saifi-sc-tabs::-webkit-scrollbar { display: none; }

	/* Dashboard: off-canvas sidebar + topbar hamburger */
	.saifi-dash-nav {
		position: fixed;
		top: 0;
		left: -280px;
		z-index: 1000;
		transition: left .25s ease;
		height: 100vh;
		overflow-y: auto;
		box-shadow: 12px 0 40px rgba(0,0,0,.25);
	}
	.saifi-dash-nav.open { left: 0; }
	.saifi-dash-navtoggle { display: inline-flex; }
	.saifi-messages-layout { flex-direction: column; height: auto; }
	.saifi-threads-pane { width: 100%; border-right: none; border-bottom: 1px solid var(--saifi-border); max-height: 300px; }
}

@media (max-width: 640px) {
	.saifi-catalog-hero { padding: 36px 16px 32px; }
	.saifi-catalog-layout { padding: 12px; }
	.saifi-course-grid { grid-template-columns: 1fr; }
	.saifi-meta-bar { padding: 12px 16px; }
	.saifi-meta-actions { width: 100%; justify-content: space-between; }
	.saifi-view-toggle { order: 2; }
	.saifi-sort-row { order: 1; }
	.saifi-course-row { padding: 16px; }
	.saifi-term-section-head { align-items: flex-start; flex-direction: column; }
	.saifi-auth-shell { flex-direction: column; }
	.saifi-auth-left { width: 100%; min-height: auto; padding: 28px 24px; }
	.saifi-features-block { display: none; }
	.saifi-auth-right { padding: 24px 16px; }
	.saifi-auth-form-wrap { max-width: 100%; }
	.saifi-field-row-2 { grid-template-columns: 1fr; }
	.saifi-dash-content { padding: 16px; }
	.saifi-stats-row { grid-template-columns: 1fr 1fr; }
	.saifi-courses-grid { grid-template-columns: 1fr; }
	.saifi-sc-head { padding: 18px 16px 0; }
	.saifi-sc-content { padding: 16px; }
	.saifi-faq-section { padding: 20px 16px; }
}

@media (max-width: 900px) {
	.saifi-dash-overview-stats { grid-template-columns: 1fr; }
	.saifi-dashboard-course-row .saifi-course-row-main {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.saifi-dash-course-actions {
		min-width: 0;
		width: 100%;
		flex-direction: row;
		align-items: center;
	}
	.saifi-dash-course-actions .saifi-dashboard-materials-btn { flex: 1; }
}

@media (max-width: 640px) {
	.saifi-dash-page { padding: 18px 14px 26px; }
	.saifi-dash-overview-stats .saifi-stat-c { padding: 18px 20px; }
	.saifi-dashboard-course-row.saifi-course-row {
		flex-direction: column;
	}
	.saifi-dash-course-rail {
		width: auto;
		flex: 0 0 auto;
		flex-direction: row;
		align-items: center;
		padding: 16px 18px;
	}
	.saifi-dash-course-rail-meta { flex: 1; }
	.saifi-dashboard-course-row .saifi-course-row-main {
		padding: 18px;
	}
	.saifi-dashboard-course-row .saifi-card-title {
		font-size: 17px;
	}
	.saifi-dash-course-details {
		flex-direction: column;
		gap: 8px;
	}
	.saifi-dash-course-actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}
}

/* Sidebar overlay */
.saifi-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 999;
}

/* ==========================================================================
   ACCOUNT BUTTON  [saifi_account_button]
   ========================================================================== */

.saifi-account-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

/* ── Trigger button ── */
.saifi-account-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.22);
	background: rgba(255,255,255,.08);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .18s, border-color .18s, transform .1s;
	position: relative;
	flex-shrink: 0;
	padding: 0;
}
.saifi-account-btn:hover {
	background: rgba(255,255,255,.16);
	border-color: rgba(255,255,255,.38);
}
.saifi-account-btn:active { transform: scale(.94); }
.saifi-account-btn:focus-visible {
	outline: 2px solid var(--saifi-accent);
	outline-offset: 2px;
}

/* Guest icon */
.saifi-account-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Logged-in avatar initials */
.saifi-account-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--saifi-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--saifi-primary-dark, #002840);
	letter-spacing: .02em;
}

/* Online dot */
.saifi-account-dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--saifi-primary, #003B5C);
}

/* ── Dropdown container ── */
.saifi-account-dropdown {
	position: fixed; /* fixed so Elementor overflow:hidden doesn't clip it */
	top: 0;
	right: 0;
	width: 232px;
	background: #fff;
	border: .5px solid rgba(0,59,92,.13);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,20,40,.14), 0 2px 8px rgba(0,20,40,.07);
	overflow: hidden;
	/* hidden by default */
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px) scale(.97);
	transform-origin: top right;
	transition: opacity .18s ease, transform .18s cubic-bezier(.25,.46,.45,.94);
	z-index: 999999;
}
.saifi-account-dropdown.saifi-dd-open {
	opacity: 1;
	pointer-events: all;
	transform: translateY(0) scale(1);
}

/* ── Dropdown header (user identity) ── */
.saifi-dd-header {
	padding: 14px 16px 12px;
	border-bottom: .5px solid rgba(0,59,92,.13);
	display: flex;
	align-items: center;
	gap: 11px;
}
.saifi-dd-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--saifi-accent);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--saifi-primary-dark, #002840);
}
.saifi-dd-info { min-width: 0; }
.saifi-dd-name {
	font-size: 13px;
	font-weight: 500;
	color: #1a1a18;
	line-height: 1.25;
}
.saifi-dd-email {
	font-size: 11px;
	color: #8a8a85;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 148px;
}
.saifi-dd-role {
	display: inline-flex;
	align-items: center;
	margin-top: 4px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 20px;
	background: #E8F1F7;
	color: var(--saifi-primary, #003B5C);
}

/* ── Dropdown sections & items ── */
.saifi-dd-section { padding: 6px 0; }
.saifi-dd-section + .saifi-dd-section {
	border-top: .5px solid rgba(0,59,92,.13);
}
.saifi-dd-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 16px;
	font-size: 13px;
	color: #5c5c58;
	cursor: pointer;
	text-decoration: none;
	transition: background .12s, color .12s;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	font-family: inherit;
	line-height: 1.4;
}
.saifi-dd-item:hover {
	background: #F4F3EF;
	color: #1a1a18;
}
.saifi-dd-item:focus-visible {
	outline: 2px solid var(--saifi-primary, #003B5C);
	outline-offset: -2px;
}
.saifi-dd-item svg {
	flex-shrink: 0;
	color: #8a8a85;
	transition: color .12s;
}
.saifi-dd-item:hover svg { color: var(--saifi-primary, #003B5C); }

/* Active state (current page) */
.saifi-dd-item.saifi-dd-active {
	color: var(--saifi-primary, #003B5C);
	font-weight: 500;
}
.saifi-dd-item.saifi-dd-active svg { color: var(--saifi-primary, #003B5C); }
.saifi-dd-item.saifi-dd-active::after {
	content: '';
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--saifi-primary, #003B5C);
	margin-left: auto;
	flex-shrink: 0;
}

/* Badge (count pill) */
.saifi-dd-badge {
	margin-left: auto;
	background: var(--saifi-accent, #F2A900);
	color: var(--saifi-primary-dark, #002840);
	font-size: 9px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 20px;
	flex-shrink: 0;
}

/* Logout item — danger tint */
.saifi-dd-item.saifi-dd-logout { color: #C0392B; }
.saifi-dd-item.saifi-dd-logout svg { color: #C0392B; opacity: .7; }
.saifi-dd-item.saifi-dd-logout:hover {
	background: #FDF0F0;
	color: #C0392B;
}
.saifi-dd-item.saifi-dd-logout:hover svg {
	color: #C0392B;
	opacity: 1;
}

/* ── Elementor inline placement ── */
.elementor-widget-shortcode .saifi-account-wrap,
.elementor-widget .saifi-account-wrap {
	display: inline-flex;
	vertical-align: middle;
}
.saifi-sidebar-overlay.visible { display: block; }
.saifi-confirm {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	font-family: 'Outfit', sans-serif;
}
.saifi-confirm-card {
	width: min(760px, 100%);
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
	overflow: hidden;
}
.saifi-confirm-head {
	padding: 30px 32px 22px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.saifi-confirm-kicker {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #a36b00;
	margin-bottom: 8px;
}
.saifi-confirm h1 {
	margin: 0 0 8px;
	font-family: 'Gloriola-Regular', sans-serif;
	font-size: 32px;
	line-height: 1.15;
	color: #003b5c;
	letter-spacing: 0;
}
.saifi-confirm p {
	margin: 0;
	color: #596169;
	font-size: 15px;
	line-height: 1.55;
}
.saifi-confirm-body {
	padding: 24px 32px 30px;
}
.saifi-confirm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
	margin: 0 0 24px;
}
.saifi-confirm-row {
	border-bottom: 1px solid rgba(0, 0, 0, .07);
	padding: 0 0 10px;
}
.saifi-confirm-label {
	font-size: 12px;
	color: #69717a;
	margin-bottom: 3px;
}
.saifi-confirm-value {
	font-size: 14px;
	font-weight: 700;
	color: #1f2428;
	word-break: break-word;
}
.saifi-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.saifi-confirm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 7px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.saifi-confirm-btn.primary {
	background: #003b5c;
	color: #fff;
}
.saifi-confirm-btn.secondary {
	background: #f0ebe2;
	color: #1f2428;
}
@media (max-width: 640px) {
	.saifi-confirm {
		align-items: flex-start;
		padding-top: 18px;
	}
	.saifi-confirm-head,
	.saifi-confirm-body {
		padding-left: 20px;
		padding-right: 20px;
	}
	.saifi-confirm h1 {
		font-size: 26px;
	}
	.saifi-confirm-grid {
		grid-template-columns: 1fr;
	}
}

/* WooCommerce order-received page typography */
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received .woocommerce-order {
	font-family: 'Outfit', sans-serif;
}

body.woocommerce-order-received .entry-title,
body.woocommerce-order-received .woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order h1,
body.woocommerce-order-received .woocommerce-order h2,
body.woocommerce-order-received .woocommerce-order h3 {
	font-family: 'Gloriola-Regular', sans-serif;
}

/* =====================================================================
   Level Evaluation — dashboard banner (Module 10)
   ===================================================================== */
.saifi-eval-dash-banner {
	max-width: 1350px;
	margin: 18px auto 18px;
	padding: 14px 22px;
	border-radius: 10px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: 1px solid transparent;
}
.saifi-eval-dash-banner-body { flex: 1; min-width: 0; }
.saifi-eval-dash-banner-title { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.saifi-eval-dash-banner-text { margin: 0; font-size: 14px; line-height: 1.5; }
.saifi-eval-dash-banner-quote { margin: 8px 0 4px; padding: 8px 12px; background: rgba(255, 255, 255, 0.55); border-left: 3px solid currentColor; font-style: italic; font-size: 14px; }
.saifi-eval-dash-banner-cta {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background: var(--saifi-primary, #003B5C);
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
}
.saifi-eval-dash-banner-cta:hover { background: var(--saifi-primary-dark, #00324f); }
.saifi-eval-dash-banner-dismiss {
	background: transparent;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: inherit;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.55;
}
.saifi-eval-dash-banner-dismiss:hover { opacity: 1; }

.saifi-eval-dash-banner-info {
	background: #eef6fb;
	color: #00324f;
	border-color: #cfe3ee;
}
.saifi-eval-dash-banner-success {
	background: #e8f6ed;
	color: #1d6033;
	border-color: #c2e6cf;
}
.saifi-eval-dash-banner-warning {
	background: #fff8e6;
	color: #92580a;
	border-color: #f4d985;
}

@media (max-width: 600px) {
	.saifi-eval-dash-banner { margin: 12px; padding: 12px 16px; flex-direction: column; gap: 4px; }
	.saifi-eval-dash-banner-dismiss { position: absolute; top: 8px; right: 12px; }
}

/* Catalog "no evaluation required" filter banner (set via ?no_eval=1) */
.saifi-no-eval-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px;padding:12px 16px;background:#eef6ff;border:1px solid #cfe3fb;border-radius:8px;color:#1d4ed8;font-size:14px;line-height:1.4;}
.saifi-no-eval-banner a{color:#1d4ed8;font-weight:600;text-decoration:underline;}
/* Onboarding / profile setup ([saifi_onboarding]) */
.saifi-onboarding-shell{max-width:560px;margin:40px auto;padding:32px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;}
.saifi-onboarding-head{margin-bottom:20px;}
.saifi-onboarding-title{font-size:24px;margin:0 0 6px;color:var(--saifi-primary);}
.saifi-onboarding-sub{font-size:14px;color:#6b7280;margin:0;line-height:1.5;}
.saifi-onboarding-form .saifi-field{margin-bottom:16px;}
.saifi-onb-radios{display:flex;gap:20px;padding-top:4px;}
.saifi-onb-radios label{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:14px;}
.saifi-onboarding-notice{text-align:center;}
.saifi-onboarding-notice h2{color:var(--saifi-primary);}
/* Country-code picker — self-contained phone country selector (registration + popup) */
.saifi-phone-field{display:flex;gap:14px;align-items:stretch;}
.saifi-phone-field > .saifi-field-input,.saifi-phone-field > .f-inp{flex:1 1 auto;min-width:0;}
.saifi-cc{position:relative;flex:0 0 auto;display:flex;}
.saifi-cc-btn{display:flex;align-items:center;gap:6px;align-self:stretch;min-height:44px;padding:0 10px;background:#fff;border:1px solid #d1d5db;border-radius:8px;cursor:pointer;font:inherit;color:#111827;line-height:1;}
.saifi-cc-btn:hover{border-color:#9ca3af;}
.saifi-cc-flag,.saifi-cc-item-flag{width:24px;height:18px;border-radius:2px;object-fit:cover;display:block;flex:0 0 auto;background:#eee;}
.saifi-cc-code{font-size:14px;font-weight:600;white-space:nowrap;}
.saifi-cc-caret{font-size:10px;color:#6b7280;}
.saifi-cc-pop{position:absolute;top:calc(100% + 4px);left:0;z-index:60;width:300px;max-width:84vw;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.18);overflow:hidden;}
.saifi-cc-pop[hidden]{display:none;}
.saifi-cc-search{width:100%;box-sizing:border-box;padding:10px 12px;border:none;border-bottom:1px solid #eee;font-size:14px;outline:none;}
.saifi-cc-list{list-style:none;margin:0;padding:4px 0;max-height:260px;overflow-y:auto;}
.saifi-cc-item{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;font-size:14px;}
.saifi-cc-item:hover{background:#f3f4f6;}
.saifi-cc-item-name{flex:1 1 auto;color:#111827;}
.saifi-cc-item-code{color:#6b7280;font-variant-numeric:tabular-nums;}
.saifi-cc-empty{padding:12px;color:#9ca3af;text-align:center;font-size:13px;}
/* ── Combo offers (Intensive + Conversation deals) ───────────────────────────
   A combo has its own card: badge, title, description, crossed-out price and
   the button — no term, dates, schedule, pace or format. */
.saifi-badge.saifi-b-combo,
.saifi-course-row .saifi-badge.saifi-b-combo {
	background: var(--saifi-accent);
	color: var(--saifi-primary-dark);
	border-color: transparent;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.saifi-course-card.saifi-combo-card {
	border: 1.5px solid var(--saifi-accent);
	box-shadow: 0 0 0 3px rgba(242,169,0,.12);
	background: linear-gradient(160deg, #fffaf0 0%, var(--saifi-white) 55%);
	padding: 18px;
	gap: 16px;
	justify-content: space-between;
}
.saifi-combo-card .saifi-badges-row { margin-bottom: 10px; }
.saifi-combo-card .saifi-card-title {
	color: var(--saifi-primary);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}
.saifi-combo-desc {
	margin: 10px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #44505c;
}
.saifi-combo-side {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 1px solid rgba(0,59,92,.08);
}
.saifi-combo-side .saifi-price { font-size: 20px; font-weight: 600; }
/* List view: content left, price + button right. */
.saifi-combo-card.saifi-combo-card-row { flex-direction: row; align-items: center; }
.saifi-combo-card-row .saifi-combo-main { flex: 1 1 auto; min-width: 0; }
.saifi-combo-card-row .saifi-combo-side {
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	border-top: 0;
	padding-top: 0;
}
@media (max-width: 640px) {
	.saifi-combo-card.saifi-combo-card-row { flex-direction: column; align-items: stretch; }
	.saifi-combo-card-row .saifi-combo-side { flex-direction: row; align-items: center; border-top: 1px solid rgba(0,59,92,.08); padding-top: 14px; }
}
.saifi-price-was {
	font-size: .78em;
	font-weight: 400;
	color: var(--saifi-muted);
	text-decoration: line-through;
	margin-right: 4px;
}
.saifi-price-save {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(242,169,0,.14);
	color: #8b6300;
}
/* Combo cards aren't links (no class page) — only the button acts. */
.saifi-course-card.saifi-combo-card { cursor: default; }
.saifi-btn-card-combo-enroll,
.saifi-combo-card .saifi-btn-card-apply {
	background: var(--saifi-primary);
	color: var(--saifi-white);
	text-decoration: none;
	cursor: pointer;
}
.saifi-btn-card-combo-enroll:hover,
.saifi-combo-card .saifi-btn-card-apply:hover { background: var(--saifi-primary-light); color: var(--saifi-white); }
/* Term under the combo title — same look as the term line on list-view class rows. */
.saifi-combo-card .saifi-card-sub.saifi-combo-term {
	margin-top: 4px;
	color: var(--saifi-accent-dark);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Per-term "Show more" under each term section in list view. */
.saifi-load-more.saifi-term-more { margin-top: 14px; }
