/* =====================================================================
   IPARTNER TEAM HUB 7.0 – theme on top of Bootstrap 5.3.2
   ===================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
[data-bs-theme="light"] {
  --fth-navy: #0b1f3a;
  --fth-navy-2: #12305a;
  --fth-blue: #1769e0;
  --fth-blue-2: #3b8bff;
  --fth-sky: #e8f1ff;
  --fth-green: #16a34a;
  --fth-orange: #f59e0b;
  --fth-purple: #8b5cf6;
  --fth-surface: #ffffff;
  --fth-bg: #f3f6fb;
  --fth-border: #e3e9f2;
  --fth-muted: #64748b;
  --fth-shadow: 0 1px 2px rgba(15, 35, 70, .06), 0 8px 24px rgba(15, 35, 70, .06);
  --fth-shadow-lg: 0 24px 60px rgba(11, 31, 58, .18);
  --fth-radius: 16px;

  --bs-primary: #1769e0;
  --bs-primary-rgb: 23, 105, 224;
  --bs-link-color: #1769e0;
  --bs-link-color-rgb: 23, 105, 224;
  --bs-link-hover-color: #0f4fae;
  --bs-body-font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-bg: var(--fth-bg);
  --bs-border-radius: .65rem;
  --bs-border-radius-lg: 1rem;
  --bs-focus-ring-color: rgba(23, 105, 224, .35);
}

[data-bs-theme="dark"] {
  --fth-surface: #111a2b;
  --fth-bg: #0a1220;
  --fth-border: #22304a;
  --fth-muted: #94a3b8;
  --fth-sky: #13284a;
  --fth-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --bs-body-bg: var(--fth-bg);
  --bs-primary: #3b8bff;
  --bs-primary-rgb: 59, 139, 255;
  --bs-link-color: #6aa8ff;
  --bs-link-color-rgb: 106, 168, 255;
}

body { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
.btn-primary {
  --bs-btn-bg: var(--fth-blue); --bs-btn-border-color: var(--fth-blue);
  --bs-btn-hover-bg: #0f58c4; --bs-btn-hover-border-color: #0f58c4;
  --bs-btn-active-bg: #0d4ca9; --bs-btn-active-border-color: #0d4ca9;
  --bs-btn-disabled-bg: var(--fth-blue); --bs-btn-disabled-border-color: var(--fth-blue);
}
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
}
.btn { font-weight: 600; }
.text-bg-orange { color: #fff !important; background-color: #ea580c !important; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fth-blue); }
.text-muted-2 { color: var(--fth-muted) !important; }
.min-w-0 { min-width: 0; }

/* ---------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--fth-navy); font-weight: 800; letter-spacing: .02em; line-height: 1; }
[data-bs-theme="dark"] .brand { color: #fff; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; opacity: .65; margin-top: .2rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--fth-blue-2), var(--fth-blue) 55%, var(--fth-navy)); box-shadow: 0 6px 16px rgba(23, 105, 224, .35); }
.brand-light { color: #fff !important; }

/* ---------------------------------------------------------------- public site */
.site { background: var(--fth-surface); }
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--fth-surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--fth-border); }
.site-header .nav-link { font-weight: 500; color: var(--bs-body-color); white-space: nowrap; }
@media (min-width: 1200px) { .site-header .navbar-nav .nav-link { padding-left: .55rem; padding-right: .55rem; } .site-header .navbar-nav { gap: .1rem; } .site-header .btn { white-space: nowrap; } }
/* 1200–1399 px: the menu has 6 items + text size + language + 2 buttons; use the full header width and compact controls */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .container { max-width: none; padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-header .navbar-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .93rem; }
  .site-header .navbar-nav.mx-auto { margin-left: .75rem !important; margin-right: .5rem !important; }
  .site-header .text-size .btn[data-text-size="0"] { display: none; }
  .site-header .d-flex.gap-2 { gap: .35rem !important; }
  .site-header .btn-sm { --bs-btn-padding-x: .55rem; }
}
@media (max-width: 1199.98px) { .site-header .navbar-collapse .d-flex { flex-wrap: wrap; padding: .5rem 0 1rem; } }
.site-header .nav-link:hover { color: var(--fth-blue); }

