/* Forex Harbor Portal */
:root {
	--p-ink: #0F1B33; --p-slate: #3A4A63; --p-muted: #6B778C; --p-line: #E5E9F0; --p-line2: #D5DBE5;
	--p-bg: #F4F6FA; --p-card: #fff; --p-brand: #F26A1B; --p-brand-dk: #C2410C; --p-navy: #0E1530; --p-violet: #5B47D6;
	--p-up: #12A150; --p-down: #E5484D; --p-warn: #B45309; --p-r: 16px; --p-sh: 0 1px 2px rgba(15,27,51,.05), 0 8px 24px -16px rgba(15,27,51,.25);
}
.fhp-body { margin: 0; background: var(--p-bg); color: var(--p-ink); font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.fhp-body a { color: var(--p-brand-dk); }
.fhp-body h1, .fhp-body h2, .fhp-body h3, .fhp-body h4 { color: var(--p-ink); letter-spacing: -.015em; margin: 0; }
.fhp-i { flex: none; vertical-align: -3px; }
.fhp-muted { color: var(--p-muted); }
.fhp-small { font-size: 13px; }
.fhp-mt { margin-top: 20px; }
.fhp-mt-s { margin-top: 12px; display: block; }
.fhp-pad { padding: 20px; }
.fhp-nowrap { white-space: nowrap; }
.fhp-up { color: var(--p-up); font-weight: 700; }
.fhp-down { color: var(--p-down); font-weight: 700; }
.fhp-warn-text { color: var(--p-warn); }
code { background: #EEF1F6; padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---------- Shell ---------- */
.fhp-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.fhp-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--p-navy); background-image: radial-gradient(120% 60% at 0% 0%, #241E66 0%, rgba(14,21,48,0) 60%); color: #C9D2E8; padding: 20px 14px; box-sizing: border-box; overflow-y: auto; }
.fhp-side-top { display: flex; align-items: center; gap: 8px; padding: 4px 10px 22px; }
.fhp-brand { white-space: nowrap; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: #fff !important; text-decoration: none; }
.fhp-brand b { color: var(--p-brand); }
.fhp-brand-chip { white-space: nowrap; font-size: 11px; font-weight: 700; color: #F9A26C; background: rgba(242,106,27,.14); padding: 3px 8px; border-radius: 999px; }
.fhp-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.fhp-nav-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; color: #7F8BB0; letter-spacing: .02em; }
.fhp-nav-group:first-child { margin-top: 0; }
.fhp-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: #C9D2E8 !important; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.fhp-nav-item:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.fhp-nav-item.is-on { background: #fff; color: var(--p-ink) !important; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.fhp-nav-item.is-on .fhp-i { color: var(--p-brand); }
.fhp-nav-item span { flex: 1; }
.fhp-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--p-down); color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-sizing: border-box; }
.fhp-side-user { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.fhp-side-name { flex: 1; min-width: 0; display: grid; }
.fhp-side-name strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhp-side-name small { color: #8D98B8; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhp-side .fhp-icon-btn { color: #C9D2E8; border-color: rgba(255,255,255,.12); background: transparent; }
.fhp-main { min-width: 0; display: flex; flex-direction: column; }
.fhp-top { display: flex; align-items: center; gap: 16px; padding: 22px 32px 18px; background: rgba(244,246,250,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.fhp-top-title { flex: 1; min-width: 0; }
.fhp-top h1 { font-size: 26px; font-weight: 800; line-height: 1.2; }
.fhp-top p { margin: 4px 0 0; color: var(--p-muted); font-size: 14px; }
.fhp-top p a { color: var(--p-muted); text-decoration: none; font-weight: 600; }
.fhp-top p a:hover { color: var(--p-brand-dk); }
.fhp-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fhp-top-actions form { margin: 0; }
.fhp-menu-btn { display: none; }
.fhp-content { padding: 8px 32px 48px; max-width: 1180px; width: 100%; box-sizing: border-box; }
.fhp-content.is-wide { max-width: 1400px; }
.fhp-scrim { display: none; }

/* ---------- Basics ---------- */
.fhp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--p-brand); background: var(--p-brand); color: #fff !important; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.fhp-btn:hover { background: var(--p-brand-dk); border-color: var(--p-brand-dk); }
.fhp-btn.is-ghost { background: #fff; color: var(--p-ink) !important; border-color: var(--p-line2); }
.fhp-btn.is-ghost:hover { border-color: var(--p-ink); }
.fhp-btn.is-light { background: #fff; color: var(--p-ink) !important; border-color: #fff; }
.fhp-btn.is-danger { background: #fff; color: var(--p-down) !important; border-color: #F3C7C9; }
.fhp-btn.is-danger:hover { background: var(--p-down); color: #fff !important; border-color: var(--p-down); }
.fhp-btn.is-done { background: #E8F7EE; border-color: #BDE7CD; color: #0B7A3B !important; cursor: default; }
.fhp-btn.is-sm { padding: 6px 12px; font-size: 13px; }
.fhp-btn.is-block { display: flex; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.fhp-btn:disabled { opacity: .6; }
.fhp-btn:focus-visible, .fhp-icon-btn:focus-visible, .fhp-nav-item:focus-visible, .fhp-card:focus-visible { outline: 3px solid rgba(242,106,27,.45); outline-offset: 2px; }
.fhp-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--p-line); background: #fff; color: var(--p-slate); cursor: pointer; }
.fhp-icon-btn:hover { border-color: var(--p-ink); color: var(--p-ink); }
.fhp-icon-btn.is-danger:hover { border-color: var(--p-down); color: var(--p-down); }
.fhp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--p-brand-dk); text-decoration: none; }
.fhp-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #EEF1F6; color: var(--p-slate); white-space: nowrap; }
.fhp-pill.is-ok { background: #E8F7EE; color: #0B7A3B; }
.fhp-pill.is-warn { background: #FFF4E0; color: #9A5B00; }
.fhp-pill.is-bad { background: #FDECEC; color: #B4232A; }
.fhp-pill.is-info { background: #EEF0FF; color: #4335B5; }
.fhp-av { --h: 220; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 32%); font-weight: 800; font-size: 13px; }
.fhp-notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin: 0 0 18px; border-radius: 12px; background: #E8F7EE; color: #0B5E2E; font-weight: 600; }
.fhp-notice.is-err { background: #FDECEC; color: #8F1D22; }
.fhp-notice.is-warn { background: #FFF6E5; color: #7A4A00; }
.fhp-notice a { color: inherit; font-weight: 800; }
.fhp-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-r); padding: 22px; box-shadow: var(--p-sh); box-sizing: border-box; min-width: 0; }
.fhp-card.is-flush { padding: 0; overflow: hidden; }
a.fhp-card { color: inherit; text-decoration: none; display: block; transition: transform .18s, box-shadow .18s; }
a.fhp-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(15,27,51,.45); }
.fhp-card-title { display: flex; align-items: center; gap: 8px; font-size: 16px !important; font-weight: 800; margin: 0 0 14px !important; }
.fhp-card-title .fhp-i { color: var(--p-brand); }
.fhp-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.fhp-card-row .fhp-card-title { margin-bottom: 10px !important; }
.fhp-card-row form { margin: 0; }
.fhp-grid { display: grid; gap: 20px; }
.fhp-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fhp-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fhp-grid.is-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fhp-grid.is-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fhp-h2 { font-size: 19px !important; font-weight: 800; margin: 28px 0 14px !important; }
.fhp-empty { text-align: center; padding: 48px 20px; color: var(--p-muted); }
.fhp-empty .fhp-i { color: var(--p-brand); width: 44px; height: 44px; padding: 12px; border-radius: 16px; background: #FFF1E8; }
.fhp-empty h3 { margin: 14px 0 6px !important; font-size: 18px; }
.fhp-empty p { max-width: 440px; margin: 0 auto 16px; }
.fhp-scroll { overflow-x: auto; }
.fhp-row-between { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Tables */
.fhp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fhp-table th { text-align: left; font-size: 12px; color: var(--p-muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--p-line); background: #FAFBFD; white-space: nowrap; }
.fhp-table td { padding: 13px 16px; border-bottom: 1px solid #EFF2F6; vertical-align: top; }
.fhp-table tr:last-child td { border-bottom: 0; }
.fhp-table.is-compact td, .fhp-table.is-compact th { padding: 8px 10px; }
.fhp-card:not(.is-flush) .fhp-table th { background: transparent; }
.fhp-table tr.is-closed { opacity: .62; }
.fhp-table tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--p-brand); }
.fhp-actions-cell { white-space: nowrap; }
.fhp-actions-cell form { display: inline-block; margin: 0 0 4px 4px; }
.fhp-user-cell { display: flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none; min-width: 0; }
.fhp-user-cell span { display: grid; min-width: 0; }
.fhp-user-cell strong { font-size: 14px; }
.fhp-user-cell small { color: var(--p-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fhp-user-cell:hover strong { color: var(--p-brand-dk); }
.fhp-mini { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 12px; }
.fhp-mini dt { color: var(--p-muted); text-transform: capitalize; }
.fhp-mini dd { margin: 0; overflow-wrap: anywhere; }
.fhp-table td:has(> .fhp-mini) { min-width: 240px; }
.fhp-mini dt { white-space: nowrap; }
.fhp-prog { display: flex; align-items: center; gap: 8px; }
.fhp-prog b { font-size: 13px; }

/* Forms */
.fhp-form { display: grid; gap: 14px; }
.fhp-form.is-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: end; }
.fhp-form.is-grid.is-tight { gap: 12px; }
.fhp-form.is-grid .is-wide { grid-column: 1 / -1; }
.fhp-form.is-snap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 14px; }
.fhp-body input, .fhp-body select { min-width: 0; }
.fhp-body label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--p-slate); }
.fhp-body label small { font-weight: 500; color: var(--p-muted); }
.fhp-body input:not([type=checkbox]):not([type=radio]):not([type=file]), .fhp-body select, .fhp-body textarea { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--p-line2); border-radius: 10px; background: #fff; color: var(--p-ink); width: 100%; box-sizing: border-box; }
.fhp-body input:focus, .fhp-body select:focus, .fhp-body textarea:focus { outline: none; border-color: var(--p-brand); box-shadow: 0 0 0 3px rgba(242,106,27,.15); }
.fhp-body input:disabled { background: #F4F6FA; color: var(--p-muted); }
.fhp-check { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 600 !important; }
.fhp-check input { margin-top: 3px; accent-color: var(--p-brand); }
.fhp-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.fhp-inline.is-grow { flex: 1; margin: 0; }
.fhp-inline input, .fhp-inline select { width: auto !important; flex: 1; min-width: 160px; }
.fhp-filters { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.fhp-filters input, .fhp-filters select { width: auto !important; min-width: 220px; }
.fhp-add { margin-bottom: 18px; padding: 0; }
.fhp-add > summary { display: flex; align-items: center; gap: 8px; padding: 16px 22px; cursor: pointer; font-weight: 800; list-style: none; }
.fhp-add > summary::-webkit-details-marker { display: none; }
.fhp-add > summary .fhp-i { color: var(--p-brand); }
.fhp-add[open] > summary { border-bottom: 1px solid var(--p-line); }
.fhp-add > form { padding: 20px 22px; }
.fhp-sub { margin-top: 14px; border-top: 1px solid var(--p-line); padding-top: 12px; }
.fhp-sub > summary { cursor: pointer; font-weight: 700; color: var(--p-slate); margin-bottom: 12px; }
.fhp-seg { display: inline-flex; padding: 3px; background: #EEF1F6; border-radius: 999px; gap: 2px; }
.fhp-seg button, .fhp-seg label { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: transparent; color: var(--p-slate); padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex !important; gap: 6px; align-items: center; }
.fhp-seg button.is-on, .fhp-seg label:has(input:checked) { background: #fff; color: var(--p-ink); box-shadow: 0 1px 3px rgba(15,27,51,.15); }
.fhp-seg.is-block { display: flex; flex-wrap: wrap; border-radius: 14px; margin-bottom: 14px; }
.fhp-seg input { accent-color: var(--p-brand); }
.fhp-code { background: var(--p-navy); color: #DDE3F0; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-size: 13px; }
.fhp-sticky { position: sticky; top: 110px; }
.fhp-tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.fhp-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--p-line2); background: #fff; color: var(--p-slate) !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.fhp-tabs a.is-on { background: var(--p-ink); border-color: var(--p-ink); color: #fff !important; }

/* KPIs */
.fhp-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fhp-kpis.is-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fhp-kpis.is-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.fhp-kpi { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--p-sh); min-width: 0; }
.fhp-kpis.is-compact .fhp-kpi { box-shadow: none; background: #FAFBFD; padding: 12px 14px; }
.fhp-kpi span { font-size: 12px; font-weight: 700; color: var(--p-muted); }
.fhp-kpi strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhp-kpis.is-compact .fhp-kpi strong { font-size: 17px; }
.fhp-kpi small { font-size: 12px; color: var(--p-muted); }
.fhp-kpi.is-up strong { color: var(--p-up); }
.fhp-kpi.is-down strong { color: var(--p-down); }

/* Bars and rings */
.fhp-bar { display: block; height: 8px; border-radius: 99px; background: #EEF1F6; overflow: hidden; margin: 10px 0 6px; }
.fhp-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--p-brand), #FF9A55); }
.fhp-bar.is-sm { height: 6px; margin: 0; width: 90px; flex: none; }
.fhp-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.fhp-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.fhp-ring circle { fill: none; stroke-width: 3.4; }
.fhp-ring-bg { stroke: #EEF1F6; }
.fhp-ring-fg { stroke: var(--p-brand); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.fhp-ring b { font-size: 14px; font-weight: 800; }

/* ---------- Student ---------- */
.fhp-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--p-brand-dk); }
.fhp-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 22px; background: var(--p-navy); background-image: radial-gradient(90% 140% at 100% 0%, #3B2A8F 0%, rgba(14,21,48,0) 60%), radial-gradient(60% 120% at 0% 100%, rgba(242,106,27,.35), rgba(14,21,48,0) 60%); color: #C9D2E8; overflow: hidden; }
.fhp-hero .fhp-eyebrow { color: #F9A26C; }
.fhp-hero h2 { color: #fff !important; font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 8px !important; }
.fhp-hero-meta { margin: 0 0 20px; color: #A9B4D0; }
.fhp-hero-ring { display: grid; justify-items: center; gap: 8px; }
.fhp-hero-ring .fhp-ring b { color: #fff; font-size: 20px; }
.fhp-hero-ring .fhp-ring-bg { stroke: rgba(255,255,255,.12); }
.fhp-hero-ring small { color: #A9B4D0; font-weight: 600; }
.fhp-course-card h3 { font-size: 18px; margin: 14px 0 6px !important; }
.fhp-course-card p { color: var(--p-muted); margin: 0 0 14px; font-size: 14px; }
.fhp-course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fhp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fhp-feed li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid #EFF2F6; }
.fhp-feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.fhp-feed span { font-size: 12px; }
.fhp-feed p { margin: 4px 0 0; color: var(--p-slate); font-size: 14px; }
.fhp-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fhp-quick a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: #F6F7FB; color: var(--p-ink) !important; text-decoration: none; font-weight: 700; font-size: 14px; }
.fhp-quick a:hover { background: #FFF1E8; }
.fhp-quick .fhp-i { color: var(--p-brand); }
.fhp-course-head { display: flex; align-items: center; gap: 22px; }
.fhp-course-head > div { flex: 1; }
.fhp-course-head p { margin: 0; }
.fhp-module { margin-top: 18px; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-r); overflow: hidden; box-shadow: var(--p-sh); }
.fhp-module header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--p-line); }
.fhp-module header h3 { font-size: 16px; }
.fhp-module header p { margin: 0; font-size: 13px; }
.fhp-module-n { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: #FFF1E8; color: var(--p-brand-dk); font-weight: 800; }
.fhp-lessons { list-style: none; margin: 0; padding: 0; }
.fhp-lessons a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; color: var(--p-ink) !important; text-decoration: none; border-bottom: 1px solid #F1F3F7; }
.fhp-lessons li:last-child a { border-bottom: 0; }
.fhp-lessons a:hover { background: #FAFBFD; }
.fhp-lesson-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #EEF1F6; color: var(--p-slate); flex: none; }
.fhp-lessons .is-done .fhp-lesson-ic { background: #E8F7EE; color: var(--p-up); }
.fhp-lessons .is-part .fhp-lesson-ic { background: #FFF1E8; color: var(--p-brand); }
.fhp-lesson-t { flex: 1; font-weight: 600; }

/* Lesson page */
.fhp-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fhp-player { position: relative; aspect-ratio: 16 / 9; background: #05070F; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(5,7,15,.8); user-select: none; -webkit-user-select: none; }
.fhp-player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.fhp-player-stage, .fhp-player-stage video, .fhp-player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05070F; }
.fhp-player.is-empty { display: grid; place-items: center; align-content: center; gap: 10px; color: #8D98B8; }
.fhp-player.is-empty .fhp-i { color: var(--p-brand); }
.fhp-wm { position: absolute; top: 0; left: 0; z-index: 5; display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; pointer-events: none; color: #fff; opacity: var(--wm-o, .4); font: 600 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.85); background: rgba(0,0,0,.12); transition: transform 1.6s cubic-bezier(.4,0,.2,1); white-space: nowrap; }
.fhp-wm span:last-child { font-size: 11px; opacity: .85; letter-spacing: .04em; }
.fhp-wm-tile { position: absolute; inset: 0; z-index: 4; pointer-events: none; background-repeat: repeat; background-size: 520px 300px; }
.fhp-shield { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; align-content: center; gap: 10px; background: #05070F; color: #fff; text-align: center; padding: 20px; }
.fhp-shield[hidden] { display: none; }
.fhp-shield .fhp-i { color: var(--p-brand); }
.fhp-player-msg { position: absolute; left: 16px; right: 16px; bottom: 64px; z-index: 9; padding: 12px 16px; border-radius: 12px; background: rgba(14,21,48,.94); color: #fff; font-weight: 600; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fhp-player-msg[hidden] { display: none; }
.fhp-player-msg a { color: #F9A26C; }
.fhp-player-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.fhp-player-loading[hidden] { display: none; }
.fhp-player-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--p-brand); animation: fhp-spin .8s linear infinite; }
@keyframes fhp-spin { to { transform: rotate(360deg); } }
.fhp-fs { position: absolute; top: 12px; right: 12px; z-index: 7; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(5,7,15,.55); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.fhp-player:hover .fhp-fs, .fhp-fs:focus-visible { opacity: 1; }
.fhp-protect { display: flex; gap: 8px; align-items: center; margin: 10px 4px 0; font-size: 12px; color: var(--p-muted); }
.fhp-protect .fhp-i { color: var(--p-up); }
.fhp-lesson-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 22px 0 16px; }
.fhp-lesson-head h2 { font-size: 24px; font-weight: 800; }
.fhp-prose { font-size: 15.5px; line-height: 1.7; color: var(--p-slate); }
.fhp-prose p:first-child { margin-top: 0; }
.fhp-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.fhp-pn a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--p-line); border-radius: 14px; background: #fff; color: var(--p-ink) !important; text-decoration: none; font-weight: 700; max-width: 48%; }
.fhp-pn a span { display: grid; }
.fhp-pn a small { color: var(--p-muted); font-weight: 600; font-size: 12px; }
.fhp-pn a.is-next { text-align: right; margin-left: auto; }
.fhp-pn a:hover { border-color: var(--p-brand); }
.fhp-outline { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-r); padding: 16px; box-shadow: var(--p-sh); }
.fhp-outline-title { margin: 0 0 6px; font-weight: 800; }
.fhp-outline-mod { margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: var(--p-muted); }
.fhp-outline ul { list-style: none; margin: 0; padding: 0; }
.fhp-outline a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; color: var(--p-slate) !important; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.fhp-outline a .fhp-i { margin-top: 2px; color: #A3ADBD; }
.fhp-outline a:hover { background: #F6F7FB; }
.fhp-outline .is-done a .fhp-i { color: var(--p-up); }
.fhp-outline .is-on a { background: #FFF1E8; color: var(--p-ink) !important; }
.fhp-outline .is-on a .fhp-i { color: var(--p-brand); }

/* Tools, docs */
.fhp-tool h3 { margin: 14px 0 6px !important; font-size: 17px; }
.fhp-tool p { color: var(--p-muted); margin: 0 0 12px; font-size: 14px; }
.fhp-tool-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--p-brand), #FF9A55); color: #fff; }
.fhp-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fhp-docs li { display: flex; align-items: center; gap: 8px; }
.fhp-docs a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--p-line); color: var(--p-ink) !important; text-decoration: none; }
.fhp-docs a:hover { border-color: var(--p-brand); }
.fhp-docs a > .fhp-i:first-child { color: var(--p-brand); }
.fhp-docs a span { flex: 1; display: grid; }
.fhp-docs small { color: var(--p-muted); font-size: 12px; }
.fhp-docs form { margin: 0; }

/* Messages */
.fhp-chat { display: flex; flex-direction: column; min-height: 460px; }
.fhp-chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--p-line); margin-bottom: 4px; }
.fhp-chat-head div { flex: 1; }
.fhp-thread { flex: 1; display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 14px 2px; }
.fhp-thread.is-empty { justify-content: center; text-align: center; }
.fhp-msg { max-width: 78%; }
.fhp-msg.is-mine { align-self: flex-end; }
.fhp-msg-meta { font-size: 12px; color: var(--p-muted); margin: 0 4px 4px; }
.fhp-msg.is-mine .fhp-msg-meta { text-align: right; }
.fhp-msg-body { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #F1F3F8; font-size: 14.5px; }
.fhp-msg.is-mine .fhp-msg-body { background: var(--p-ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.fhp-msg-body p { margin: 0 0 6px; }
.fhp-msg-body p:last-child { margin: 0; }
.fhp-compose { display: flex; gap: 10px; align-items: flex-end; padding-top: 14px; border-top: 1px solid var(--p-line); }
.fhp-compose textarea { flex: 1; resize: vertical; }
.fhp-inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.fhp-inbox-list { max-height: 640px; overflow-y: auto; }
.fhp-inbox-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #F1F3F7; color: var(--p-ink) !important; text-decoration: none; }
.fhp-inbox-item span { flex: 1; display: grid; min-width: 0; }
.fhp-inbox-item small { color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fhp-inbox-item time { font-size: 11px; color: var(--p-muted); white-space: nowrap; }
.fhp-inbox-item.is-on { background: #FFF5EE; }
.fhp-inbox-item.is-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--p-brand); margin-left: 6px; vertical-align: 2px; }

/* Client */
.fhp-chart { position: relative; margin-top: 6px; }
.fhp-chart svg { display: block; }
.fhp-tip { position: absolute; pointer-events: none; background: var(--p-navy); color: #fff; padding: 8px 12px; border-radius: 10px; display: grid; font-size: 13px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); min-width: 110px; }
.fhp-tip small { color: #A9B4D0; }
.fhp-months { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fhp-months th { color: var(--p-muted); font-weight: 700; padding: 4px; text-align: center; }
.fhp-months tbody th { text-align: left; color: var(--p-ink); }
.fhp-months td { text-align: center; padding: 8px 4px; border-radius: 6px; font-weight: 700; color: var(--p-ink); }
.fhp-months td.is-na { color: #C3CAD6; background: #F6F7FB; }
.fhp-months-y { background: #F1F3F8 !important; }
.fhp-months-y.is-up { color: var(--p-up) !important; }
.fhp-months-y.is-down { color: var(--p-down) !important; }
.fhp-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.fhp-dl dt { color: var(--p-muted); font-weight: 600; }
.fhp-dl dd { margin: 0; font-weight: 600; }
.fhp-timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--p-line); display: grid; gap: 18px; }
.fhp-timeline li { position: relative; }
.fhp-timeline li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--p-brand); border: 3px solid var(--p-bg); }
.fhp-timeline time { font-size: 12px; font-weight: 700; color: var(--p-muted); }
.fhp-timeline .fhp-card { margin-top: 6px; }
.fhp-timeline h3 { font-size: 16px; margin-bottom: 6px !important; }

/* Admin */
.fhp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fhp-people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F1F3F7; }
.fhp-people li:last-child { border-bottom: 0; }
.fhp-people .fhp-user-cell { flex: 1; }
.fhp-people form { margin: 0; }
.fhp-member-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.fhp-member-head > .fhp-av { width: 56px; height: 56px; font-size: 18px; }
.fhp-member-head > div:first-of-type { flex: 1; min-width: 260px; }
.fhp-member-head h2 { font-size: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fhp-member-head p { margin: 6px 0 0; }
.fhp-member-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fhp-member-actions form { margin: 0; }
.fhp-enr { padding: 14px 0; border-bottom: 1px solid #F1F3F7; }
.fhp-enr:first-of-type { padding-top: 0; }
.fhp-enr p { margin: 2px 0 0; }
.fhp-lesson-prog > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--p-slate); margin-top: 4px; }
.fhp-mod-edit .fhp-inline.is-grow input { font-weight: 700 !important; }
.fhp-row-actions { display: flex; gap: 4px; align-items: center; }
.fhp-row-actions form { margin: 0; }
.fhp-edit-lessons { list-style: none; margin: 10px 0 0; padding: 0; }
.fhp-edit-lessons li { display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 12px; border-radius: 10px; flex-wrap: wrap; }
.fhp-edit-lessons li:hover { background: #FAFBFD; }
.fhp-edit-lessons li > a { flex: 1; min-width: 200px; display: flex; gap: 10px; align-items: center; color: var(--p-ink) !important; text-decoration: none; font-weight: 600; }
.fhp-edit-lessons li > a .fhp-i { color: var(--p-muted); }
.fhp-edit-lessons li > a:hover { color: var(--p-brand-dk) !important; }
.fhp-drop { position: relative; border: 2px dashed var(--p-line2); border-radius: 16px; padding: 26px; text-align: center; background: #FAFBFD; transition: border-color .15s, background .15s; }
.fhp-drop.is-over { border-color: var(--p-brand); background: #FFF6F0; }
.fhp-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fhp-drop label { cursor: pointer; display: grid !important; justify-items: center; gap: 6px; }
.fhp-drop label .fhp-i { color: var(--p-brand); }
.fhp-drop label strong { color: var(--p-ink); font-size: 15px; }
.fhp-drop label span { font-weight: 500; color: var(--p-muted); }
.fhp-upload-bar { height: 8px; border-radius: 99px; background: #E9EDF3; overflow: hidden; margin: 16px 0 8px; }
.fhp-upload-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--p-brand), #FF9A55); transition: width .3s; }
.fhp-update { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #F1F3F7; flex-wrap: wrap; }
.fhp-update strong { flex: 1; }
.fhp-update form { margin: 0; }
.fhp-susp { border-color: #F3C7C9; background: #FFF8F8; }
.fhp-explain ul { padding-left: 18px; margin: 8px 0 0; font-size: 14px; color: var(--p-slate); display: grid; gap: 6px; }
.fhp-explain h4 { font-size: 14px; }
.fhp-settings .fhp-form.is-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wp-editor-wrap { border-radius: 10px; overflow: hidden; }

/* ---------- Login / suspended ---------- */
.fhp-bare-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.fhp-bare-art { position: relative; overflow: hidden; background: var(--p-navy); background-image: radial-gradient(90% 90% at 100% 0%, #3B2A8F 0%, rgba(14,21,48,0) 60%), radial-gradient(70% 70% at 0% 100%, rgba(242,106,27,.35), rgba(14,21,48,0) 60%); padding: 44px 52px; display: flex; flex-direction: column; color: #C9D2E8; }
.fhp-bare-art .fhp-brand { font-size: 24px; }
.fhp-bare-art .fhp-brand-chip { align-self: flex-start; margin-top: 8px; }
.fhp-bare-copy { margin-top: auto; position: relative; z-index: 2; max-width: 460px; }
.fhp-bare-copy h2 { color: #fff !important; font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 20px !important; }
.fhp-bare-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 600; }
.fhp-bare-copy li { display: flex; gap: 10px; align-items: center; }
.fhp-bare-copy .fhp-i { color: #F9A26C; }
.fhp-bare-candles { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 34%; opacity: .5; }
.fhp-bare-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 96px); background: #fff; }
.fhp-bare-panel > * { max-width: 400px; width: 100%; }
.fhp-bare-panel h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px !important; }
.fhp-bare-panel form p { margin: 0 0 14px; }
.fhp-bare-panel #loginform label { display: block; margin-bottom: 6px; }
.fhp-bare-panel #loginform .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.fhp-bare-panel #wp-submit { width: 100%; padding: 13px; border-radius: 999px; border: 0; background: var(--p-brand); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.fhp-bare-panel #wp-submit:hover { background: var(--p-brand-dk); }
.fhp-suspended-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #FDECEC; color: var(--p-down); margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.fhp-kpis, .fhp-kpis.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fhp-lesson-layout { grid-template-columns: minmax(0, 1fr); }
	.fhp-outline { position: static; max-height: none; }
}
@media (max-width: 960px) {
	.fhp-app { grid-template-columns: 1fr; }
	.fhp-side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; }
	.fhp-nav-open .fhp-side { transform: none; }
	.fhp-nav-open .fhp-scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(5,7,15,.5); }
	.fhp-menu-btn { display: inline-grid; }
	.fhp-top { padding: 14px 18px; }
	.fhp-top h1 { font-size: 21px; }
	.fhp-content { padding: 8px 18px 40px; }
	.fhp-grid.is-2, .fhp-grid.is-3, .fhp-grid.is-2-1, .fhp-grid.is-1-2, .fhp-inbox { grid-template-columns: minmax(0, 1fr); }
	.fhp-kpis.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fhp-bare-wrap { grid-template-columns: 1fr; }
	.fhp-bare-art { padding: 28px 24px; min-height: 0; }
	.fhp-bare-copy, .fhp-bare-candles { display: none; }
	.fhp-sticky { position: static; }
}
@media (max-width: 600px) {
	.fhp-kpis, .fhp-kpis.is-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fhp-kpi strong { font-size: 18px; }
	.fhp-hero { flex-direction: column; align-items: flex-start; padding: 24px; }
	.fhp-hero h2 { font-size: 22px; }
	.fhp-course-head { flex-direction: column; align-items: flex-start; }
	.fhp-lesson-head { flex-direction: column; }
	.fhp-player { border-radius: 12px; }
	.fhp-msg { max-width: 92%; }
	.fhp-quick { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fhp-wm { transition: none; } a.fhp-card { transition: none; } }

/* Approvals */
.fhp-reqs { display: grid; gap: 14px; }
.fhp-req { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.fhp-req-who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.fhp-req-who h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fhp-req-contact { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 14px; }
.fhp-req-contact dt { color: var(--p-muted); font-weight: 600; }
.fhp-req-contact dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fhp-req-pay { padding: 14px 16px; border-radius: 14px; background: #F6F7FB; display: grid; gap: 4px; font-size: 14px; }
.fhp-req-pay strong { font-size: 18px; }
.fhp-req-acts { display: grid; gap: 8px; min-width: 200px; }
.fhp-req-acts form { margin: 0; }
.fhp-req-acts details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--p-muted); list-style: none; text-align: center; padding: 6px; }
.fhp-req-acts details[open] summary { color: var(--p-down); }
.fhp-req-acts details form { display: grid; gap: 8px; margin-top: 6px; }
.fhp-wa { display: inline-flex; align-items: center; gap: 4px; color: #128C4A !important; font-weight: 700; text-decoration: none; }
@media (max-width: 1100px) { .fhp-req { grid-template-columns: 1fr; } .fhp-req-acts { min-width: 0; } }

.fhp-bare.is-client .fhp-bare-art { background-image: radial-gradient(90% 90% at 100% 0%, #0E6B5C 0%, rgba(14,21,48,0) 60%), radial-gradient(70% 70% at 0% 100%, rgba(18,161,80,.35), rgba(14,21,48,0) 60%); }
.fhp-bare.is-admin .fhp-bare-art { background-image: radial-gradient(90% 90% at 100% 0%, #3A4A63 0%, rgba(14,21,48,0) 60%), radial-gradient(70% 70% at 0% 100%, rgba(242,106,27,.25), rgba(14,21,48,0) 60%); }
.fhp-bare-panel .fhp-notice { margin: 0 0 16px; }