.hero {
  position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(59, 139, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(139, 92, 246, .12), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, var(--fth-surface) 100%);
}
[data-bs-theme="dark"] .hero { background: radial-gradient(900px 480px at 85% 0%, rgba(59, 139, 255, .25), transparent 60%), linear-gradient(180deg, #0c1830 0%, var(--fth-surface) 100%); }
.hero-tagline { font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive; font-size: 1.5rem; color: var(--fth-navy-2); transform: rotate(-4deg); display: inline-block; margin-bottom: .75rem; }
[data-bs-theme="dark"] .hero-tagline { color: #9cc3ff; }
.hero-tagline::after { content: ""; display: block; width: 70%; height: 3px; border-radius: 3px; background: var(--fth-navy-2); opacity: .5; margin-top: .25rem; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.02; color: var(--fth-navy); }
[data-bs-theme="dark"] .hero h1 { color: #fff; }
.hero h1 span { display: block; font-weight: 500; letter-spacing: -.02em; }
.hero-points { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--fth-blue); font-weight: 500; font-size: 1.1rem; }
.hero-points span + span::before { content: "•"; margin-right: 1rem; opacity: .6; }
.hero-cta .btn { padding: .8rem 1.4rem; border-radius: 12px; }
.disclaimer { font-size: .78rem; color: var(--fth-muted); }

/* device mock-ups */
.devices { position: relative; min-height: 440px; }
.laptop { position: absolute; left: 0; right: 70px; top: 20px; }
.laptop-screen { background: #0d1626; border-radius: 16px 16px 4px 4px; padding: 10px; box-shadow: var(--fth-shadow-lg); }
.laptop-base { height: 16px; margin: 0 -26px; border-radius: 0 0 18px 18px; background: linear-gradient(#cfd6e2, #9aa5b8); }
.mock-app { display: grid; grid-template-columns: 120px 1fr; border-radius: 8px; overflow: hidden; background: #f4f7fc; min-height: 300px; font-size: .62rem; color: #13233d; }
.mock-side { background: var(--fth-navy); color: #c9d6ee; padding: 10px 8px; }
.mock-side b { display: block; color: #fff; font-size: .78rem; margin-bottom: 8px; }
.mock-side div { padding: 4px 6px; border-radius: 5px; display: flex; gap: 5px; align-items: center; }
.mock-side div.on { background: rgba(255, 255, 255, .12); color: #fff; }
.mock-main { padding: 12px; }
.mock-main h4 { font-size: .85rem; font-weight: 800; margin: 0; font-style: italic; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.mock-stats div { background: #fff; border-radius: 6px; padding: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.mock-stats b { display: block; font-size: 1.05rem; }
.mock-assist { background: linear-gradient(135deg, #eef4ff, #fff); border-radius: 8px; padding: 10px; display: flex; gap: 8px; align-items: center; border: 1px solid #dfe8f8; }
.mock-assist .bot { font-size: 2rem; color: var(--fth-blue); }
.mock-assist .pill { background: var(--fth-blue); color: #fff; border-radius: 4px; padding: 3px 8px; display: inline-block; margin-top: 4px; }
.mock-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.mock-actions div { background: #fff; border-radius: 6px; text-align: center; padding: 6px 2px; color: #3b4a63; }
.mock-actions i { display: block; color: var(--fth-blue); font-size: .9rem; }
.phone { position: absolute; right: 0; top: 0; width: 200px; border-radius: 30px; padding: 9px; background: #0d1626; box-shadow: var(--fth-shadow-lg); }
.phone-screen { border-radius: 23px; overflow: hidden; color: #fff; text-align: center; padding: 26px 12px 14px; min-height: 380px;
  background: radial-gradient(circle at 50% 38%, rgba(59, 139, 255, .55), transparent 55%), linear-gradient(180deg, #0c2147, #071530); }
.phone-screen .avatar-ring { width: 96px; height: 96px; margin: 16px auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
  background: radial-gradient(circle, #1b4a9c 0, #0b2a63 70%); box-shadow: 0 0 0 6px rgba(59, 139, 255, .25), 0 0 0 14px rgba(59, 139, 255, .12), 0 0 40px rgba(59, 139, 255, .8); }
.wave { display: flex; justify-content: center; align-items: center; gap: 3px; height: 28px; }
.wave span { width: 3px; border-radius: 3px; background: #6fb1ff; animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(2n) { animation-delay: .2s; } .wave span:nth-child(3n) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.phone-bubble { background: #fff; color: #13233d; border-radius: 12px; padding: 8px 10px; font-size: .68rem; text-align: left; margin-top: 12px; }
.phone-buttons { display: flex; justify-content: space-around; margin-top: 14px; }
.phone-buttons span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .15); }
.phone-buttons span.end { background: #ef4444; }
@media (prefers-reduced-motion: reduce) { .wave span { animation: none; height: 14px; } }
@media (max-width: 991.98px) { .devices { min-height: 380px; margin-top: 2rem; } .phone { width: 170px; } .laptop { right: 50px; } }
@media (max-width: 575.98px) { .devices { min-height: 330px; } .mock-app { grid-template-columns: 1fr; } .mock-side { display: none; } .phone { width: 140px; top: 60px; } .phone-screen { min-height: 300px; } }

.feature-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .feature-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575.98px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
.feature { text-align: center; }
.feature-icon { width: 68px; height: 68px; margin: 0 auto .6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: var(--fth-blue);
  background: var(--fth-surface); box-shadow: 0 0 0 6px var(--fth-sky), var(--fth-shadow); }
.feature h3 { font-size: .92rem; font-weight: 700; margin: 0; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--fth-bg); }
.section-title { font-weight: 800; letter-spacing: -.02em; }

.step-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--fth-surface); border: 1px solid var(--fth-border); border-radius: var(--fth-radius); padding: 1.25rem; height: 100%; box-shadow: var(--fth-shadow); }
.step-num { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.step-1 { background: #3b82f6; } .step-2 { background: #22c55e; } .step-3 { background: #8b5cf6; } .step-4 { background: #f59e0b; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }

.benefits { background: linear-gradient(135deg, var(--fth-navy), #10335f); color: #fff; }
.benefit i { font-size: 2rem; opacity: .9; }
.benefit h3 { font-size: 1.05rem; font-weight: 700; margin: .6rem 0 .2rem; }
.benefit p { opacity: .75; margin: 0; font-size: .92rem; }

.advisor { background: var(--fth-surface); border: 1px solid var(--fth-border); border-radius: 22px; box-shadow: var(--fth-shadow); overflow: hidden; }
.advisor-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--fth-navy), #123a72); color: #fff; }
.advisor-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.chat-log { height: 340px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--fth-bg); }
.chat-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; }
.chat-msg.bot { background: var(--fth-surface); border: 1px solid var(--fth-border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.me { background: var(--fth-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { opacity: .7; font-style: italic; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--fth-border); background: var(--fth-surface); }
.ai-notice { font-size: .75rem; color: var(--fth-muted); padding: .5rem 1rem; background: var(--fth-surface); border-top: 1px solid var(--fth-border); }

.form-card { background: var(--fth-surface); border: 1px solid var(--fth-border); border-radius: 22px; box-shadow: var(--fth-shadow); padding: 2rem; }
.consent-box { background: var(--fth-bg); border: 1px solid var(--fth-border); border-radius: 12px; padding: .9rem 1rem; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.quiz-card { max-width: 760px; margin: 0 auto; }
.quiz-q { margin-bottom: 1.75rem; }
#quiz-form.js-enabled .quiz-q { display: none; margin-bottom: 0; }
#quiz-form.js-enabled .quiz-q.active { display: block; animation: fadein .25s ease; }
.quiz-nav { display: none; }
#quiz-form.js-enabled .quiz-nav { display: flex; }
.quiz-option { display: block; border: 2px solid var(--fth-border); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .6rem; cursor: pointer; transition: border-color .15s, background .15s; background: var(--fth-surface); }
.quiz-option:hover { border-color: var(--fth-blue-2); }
.quiz-option input { margin-right: .6rem; }
.quiz-option:has(input:checked) { border-color: var(--fth-blue); background: var(--fth-sky); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.profile-hero { background: linear-gradient(135deg, var(--fth-navy), #12407e); color: #fff; border-radius: 22px; padding: 2rem; }
.profile-hero i.bi { font-size: 3rem; }

.legal-doc { max-width: 860px; }
.legal-doc h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2rem; }
.legal-doc h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.25rem; }
.legal-doc h4 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; }
.legal-doc table { font-size: .88rem; }
.legal-toc { position: sticky; top: 90px; }

.site-footer { background: var(--fth-navy); color: #fff; padding: 3.5rem 0 2rem; }
.site-footer a, .site-footer .btn-link { color: #c9d9f5; text-decoration: none; }
.site-footer a:hover, .site-footer .btn-link:hover { color: #fff; }
.site-footer li { margin-bottom: .35rem; }

/* ---------------------------------------------------------------- cookie banner */
.cookie-banner { position: fixed; z-index: 1045; left: 1rem; right: 1rem; bottom: 1rem; max-width: 1100px; margin: 0 auto; background: var(--fth-surface); color: var(--bs-body-color);
  border: 1px solid var(--fth-border); border-radius: 18px; box-shadow: var(--fth-shadow-lg); padding: 1rem 1.25rem; transform: translateY(140%); transition: transform .35s ease; }
.cookie-banner.show { transform: none; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner { display: flex; gap: 1rem; align-items: center; }
.cookie-banner-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.btn-consent { --bs-btn-bg: var(--fth-navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--fth-navy); --bs-btn-hover-bg: var(--fth-navy-2); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--fth-navy-2); --bs-btn-active-color: #fff; min-width: 120px; }
[data-bs-theme="dark"] .btn-consent { --bs-btn-bg: #2b5fb4; --bs-btn-border-color: #2b5fb4; --bs-btn-hover-bg: #3b74d4; }
@media (max-width: 767.98px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { flex-wrap: wrap; justify-content: center; }
  .cookie-banner-actions .btn-consent { flex: 1 1 40%; }
}
.consent-cat { border: 1px solid var(--fth-border); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .75rem; }
.consent-cat .form-switch .form-check-input { width: 2.6em; height: 1.35em; }
.consent-cat summary { cursor: pointer; color: var(--fth-blue); }

/* ---------------------------------------------------------------- auth */
.auth-page { background: var(--fth-bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 5fr 7fr; } }
.auth-side { padding: 3rem; align-items: center; background: radial-gradient(700px 400px at 100% 0%, rgba(59, 139, 255, .35), transparent 60%), linear-gradient(160deg, var(--fth-navy), #0f2f5c 70%, #143e78); }
.auth-points li { margin-bottom: .6rem; } .auth-points i { color: #6fb1ff; margin-right: .5rem; }
.auth-main { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-top { width: 100%; max-width: 460px; display: flex; align-items: center; margin-bottom: 1.25rem; }
.auth-card { width: 100%; max-width: 460px; background: var(--fth-surface); border: 1px solid var(--fth-border); border-radius: 22px; box-shadow: var(--fth-shadow); padding: 2rem; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- portal shell */
.portal { background: var(--fth-bg); }
.portal-shell { display: flex; min-height: 100vh; }
.sidebar { --bs-offcanvas-width: 272px; width: 264px; flex-shrink: 0; background: linear-gradient(180deg, var(--fth-navy), #0a1a33); color: #c6d3ea; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; } }
.sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--fth-navy); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 .75rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.nav-section { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6f86ad; padding: 1rem .75rem .35rem; }
.sidebar .nav-item { display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: 10px; color: #c6d3ea; text-decoration: none; font-size: .9rem; font-weight: 500; }
.sidebar .nav-item i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .85; }
.sidebar .nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar .nav-item.active { background: linear-gradient(90deg, rgba(59, 139, 255, .28), rgba(59, 139, 255, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--fth-blue-2); }
.sidebar-foot { padding: .9rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); color: #8ea2c4; }
.sidebar-foot a, .sidebar-foot .btn-link { color: #8ea2c4; text-decoration: none; font-size: inherit; }
.sidebar-foot a:hover, .sidebar-foot .btn-link:hover { color: #fff; }
.portal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .85rem 1.5rem; background: color-mix(in srgb, var(--fth-surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--fth-border); }
.topbar-title { min-width: 0; flex: 1; }
.topbar-title h1 { font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.topbar .btn-light { --bs-btn-bg: var(--fth-surface); --bs-btn-border-color: var(--fth-border); }
.user-chip { display: flex; align-items: center; gap: .55rem; padding: .3rem .6rem .3rem .3rem; }
.user-chip strong { display: block; font-size: .85rem; line-height: 1.1; } .user-chip small { display: block; font-size: .72rem; color: var(--fth-muted); font-weight: 500; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fth-blue-2), var(--fth-purple)); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.notif-menu { width: 340px; max-width: 92vw; }
.notif-item { display: flex; gap: .7rem; padding: .65rem 1rem; white-space: normal; border-bottom: 1px solid var(--fth-border); }
.notif-item i { color: var(--fth-blue); font-size: 1.1rem; }
.notif-item strong { display: block; font-size: .85rem; } .notif-item small { display: block; color: var(--fth-muted); } .notif-item em { font-size: .72rem; color: var(--fth-muted); font-style: normal; }
.content { padding: 1.5rem; max-width: 1480px; width: 100%; }
@media (max-width: 575.98px) { .content { padding: 1rem; } .topbar { padding: .7rem 1rem; gap: .5rem; } }
.topbar-title .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow phones: the page title is shown in the content, so the top bar keeps room for menu, text size, language and account */
@media (max-width: 479.98px) { .topbar-title { display: none; } .topbar-actions { margin-left: auto; gap: .35rem; } .topbar .user-chip .d-none, .topbar .text-size .btn { padding-left: .35rem; padding-right: .35rem; } }
.flash-stack .alert { box-shadow: var(--fth-shadow); }

/* ---------------------------------------------------------------- portal components */
.card { --bs-card-bg: var(--fth-surface); --bs-card-border-color: var(--fth-border); --bs-card-border-radius: var(--fth-radius); --bs-card-inner-border-radius: calc(var(--fth-radius) - 1px); box-shadow: var(--fth-shadow); }
.card-header { background: transparent; border-bottom-color: var(--fth-border); padding: 1rem 1.25rem; }
.card-header h2, .card-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.25rem; }
.page-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 1.6rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
  background: radial-gradient(600px 300px at 100% 0%, rgba(59, 139, 255, .45), transparent 60%), linear-gradient(135deg, var(--fth-navy), #123a72); }
.page-hero h2 { font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }
.page-hero p { opacity: .8; margin: 0; }
.page-hero .pill { display: inline-block; font-size: .68rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; background: rgba(255, 255, 255, .14); padding: .3rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.stat-card { display: flex; gap: 1rem; align-items: center; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.stat-icon.blue { background: #e8f1ff; color: #1769e0; } .stat-icon.green { background: #e7f8ee; color: #16a34a; }
.stat-icon.purple { background: #f1ebff; color: #7c3aed; } .stat-icon.orange { background: #fff4e0; color: #d97706; }
.stat-icon.red { background: #fde8e8; color: #dc2626; }
[data-bs-theme="dark"] .stat-icon { background: rgba(255, 255, 255, .06) !important; }
.stat-label { font-size: .8rem; color: var(--fth-muted); font-weight: 600; }
.stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-sub { font-size: .78rem; color: var(--fth-muted); }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .75rem 1rem; border-bottom-color: var(--fth-border); }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fth-muted); font-weight: 700; background: color-mix(in srgb, var(--fth-bg) 60%, transparent); }
.table td small { display: block; color: var(--fth-muted); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: color-mix(in srgb, var(--fth-sky) 60%, transparent); }
.row-link { cursor: pointer; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--fth-muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .5rem; opacity: .6; }
.progress { --bs-progress-height: .55rem; --bs-progress-bar-bg: var(--fth-blue); --bs-progress-bg: color-mix(in srgb, var(--fth-border) 80%, transparent); }
.check-row { display: flex; align-items: center; gap: .75rem; padding: .65rem .2rem; border-bottom: 1px solid var(--fth-border); }
.check-row:last-child { border-bottom: 0; }
.check-row .form-check-input { width: 1.3em; height: 1.3em; margin: 0; }
.check-row.done span { text-decoration: line-through; color: var(--fth-muted); }
.list-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--fth-border); }
.list-row:last-child { border-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--fth-border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--fth-surface); border: 3px solid var(--fth-blue); }
.kpi-big { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--fth-blue-2), var(--fth-blue)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bar-chart .bar:hover::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--fth-navy); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap; margin-bottom: 4px; }
.funnel-step { border-radius: 10px; color: #fff; padding: .55rem .9rem; margin-bottom: .45rem; font-weight: 600; font-size: .9rem; background: linear-gradient(90deg, var(--fth-blue), var(--fth-blue-2)); min-width: 30%; display: flex; justify-content: space-between; }
.badge-tile { text-align: center; padding: 1.25rem .75rem; border: 1px solid var(--fth-border); border-radius: 16px; height: 100%; background: var(--fth-surface); }
.badge-tile i { font-size: 2rem; width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffe7a3, #f59e0b); color: #fff; margin-bottom: .6rem; }
.badge-tile.locked { opacity: .5; } .badge-tile.locked i { background: var(--fth-border); color: var(--fth-muted); }
.course-card .week { font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--fth-blue); }
.course-card.done { border-color: #bbf7d0; }
.asset-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--fth-sky); color: var(--fth-blue); }
.coach-log { height: 52vh; min-height: 320px; }
.forum-post { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--fth-border); }
.forum-post:last-child { border-bottom: 0; }
.forum-post h3 { font-size: 1rem; font-weight: 700; margin: .25rem 0; }
.rules-card li { margin-bottom: .5rem; }
.integration-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; }
.integration-logo.google { background: linear-gradient(135deg, #4285f4, #34a853); } .integration-logo.microsoft { background: linear-gradient(135deg, #0078d4, #00a4ef); }
.copybox { display: flex; gap: .5rem; }
.qr-box { background: #fff; border-radius: 16px; padding: 12px; display: inline-block; border: 1px solid var(--fth-border); }
.qr-box svg, .qr-box img { display: block; width: 180px; height: 180px; }
.score-ring { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: conic-gradient(var(--fth-blue) calc(var(--p) * 1%), var(--fth-border) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--fth-surface); }
.score-ring span { position: relative; }
.deadline-overdue { color: #dc2626; font-weight: 700; }
.deadline-soon { color: #d97706; font-weight: 700; }
.checklist-item { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; }
.checklist-item i { margin-top: .15rem; }
.doc-preview { border: 1px solid var(--fth-border); border-radius: 12px; padding: 1.25rem; background: var(--fth-surface); max-height: 70vh; overflow: auto; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }

/* org chart */
.org-tree { overflow-x: auto; padding: 1rem 0 1.5rem; }
.org-tree ul { padding-top: 20px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.org-tree li { list-style: none; text-align: center; position: relative; padding: 20px 6px 0; }
.org-tree li::before, .org-tree li::after { content: ""; position: absolute; top: 0; right: 50%; border-top: 2px solid var(--fth-border); width: 50%; height: 20px; }
.org-tree li::after { right: auto; left: 50%; border-left: 2px solid var(--fth-border); }
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before { border-right: 2px solid var(--fth-border); border-radius: 0 6px 0 0; }
.org-tree li:first-child::after { border-radius: 6px 0 0 0; }
.org-tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 2px solid var(--fth-border); width: 0; height: 20px; }
.org-tree > ul { padding-top: 0; }
.org-node { display: inline-block; min-width: 140px; padding: .6rem .8rem; border-radius: 12px; background: var(--fth-surface); border: 1px solid var(--fth-border); box-shadow: var(--fth-shadow); font-size: .82rem; }
.org-node strong { display: block; } .org-node small { color: var(--fth-muted); }
.org-node.root { background: linear-gradient(135deg, var(--fth-navy), #123a72); color: #fff; border: 0; } .org-node.root small { color: #c6d3ea; }
.org-node.inactive { opacity: .6; }
.org-toggle { border: 0; background: none; color: var(--fth-blue); font-size: .75rem; padding: 0; }
.org-tree li.collapsed > ul { display: none; }

@media print {
  .sidebar, .topbar, .cookie-banner, .btn, .site-header, .site-footer { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}
.site-footer .btn-link { font-weight: 400; text-align: left; font-size: inherit; vertical-align: baseline; }
.sidebar-foot .btn-link, .auth-main .btn-link { font-weight: 400; }

/* ---------------------------------------------------------------- world clock */
.world-clock .clock-face { width: 100%; max-width: 210px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(11, 31, 58, .14)); }
.cf-rim { fill: #e9eef6; stroke: #c9d3e3; stroke-width: 2; }
.cf-dial { fill: #ffffff; stroke: #dfe5ef; stroke-width: 1; }
.cf-tick-m { stroke: #9aa6ba; stroke-width: 1.2; stroke-linecap: round; }
.cf-tick-h { stroke: #0b1f3a; stroke-width: 3; stroke-linecap: round; }
.cf-num { fill: #0b1f3a; font: 600 15px "Inter Variable", system-ui, sans-serif; text-anchor: middle; }
.cf-hand-h { stroke: #0b1f3a; stroke-width: 6; stroke-linecap: round; }
.cf-hand-m { stroke: #0b1f3a; stroke-width: 4; stroke-linecap: round; }
.cf-hand-s { stroke: #e11d48; stroke-width: 1.6; stroke-linecap: round; }
.cf-hub-s { fill: #e11d48; }
.cf-hub { fill: #fff; }
.world-clock.is-night { background: linear-gradient(180deg, color-mix(in srgb, var(--fth-navy) 6%, var(--fth-surface)), var(--fth-surface)); }
.world-clock .card-body { container-type: inline-size; }
.clock-digital { font-variant-numeric: tabular-nums; font-size: clamp(1.4rem, 16cqi, 3rem); font-weight: 700; letter-spacing: .02em; white-space: nowrap; padding: 1.6rem 0 1rem; color: var(--fth-navy); }
[data-bs-theme="dark"] .clock-digital { color: #fff; }
.clock-readout { display: inline-block; font-family: var(--bs-font-monospace); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; padding: .15rem .65rem; border-radius: 8px; background: var(--fth-navy); color: #fff; }
.world-clock.is-night .clock-readout { background: #1e3a5f; }
.world-clock.is-home { border: 2px solid var(--bs-primary); box-shadow: 0 8px 24px rgba(13, 110, 253, .15); position: relative; }
.world-clock .home-mark { position: absolute; top: -.7rem; left: 1rem; z-index: 1; font-size: .72rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--bs-primary); color: #fff; }
.world-clocks.face-analog .face-digital-wrap, .world-clocks.face-digital .face-analog-wrap { display: none; }
.clock-flag { width: 32px; height: 24px; flex: 0 0 auto; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(11, 31, 58, .12), 0 2px 6px rgba(11, 31, 58, .12); }
.world-clocks.face-digital .clock-flag { width: 40px; height: 30px; }

/* ---------------------------------------------------------------- member list */
.members-table th, .members-table td { white-space: normal; }
.members-table .notes-col { min-width: 320px; width: 34%; }
.members-table .note-field { min-height: 76px; resize: vertical; font-size: .875rem; }
@media print {
  .no-print, .note-status { display: none !important; }
  .members-table .note-field { border: 0; padding: 0; resize: none; min-height: 0; }
}

/* ---------------------------------------------------------------- articles */
.article-hero { padding: 3.5rem 0 2.5rem; background: radial-gradient(800px 400px at 90% 0%, rgba(59, 139, 255, .16), transparent 60%), linear-gradient(180deg, #f6f9ff, var(--fth-surface)); border-bottom: 1px solid var(--fth-border); }
[data-bs-theme="dark"] .article-hero { background: linear-gradient(180deg, #0c1830, var(--fth-surface)); }
.article-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.1; color: var(--fth-navy); max-width: 900px; }
[data-bs-theme="dark"] .article-title { color: #fff; }
.article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--bs-secondary-color); max-width: 820px; margin: 1rem 0 1.25rem; }
.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.015em; margin: 2.6rem 0 .9rem; scroll-margin-top: 90px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.8rem 0 .6rem; }
.article-body p, .article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .35rem; }
.article-body blockquote { border-left: 4px solid var(--fth-blue); background: var(--fth-sky); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; font-size: 1.1rem; }
.article-body blockquote p:last-child { margin: 0; }
.article-body .table-responsive { margin: 1.25rem 0 1.75rem; border: 1px solid var(--fth-border); border-radius: 12px; }
.article-body table { font-size: .93rem; line-height: 1.5; margin: 0; }
.article-body table th { background: var(--fth-bg); font-weight: 700; }
.article-body table td:first-child { font-weight: 600; }
.article-body a { text-underline-offset: 3px; }
.article-toc li { margin-bottom: .45rem; } .article-toc a { text-decoration: none; }
.article-card { display: block; background: var(--fth-surface); border: 1px solid var(--fth-border); border-radius: 20px; overflow: hidden; box-shadow: var(--fth-shadow); transition: transform .15s, box-shadow .15s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--fth-shadow-lg); }
.article-card-top { height: 120px; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, var(--fth-navy), #1a4f9c); }
.article-card-top.a1 { background: linear-gradient(135deg, #12305a, #3b8bff); } .article-card-top.a2 { background: linear-gradient(135deg, #3b1d6b, #8b5cf6); }
@media print { .article-hero { background: none; } .legal-toc, .breadcrumb { display: none; } }
/* Large gutters overflow the container on narrow screens */
@media (max-width: 767.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }
html, body { overflow-x: clip; }

/* ---------------------------------------------------------------- MLM company directory */
.dir-stats { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.dir-stats div { display: flex; flex-direction: column; }
.dir-stats b { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--fth-navy); font-variant-numeric: tabular-nums; }
[data-bs-theme="dark"] .dir-stats b { color: #fff; }
.dir-stats span { font-size: .85rem; color: var(--fth-muted); }
.dir-list { display: flex; flex-direction: column; border: 1px solid var(--fth-border); border-radius: var(--fth-radius); background: var(--fth-surface); overflow: hidden; }
.dir-row { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--fth-border); transition: background .12s; }
.dir-row:last-child { border-bottom: 0; }
.dir-row:hover, .dir-row:focus-visible { background: var(--fth-sky); }
.dir-mark { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--fth-blue); background: var(--fth-sky); border: 1px solid var(--fth-border); }
.dir-mark-lg { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; }
.dir-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dir-name { font-weight: 700; }
.dir-meta { font-size: .85rem; color: var(--fth-muted); overflow: hidden; text-overflow: ellipsis; }
.dir-badges { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; max-width: 45%; }
@media (max-width: 575.98px) { .dir-row { flex-wrap: wrap; } .dir-badges { max-width: 100%; justify-content: flex-start; padding-left: calc(42px + 1rem); } }
.dir-rank li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--fth-border); }
.dir-rank li:last-child { border-bottom: 0; }
.dir-rank-n { width: 1.8rem; text-align: right; font-weight: 800; color: var(--fth-blue); font-variant-numeric: tabular-nums; }
.dir-principles li { margin-bottom: .4rem; }
.dir-facts { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .45rem .9rem; font-size: .92rem; }
.dir-facts dt { font-weight: 600; color: var(--fth-muted); } .dir-facts dd { margin: 0; overflow-wrap: anywhere; }
.dir-timeline { border-left: 2px solid var(--fth-border); margin-left: .4rem; padding-left: 1.2rem; }
.dir-timeline li { position: relative; padding-bottom: 1.2rem; }
.dir-timeline li::before { content: ""; position: absolute; left: calc(-1.2rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--fth-blue); box-shadow: 0 0 0 3px var(--fth-surface); }
.dir-sources li, .dir-aliases li { padding: .55rem 0; border-bottom: 1px solid var(--fth-border); }
.dir-sources li:last-child, .dir-aliases li:last-child { border-bottom: 0; }
.dir-sources a, .dir-timeline a { overflow-wrap: anywhere; }

/* Text size control */
.text-size .btn { min-width: 2.1rem; font-weight: 700; line-height: 1.2; }
.text-size .btn:disabled { opacity: .45; }
.site-footer .site-credit a { color: inherit; text-decoration: underline; }
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .site-header .navbar-nav .nav-link { padding-left: .3rem; padding-right: .3rem; font-size: .88rem; }
  .site-header .brand small { display: none; }
}

/* ---------------------------------------------------------------- E-postmarkedsføring (app/epost*.php) */
.em-blocks { display: flex; flex-direction: column; gap: .75rem; }
.em-block { border: 1px solid var(--bs-border-color); border-left: 4px solid var(--bs-primary); border-radius: .75rem; padding: .75rem .9rem; background: var(--bs-body-bg); }
.em-block[data-type="heading"] { border-left-color: #6f42c1; }
.em-block[data-type="button"] { border-left-color: #198754; }
.em-block[data-type="image"] { border-left-color: #fd7e14; }
.em-block[data-type="divider"], .em-block[data-type="spacer"] { border-left-color: var(--bs-secondary-color); }
.em-block-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.em-block-type { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bs-secondary-color); }
.em-sticky { position: sticky; top: 84px; }
.em-preview-wrap { background: #f3f6fb; border-radius: 0 0 .75rem .75rem; display: flex; justify-content: center; }
.em-preview-frame { display: block; width: 100%; max-width: 100%; height: min(78vh, 900px); border: 0; border-radius: .5rem; background: #f3f6fb; transition: max-width .2s ease; }
.em-template-card { display: flex; flex-direction: column; height: 100%; }
.em-template-card .card-body { flex: 1; }
.em-url { font-family: var(--bs-font-monospace); font-size: .85rem; }
@media (max-width: 1199.98px) { .em-sticky { position: static; } .em-preview-frame { height: 640px; } }
@media (prefers-reduced-motion: reduce) { .em-preview-frame { transition: none; } }
.qr-box.qr-box-sm { padding: 8px; }
.qr-box.qr-box-sm svg, .qr-box.qr-box-sm img { width: 112px; height: 112px; }
