/* Market IQ website - theme mirrors the mobile app (src/theme): slate neutrals, blue primary,
   navy hero surfaces, gold only as a brand/decorative accent. Built on Bootstrap 5.3 colour modes. */

:root,
[data-bs-theme="light"] {
    --miq-navy: #0F1E3D;
    --miq-navy-deep: #0A1530;
    --miq-navy-mid: #1E355C;
    --miq-primary: #2F6FED;
    --miq-primary-dark: #1E4FBF;
    --miq-primary-light: #DCE9FE;
    --miq-success: #16A34A;
    --miq-success-dark: #15803D;
    --miq-success-light: #DCFCE7;
    --miq-danger: #EF4444;
    --miq-danger-light: #FEE2E2;
    --miq-amber: #C6A15B;
    --miq-amber-dark: #9C7A3C;
    --miq-amber-light: #F1E3C6;
    --miq-purple: #7C3AED;
    --miq-purple-light: #EDE9FE;
    --miq-orange: #EA580C;
    --miq-orange-light: #FFEDD5;
    --miq-stone: #94A3B8;

    --miq-bg: #F6F8FC;
    --miq-surface: #FFFFFF;
    --miq-surface-alt: #F9FAFC;
    --miq-surface-muted: #EFF4FC;
    --miq-text: #111827;
    --miq-muted: #64748B;
    --miq-faint: #94A3B8;
    --miq-border: #E2E8F0;
    --miq-border-soft: #EDF1F7;
    --miq-skeleton: #E6EBF3;
    --miq-skeleton-hi: #F6F8FC;

    --miq-shadow-card: 0 2px 6px rgba(10, 27, 51, .06);
    --miq-shadow-raised: 0 8px 22px rgba(10, 27, 51, .10);
    --miq-radius: 12px;
    --miq-radius-lg: 16px;

    --bs-primary: #2F6FED;
    --bs-primary-rgb: 47, 111, 237;
    --bs-link-color: #2F6FED;
    --bs-link-color-rgb: 47, 111, 237;
    --bs-link-hover-color: #1E4FBF;
    --bs-link-hover-color-rgb: 30, 79, 191;
    --bs-body-bg: var(--miq-bg);
    --bs-body-color: var(--miq-text);
    --bs-secondary-color: var(--miq-muted);
    --bs-border-color: var(--miq-border);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-border-radius: 10px;
}

[data-bs-theme="dark"] {
    --miq-primary-light: #1E3A63;
    --miq-success-light: rgba(22, 163, 74, .18);
    --miq-danger-light: rgba(239, 68, 68, .18);
    --miq-amber-light: rgba(198, 161, 91, .2);
    --miq-purple-light: rgba(124, 58, 237, .22);
    --miq-orange-light: rgba(234, 88, 12, .2);

    --miq-bg: #0E1420;
    --miq-surface: #171F2E;
    --miq-surface-alt: #1C2536;
    --miq-surface-muted: #1C2536;
    --miq-text: #F1F5F9;
    --miq-muted: #94A3B8;
    --miq-faint: #64748B;
    --miq-border: #2A3548;
    --miq-border-soft: #232C3D;
    --miq-skeleton: #1C2536;
    --miq-skeleton-hi: #2A3548;

    --miq-shadow-card: 0 2px 6px rgba(0, 0, 0, .35);
    --miq-shadow-raised: 0 8px 22px rgba(0, 0, 0, .45);

    --bs-body-bg: var(--miq-bg);
    --bs-body-color: var(--miq-text);
    --bs-secondary-bg: var(--miq-surface-alt);
    --bs-tertiary-bg: var(--miq-surface-alt);
    --bs-border-color: var(--miq-border);
    --bs-link-color: #6EA0FF;
    --bs-link-color-rgb: 110, 160, 255;
    --bs-link-hover-color: #9BBDFF;
    --bs-emphasis-color: #fff;
}

*, *::before, *::after { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--bs-body-font-family);
    background: var(--miq-bg);
    color: var(--miq-text);
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}
main { min-height: 60vh; }
a { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--miq-text); }
.text-muted, .text-secondary { color: var(--miq-muted) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Buttons / form controls ---------- */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary {
    --bs-btn-bg: var(--miq-primary); --bs-btn-border-color: var(--miq-primary);
    --bs-btn-hover-bg: var(--miq-primary-dark); --bs-btn-hover-border-color: var(--miq-primary-dark);
    --bs-btn-active-bg: var(--miq-primary-dark); --bs-btn-active-border-color: var(--miq-primary-dark);
    --bs-btn-disabled-bg: var(--miq-primary); --bs-btn-disabled-border-color: var(--miq-primary);
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
.btn-outline-primary {
    --bs-btn-color: var(--miq-primary); --bs-btn-border-color: var(--miq-primary);
    --bs-btn-hover-bg: var(--miq-primary); --bs-btn-hover-border-color: var(--miq-primary); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--miq-primary-dark); --bs-btn-active-border-color: var(--miq-primary-dark);
}
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #8DB4FF; --bs-btn-border-color: #3C63B8; }
.btn-success { --bs-btn-bg: var(--miq-success); --bs-btn-border-color: var(--miq-success); --bs-btn-hover-bg: var(--miq-success-dark); --bs-btn-hover-border-color: var(--miq-success-dark); }
.btn-icon {
    width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--miq-border); background: var(--miq-surface); color: var(--miq-text);
}
.btn-icon:hover { background: var(--miq-surface-muted); color: var(--miq-text); }
.form-control, .form-select {
    background-color: var(--miq-surface); border-color: var(--miq-border); color: var(--miq-text);
    border-radius: 10px; padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus { border-color: var(--miq-primary); box-shadow: 0 0 0 .2rem rgba(47, 111, 237, .18); background-color: var(--miq-surface); color: var(--miq-text); }
.form-control::placeholder { color: var(--miq-faint); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.invalid-feedback { font-size: .8rem; }
.input-group .btn { border-radius: 0 10px 10px 0; }
.input-group .form-control:not(:last-child) { border-radius: 10px 0 0 10px; }
.password-toggle { position: relative; }
.password-toggle .form-control { padding-right: 2.8rem; }
.password-toggle button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--miq-muted); width: 40px; height: 36px; }

/* ---------- Navbar ---------- */
.site-navbar {
    background: var(--miq-surface); border-bottom: 1px solid var(--miq-border); padding: .55rem 0; z-index: 1030;
}
.brand-text { font-weight: 800; font-size: 1.3rem; color: var(--miq-navy); letter-spacing: -.02em; }
[data-bs-theme="dark"] .brand-text { color: #fff; }
.brand-text span { color: var(--miq-primary); }
.brand-mark { border-radius: 9px; }
/* Account deletion page (delete-account.php, 2026-10-14) */
.del-steps { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .45rem; }
.del-steps li { padding-left: .2rem; }
.del-done .icon-tile { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 50%; }
/* "by FINBOX STUDIO" under the MarketIQ wordmark (2026-10-14; MarketIQ is a FINBOX STUDIO product). Tight line
   heights keep the pair within the logo's height, so the navbar is no taller. */
.brand-stack { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1; }
.brand-stack .brand-text { line-height: 1.1; }
.brand-by { margin-top: .12rem; font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--miq-muted); white-space: nowrap; }
.site-footer .brand-by { color: rgba(255, 255, 255, .62); }
.auth-brand .brand-by { color: rgba(255, 255, 255, .72); font-size: .78rem; margin-top: .25rem; }
.footer-owner { font-weight: 700; color: #fff; letter-spacing: .02em; }
.site-navbar .nav-link { color: var(--miq-muted); font-weight: 600; padding: .5rem .9rem; border-radius: 8px; }
.site-navbar .nav-link:hover { color: var(--miq-text); }
.site-navbar .nav-link.active { color: var(--miq-primary); background: var(--miq-primary-light); }
.navbar-toggler { border-color: var(--miq-border); }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }
.nav-search { position: relative; width: 300px; max-width: 100%; }
.nav-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--miq-faint); font-size: .85rem; }
.nav-search .form-control { padding-left: 2.25rem; border-radius: 999px; background: var(--miq-surface-muted); }
@media (max-width: 991.98px) { .nav-search { width: 100%; } .site-navbar .navbar-nav { padding-top: .75rem; } }
.theme-icon-dark { display: none; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }
.auth-user { display: none; }
.signed-in .auth-user { display: block; }
.signed-in .auth-guest { display: none !important; }
.avatar-btn { padding: 0; border: 0; background: none; }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden;
    background: var(--miq-primary); color: #fff; font-weight: 700; flex-shrink: 0; object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 38px; height: 38px; font-size: .9rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.account-menu { min-width: 250px; border-radius: var(--miq-radius); border-color: var(--miq-border); background: var(--miq-surface); }
.account-menu .dropdown-item { display: flex; align-items: center; gap: .7rem; padding: .5rem 1rem; font-weight: 500; color: var(--miq-text); }
.account-menu .dropdown-item i { width: 18px; text-align: center; color: var(--miq-muted); }
.account-menu .dropdown-item:hover { background: var(--miq-surface-muted); }
.account-menu .dropdown-item.text-danger i { color: var(--miq-danger); }

/* ---------- Layout helpers ---------- */
/* Vertical padding only - these classes are also put on .container, whose side padding must survive. */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-sm { padding-top: 2rem; padding-bottom: 2rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--miq-muted); }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--miq-primary); margin-bottom: .35rem; }
.view-all { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.page-head { background: linear-gradient(135deg, var(--miq-navy) 0%, var(--miq-navy-mid) 100%); color: #fff; padding: 2.25rem 0; position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 .35rem; }
.page-head p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 640px; }
.page-head::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(47, 111, 237, .22); }
.page-head .container { position: relative; z-index: 1; }
.surface { background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: var(--miq-radius); box-shadow: var(--miq-shadow-card); }
.surface-pad { padding: 1.25rem; }
.breadcrumb-lite { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: .6rem; }
.breadcrumb-lite a { color: rgba(255, 255, 255, .85); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--miq-navy-deep) 0%, var(--miq-navy) 55%, var(--miq-navy-mid) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 237, .45), transparent 70%); }
.hero::after { content: ''; position: absolute; left: -100px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 161, 91, .22), transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 3.25rem 0; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.12; }
.hero h1 em { font-style: normal; color: #8DB4FF; }
.hero-lead { color: rgba(255, 255, 255, .8); font-size: clamp(.98rem, 1.6vw, 1.12rem); max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stat b { display: block; font-size: 1.55rem; font-weight: 800; }
.hero-stat span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.hero-logo { max-width: min(360px, 78%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.hero .btn-light { color: var(--miq-navy); }
.hero .btn-outline-light:hover { color: var(--miq-navy); }

.banner-carousel { background: var(--miq-navy); overflow: hidden; border-radius: var(--miq-radius-lg); box-shadow: var(--miq-shadow-raised); }
.banner-carousel .carousel-item { position: relative; }
.banner-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; object-position: center; background: transparent; }
.banner-slide { min-height: clamp(170px, 22vw, 320px); display: flex; align-items: center; background: linear-gradient(135deg, var(--miq-navy-deep), var(--miq-navy-mid)); }
.banner-caption { position: absolute; inset: auto 0 0 0; padding: 1.5rem 0 1.75rem; background: linear-gradient(0deg, rgba(10, 21, 48, .78), rgba(10, 21, 48, 0)); }
.banner-slide .banner-caption { position: static; background: none; padding: 2rem 0; width: 100%; }
/* Inset the content so it never sits under the prev/next arrows. */
.banner-caption-inner { padding-left: 4.5rem; padding-right: 4.5rem; }
.banner-caption h2 { color: #fff; font-size: clamp(1.15rem, 2.6vw, 1.9rem); font-weight: 800; max-width: 640px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.banner-caption p { color: rgba(255, 255, 255, .9); max-width: 520px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.banner-cta { margin-top: .5rem; }
.banner-carousel .carousel-indicators { margin-bottom: .75rem; }
.banner-carousel .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; }
.banner-carousel .carousel-control-prev, .banner-carousel .carousel-control-next { width: 5rem; }
@media (max-width: 767.98px) {
    .banner-caption { padding: 1rem 0 1.9rem; }
    .banner-caption-inner { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Illustration placeholders (app's flat-colour illustration kinds) ---------- */
.ill { position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9); overflow: hidden; background: var(--miq-navy); }
.ill i { font-size: 2.2rem; opacity: .9; position: relative; z-index: 1; }
.ill::before { content: ''; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .06); top: -70%; right: -50%; }
.ill-candlestickNavy { background: linear-gradient(135deg, #0F1E3D, #1E355C); }
.ill-candlestickTeal { background: linear-gradient(135deg, #1E355C, #2F6FED); }
.ill-candlestickGreen { background: linear-gradient(135deg, #15803D, #16A34A); }
.ill-coins { background: linear-gradient(135deg, #9C7A3C, #C6A15B); }
.ill-presenter { background: linear-gradient(135deg, #0A1530, #0F1E3D); }
.ill-liveSpeaker { background: linear-gradient(135deg, #0A1530, #2F6FED); }
.ill-building { background: linear-gradient(135deg, #64748B, #94A3B8); }
.ill-lightbulb { background: linear-gradient(135deg, #9C7A3C, #C6A15B); }
.ratio-card { aspect-ratio: 16 / 9; width: 100%; }
.media-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Cards ---------- */
.mcard {
    background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: var(--miq-radius-lg);
    box-shadow: var(--miq-shadow-card); overflow: hidden; display: flex; flex-direction: column; height: 100%;
    transition: transform .18s ease, box-shadow .18s ease; color: var(--miq-text);
}
a.mcard:hover { transform: translateY(-3px); box-shadow: var(--miq-shadow-raised); color: var(--miq-text); }
.mcard-media { position: relative; }
.mcard-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.mcard-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-text { color: var(--miq-muted); font-size: .85rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--miq-muted); font-size: .78rem; }
.mcard-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mcard-badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; z-index: 2; }
.wish-btn { position: absolute; top: .55rem; right: .55rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #64748B; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.wish-btn.active { color: var(--miq-danger); }
.price { font-weight: 800; font-size: 1.1rem; color: var(--miq-text); }
.price-old { color: var(--miq-faint); text-decoration: line-through; font-size: .85rem; margin-left: .35rem; font-weight: 500; }
/* GST note after a price (2026-10-14): "+GST@18%" (base price shown) or "Incl. GST@18%" (price with GST shown). */
.price-gst { display: inline-block; margin-left: .35rem; font-size: .68rem; font-weight: 600; color: var(--miq-muted); white-space: nowrap; letter-spacing: .01em; }
.price-free { color: var(--miq-success); }
.stars { color: var(--miq-amber); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--miq-border); }
.rating-line { font-size: .82rem; color: var(--miq-muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.rating-line b { color: var(--miq-text); }
/* Course card badge, at the right end of the rating row (2026-10-13) - compact so the row keeps its height. */
.mcard-tags { margin-left: auto; display: inline-flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.mcard-tags .tone { font-size: .66rem; line-height: 1.15; padding: .14rem .5rem; border-radius: 999px; }
/* Narrow cards (Wishlist's 4 per row): one star instead of five, and "Live cohort" next to a badge shrinks to its dot,
   so a rated card's row still fits on one line. */
.mcard-tags .tone + .tone .lc-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mcard-body { container: mcard / inline-size; }
@container mcard (max-width: 300px) {
    .rating-line .stars i:not(:first-child) { display: none; }
    .rating-line .stars i:first-child { color: var(--miq-amber); }
    .rating-line:has(.mcard-tags .tone + .tone) .r-count { display: none; }
}
@container mcard (max-width: 175px) {
    .rating-line .r-count { display: none; }
    .rating-line { flex-wrap: nowrap; }
    .rating-line .mcard-tags { flex-wrap: nowrap; min-width: 0; }
    .rating-line .mcard-tags .tone:first-child { display: inline-block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.tone { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: 6px; font-size: .7rem; font-weight: 700; line-height: 1.2; }
.tone-amber { background: var(--miq-amber); color: #0F172A; }
.tone-success { background: var(--miq-success); color: #fff; }
.tone-primary { background: var(--miq-primary); color: #fff; }
.tone-orange { background: var(--miq-orange); color: #fff; }
.tone-danger, .tone-live { background: var(--miq-danger); color: #fff; }
.tone-dark { background: rgba(15, 30, 61, .85); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--miq-surface-muted); color: var(--miq-muted); }
.chip-success { background: var(--miq-success-light); color: var(--miq-success-dark); }
[data-bs-theme="dark"] .chip-success { color: #4ADE80; }
.chip-danger { background: var(--miq-danger-light); color: var(--miq-danger); }
.chip-primary { background: var(--miq-primary-light); color: var(--miq-primary); }
[data-bs-theme="dark"] .chip-primary { color: #8DB4FF; }
.chip-amber { background: var(--miq-amber-light); color: var(--miq-amber-dark); }
[data-bs-theme="dark"] .chip-amber { color: #E3C98E; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Feature / icon tiles ---------- */
.icon-tile { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.tint-primary { background: var(--miq-primary-light); color: var(--miq-primary); }
.tint-success { background: var(--miq-success-light); color: var(--miq-success); }
.tint-purple { background: var(--miq-purple-light); color: var(--miq-purple); }
.tint-orange { background: var(--miq-orange-light); color: var(--miq-orange); }
.tint-amber { background: var(--miq-amber-light); color: var(--miq-amber-dark); }
.tint-danger { background: var(--miq-danger-light); color: var(--miq-danger); }
.feature { padding: 1.35rem; height: 100%; }
.feature h5 { font-size: 1.02rem; margin: .9rem 0 .35rem; }
.feature p { color: var(--miq-muted); font-size: .88rem; margin: 0; }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--miq-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- Webinar ---------- */
.date-block { width: 62px; flex-shrink: 0; align-self: flex-start; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--miq-border); background: var(--miq-surface); }
.date-block .m { background: var(--miq-primary); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: .2rem 0; letter-spacing: .06em; }
.date-block .d { font-size: 1.5rem; font-weight: 800; line-height: 1.15; padding-top: .15rem; }
.date-block .w { font-size: .68rem; color: var(--miq-muted); padding-bottom: .3rem; text-transform: uppercase; }
.webinar-card { padding: 1.15rem; display: flex; gap: 1rem; height: 100%; }
.webinar-banner { background: linear-gradient(135deg, var(--miq-navy) 0%, var(--miq-navy-mid) 100%); color: #fff; border-radius: var(--miq-radius-lg); padding: 1.75rem; position: relative; overflow: hidden; }
.webinar-banner h3, .webinar-banner h2 { color: #fff; }
.webinar-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(47, 111, 237, .3); }
.webinar-banner > * { position: relative; z-index: 1; }

/* ---------- Tabs / filters ---------- */
.seg { display: inline-flex; background: var(--miq-surface-muted); border-radius: 12px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
/* Phones: tabs wrap and share the full width instead of hiding off-screen (profile, my courses, webinars). */
@media (max-width: 575.98px) {
    .seg { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
    .seg button, .seg a { padding: .5rem .5rem; text-align: center; width: 100%; white-space: normal; }
}
.seg button, .seg a { border: 0; background: none; color: var(--miq-muted); font-weight: 600; font-size: .88rem; padding: .5rem 1rem; border-radius: 9px; white-space: nowrap; }
.seg .active { background: var(--miq-surface); color: var(--miq-primary); box-shadow: var(--miq-shadow-card); }
[data-bs-theme="dark"] .seg .active { color: #8DB4FF; }
.pill-filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.pill-filters::-webkit-scrollbar { display: none; }
.pill-filters button { border: 1px solid var(--miq-border); background: var(--miq-surface); color: var(--miq-muted); font-weight: 600; font-size: .82rem; padding: .4rem .95rem; border-radius: 999px; white-space: nowrap; }
.pill-filters button.active { background: var(--miq-primary); border-color: var(--miq-primary); color: #fff; }

/* ---------- Course details ---------- */
.course-hero { background: linear-gradient(135deg, var(--miq-navy-deep), var(--miq-navy) 60%, var(--miq-navy-mid)); color: #fff; padding: 2.25rem 0 2.5rem; }
.course-hero h1 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.course-hero p { color: rgba(255, 255, 255, .82); }
.course-hero .rating-line, .course-hero .rating-line b { color: rgba(255, 255, 255, .85); }
.course-hero .rating-line b { color: #fff; }
.course-hero .stars .off { color: rgba(255, 255, 255, .25); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem; }
.stat-strip > div { background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: 12px; padding: .8rem; text-align: center; }
.stat-strip b { display: block; font-size: 1.1rem; font-weight: 800; }
.stat-strip span { font-size: .75rem; color: var(--miq-muted); }
@media (max-width: 575.98px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.buy-card { position: sticky; top: 84px; padding: 1.25rem; }
.buy-card .price { font-size: 1.75rem; }
.buy-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.perk-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; font-size: .88rem; }
.perk-list i { color: var(--miq-success); width: 20px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem 1.5rem; }
.learn-grid div { display: flex; gap: .65rem; align-items: start; font-size: .92rem; }
.learn-grid i { color: var(--miq-success); margin-top: .2rem; }
.rich-text { font-size: .95rem; overflow-wrap: anywhere; }
.rich-text img, .rich-text iframe, .rich-text video { max-width: 100%; height: auto; }
.rich-text table { width: 100%; display: block; overflow-x: auto; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { font-size: 1.1rem; margin-top: 1.1rem; }
.module-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--miq-border-soft); }
.module-row:last-child { border-bottom: 0; }
.module-no { width: 34px; height: 34px; border-radius: 10px; background: var(--miq-primary-light); color: var(--miq-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-bs-theme="dark"] .module-no { color: #8DB4FF; }
.accordion { --bs-accordion-bg: var(--miq-surface); --bs-accordion-border-color: var(--miq-border); --bs-accordion-btn-bg: var(--miq-surface); --bs-accordion-active-bg: var(--miq-surface-muted); --bs-accordion-active-color: var(--miq-text); --bs-accordion-btn-color: var(--miq-text); --bs-accordion-color: var(--miq-text); --bs-accordion-btn-focus-box-shadow: none; }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1); }
.accordion-button { font-weight: 600; }
.instructor { display: flex; gap: 1rem; align-items: center; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--miq-border-soft); }
.review:last-child { border-bottom: 0; }
.review p { overflow-wrap: anywhere; }
/* "Read All Reviews" modal: rows far off-screen skip layout/paint, so thousands of loaded reviews stay smooth. */
.reviews-modal .review { content-visibility: auto; contain-intrinsic-size: auto 110px; }
.reviews-modal .modal-header { align-items: flex-start; }
.reviews-modal [data-rv-summary] .stars { vertical-align: -1px; }
.rating-bar { height: 8px; background: var(--miq-border); border-radius: 999px; overflow: hidden; }
.rating-bar > div { height: 100%; background: var(--miq-amber); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { display: none; }
.star-input label { font-size: 1.6rem; color: var(--miq-border); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--miq-amber); }
.sticky-buy { display: none; }
@media (max-width: 991.98px) {
    .buy-card { position: static; }
    .sticky-buy {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025; align-items: center; justify-content: space-between; gap: .75rem;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--miq-surface); border-top: 1px solid var(--miq-border); box-shadow: 0 -6px 18px rgba(10, 27, 51, .12);
    }
    body.has-sticky-buy { padding-bottom: 76px; }
}

/* ---------- Checkout ---------- */
.order-line { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.order-total { border-top: 1px dashed var(--miq-border); margin-top: .5rem; padding-top: .8rem; font-weight: 800; font-size: 1.15rem; }
/* Checkout: "Online payment will be available soon" above the disabled Pay button while payments are closed. */
.pay-soon { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border-radius: 12px;
    background: linear-gradient(135deg, #FFF7E6 0%, #FDEFD3 100%); border: 1px solid rgba(198, 161, 91, .45);
    box-shadow: inset 4px 0 0 var(--miq-amber); color: #5B4210; }
.pay-soon-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--miq-amber-dark); box-shadow: 0 2px 6px rgba(156, 122, 60, .25); }
.pay-soon b { display: block; font-size: .95rem; color: #3D2C0A; }
.pay-soon span:not(.pay-soon-icon) { display: block; font-size: .86rem; margin-top: .1rem; }
/* Checkout: "Have a coupon code?" / "I need a GST Invoice" checkboxes that open their boxes (2026-10-14). */
.checkout-toggle { margin: 0; }
.checkout-toggle .form-check-label { font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.checkout-toggle .form-check-input { cursor: pointer; width: 1.15em; height: 1.15em; border-color: var(--miq-stone); }
.coupon-chip { cursor: pointer; border: 1px dashed var(--miq-primary); color: var(--miq-primary); background: var(--miq-primary-light); border-radius: 10px; padding: .45rem .75rem; font-size: .8rem; font-weight: 600; }
[data-bs-theme="dark"] .coupon-chip { color: #8DB4FF; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-side { display: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; padding: 2rem 1.6rem; }
@media (min-width: 992px) {
    .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 3rem; color: #fff; background: linear-gradient(135deg, var(--miq-navy-deep), var(--miq-navy) 55%, var(--miq-navy-mid)); position: relative; overflow: hidden; }
    .auth-side::before { content: ''; position: absolute; right: -100px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 237, .45), transparent 70%); }
    .auth-side > * { position: relative; }
    .auth-side h2 { color: #fff; }
    .auth-side p { color: rgba(255, 255, 255, .78); max-width: 380px; }
}
.otp-row { display: flex; gap: .5rem; justify-content: space-between; }
/* Sign-up step 2 (email code, 2026-10-14) */
.verify-head { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--miq-surface-muted); }
.verify-head .icon-tile { flex-shrink: 0; width: 42px; height: 42px; font-size: 1.05rem; }
.otp-row input { width: 100%; max-width: 52px; text-align: center; font-size: 1.3rem; font-weight: 700; padding: .6rem 0; }

/* ---------- Lists (orders, notifications, tickets) ---------- */
.list-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-bottom: 1px solid var(--miq-border-soft); }
.list-row:last-child { border-bottom: 0; }
.list-thumb { width: 84px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.notif.unread { background: var(--miq-primary-light); }
.notif .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--miq-primary); flex-shrink: 0; }
@media (max-width: 575.98px) {
    .list-row { align-items: flex-start; gap: .75rem; padding: .9rem 1rem; }
    .list-thumb { width: 64px; }
    /* Orders: picture + title share the first line; price and status drop below, right-aligned. */
    .list-row.wrap-sm { flex-wrap: wrap; }
    .list-row.wrap-sm > .flex-fill { flex: 1 1 calc(100% - 64px - .75rem) !important; } /* beats Bootstrap's .flex-fill !important */
    .list-row.wrap-sm > .text-end { flex: 1 1 100%; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; }
    .list-row.wrap-sm > .text-end > .mt-1 { margin-top: 0 !important; }
}
.progress { background: var(--miq-border); height: 8px; border-radius: 999px; }
.progress-bar { background: var(--miq-primary); }
.progress-bar.done { background: var(--miq-success); }
.stat-tile { padding: 1.1rem; text-align: center; }
.stat-tile b { font-size: 1.6rem; font-weight: 800; display: block; }
.stat-tile span { color: var(--miq-muted); font-size: .8rem; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: .35rem 1rem; font-size: .92rem; }
.kv dt { color: var(--miq-muted); font-weight: 500; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: .5rem; } }
.cert-card { padding: 1.25rem; border-left: 4px solid var(--miq-amber); overflow-wrap: anywhere; }
.checkout-thumb { width: 130px; flex-shrink: 0; }
@media (max-width: 575.98px) { .checkout-thumb { width: 88px; } }

/* ---------- States ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--miq-skeleton); border-radius: 8px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--miq-skeleton-hi), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 12px; margin: .5rem 0; } .sk-title { height: 18px; width: 75%; }
.state-box { text-align: center; padding: 3rem 1rem; }
.state-box .icon-tile { margin: 0 auto 1rem; width: 64px; height: 64px; font-size: 1.6rem; border-radius: 50%; }
.state-box h5 { margin-bottom: .35rem; } .state-box p { color: var(--miq-muted); max-width: 420px; margin: 0 auto 1rem; }
.pagination { --bs-pagination-bg: var(--miq-surface); --bs-pagination-border-color: var(--miq-border); --bs-pagination-color: var(--miq-text); --bs-pagination-hover-bg: var(--miq-surface-muted); --bs-pagination-hover-color: var(--miq-primary); --bs-pagination-active-bg: var(--miq-primary); --bs-pagination-active-border-color: var(--miq-primary); --bs-pagination-disabled-bg: var(--miq-surface-alt); --bs-pagination-disabled-color: var(--miq-faint); --bs-pagination-disabled-border-color: var(--miq-border); flex-wrap: wrap; justify-content: center; gap: 2px; }
.modal-content { background: var(--miq-surface); border-color: var(--miq-border); border-radius: var(--miq-radius-lg); }
.swal2-popup { border-radius: 16px !important; font-family: inherit !important; }
[data-bs-theme="dark"] .swal2-popup { background: var(--miq-surface); color: var(--miq-text); }
[data-bs-theme="dark"] .swal2-title, [data-bs-theme="dark"] .swal2-html-container { color: var(--miq-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--miq-navy-deep); color: #fff; margin-top: 3rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: .9rem; }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text span { color: #8DB4FF; }
.footer-muted { color: rgba(255, 255, 255, .65); }
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .footer-mail { color: rgba(255, 255, 255, .75); }
.footer-links a:hover, .footer-mail:hover { color: #fff; }
.footer-rule { border-color: rgba(255, 255, 255, .15); opacity: 1; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; padding: .45rem .9rem; font-size: .68rem; line-height: 1.15; }
.store-badge i { font-size: 1.5rem; }
.store-badge strong { display: block; font-size: .95rem; }
.store-badge:hover { color: #fff; border-color: #fff; }

.cta-band { background: linear-gradient(135deg, var(--miq-primary-dark), var(--miq-primary)); color: #fff; border-radius: var(--miq-radius-lg); padding: 2rem; }
.cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); }

@media (max-width: 575.98px) {
    body { font-size: 14.5px; }
    .section { padding-top: 2rem; padding-bottom: 2rem; }
    .hero-inner { padding: 2.25rem 0; }
    .auth-card { padding: 1.5rem 1.15rem; }
    .webinar-card { flex-direction: column; }
    /* Phone: the date becomes a compact pill - "SEP 24 · THU" */
    .webinar-card .date-block { width: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; }
    .webinar-card .date-block .m, .webinar-card .date-block .d, .webinar-card .date-block .w { padding: 0; background: none; color: inherit; font-size: .85rem; line-height: 1.3; }
    .webinar-card .date-block .w::before { content: '\00B7'; margin-right: .35rem; color: var(--miq-faint); }
    .webinar-card .date-block .m { color: var(--miq-primary); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Shown to signed-out visitors only */
.signed-in .auth-guest-block { display: none; }

/* Sign-in / sign-up side panel: same logo lock-up as the header, on the navy panel */
.auth-brand .brand-mark { border-radius: 16px; }
.auth-brand .brand-text { color: #fff; font-size: 2.4rem; }
.auth-brand .brand-text span { color: #8DB4FF; }

/* ---------- Home hero: carousel (left) + "why learn" copy (right, no card) ---------- */
.hero-split { padding: 1.5rem 0 .5rem; }
.hero-skeleton { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--miq-radius-lg); }
.banner-fallback { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; border-radius: var(--miq-radius-lg); background: linear-gradient(135deg, var(--miq-navy-deep), var(--miq-navy-mid)); }
.banner-fallback img { max-width: 55%; height: auto; }
.why { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.why-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin: 0; color: var(--miq-text); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; width: 100%; }
.why-list li { display: flex; gap: 1rem; align-items: center; font-size: 1rem; color: var(--miq-muted); }
.why-list i { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--miq-primary-light); color: var(--miq-primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.why-list li:nth-child(2) i { background: var(--miq-success-light); color: var(--miq-success); }
.why-list li:nth-child(3) i { background: var(--miq-purple-light); color: var(--miq-purple); }
.why-list li:nth-child(4) i { background: var(--miq-danger-light); color: var(--miq-danger); }
.why-list b { color: var(--miq-text); }
.why-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.why-stats > div { padding-left: .9rem; border-left: 3px solid var(--miq-amber); }
.why-stats b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--miq-text); }
.why-stats span { font-size: .8rem; color: var(--miq-muted); }
.why-quote { margin: 0; font-size: 1rem; font-style: italic; color: var(--miq-muted); }

/* ---------- Legal pages ---------- */
.legal-toc { position: sticky; top: 84px; font-size: .86rem; }
.legal-toc li { margin-bottom: .4rem; }
.legal-toc a { color: var(--miq-muted); }
.legal-toc a:hover { color: var(--miq-primary); }
.legal-doc { padding: 1.75rem; }
.legal-doc section { scroll-margin-top: 90px; margin-top: 1.75rem; }
.legal-doc h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.legal-doc p, .legal-doc li { color: var(--miq-text); font-size: .93rem; text-align: justify; hyphens: auto; }
.legal-doc ul { list-style: disc; padding-left: 2.1rem; margin-bottom: 1rem; }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc li::marker { color: var(--miq-primary); }
.clause-no { font-weight: 700; color: var(--miq-primary); margin-right: .35rem; }
@media (max-width: 575.98px) { .legal-doc { padding: 1.15rem; } .legal-doc p, .legal-doc li { text-align: left; } }

/* Compact carousel captions (the carousel is half-width on the home page) */
.banner-caption { padding: .9rem 0 1.6rem; }
.banner-caption-inner { padding-left: 3rem; padding-right: 3rem; }
.banner-caption h2 { font-size: clamp(1rem, 1.7vw, 1.3rem); margin-bottom: .25rem; }
.banner-caption p { font-size: .85rem; margin-bottom: .5rem; }
.banner-cta { font-size: .85rem; padding: .35rem .9rem; }
/* Prev/next: solid round buttons (white, navy chevron) so they show on light and dark pictures alike, phones included. */
.banner-carousel .carousel-control-prev, .banner-carousel .carousel-control-next { top: 50%; bottom: auto; width: 36px; height: 36px; transform: translateY(-50%);
    border-radius: 50%; color: var(--miq-navy); background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(10, 21, 48, .28); opacity: 1; font-size: .85rem; z-index: 2;
    transition: background-color .15s ease, color .15s ease; }
.banner-carousel .carousel-control-prev { left: .6rem; }
.banner-carousel .carousel-control-next { right: .6rem; }
.banner-carousel .carousel-control-prev:hover, .banner-carousel .carousel-control-next:hover,
.banner-carousel .carousel-control-prev:focus-visible, .banner-carousel .carousel-control-next:focus-visible { color: var(--miq-primary); background: #fff; opacity: 1; }
@media (max-width: 767.98px) {
    .banner-caption-inner { padding-left: .9rem; padding-right: .9rem; }
    .banner-carousel .carousel-control-prev, .banner-carousel .carousel-control-next { width: 30px; height: 30px; font-size: .72rem; }
    .banner-carousel .carousel-control-prev { left: .45rem; }
    .banner-carousel .carousel-control-next { right: .45rem; }
}

/* Carousel fills the hero row's height; the picture is always shown whole (contain) over a blurred copy of itself, so there are no empty bars. */
.banner-carousel .carousel-item { overflow: hidden; background: var(--miq-navy); }
.banner-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.7); transform: scale(1.1); }
.banner-img { position: relative; }
.hero-skeleton { height: 100%; }
@media (min-width: 992px) {
    #heroCarouselHost { min-height: 300px; }
    #heroCarouselHost .banner-carousel, #heroCarouselHost .carousel-inner, #heroCarouselHost .carousel-item { height: 100%; }
    #heroCarouselHost .banner-img { height: 100%; aspect-ratio: auto; }
    #heroCarouselHost .banner-fallback { height: 100%; aspect-ratio: auto; }
}

/* ---------- About Virendra Pandey (virendra-pandey.php) ---------- */
.page-vp { --vp-gold: var(--miq-amber); }

/* Scroll reveal: hidden only once the page has said JS is running; a fail-safe shows it anyway after 3s. */
.vp-anim .vp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); animation: vpFailsafe 0s 3s forwards; }
.vp-anim .vp-reveal.is-visible { opacity: 1; transform: none; animation: none; }
.vp-delay-1 { transition-delay: .1s !important; }
.vp-delay-2 { transition-delay: .2s !important; }
.vp-delay-3 { transition-delay: .3s !important; }
.vp-delay-4 { transition-delay: .4s !important; }
@keyframes vpFailsafe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vp-anim .vp-reveal { opacity: 1; transform: none; } }

.vp-h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.vp-lead { font-size: 1.05rem; color: var(--miq-text); }
.vp-story p:not(.vp-lead) { color: var(--miq-muted); }

/* Hero */
.vp-hero { position: relative; overflow: hidden; color: #fff; padding: 3.5rem 0 6.5rem; background: linear-gradient(135deg, var(--miq-navy-deep) 0%, var(--miq-navy) 55%, var(--miq-navy-mid) 100%); }
.vp-hero::before { content: ''; position: absolute; right: -140px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 237, .45), transparent 70%); }
.vp-hero::after { content: ''; position: absolute; left: -120px; bottom: -200px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 161, 91, .22), transparent 70%); }
.vp-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.vp-hero .container { position: relative; z-index: 1; }
.vp-name { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 1.1rem 0 .6rem; }
.vp-name em { font-style: normal; background: linear-gradient(90deg, #8DB4FF, #E4C98F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-role { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
.vp-role span { color: var(--vp-gold); margin: 0 .35rem; }
.vp-motto { display: inline-flex; align-items: center; gap: .65rem; margin: .5rem 0 0; padding: .55rem 1rem; border-left: 3px solid var(--vp-gold); background: rgba(255, 255, 255, .06); border-radius: 0 10px 10px 0; font-weight: 600; font-style: italic; color: #fff; }
.vp-motto i { color: var(--vp-gold); font-size: .85rem; }
.vp-hero .btn-light { color: var(--miq-navy); }
.vp-hero .btn-outline-light:hover { color: var(--miq-navy); }

.vp-hero-media { position: relative; margin: 0 0 0 auto; max-width: 620px; }
.vp-hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(198, 161, 91, .55); border-radius: 22px; }
.vp-hero-media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% center; border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); }
.vp-float { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--miq-text); box-shadow: 0 14px 34px rgba(10, 21, 48, .3); animation: vpBob 6s ease-in-out infinite; }
.vp-float b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.1; color: var(--miq-navy); }
.vp-float span { font-size: .74rem; color: #64748B; }
.vp-float-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.vp-float-yt { left: -26px; bottom: 28px; }
.vp-float-yt .vp-float-icon { background: #FEE2E2; color: #EF4444; }
.vp-float-sebi { right: -14px; top: -18px; animation-delay: -3s; }
.vp-float-sebi .vp-float-icon { background: #DCE9FE; color: #2F6FED; }
@keyframes vpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats strip, overlapping the hero */
.vp-stats-wrap { position: relative; z-index: 2; margin-top: -3.75rem; }
.vp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--miq-radius-lg); box-shadow: var(--miq-shadow-raised); }
.vp-stat { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1.4rem; }
.vp-stat + .vp-stat { border-left: 1px solid var(--miq-border-soft); }
.vp-stat b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.05; color: var(--miq-text); font-variant-numeric: tabular-nums; }
.vp-stat span:not(.icon-tile) { font-size: .8rem; color: var(--miq-muted); }

/* Story */
.vp-portrait { position: relative; max-width: 440px; margin: 0 auto; }
.vp-portrait::before { content: ''; position: absolute; inset: 12% 4% 0; border-radius: 28px; background: linear-gradient(160deg, var(--miq-primary-light), var(--miq-amber-light)); }
.vp-portrait img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 34px rgba(10, 27, 51, .18)); }
.vp-creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.5rem; }
.vp-creds > div { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--miq-border); border-radius: var(--miq-radius); background: var(--miq-surface); }
.vp-creds i { color: var(--miq-primary); font-size: 1.05rem; margin-top: .15rem; width: 20px; text-align: center; }
.vp-creds b { display: block; font-size: .9rem; color: var(--miq-text); }
.vp-creds span { font-size: .8rem; color: var(--miq-muted); }

/* Timeline: horizontal on desktop, vertical on small screens */
.vp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; }
.vp-timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--miq-primary), var(--vp-gold)); opacity: .35; }
.vp-timeline li { position: relative; padding-top: 2rem; }
.vp-timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--miq-surface); border: 4px solid var(--miq-primary); box-shadow: 0 0 0 4px var(--miq-primary-light); }
.vp-timeline li.is-now::before { border-color: var(--vp-gold); box-shadow: 0 0 0 4px var(--miq-amber-light); }
.vp-tl-when { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--miq-primary); margin-bottom: .35rem; }
.vp-timeline li.is-now .vp-tl-when { color: var(--miq-amber-dark); }
.vp-timeline h5 { font-size: 1rem; margin-bottom: .3rem; }
.vp-timeline p { font-size: .86rem; color: var(--miq-muted); margin: 0; }

/* Expertise */
.vp-expertise { background: var(--miq-surface-muted); }
.vp-skill { padding: 1.4rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.vp-skill:hover { transform: translateY(-4px); box-shadow: var(--miq-shadow-raised); border-color: rgba(47, 111, 237, .35); }
.vp-skill h5 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.vp-skill p { font-size: .88rem; color: var(--miq-muted); margin: 0; }

/* Philosophy */
.vp-philosophy { position: relative; overflow: hidden; padding: 4rem 0; color: #fff; background: linear-gradient(135deg, var(--miq-navy-deep), var(--miq-navy-mid)); }
.vp-philosophy::after { content: '\201C'; position: absolute; right: 3%; top: -6rem; font-size: 26rem; line-height: 1; font-weight: 800; color: rgba(255, 255, 255, .04); pointer-events: none; }
.vp-philosophy .container { position: relative; z-index: 1; }
.vp-philosophy .eyebrow { color: var(--vp-gold); }
.vp-bigquote { margin: .25rem 0 0; max-width: 900px; font-size: clamp(1.4rem, 3.4vw, 2.35rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.vp-bigquote em { font-style: normal; color: #8DB4FF; }
.vp-quote-card { height: 100%; padding: 1.5rem; border-radius: var(--miq-radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.vp-quote-card i { color: var(--vp-gold); font-size: 1.2rem; }
.vp-quote-card p { font-size: 1.08rem; font-weight: 600; color: #fff; margin: .8rem 0 .6rem; }
.vp-quote-card span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* Gallery */
.vp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.vp-shot { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--miq-radius-lg); background: var(--miq-navy); cursor: zoom-in; box-shadow: var(--miq-shadow-card); }
.vp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vp-shot:hover img, .vp-shot:focus-visible img { transform: scale(1.06); }
.vp-shot-1 { grid-column: span 2; grid-row: span 2; }
.vp-shot-2 { grid-column: span 2; }
.vp-shot-cap { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: 2.2rem 1rem .85rem; text-align: left; font-size: .86rem; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(10, 21, 48, .85), transparent); }
.vp-shot-cap i { font-size: .8rem; opacity: .75; }
.vp-lightbox .modal-content { background: transparent; border: 0; }
.vp-lightbox img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: var(--miq-radius-lg); }
.vp-lightbox p { color: #fff; text-align: center; margin: .75rem 0 0; font-weight: 600; }
.vp-lightbox .btn-close { position: absolute; right: 0; top: -2.4rem; opacity: .9; }

/* Videos + socials */
.vp-video { overflow: hidden; height: 100%; }
.vp-video-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vp-video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.vp-video-frame:hover img { transform: scale(1.04); opacity: .85; }
.vp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #EF4444; color: #fff; font-size: 1.35rem; padding-left: 4px; box-shadow: 0 0 0 10px rgba(239, 68, 68, .25); transition: transform .25s ease; }
.vp-video-frame:hover .vp-play { transform: scale(1.08); }
.vp-video h5 { font-size: .98rem; line-height: 1.4; margin: 0; padding: 1rem 1.15rem 1.15rem; }
.vp-socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.vp-social { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; color: var(--miq-text); transition: transform .25s ease, box-shadow .25s ease; }
.vp-social:hover { transform: translateY(-3px); box-shadow: var(--miq-shadow-raised); color: var(--miq-text); }
.vp-social i { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; flex-shrink: 0; }
.vp-social b { display: block; font-size: 1.05rem; line-height: 1.15; }
.vp-social span { font-size: .8rem; color: var(--miq-muted); }
.vp-social.is-yt i { background: #FF0000; }
.vp-social.is-x i { background: #111827; }
.vp-social.is-ig i { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.vp-social.is-in i { background: #0A66C2; }
[data-bs-theme="dark"] .vp-social.is-x i { background: #000; border: 1px solid var(--miq-border); }

.vp-cta { background: linear-gradient(135deg, var(--miq-navy), var(--miq-primary-dark) 60%, var(--miq-primary)); }
.vp-disclaimer { margin: 1.25rem 0 0; font-size: .78rem; color: var(--miq-faint); }

@media (max-width: 991.98px) {
    .vp-hero { padding: 2.5rem 0 6rem; }
    .vp-hero-media { margin: 0 auto; }
    .vp-stats { grid-template-columns: repeat(2, 1fr); }
    .vp-stat:nth-child(3) { border-left: 0; }
    .vp-stat:nth-child(n+3) { border-top: 1px solid var(--miq-border-soft); }
    .vp-timeline { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2.25rem; }
    .vp-timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--miq-primary), var(--vp-gold)); }
    .vp-timeline li { padding-top: 0; }
    .vp-timeline li::before { left: -2.25rem; top: 2px; }
    .vp-socials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .vp-float-yt { left: 8px; bottom: 10px; }
    .vp-float-sebi { right: 8px; top: -14px; }
    .vp-float { padding: .5rem .75rem; }
    .vp-float b { font-size: .92rem; }
    .vp-hero-media::before { inset: 10px -8px -10px 8px; }
    .vp-stats { grid-template-columns: 1fr; }
    .vp-stat + .vp-stat { border-left: 0; border-top: 1px solid var(--miq-border-soft); }
    .vp-stat { padding: 1rem 1.15rem; }
    .vp-creds { grid-template-columns: 1fr; }
    .vp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: .65rem; }
    .vp-shot-cap { font-size: .75rem; padding: 1.6rem .7rem .6rem; }
    .vp-shot-cap i { display: none; }
    .vp-philosophy { padding: 3rem 0; }
    .vp-socials { grid-template-columns: 1fr 1fr; gap: .65rem; }
    .vp-social { padding: .8rem; gap: .65rem; }
    .vp-social i { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* ---------- Latest Feed (home row, feeds.php, feed.php) ---------- */
/* Card - same anatomy as the app's FeedPostCard: publisher row, title/summary, picture, engagement strip. */
.fcard {
    background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: var(--miq-radius-lg);
    box-shadow: var(--miq-shadow-card); overflow: hidden; display: flex; flex-direction: column; height: 100%;
    color: var(--miq-text); transition: transform .18s ease, box-shadow .18s ease;
}
a.fcard:hover { transform: translateY(-3px); box-shadow: var(--miq-shadow-raised); color: var(--miq-text); }
/* Compact card (user's request, 2026-10-12): the title and the description each keep a FIXED two-line height
   (empty or long), so the pictures of cards side by side line up; longer text ends in "…". */
.fcard-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem 0; }
.fcard-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--miq-navy); flex-shrink: 0; }
.fcard-who { flex: 1; min-width: 0; line-height: 1.2; }
.fcard-who b { display: block; font-size: .82rem; }
.fcard-who span { display: block; font-size: .68rem; color: var(--miq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-head .tone { font-size: .6rem; padding: .15rem .4rem; }
.fcard-title { font-size: .9rem; font-weight: 700; line-height: 1.3; height: 2.6em; margin: .55rem .8rem 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-text { color: var(--miq-muted); font-size: .76rem; line-height: 1.45; height: 2.9em; margin: .3rem .8rem 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-media { margin-top: .65rem; background: var(--miq-navy); }
/* Feed banners are square (1:1) everywhere - user's rule, 2026-10-12. */
.fcard-media .media-fill, .fcard-media .ill { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.fcard-media .media-fill { display: block; }
.fcard-stats { display: flex; gap: .9rem; padding: .5rem .8rem; margin-top: auto; border-top: 1px solid var(--miq-border-soft); font-size: .74rem; font-weight: 600; color: var(--miq-muted); }
.fcard-stats span { display: inline-flex; align-items: center; gap: .3rem; }
.fcard-stats .is-liked i { color: var(--miq-danger); }

/* Home: horizontal row with snap scrolling and arrow buttons (arrows on larger screens only) */
.feed-rail { position: relative; }
.feed-scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .25rem .1rem 1rem; scrollbar-width: thin; }
.feed-scroller:focus-visible { outline: 2px solid var(--miq-primary); outline-offset: 4px; border-radius: 8px; }
.feed-slide { flex: 0 0 min(232px, 66%); scroll-snap-align: start; display: flex; }
.feed-slide > .fcard { width: 100%; }
.feed-more { align-items: center; justify-content: center; text-align: center; gap: .4rem; padding: 1.5rem; min-height: 260px; background: var(--miq-surface-muted); border-style: dashed; }
.feed-more b { font-size: 1.05rem; }
.feed-rail-btn {
    position: absolute; top: 42%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--miq-border);
    background: var(--miq-surface); color: var(--miq-text); box-shadow: var(--miq-shadow-raised); display: none; align-items: center; justify-content: center;
}
.feed-rail-btn.prev { left: -14px; }
.feed-rail-btn.next { right: -14px; }
.feed-rail-btn:hover { color: var(--miq-primary); }
.feed-rail-btn.is-hidden { display: none !important; }
@media (min-width: 768px) { .feed-rail-btn { display: flex; } }

/* Feeds page: search bar on top of all posts (the category filter was removed, 2026-10-12). */
/* Full-width search bar, then the post count on its own line (left), then the posts (user's layout, 2026-10-12). */
.feed-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: .85rem; margin-bottom: 1.25rem; }
.feed-search { position: relative; display: flex; align-items: center; width: 100%; padding: .35rem; border-radius: 999px;
    background: var(--miq-surface); border: 1px solid var(--miq-border); box-shadow: var(--miq-shadow-card); transition: border-color .15s ease, box-shadow .15s ease; }
.feed-search:focus-within { border-color: rgba(47, 111, 237, .55); box-shadow: 0 0 0 4px rgba(47, 111, 237, .12); }
.feed-search > i { position: absolute; left: 1.15rem; color: var(--miq-faint); pointer-events: none; }
.feed-search .form-control { border: 0; background: none; box-shadow: none; padding: .55rem .75rem .55rem 2.6rem; font-size: .95rem; }
.feed-search .btn { border-radius: 999px; padding: .5rem 1.4rem; font-weight: 700; flex-shrink: 0; }
.feed-toolbar-info { display: flex; align-items: center; justify-content: flex-start; gap: .9rem; font-size: .92rem; min-height: 1.4em; }
.feed-toolbar-info b { color: var(--miq-text); }
.feed-clear { border: 0; background: none; padding: 0; color: var(--miq-primary); font-weight: 600; font-size: .86rem; }
.feed-clear:hover { text-decoration: underline; }
.feed-featured .fcard { flex-direction: column; }
@media (min-width: 768px) {
    .feed-featured .fcard { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto auto 1fr auto; }
    .feed-featured .fcard-media { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: start; }
    .feed-featured .fcard-media .media-fill, .feed-featured .fcard-media .ill { aspect-ratio: 1 / 1; height: auto; }
    .feed-featured .fcard-head { padding: 1.1rem 1.25rem 0; }
    .feed-featured .fcard-title { font-size: 1.3rem; height: auto; -webkit-line-clamp: 3; margin: .75rem 1.25rem 0; }
    .feed-featured .fcard-text { font-size: .9rem; height: auto; -webkit-line-clamp: 4; margin: .45rem 1.25rem 0; }
    .feed-featured .fcard-stats { padding: .75rem 1.25rem; }
}
@media (max-width: 575.98px) {
    .feed-search .btn { padding: .5rem 1rem; }
    /* Phones: one full-width card per row (like a social feed) - a little larger text, same fixed slots. */
    .feed-list .fcard-head { padding: .85rem 1rem 0; }
    .feed-list .fcard-avatar { width: 36px; height: 36px; }
    .feed-list .fcard-who b { font-size: .92rem; }
    .feed-list .fcard-who span { font-size: .74rem; }
    .feed-list .fcard-title { font-size: 1.02rem; margin: .65rem 1rem 0; }
    .feed-list .fcard-text { font-size: .86rem; margin: .3rem 1rem 0; }
    .feed-list .fcard-stats { padding: .65rem 1rem; font-size: .8rem; }
}

/* Single post */
.feed-article { overflow: hidden; }
.feed-article .fcard-head { padding: 1.15rem 1.35rem 0; }
.feed-article-body { padding: 1rem 1.35rem 1.35rem; }
.feed-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; margin: .25rem 0 .5rem; }
/* Single post banner: a square (1:1) filling the card's full width (user's rule, 2026-10-14 - was capped at 600px
   with a blurred copy at the sides). Off-square uploads are cropped to the square, like every feed picture. */
.feed-banner { position: relative; overflow: hidden; background: var(--miq-navy); }
.feed-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.feed-banner .ill { width: 100%; aspect-ratio: 1 / 1; }
.feed-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: .8rem 1.35rem; border-bottom: 1px solid var(--miq-border-soft); margin-bottom: 1rem; }
.feed-stat, .feed-like { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; padding: .3rem 0; font-weight: 600; font-size: .9rem; color: var(--miq-muted); }
.feed-stat:hover, .feed-like:hover { color: var(--miq-text); }
.feed-like i { font-size: 1.05rem; }
.feed-like.active, .feed-like.active:hover { color: var(--miq-danger); }
.feed-content { font-size: 1rem; line-height: 1.7; }
/* Guest lock: decorative bars (no real text is ever sent to guests) behind a sign-in box */
.feed-lock { position: relative; }
.feed-lock-fade { display: grid; gap: .7rem; padding: .25rem 0 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.feed-lock-fade span { height: .8rem; border-radius: 6px; background: var(--miq-skeleton); }
.feed-lock-fade span:nth-child(2n) { width: 86%; }
.feed-lock-fade span:last-child { width: 60%; }
.feed-lock-box { position: relative; margin-top: -1.5rem; text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--miq-border); border-radius: var(--miq-radius-lg); background: var(--miq-surface); box-shadow: var(--miq-shadow-raised); }
.feed-lock-box .icon-tile { margin: 0 auto .75rem; border-radius: 50%; }
.feed-comments-locked { padding: 1rem 1rem 0; }
/* Guests read the comments; this box above the list invites them to sign in to write one (2026-10-14). */
.comment-signin { display: flex; align-items: flex-start; font-size: .95rem; color: var(--miq-text); }
.comment-signin > i { margin-top: .22rem; }
.comment-row { align-items: flex-start; }
.comment-body { font-size: .92rem; margin-top: .15rem; overflow-wrap: anywhere; }
/* Comment header: name, club badge (admin colours), time, and Edit/Delete on the reader's own comments. */
.comment-main { min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; }
.comment-club .tone { padding: .16rem .5rem; border-radius: 999px; font-size: .66rem; letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(15, 30, 61, .08); }
.comment-club .tone::before { content: '\f521'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .62rem; }   /* crown */
.comment-actions { display: inline-flex; gap: .2rem; margin-left: auto; }
.comment-act { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .45rem; border: 0; border-radius: 6px; background: none;
    font-size: .78rem; font-weight: 600; color: var(--miq-muted); }
.comment-act:hover, .comment-act:focus-visible { color: var(--miq-primary); background: var(--miq-surface-muted); }
.comment-act.is-danger:hover, .comment-act.is-danger:focus-visible { color: var(--miq-danger); background: var(--miq-danger-light); }
.comment-edit { margin-top: .5rem; }
.comment-edit textarea { font-size: .92rem; }
@media (max-width: 575.98px) {
    .feed-article .fcard-head, .feed-article-body, .feed-stats { padding-left: 1rem; padding-right: 1rem; }
    .feed-slide { flex-basis: 64%; }
}

/* ---------- Support tickets (profile Support tab + support-ticket.php) ---------- */
.min-w-0 { min-width: 0; }
.ticket-row { color: var(--miq-text); }
.ticket-row:hover { background: var(--miq-surface-muted); color: var(--miq-text); }
.ticket-row.is-unread { background: var(--miq-primary-light); }
.ticket-preview { max-width: 100%; }
.attach-preview { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px dashed var(--miq-border); border-radius: 10px; background: var(--miq-surface-alt); }
.attach-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.notif.has-link { cursor: pointer; }
.notif.has-link .fw-semibold::after { content: '\203A'; margin-left: .35rem; color: var(--miq-faint); }

.ticket-ref { border: 0; background: var(--miq-surface-muted); color: var(--miq-text); font-weight: 700; font-size: .8rem; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 6px; }
.ticket-ref i { color: var(--miq-muted); margin-left: .15rem; }
.chat-thread { margin-top: 1rem; padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; background: var(--miq-surface-alt); }
.chat-day { display: flex; align-items: center; gap: .75rem; color: var(--miq-faint); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: var(--miq-border); }
.chat-msg { display: flex; gap: .55rem; max-width: 82%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.theirs { align-self: flex-start; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; object-fit: cover; margin-top: 1.1rem; }
.chat-col { display: flex; flex-direction: column; min-width: 0; }
.chat-msg.mine .chat-col { align-items: flex-end; }
.chat-name { font-size: .74rem; font-weight: 700; color: var(--miq-muted); margin: 0 0 .2rem .2rem; }
.chat-bubble { padding: .6rem .85rem; border-radius: 16px; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.5; }
.chat-msg.theirs .chat-bubble { background: var(--miq-surface); border: 1px solid var(--miq-border); border-top-left-radius: 4px; color: var(--miq-text); }
.chat-msg.mine .chat-bubble { background: var(--miq-primary); color: #fff; border-top-right-radius: 4px; }
.chat-time { font-size: .7rem; color: var(--miq-faint); margin: .2rem .3rem 0; }
.chat-image { display: block; border: 0; padding: 0; background: rgba(0, 0, 0, .06); border-radius: 10px; overflow: hidden; cursor: zoom-in; margin-bottom: .35rem; }
.chat-image:last-child { margin-bottom: 0; }
.chat-image img { display: block; max-width: min(260px, 100%); max-height: 260px; object-fit: cover; }
.chat-image-ph { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 200px; max-width: 100%; height: 120px; font-size: .8rem; color: var(--miq-muted); }
.chat-msg.mine .chat-image-ph { color: rgba(255, 255, 255, .85); }
.chat-image.is-broken { cursor: default; }
.chat-composer { padding: .75rem; position: sticky; bottom: .75rem; z-index: 5; box-shadow: var(--miq-shadow-raised); }
.chat-composer .attach-preview { margin-bottom: .6rem; }
.chat-composer textarea { resize: none; min-height: 42px; max-height: 180px; }
.ticket-closed { color: var(--miq-muted); }
[name=gst_number]::placeholder { text-transform: none; }
@media (max-width: 575.98px) {
    .chat-thread { padding: .9rem .75rem; }
    .chat-msg { max-width: 92%; }
    .chat-avatar { width: 26px; height: 26px; }
}

/* ------------------------------------------------------------------ home: course showcase
   A tinted full-width band with a faint chart grid, an intro panel (sticky on desktop) and large course cards.
   1 course = one wide card (picture left), 2 = side by side, more continue in rows of two; an odd last card
   stretches across the row so no row is left half empty. */
/* No overflow:hidden here - it would make the band the sticky intro's scroll container (the decorations stay inside). */
.course-showcase { position: relative; padding: 4.5rem 0; isolation: isolate;
    background: linear-gradient(180deg, #EAF1FE 0%, #F3F7FE 55%, var(--miq-bg) 100%); }
.course-showcase::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(47, 111, 237, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 111, 237, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 80%);
            mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 80%); }
.course-showcase::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(560px 380px at 0% 0%, rgba(198, 161, 91, .12), rgba(198, 161, 91, 0) 70%),
                radial-gradient(520px 360px at 100% 25%, rgba(47, 111, 237, .08), rgba(47, 111, 237, 0) 70%); }

.cs-intro { position: relative; padding-left: 1.25rem; }
.cs-intro::before { content: ''; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 4px; border-radius: 4px;
    background: linear-gradient(180deg, var(--miq-amber) 0%, var(--miq-primary) 100%); }
.cs-intro h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .85rem; color: var(--miq-navy); }
.cs-intro p { color: var(--miq-muted); font-size: 1rem; margin: 0 0 1.25rem; max-width: 30rem; }
.cs-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.cs-points li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--miq-text); font-size: .95rem; }
.cs-points i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem; color: var(--miq-primary); background: #fff; box-shadow: var(--miq-shadow-card); border: 1px solid var(--miq-border-soft); }
.cs-intro-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.cs-count { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--miq-success-dark); }
.cs-count .live-dot { background: var(--miq-success); }

.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.cs-wide { grid-column: 1 / -1; }

.cs-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--miq-text); background: var(--miq-surface);
    border: 1px solid rgba(47, 111, 237, .12); border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 30, 61, .08), 0 2px 6px rgba(15, 30, 61, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.cs-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 3;
    background: linear-gradient(90deg, var(--miq-primary) 0%, var(--miq-amber) 100%); opacity: 0; transition: opacity .22s ease; }
a.cs-card:hover { color: var(--miq-text); transform: translateY(-5px); border-color: rgba(47, 111, 237, .28);
    box-shadow: 0 22px 44px rgba(15, 30, 61, .14), 0 4px 10px rgba(15, 30, 61, .06); }
a.cs-card:hover::before { opacity: 1; }
a.cs-card:focus-visible { outline: 3px solid rgba(47, 111, 237, .45); outline-offset: 3px; }

.cs-media { position: relative; overflow: hidden; background: var(--miq-navy); }
.cs-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
a.cs-card:hover .cs-img { transform: scale(1.04); }
.ill.cs-img { display: flex; font-size: 3rem; }   /* course without a picture: the illustration, icon centred */
/* Badge + level lead the chip row (2026-10-13): nothing covers the picture and the card gets no taller. */
/* (span.x selectors beat the generic .cs-facts > span chip so the badge keeps its own colour) */
.cs-facts > span.tone { padding: .24rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; background: var(--tone-bg, var(--miq-primary)); color: #fff; }
.cs-facts > span.tone-success { background: var(--miq-success); }
.cs-facts > span.tone-primary { background: var(--miq-primary); }
.cs-facts > span.tone-amber { background: var(--miq-amber); color: #0F172A; }
.cs-facts > span.tone-orange { background: var(--miq-orange); }
.cs-facts > span.tone-danger { background: var(--miq-danger); }
.cs-facts > span.tone .live-dot { padding: 0; }
.cs-facts > span.cs-level { font-weight: 700; border-radius: 999px; background: #fff; border: 1px solid var(--miq-border); }

.cs-body { display: flex; flex-direction: column; flex: 1; gap: .7rem; padding: 1.35rem 1.4rem 1.4rem; }
.cs-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 0; color: var(--miq-navy);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-text { margin: 0; color: var(--miq-muted); font-size: .92rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cs-facts { display: flex; flex-wrap: wrap; gap: .3rem; }
.cs-facts > span { display: inline-flex; align-items: center; gap: .25rem; padding: .24rem .42rem; border-radius: 8px; font-size: .7rem; font-weight: 600; white-space: nowrap;
    color: var(--miq-navy-mid); background: var(--miq-surface-muted); }
.cs-facts i { color: var(--miq-primary); font-size: .75rem; }
.cs-facts .cs-star { color: #F5A524; }
.cs-foot { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--miq-border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.cs-price .price { font-size: 1.45rem; color: var(--miq-navy); }
/* GST note: on wide screens price + button share one row, so the note goes under the price (within the button's
   height); narrower, the price has its own row and the note stays beside it - the card is no taller either way. */
@media (min-width: 1400px) {
    .cs-price { line-height: 1.15; }
    .cs-price .price-gst { display: block; margin: .1rem 0 0; line-height: 1.1; }
}
.cs-cta { border-radius: 10px; padding: .55rem 1rem; font-weight: 700; white-space: nowrap; }
a.cs-card:hover .cs-cta { background: var(--miq-primary-dark); border-color: var(--miq-primary-dark); }

.cs-skel { pointer-events: none; }
.cs-skel .cs-img { border-radius: 0; }

/* Wide card: a single course, or the odd one out at the end of the grid - picture left, details right. */
@media (min-width: 768px) {
    .cs-grid > .cs-card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
    /* Wide card: the picture area fills the whole left side top to bottom - the complete 16:9 picture in the middle
       over its own blurred copy (no empty bands, nothing cropped); the details are compact on the right. */
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-media { flex: 0 0 56%; align-self: stretch; display: flex; margin: 0; }
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-img { flex: 1; height: auto; min-height: 100%; aspect-ratio: auto; }
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-body { padding: 1.5rem 1.75rem; justify-content: center; gap: .6rem; }
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-title { font-size: 1.45rem; }
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-text { -webkit-line-clamp: 3; }
    .cs-grid > .cs-card:last-child:nth-child(odd) .cs-foot { margin-top: .25rem; padding-top: .85rem; }
}
@media (min-width: 992px) {
    .cs-intro { position: sticky; top: 96px; }
}
@media (max-width: 991.98px) {
    .course-showcase { padding: 3.25rem 0; }
    .cs-intro p { max-width: none; }
    .cs-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: .65rem 1.25rem; }
}
@media (max-width: 767.98px) {
    .cs-grid { grid-template-columns: 1fr; gap: 1.1rem; }
    .cs-points { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .course-showcase { padding: 2.5rem 0; }
    .cs-intro { padding-left: 1rem; }
    .cs-body { padding: 1.1rem 1.1rem 1.2rem; }
    .cs-title { font-size: 1.12rem; }
    .cs-price .price { font-size: 1.25rem; }
    .cs-cta { flex: 1 1 auto; text-align: center; }
}

/* ------------------------------------------------------------------ home: advertise posters (home_plan_bottom)
   The admin's wide poster (1068x181) below the course showcase. The whole picture always shows (never cropped - its
   text runs edge to edge). One poster = a linked picture; more = a carousel whose arrows sit on the poster's sides
   from 768px and move under it on phones, beside the dots, so they never cover the text. On phones the poster runs
   edge to edge (no side gutter, no rounding) to stay as large and readable as the screen allows. */
.poster-band { padding: 0 0 3rem; }
.poster-stage { position: relative; }
.poster-frame { position: relative; overflow: hidden; border-radius: 14px; background: var(--miq-surface-muted);
    box-shadow: 0 10px 28px rgba(15, 30, 61, .10), 0 2px 6px rgba(15, 30, 61, .05); }
.poster-frame .carousel-item { height: 100%; }
.poster-link { display: block; width: 100%; height: 100%; }
.poster-img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
a.poster-link:focus-visible { outline: 3px solid rgba(47, 111, 237, .6); outline-offset: -3px; }

.poster-btn { width: 40px; height: 40px; flex-shrink: 0; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--miq-navy); background: #fff; border: 1px solid var(--miq-border); box-shadow: var(--miq-shadow-raised); font-size: .85rem;
    transition: color .15s ease, border-color .15s ease; }
.poster-btn:hover, .poster-btn:focus-visible { color: var(--miq-primary); border-color: rgba(47, 111, 237, .4); }
.poster-side { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.poster-side.prev { left: -16px; }
.poster-side.next { right: -16px; }
.poster-bar { display: none; width: 34px; height: 34px; font-size: .78rem; }

.poster-controls { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: .8rem; }
.poster-slider .poster-dots { position: static; display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0; z-index: auto; }
.poster-slider .poster-dots [data-bs-target] { box-sizing: border-box; width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 999px;
    background: var(--miq-stone); opacity: .55; transition: width .25s ease, opacity .25s ease, background-color .25s ease; }
.poster-slider .poster-dots .active { width: 22px; opacity: 1; background: var(--miq-primary); }

@media (max-width: 767.98px) {
    .poster-side { display: none; }
    .poster-bar { display: inline-flex; }
}
@media (max-width: 575.98px) {
    .poster-band { padding-bottom: 2rem; }
    .poster-band > .container { padding-left: 0; padding-right: 0; }
    .poster-frame { border-radius: 0; box-shadow: none; }
}

/* ------------------------------------------------------------------ courses page: filter column + results bar
   Filters are a sticky card on desktop and a slide-in panel (Bootstrap offcanvas-lg) below 992px. */
.course-filters .offcanvas-body > .cf-panel { width: 100%; }
.cf-panel { background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: var(--miq-radius-lg); box-shadow: var(--miq-shadow-card); padding: 1.1rem; }
.cf-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--miq-navy); margin-bottom: .9rem; }
.cf-head i { color: var(--miq-primary); }
.cf-reset { border: 0; background: none; padding: 0; color: var(--miq-primary); font-size: .82rem; font-weight: 600; }
.cf-reset:hover { text-decoration: underline; }
.cf-search { position: relative; margin-bottom: .35rem; }
.cf-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--miq-faint); font-size: .85rem; pointer-events: none; }
.cf-search .form-control { padding-left: 2.2rem; border-radius: 10px; background: var(--miq-surface-alt); }
.cf-group { border-top: 1px solid var(--miq-border-soft); margin-top: .9rem; padding-top: .9rem; }
.cf-title { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--miq-muted); margin-bottom: .45rem; }
.cf-options { display: grid; gap: .1rem; }
.cf-opt { display: flex; align-items: center; gap: .6rem; padding: .42rem .5rem; margin: 0 -.5rem; border-radius: 8px; cursor: pointer; font-size: .9rem; color: var(--miq-text); }
.cf-opt:hover { background: var(--miq-surface-muted); }
.cf-opt .form-check-input { margin: 0; flex-shrink: 0; cursor: pointer; }
.cf-opt-label { flex: 1; min-width: 0; }
.cf-opt-count { font-size: .72rem; font-weight: 700; color: var(--miq-muted); background: var(--miq-surface-muted); border-radius: 999px; padding: .1rem .5rem; min-width: 1.6rem; text-align: center; }
.cf-opt:has(input:checked) { background: var(--miq-primary-light); }
.cf-opt:has(input:checked) .cf-opt-count { background: var(--miq-primary); color: #fff; }
.cf-opt.is-empty { opacity: .45; }
.cf-stars { color: #D9900B; font-weight: 600; }
.cf-switch { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0; padding: .65rem .75rem; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, rgba(198, 161, 91, .16), rgba(198, 161, 91, .06)); border: 1px solid rgba(198, 161, 91, .35); font-weight: 600; font-size: .9rem; }
.cf-switch.form-switch { padding-left: .75rem; }
.cf-switch-label { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.cf-switch-label i { color: var(--miq-amber-dark); }
.cf-switch.form-switch .form-check-input { margin: 0; width: 2.4em; height: 1.3em; cursor: pointer; flex-shrink: 0; }
.cf-mobile-foot { padding: .9rem 1rem; border-top: 1px solid var(--miq-border); background: var(--miq-surface); }

.cr-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cr-info { flex: 1; color: var(--miq-muted); font-size: .95rem; }
.cr-info b { color: var(--miq-text); }
.cr-sort { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; color: var(--miq-muted); white-space: nowrap; }
.cr-sort .form-select { width: auto; min-width: 11rem; border-radius: 9px; }
.cr-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.25rem 0 1.1rem; }
.cr-chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(47, 111, 237, .25); background: var(--miq-primary-light); color: var(--miq-primary-dark);
    border-radius: 999px; padding: .28rem .7rem; font-size: .8rem; font-weight: 600; }
.cr-chip i { font-size: .7rem; opacity: .75; }
.cr-chip:hover { background: #cfe0fd; }
.cr-chip-clear { border: 0; background: none; color: var(--miq-muted); font-size: .8rem; font-weight: 600; text-decoration: underline; padding: .28rem .3rem; }

@media (min-width: 992px) {
    .course-filters { position: sticky; top: 88px; }
}
@media (max-width: 991.98px) {
    .course-filters { --bs-offcanvas-width: 330px; --bs-offcanvas-bg: var(--miq-surface); }
    .course-filters .offcanvas-body { padding: 1rem; }
    .course-filters .cf-panel { border: 0; box-shadow: none; padding: 0; background: transparent; }
    .course-filters .cf-head { display: none; }
}
@media (max-width: 575.98px) {
    .cr-info { flex-basis: 100%; order: 3; }
    .cr-sort .form-select { min-width: 0; }
    .cr-bar > .btn { flex: 1; }
}

/* ------------------------------------------------------------------ home: insights desk (blog)
   A magazine spread on a white band: newspaper-style masthead, borderless lead story, numbered "More reads"
   list with gold numerals. One post = a wide lead (picture left). */
.insights { background: var(--miq-surface); border-top: 1px solid var(--miq-border-soft); border-bottom: 1px solid var(--miq-border-soft); padding: 3.75rem 0 4rem; }
.ins-masthead { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.ins-masthead::before, .ins-masthead::after { content: ''; flex: 1; height: 0; border-top: 3px double var(--miq-navy); opacity: .85; }
.ins-masthead span { font-size: .72rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--miq-navy); white-space: nowrap; }
.ins-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem;
    padding-bottom: 1.1rem; border-bottom: 1px solid var(--miq-border); }
.ins-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: var(--miq-navy); margin: 0 0 .3rem; }
.ins-head p { margin: 0; color: var(--miq-muted); }
.ins-head-side { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.ins-updated { font-size: .8rem; color: var(--miq-faint); font-style: italic; }
.ins-all { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--miq-navy); border-bottom: 2px solid var(--miq-amber); padding-bottom: .15rem; }
.ins-all:hover { color: var(--miq-primary); border-color: var(--miq-primary); }
.ins-all i { font-size: .8rem; transition: transform .2s ease; }
.ins-all:hover i { transform: translateX(3px); }

.ins-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; }

.ins-lead-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--miq-navy); }
.ins-lead-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.ins-lead:hover .ins-lead-img { transform: scale(1.03); }
.ill.ins-lead-img, .ill.ins-thumb-img { display: flex; font-size: 2.5rem; }
.ins-live { position: absolute; top: .9rem; left: .9rem; }
.ins-lead-body { padding-top: 1.15rem; }
.ins-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; font-size: .78rem; color: var(--miq-muted); }
.ins-meta i { font-size: .72rem; }
.ins-cat { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--miq-primary); }
.ins-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--miq-faint); }
.ins-lead-title { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin: .55rem 0 .65rem; }
.ins-lead-title a { color: var(--miq-navy); background: linear-gradient(var(--miq-amber), var(--miq-amber)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.ins-lead:hover .ins-lead-title a, .ins-lead-title a:focus-visible { background-size: 100% 2px; }
.ins-lead-text { color: var(--miq-muted); font-size: 1rem; line-height: 1.65; margin: 0 0 1rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ins-read { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; }
.ins-read i { transition: transform .2s ease; }
.ins-read:hover i { transform: translateX(4px); }

.ins-list { border-left: 1px solid var(--miq-border); padding-left: 2rem; }
.ins-list-title { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--miq-navy); margin-bottom: .4rem; }
.ins-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 84px; gap: 1rem; align-items: center; padding: 1.05rem 0; color: var(--miq-text);
    border-bottom: 1px solid var(--miq-border-soft); }
.ins-item:last-child { border-bottom: 0; }
.ins-num { font-size: 2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--miq-amber); min-width: 2.6rem; transition: color .2s ease; }
.ins-item:hover .ins-num { color: var(--miq-amber); }
.ins-item-body { display: grid; gap: .35rem; min-width: 0; }
.ins-item-title { font-weight: 700; line-height: 1.35; color: var(--miq-navy);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ins-item:hover .ins-item-title { color: var(--miq-primary); }
.ins-thumb { display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--miq-navy); }
.ins-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ill.ins-thumb-img { font-size: 1.4rem; }

/* Only one post: the lead spreads across - picture left, story right. */
.ins-grid.is-solo { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .ins-grid.is-solo .ins-lead { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 2.5rem; align-items: center; }
    .ins-grid.is-solo .ins-lead-body { padding-top: 0; }
    .ins-grid.is-solo .ins-lead-text { -webkit-line-clamp: 5; }
}
@media (max-width: 991.98px) {
    .ins-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .ins-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--miq-border); padding-top: 1.1rem; }
}
@media (max-width: 575.98px) {
    .insights { padding: 2.75rem 0 3rem; }
    .ins-head { margin-bottom: 1.4rem; }
    .ins-item { grid-template-columns: auto minmax(0, 1fr) 68px; gap: .8rem; }
    .ins-thumb { width: 68px; height: 68px; }
    .ins-num { font-size: 1.6rem; min-width: 2.1rem; }
}

/* ------------------------------------------------------------------ blog post: related articles */
.related-posts { padding: 2.5rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--miq-border); }
@media (max-width: 575.98px) { .related-posts { padding: 2rem 0 2.5rem; } }

/* ------------------------------------------------------------------ home: watch & learn (YouTube)
   White band (soft red + blue glow, faint dot grid) so it contrasts with the dark footer below. Picture tiles:
   one large "latest" tile spanning 2x2, smaller tiles around it; titles sit on the picture. Phones: large
   tile, then a compact list. */
.watch { position: relative; overflow: hidden; isolation: isolate; color: var(--miq-text); padding: 4.25rem 0 4.5rem; margin-top: 1rem;
    border-top: 1px solid var(--miq-border-soft); border-bottom: 1px solid var(--miq-border-soft);
    background: radial-gradient(760px 420px at 92% -8%, rgba(255, 0, 51, .07), rgba(255, 0, 51, 0) 65%),
                radial-gradient(680px 460px at -6% 108%, rgba(47, 111, 237, .07), rgba(47, 111, 237, 0) 65%),
                var(--miq-surface); }
.watch::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(15, 30, 61, .09) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%); mask-image: linear-gradient(180deg, #000 0%, transparent 65%); }

.watch-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.watch-channel { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.watch-avatar { flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 210deg, #FF0033, #FF7A59, #FF0033); box-shadow: 0 0 0 4px rgba(255, 0, 51, .15); }
.watch-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 60% 20%; border: 3px solid #fff; display: block; }
.watch-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--miq-muted); }
.watch-eyebrow i { color: #FF0033; font-size: 1rem; }
.watch-head h2 { color: var(--miq-navy); font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; margin: .25rem 0 .3rem; }
.watch-head p { color: var(--miq-muted); margin: 0; }
.watch-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.watch-subscribe { background: #FF0033; border: 1px solid #FF0033; color: #fff; font-weight: 700; border-radius: 999px; padding: .6rem 1.25rem;
    box-shadow: 0 8px 22px rgba(255, 0, 51, .35); }
.watch-subscribe:hover, .watch-subscribe:focus-visible { background: #E0002D; border-color: #E0002D; color: #fff; }
.watch-visit { border: 1px solid var(--miq-border); color: var(--miq-navy); background: var(--miq-surface); border-radius: 999px; padding: .6rem 1.15rem; font-weight: 600; }
.watch-visit:hover, .watch-visit:focus-visible { background: var(--miq-surface-muted); color: var(--miq-navy); border-color: var(--miq-navy); }

/* Desktop: the mirror of the blog spread - the large latest video on the RIGHT (columns 2-3, rows 1-2), the
   smaller ones filling the left column and the row below in an L shape (dense flow). DOM order stays newest first. */
.watch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; grid-auto-flow: row dense; }
@media (min-width: 992px) {
    .watch-grid > .watch-tile.is-lead { grid-column: 2 / span 2; grid-row: 1 / span 2; }
}
.watch-tile { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; color: #fff;
    background: linear-gradient(135deg, #1E355C, #0A1530); box-shadow: 0 12px 28px rgba(15, 30, 61, .16), 0 2px 6px rgba(15, 30, 61, .06); outline-offset: 3px;
    transition: transform .25s ease, box-shadow .25s ease; }
.watch-tile.is-lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 20px; }
a.watch-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 22px 44px rgba(15, 30, 61, .24), 0 4px 10px rgba(15, 30, 61, .08); }
a.watch-tile:focus-visible { outline: 3px solid #FF3355; }
.watch-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.watch-tile:hover .watch-img { transform: scale(1.06); }
.watch-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 25, 0) 30%, rgba(5, 10, 25, .55) 62%, rgba(5, 10, 25, .94) 100%); }
.watch-tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
    padding: .28rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.watch-tag.is-latest { background: #FF0033; color: #fff; box-shadow: 0 6px 16px rgba(255, 0, 51, .4); }
.watch-tag.is-new { background: #fff; color: var(--miq-navy); }
.watch-play { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: #fff;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease; }
.watch-play i { margin-left: 3px; }
.watch-tile:not(.is-lead) .watch-play { top: 34%; }
.watch-tile:not(.is-lead) .watch-shade { background: linear-gradient(180deg, rgba(5, 10, 25, .05) 20%, rgba(5, 10, 25, .7) 55%, rgba(5, 10, 25, .96) 100%); }
a.watch-tile:hover .watch-play { background: #FF0033; border-color: #FF0033; transform: translate(-50%, -50%) scale(1.1); }
.is-lead .watch-play { width: 84px; height: 84px; font-size: 1.6rem; background: #FF0033; border-color: #FF0033; box-shadow: 0 0 0 10px rgba(255, 0, 51, .18); top: 45%; }
.watch-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: .9rem 1rem 1rem; display: grid; gap: .3rem; }
.watch-title { font-weight: 700; font-size: .92rem; line-height: 1.35; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.is-lead .watch-info { padding: 1.4rem 1.6rem 1.6rem; gap: .5rem; }
.is-lead .watch-title { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; -webkit-line-clamp: 3; }
.watch-meta { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: rgba(255, 255, 255, .78); }
.watch-meta i { color: #FF3355; }

@media (max-width: 991.98px) {
    .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .watch-tile.is-lead { grid-row: auto; aspect-ratio: 16 / 9; }
    .watch-tile:not(.is-lead):last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 21 / 9; }
}
@media (max-width: 575.98px) {
    .watch { padding: 3rem 0 3.25rem; }
    .watch-avatar { width: 60px; height: 60px; }
    .watch-actions { width: 100%; }
    .watch-actions .btn { flex: 1; text-align: center; }
    .watch-grid { grid-template-columns: 1fr; gap: .75rem; }
    .watch-tile.is-lead { grid-column: auto; }
    .is-lead .watch-play { width: 64px; height: 64px; font-size: 1.25rem; }
    /* The smaller videos become a compact list: picture left, title right. */
    .watch-tile:not(.is-lead), .watch-tile:not(.is-lead):last-child:nth-child(even) {
        grid-column: auto; aspect-ratio: auto; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: .85rem;
        padding: .5rem; border-radius: 14px; background: var(--miq-surface); color: var(--miq-text);
        box-shadow: var(--miq-shadow-card); border: 1px solid var(--miq-border); }
    a.watch-tile:not(.is-lead):hover { color: var(--miq-text); }
    .watch-tile:not(.is-lead) .watch-img { position: relative; inset: auto; grid-column: 1; grid-row: 1; width: 132px; height: 74px; border-radius: 10px; }
    .watch-tile:not(.is-lead) .watch-shade, .watch-tile:not(.is-lead) .watch-tag { display: none; }
    .watch-tile:not(.is-lead) .watch-play { left: calc(.5rem + 66px); top: 50%; width: 34px; height: 34px; font-size: .75rem; }
    .watch-tile:not(.is-lead) .watch-info { position: static; grid-column: 2; grid-row: 1; padding: 0; }
    .watch-tile:not(.is-lead) .watch-title { font-size: .86rem; text-shadow: none; color: var(--miq-navy); }
    .watch-tile:not(.is-lead) .watch-meta { color: var(--miq-muted); }
    .watch-tile:not(.is-lead) .watch-play { background: rgba(10, 21, 48, .45); }
}

/* ------------------------------------------------------------------ member area: sidebar + content column
   Pages that set $memberNav (dashboard, my courses, orders ...) render inside .member-shell. The sidebar is sticky
   on desktop and a slide-in panel (offcanvas-lg) below 992px. Existing member pages keep their markup: their
   navy page-head and inner containers are re-styled only inside .member-main. */
.member-shell { background: var(--miq-bg); }
.member-wrap { max-width: 1480px; margin: 0 auto; display: flex; align-items: flex-start; }
.member-main { flex: 1; min-width: 0; padding: 1.75rem 2rem 3rem; }
.member-side .offcanvas-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem .9rem; }
.member-nav { display: grid; gap: .15rem; }
.member-link { position: relative; display: flex; align-items: center; gap: .8rem; padding: .62rem .85rem; border-radius: 11px;
    color: var(--miq-text); font-weight: 500; font-size: .93rem; transition: background-color .15s ease, color .15s ease; }
.member-link i { width: 20px; text-align: center; font-size: 1rem; color: var(--miq-muted); transition: color .15s ease; }
.member-link:hover { background: var(--miq-surface-muted); color: var(--miq-navy); }
.member-link:hover i { color: var(--miq-primary); }
.member-link.active { background: var(--miq-primary); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(47, 111, 237, .28); }
.member-link.active::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 0 4px 4px 0; background: var(--miq-amber); }
.member-link.active i { color: #fff; }
.member-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--miq-danger); color: #fff;
    font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.member-link.active .member-badge { background: #fff; color: var(--miq-primary); }
.member-nav-rule { margin: .55rem .4rem; border-color: var(--miq-border); opacity: 1; }
.member-user { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .85rem .6rem .2rem; border-top: 1px solid var(--miq-border); }
.member-user-text { flex: 1; min-width: 0; line-height: 1.25; }
.member-logout { color: var(--miq-muted); }
.member-logout:hover { color: var(--miq-danger); }
.member-menu-btn { display: flex; align-items: center; gap: .7rem; width: 100%; margin-bottom: 1.1rem; padding: .7rem 1rem; border-radius: 12px;
    border: 1px solid var(--miq-border); background: var(--miq-surface); color: var(--miq-navy); font-weight: 700; box-shadow: var(--miq-shadow-card); }
.member-menu-btn i:first-child { color: var(--miq-primary); }

/* Existing member pages inside the content column. */
.member-main .page-head { background: none; color: var(--miq-text); padding: 0 0 1.25rem; overflow: visible; }
.member-main .page-head::after { display: none; }
.member-main .page-head h1 { color: var(--miq-navy); font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; }
.member-main .page-head p { color: var(--miq-muted); max-width: none; }
.member-main .container { max-width: none; padding-left: 0; padding-right: 0; }
.member-main .section-sm, .member-main .section { padding-top: 0; padding-bottom: 0; }

@media (min-width: 992px) {
    .member-side { flex: 0 0 264px; width: 264px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
        background: var(--miq-surface); border-right: 1px solid var(--miq-border); }
}
@media (max-width: 991.98px) {
    .member-wrap { display: block; }
    .member-side { --bs-offcanvas-width: 290px; --bs-offcanvas-bg: var(--miq-surface); }
    .member-main { padding: 1.1rem 16px 2.5rem; }
}

/* ------------------------------------------------------------------ notification center (header bell) */
.notif-bell { position: relative; }
.notif-bell i { font-size: 1.15rem; }
.notif-bell-count { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 2px solid var(--miq-surface);
    background: var(--miq-danger); color: #fff; font-size: .62rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.notif-panel { width: 370px; max-width: calc(100vw - 24px); padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--miq-border); }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-bottom: 1px solid var(--miq-border); font-weight: 800; color: var(--miq-navy); }
.notif-markall { border: 0; background: none; padding: 0; color: var(--miq-primary); font-size: .8rem; font-weight: 600; }
.notif-markall:hover { text-decoration: underline; }
.notif-panel-list { max-height: 420px; overflow-y: auto; }
.notif-panel-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; color: var(--miq-muted); font-size: .9rem; }
.notif-panel-empty i { font-size: 1.5rem; color: var(--miq-faint); }
.notif-panel-foot { display: block; text-align: center; padding: .75rem; border-top: 1px solid var(--miq-border); font-weight: 600; font-size: .88rem; background: var(--miq-surface-alt); }
.notif-item { display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left; border: 0; background: transparent; padding: .8rem 1rem;
    border-bottom: 1px solid var(--miq-border-soft); color: var(--miq-text); transition: background-color .15s ease; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--miq-surface-muted); }
.notif-item.unread { background: rgba(47, 111, 237, .05); }
.notif-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--miq-primary-light); color: var(--miq-primary); font-size: .9rem; }
.notif-text { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.notif-title { font-weight: 600; font-size: .88rem; color: var(--miq-navy); }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-body { font-size: .8rem; color: var(--miq-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-time { font-size: .72rem; color: var(--miq-faint); }
.notif-dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: .45rem; border-radius: 50%; background: var(--miq-primary); }

/* ------------------------------------------------------------------ member dashboard */
.dash { display: grid; gap: 1.35rem; }
.dash > .row { --bs-gutter-y: 1rem; }
.dash-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.dash-welcome h1 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; color: var(--miq-navy); margin: 0 0 .25rem; }
.dash-welcome p { margin: 0; color: var(--miq-muted); font-size: 1.02rem; }
.dash-date { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--miq-border);
    background: var(--miq-surface); color: var(--miq-muted); font-size: .8rem; font-weight: 600; }

/* Site-wide announcement pop-up (app.js MIQ.announce): image and/or admin text, once per visit. */
.ann-popup { border-radius: 20px !important; overflow: hidden; padding: 0 !important; }
.ann-popup .ann-container { margin: 0 !important; padding: 0 !important; text-align: left; }
.ann-modal { display: block; }
.ann-img { background: var(--miq-surface-muted); }
.ann-img img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.ann-text { padding: 1.5rem 1.6rem 1.6rem; color: var(--miq-text); font-size: 1rem; line-height: 1.6; }
.ann-popup:not(.has-img) .ann-text { padding: 2.1rem 3.2rem 2rem 1.6rem; }   /* right room for the × */
.ann-text > :last-child { margin-bottom: 0; }
.ann-img:last-child img { border-radius: 0; }
.ann-close { color: var(--miq-navy) !important; background: rgba(255, 255, 255, .9) !important; border-radius: 50% !important; width: 2.2rem !important; height: 2.2rem !important;
    font-size: 1.6rem !important; top: .6rem !important; right: .6rem !important; box-shadow: 0 2px 10px rgba(15, 30, 61, .2); }
.ann-close:hover { color: var(--miq-danger) !important; }
.ann-close:focus:not(:focus-visible) { box-shadow: 0 2px 10px rgba(15, 30, 61, .2) !important; }   /* ring only for keyboard users */

/* Signed-in header: "Welcome, <name>" badge with a hover drop-down (Go To Dashboard / Logout). */
.avatar-xs { width: 28px; height: 28px; font-size: .72rem; }
.welcome-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .7rem .28rem .3rem; border-radius: 999px;
    border: 1px solid var(--miq-border); background: var(--miq-surface); color: var(--miq-text); font-size: .88rem; line-height: 1;
    transition: border-color .15s ease, box-shadow .15s ease; }
.welcome-badge:hover, .welcome-menu.show .welcome-badge, .welcome-menu:hover .welcome-badge { border-color: rgba(47, 111, 237, .45); box-shadow: 0 4px 14px rgba(47, 111, 237, .12); }
.welcome-text { white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: var(--miq-muted); }
.welcome-text b { color: var(--miq-navy); font-weight: 700; }
.welcome-caret { font-size: .7rem; color: var(--miq-muted); transition: transform .2s ease; }
.welcome-menu:hover .welcome-caret, .welcome-menu.show .welcome-caret { transform: rotate(180deg); }
.welcome-dropdown { min-width: 210px; padding: .4rem; border-radius: 14px; border-color: var(--miq-border); }
.welcome-dropdown .dropdown-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 9px; font-weight: 600; font-size: .9rem; }
.welcome-dropdown .dropdown-item i { width: 18px; text-align: center; color: var(--miq-primary); }
.welcome-dropdown .dropdown-item.text-danger i { color: var(--miq-danger); }
.welcome-dropdown .dropdown-item:hover { background: var(--miq-surface-muted); }
/* Hover opens it on devices with a mouse (tap/click still toggles it everywhere). The padding bridges the gap. */
@media (hover: hover) and (pointer: fine) {
    .welcome-menu:hover > .welcome-dropdown { display: block; top: 100%; right: 0; left: auto; margin-top: 0; }
    .welcome-menu { padding-bottom: 6px; margin-bottom: -6px; }
}
@media (max-width: 420px) {
    .welcome-text { display: none; }
    .welcome-badge { padding-right: .55rem; }
}

/* App banner with phone mockup (the member's own course names on the screen). */
.dash-app { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 1rem; min-height: 220px;
    padding: 1.75rem 2rem; border-radius: 20px; border: 1px solid rgba(47, 111, 237, .16);
    background: radial-gradient(420px 260px at 85% 120%, rgba(47, 111, 237, .16), rgba(47, 111, 237, 0) 70%), linear-gradient(115deg, #EAF2FF 0%, #F5F9FF 55%, #E6EFFF 100%); }
.dash-app-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--miq-primary); }
.dash-app h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; color: var(--miq-navy); margin: .35rem 0 .4rem; letter-spacing: -.01em; }
.dash-app p { color: var(--miq-muted); margin: 0 0 1.15rem; max-width: 34rem; }
.dash-stores { display: flex; flex-wrap: wrap; gap: .65rem; }
.store-btn { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1.1rem .5rem .95rem; border-radius: 12px; background: var(--miq-navy-deep); color: #fff;
    box-shadow: 0 8px 18px rgba(15, 30, 61, .22); transition: transform .2s ease, box-shadow .2s ease; }
.store-btn i { font-size: 1.55rem; }
.store-btn span { display: grid; line-height: 1.12; font-weight: 700; font-size: 1rem; text-align: left; }
.store-btn small { font-size: .62rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
a.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 30, 61, .3); }
.store-btn.is-soon { background: #475569; box-shadow: none; opacity: .75; cursor: default; }
.dash-app-art { position: relative; align-self: stretch; min-height: 190px; }
.dash-app-chart { position: absolute; right: -10px; bottom: -6px; width: 100%; height: 62%; }
.phone { position: absolute; right: 70px; top: -2px; width: 150px; height: 270px; padding: 7px; border-radius: 28px; background: #0F1E3D;
    transform: rotate(-7deg); box-shadow: 0 24px 40px rgba(15, 30, 61, .3); }
.phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 46px; height: 12px; border-radius: 0 0 9px 9px; background: #0F1E3D; z-index: 2; }
.phone-screen { height: 100%; border-radius: 22px; background: #fff; padding: 1.2rem .6rem .6rem; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--miq-navy); margin-bottom: .55rem; }
.phone-top span { color: var(--miq-primary); }
.phone-label { font-size: .62rem; font-weight: 800; color: var(--miq-navy); margin-bottom: .4rem; }
.phone-list { display: grid; gap: .35rem; }
.phone-row { display: flex; align-items: center; gap: .35rem; padding: .3rem; border-radius: 7px; background: var(--miq-surface-alt); border: 1px solid var(--miq-border-soft); }
.phone-row > i { font-size: .45rem; color: var(--miq-faint); }
.phone-thumb { flex-shrink: 0; width: 26px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1E355C, #0A1530); color: #8DB4FF; font-size: .5rem; }
.phone-text { flex: 1; min-width: 0; font-size: .54rem; font-weight: 700; color: var(--miq-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-line { flex: 1; height: 6px; border-radius: 3px; background: var(--miq-skeleton); }

/* Cards */
.dash-card { background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: var(--miq-shadow-card); }
.dash-card-accent { border-top: 3px solid var(--miq-primary); }
.dash-card-head, .dash-block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dash-card-head h2 { font-size: 1.1rem; font-weight: 800; color: var(--miq-navy); margin: 0; }
.dash-block-head { margin-bottom: .85rem; }
.dash-block-head h2 { font-size: 1.3rem; font-weight: 800; color: var(--miq-navy); margin: 0; }
.dash-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.dash-link i { font-size: .75rem; transition: transform .2s ease; }
.dash-link:hover i { transform: translateX(3px); }
.dash-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.4rem .5rem; color: var(--miq-muted); font-size: .9rem; }
.dash-empty > i { font-size: 1.6rem; color: var(--miq-faint); }

.dash-post { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 1.25rem; align-items: start; }
.dash-post-who { display: flex; align-items: center; gap: .65rem; }
.dash-post-who img { border-radius: 50%; background: #fff; border: 1px solid var(--miq-border); }
.dash-post-who b { display: block; color: var(--miq-navy); font-size: .93rem; }
.dash-post-who small { display: block; color: var(--miq-muted); font-size: .78rem; }
.dash-post-who .tone { margin-left: auto; }
.dash-post-title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: .8rem 0 .35rem; }
.dash-post-title a { color: var(--miq-navy); }
.dash-post-title a:hover { color: var(--miq-primary); }
.dash-post-text { margin: 0; color: var(--miq-muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-post-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--miq-navy); }
.dash-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.dash-post-img:hover img { transform: scale(1.04); }
.dash-post-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--miq-border-soft); }
.dash-post-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--miq-muted); font-size: .84rem; }
.dash-post-stats i { margin-right: .2rem; }

.dash-live { display: flex; gap: 1rem; align-items: flex-start; }
.dash-live-date { flex-shrink: 0; width: 64px; padding: .55rem 0; border-radius: 14px; text-align: center; background: var(--miq-primary-light); color: var(--miq-primary); }
.dash-live-date b { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1; }
.dash-live-date span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.dash-live-date i { font-size: 1.4rem; padding: .5rem 0; }
.dash-live-info { min-width: 0; }
.dash-live-tag { display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 6px; font-size: .7rem; font-weight: 700; background: var(--miq-success-light); color: var(--miq-success-dark); }
.dash-live-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--miq-navy); margin: .45rem 0 .3rem; line-height: 1.35; }
.dash-live-meta { font-size: .82rem; color: var(--miq-muted); }
.dash-live-actions { display: flex; gap: .5rem; margin-top: 1.1rem; }

/* Dashboard "My Courses" card (redesigned 2026-10-12): full-width 16:9 picture with the status badge, percentage
   and a progress bar on its bottom edge; course name in a fixed two-line slot; info line; actions. */
.dash-course { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: var(--miq-surface);
    border: 1px solid var(--miq-border); box-shadow: var(--miq-shadow-card); transition: box-shadow .2s ease, transform .2s ease; }
.dash-course:hover { box-shadow: var(--miq-shadow-raised); transform: translateY(-3px); }
.dc-media { position: relative; display: block; overflow: hidden; background: var(--miq-navy); }
.dc-media .ill { aspect-ratio: 16 / 9; width: 100%; }
.dc-media .cimg { transition: transform .5s ease; }
.dash-course:hover .dc-media .cimg { transform: scale(1.04); }
.dc-status { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.dc-status .chip { background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(15, 30, 61, .18); font-size: .72rem; }
.dc-pct { position: absolute; right: .7rem; bottom: .8rem; z-index: 2; padding: .18rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
    color: #fff; background: rgba(10, 21, 48, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dc-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 5px; background: rgba(255, 255, 255, .35); }
.dc-bar > span { display: block; height: 100%; background: var(--miq-primary); border-radius: 0 3px 3px 0; }
.dash-course.is-done .dc-bar > span { background: var(--miq-success); }
.dc-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: .9rem 1rem 1rem; }
.dc-title { font-size: 1rem; font-weight: 700; line-height: 1.3; height: 2.6em; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-title a { color: var(--miq-navy); }
.dc-title a:hover { color: var(--miq-primary); }
.dc-meta { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--miq-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-meta i { color: var(--miq-primary); font-size: .72rem; }
/* "Watch in app" above a full-width button (the card body's padding gives the side margin); text never wraps. */
.dc-actions { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--miq-border-soft); display: flex; flex-direction: column; align-items: stretch; gap: .6rem; }
.dc-btn { display: block; width: 100%; border-radius: 9px; font-weight: 700; padding: .5rem .85rem; white-space: nowrap; text-align: center; }
.dc-app { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--miq-muted); white-space: nowrap; }
.dc-iq { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--miq-primary); color: #fff; font-size: .55rem; font-weight: 800; }
.dash-empty-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-empty-card b { display: block; color: var(--miq-navy); }
.dash-empty-card small { display: block; color: var(--miq-muted); }
.dash-empty-card .btn { margin-left: auto; }

.dash-notifs .notif-item { border-radius: 10px; padding: .7rem .55rem; border-bottom: 1px solid var(--miq-border-soft); }
.dash-notifs .notif-item:last-child { border-bottom: 0; }
.dash-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dash-quick-item { display: flex; align-items: center; gap: .8rem; padding: .85rem; border-radius: 12px; border: 1px solid var(--miq-border); color: var(--miq-text);
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.dash-quick-item:hover { color: var(--miq-text); border-color: rgba(47, 111, 237, .45); background: var(--miq-surface-alt); transform: translateY(-1px); }
.dash-quick-item b { display: block; font-size: .9rem; color: var(--miq-navy); }
.dash-quick-item small { display: block; font-size: .76rem; color: var(--miq-muted); line-height: 1.35; }
.dash-quick-item .dq-go { margin-left: auto; color: var(--miq-faint); font-size: .75rem; }
.dq-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }

@media (max-width: 1199.98px) {
    .dash-app { grid-template-columns: minmax(0, 1fr) 240px; }
    .phone { right: 30px; }
}
@media (max-width: 767.98px) {
    .dash-app { grid-template-columns: 1fr; padding: 1.4rem 1.25rem; }
    .dash-app-art { display: none; }
    .dash-post { grid-template-columns: 1fr; }
    .dash-post-img { order: -1; }
}
@media (max-width: 575.98px) {
    .dash-quick { grid-template-columns: 1fr; }
    .dash-post-foot .btn { width: 100%; }
    .store-btn { flex: 1 1 auto; justify-content: center; }
}

/* ------------------------------------------------------------------ course pictures: always 16:9, never cropped
   Course banners are uploaded in 16:9 (user's rule, 2026-10-12). Every course picture (cards, showcase, course page,
   checkout, dashboard, orders, continue learning) uses a 16:9 frame and is fitted inside it, so a slightly
   off-ratio upload shows thin navy bars instead of losing its edges. */
.cimg { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; overflow: hidden; background: var(--miq-navy); }
.cimg-bg { position: absolute; inset: -18px; background-size: cover; background-position: center;
    filter: blur(16px) brightness(.82) saturate(1.1); transform: scale(1.08); }
.cimg > .cimg-img { position: relative; display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: none; }
.checkout-thumb { align-self: flex-start; }   /* don't stretch to the text column's height (phones) */

/* ------------------------------------------------------------------ blog post body: admin-designed HTML
   The admin's inline styles are kept (blog.js -> richText {styles:true}). The article card keeps its size; the design
   is held inside it and scaled down on phones (inline sizes need !important to be overridden). */
.blog-body * { max-width: 100%; box-sizing: border-box; }
.blog-body > div:only-child { margin-left: auto !important; margin-right: auto !important; }
.blog-body img { height: auto !important; }
@media (max-width: 575.98px) {
    .blog-body > div:only-child { padding: 4px 0 !important; }
    .blog-body h1[style*="font-size"] { font-size: 1.55rem !important; line-height: 1.25 !important; }
    .blog-body h2[style*="font-size"] { font-size: 1.3rem !important; line-height: 1.3 !important; }
    .blog-body h3[style*="font-size"] { font-size: 1.12rem !important; }
    .blog-body [style*="font-size"] { overflow-wrap: anywhere; }
    .blog-body [style*="display:flex"], .blog-body [style*="display: flex"] { flex-wrap: wrap; }
}
@media (max-width: 380px) {   /* very narrow phones: keep the showcase chip row as short as before */
    .cs-facts { gap: .25rem; }
    .cs-facts > span { padding: .22rem .36rem; }
}

/* ---------------------------------------------------------------- sharing a post (MIQ.share, blog + feed) */
.blog-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.blog-meta-row .mcard-meta { font-size: .85rem; }
.blog-share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--miq-border); border-radius: var(--miq-radius); background: var(--miq-surface-alt); color: var(--miq-muted); font-size: .92rem; }
.share-modal .modal-body { padding-top: .5rem; }
.share-title { font-weight: 600; font-size: .9rem; color: var(--miq-text); margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem .5rem; }
.share-target { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .78rem; color: var(--miq-text); text-decoration: none; border-radius: 10px; padding: .25rem 0; }
.share-target:hover, .share-target:focus-visible { color: var(--miq-primary); background: var(--miq-surface-alt); }
.share-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; transition: transform .15s; }
.share-target:hover .share-icon { transform: translateY(-2px); }
.share-whatsapp .share-icon { background: #25D366; }
.share-facebook .share-icon { background: #1877F2; }
.share-x .share-icon { background: #0F1419; }
.share-linkedin .share-icon { background: #0A66C2; }
.share-telegram .share-icon { background: #229ED9; }
.share-email .share-icon { background: var(--miq-muted); }

/* ---------- Feed post without a picture (2026-11-04, user's choice "the mix") ----------
   Cards: a square navy tile with the post's own title, so grids stay aligned. The post page shows no banner. */
.ftile { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; aspect-ratio: 1 / 1;
    padding: 12% 11%; overflow: hidden; color: #fff; container-type: inline-size;
    background: radial-gradient(120% 90% at 100% 0%, rgba(47, 111, 237, .55) 0%, transparent 60%), linear-gradient(150deg, #0F1E3D 0%, #1E355C 100%); }
.ftile::after { content: ''; position: absolute; left: 11%; bottom: 10%; width: 22%; height: 4px; border-radius: 4px; background: var(--miq-amber); }
.ftile-mark { position: absolute; top: 8%; left: 11%; width: 11%; min-width: 22px; height: auto; border-radius: 50%; background: #fff; padding: 2px; }
.ftile-title { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
    font-weight: 800; line-height: 1.22; font-size: clamp(.95rem, 9.5cqi, 1.75rem); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ftile-sm { padding: 14% 12%; }
.ftile-sm .ftile-title { -webkit-line-clamp: 4; font-size: clamp(.8rem, 10cqi, 1.1rem); }
.fcard-media .ftile { display: flex; }
.dash-post-img .ftile { height: 100%; }
.dash-post-img .ftile .ftile-mark, .dash-post-img:hover .ftile .ftile-mark { width: 13%; height: auto; object-fit: contain; transform: none; }   /* not the cover-photo rule */
.feed-article.is-text-only .feed-stats { border-top: 1px solid var(--miq-border-soft); }

/* ---------- Comment threads, placeholders, ⋯ menu, reports (API release 2026-11-03) ---------- */
.comment-list .comment-thread { border-bottom: 1px solid var(--miq-border-soft); }
.comment-list .comment-thread:last-child { border-bottom: 0; }
.comment-thread .list-row { border-bottom: 0; }
.comment-replies { margin-left: calc(1.15rem + 38px + 1rem); border-left: 2px solid var(--miq-border-soft); }
.comment-replies:empty { display: none; }
.comment-row.is-reply { padding: .65rem 1rem .65rem .9rem; gap: .65rem; }
.comment-row.is-reply .comment-body { font-size: .9rem; }
.comment-replies-more:empty { display: none; }
.comment-replies-more { padding: 0 1rem .6rem .9rem; }
.comment-more-replies { border: 0; background: none; padding: .2rem 0; font-size: .82rem; font-weight: 700; color: var(--miq-primary); }
.comment-more-replies:hover { text-decoration: underline; }
.comment-more-replies .fa-arrow-turn-down { transform: rotate(-90deg) scaleY(-1); font-size: .72rem; }
.comment-mention { font-weight: 700; color: var(--miq-primary); }
.comment-foot { margin-top: .2rem; margin-left: -.45rem; }
.comment-author { border: 0; background: none; padding: 0; font-weight: 700; color: var(--miq-text); }
.comment-author:hover, .comment-author:focus-visible { color: var(--miq-primary); text-decoration: underline; }
.comment-avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; flex-shrink: 0; }
.comment-avatar-btn:focus-visible { outline: 2px solid var(--miq-primary); outline-offset: 2px; }
.comment-menu { margin-left: auto; }
/* In comments the ⋯ button sits in the top-right corner, so a long name + badge + time never pushes it onto its own line. */
.comment-head:has(> .comment-menu) { position: relative; padding-right: 2rem; }
.comment-head > .comment-menu { position: absolute; top: -.2rem; right: -.35rem; }
.comment-menu .dropdown-menu { min-width: 200px; font-size: .88rem; border-color: var(--miq-border); border-radius: var(--miq-radius); }
.comment-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; }
.comment-menu .dropdown-item i { width: 1rem; text-align: center; opacity: .8; }
.comment-row.is-placeholder { align-items: center; }
.comment-ph-icon { background: var(--miq-surface-muted); color: var(--miq-muted); }
.comment-ph-icon i { font-size: .85rem; }
.comment-ph { font-size: .88rem; font-style: italic; color: var(--miq-muted); }
.comment-reported { margin-top: .2rem; font-size: .88rem; color: var(--miq-muted); }
.comment-link { border: 0; background: none; padding: 0; font-weight: 700; color: var(--miq-primary); }
.comment-link:hover { text-decoration: underline; }
.comment-reply-slot:empty { display: none; }
.comment-reply-slot { padding: 0 1.15rem 1rem calc(1.15rem + 38px + 1rem); }
.comment-reply-to { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .4rem; font-size: .84rem; color: var(--miq-muted); }
.comment-reply-form textarea { font-size: .92rem; }
@media (max-width: 575.98px) {
    .comment-replies { margin-left: 1.4rem; }
    .comment-reply-slot { padding: 0 .9rem .9rem 1.4rem; }
}
/* Reviews: ⋯ menu next to the date, a review written by Market IQ */
.review-head .comment-menu { margin-left: .15rem; }
.avatar-brand { background: #fff; border: 1px solid var(--miq-border); }
.avatar-brand img { object-fit: contain; padding: 3px; }
.review-brand { font-size: .66rem; padding: .14rem .45rem; }

/* ---------- Community pop-ups: rules sheet, report reasons, profile card ---------- */
.cm-popup { text-align: left; }
.cm-popup .swal2-title { text-align: left; font-size: 1.35rem; padding-left: 1.4rem; padding-right: 1.4rem; }
.cm-popup .swal2-html-container { margin: .9rem 1.4rem .3rem; text-align: left; font-size: .93rem; }
.cm-rules-intro { margin-bottom: .75rem; color: var(--miq-muted); }
.cm-rules ul { list-style: none; padding: 0; margin: 0 0 .85rem; display: grid; gap: .6rem; }
.cm-rules li { display: flex; gap: .7rem; align-items: flex-start; }
.cm-rules li i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--miq-primary-light); color: var(--miq-primary); font-size: .82rem; margin-top: .05rem; }
.cm-rules li b { display: block; color: var(--miq-text); }
.cm-rules li span { color: var(--miq-muted); line-height: 1.4; }
.cm-rules-note { font-size: .84rem; color: var(--miq-muted); padding: .6rem .75rem; border-radius: 10px; background: var(--miq-surface-muted); margin-bottom: .85rem; }
.cm-rules-agree { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-weight: 600; }
.cm-rules-agree .form-check-input { margin: .2rem 0 0; flex-shrink: 0; }
.cm-report fieldset { display: grid; gap: .35rem; }
.cm-reason { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--miq-border); border-radius: 10px; cursor: pointer; margin: 0; }
.cm-reason .form-check-input { margin: 0; flex-shrink: 0; }
.cm-reason:has(:checked) { border-color: var(--miq-primary); background: var(--miq-primary-light); }
.cm-report textarea { font-size: .9rem; }
.cm-profile .swal2-html-container { margin-top: 1.6rem; }
.cm-card { text-align: center; }
.cm-card .avatar { margin: 0 auto .75rem; }
.cm-card-name { font-size: 1.2rem; font-weight: 800; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.cm-card-meta { color: var(--miq-muted); font-size: .88rem; margin-bottom: 1rem; }
.cm-card-me { color: var(--miq-muted); margin: 0; }
.cm-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* ---------- Profile: blocked users ---------- */
.blocked-list .list-row { padding: .75rem 1rem; }

/* ======================================================================== webinars (same screens as the app, 2026-11-12) */
/* Webinars page banner: the app's headline and three points. */
.wb-hero h1 { max-width: 720px; }
.wb-accent { color: var(--miq-gold, #C6A15B); }
.wb-points { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 600; }
.wb-points i { margin-right: .4rem; }
.wb-live { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin-bottom: .85rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.wb-live-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Webinar card (list, search, My Webinars) */
.wcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.wcard:hover { box-shadow: 0 8px 24px rgba(15, 30, 61, .12); transform: translateY(-1px); }
.wcard-media { position: relative; }
.wcard-live { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.wcard-body { display: flex; gap: 1rem; padding: 1.1rem 1.1rem .9rem; flex: 1; }
.wcard-info { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1; }
.wcard-title { font-size: 1.02rem; line-height: 1.3; margin: 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard-presenter { font-size: .82rem; font-weight: 600; }
.wcard-presenter span { font-weight: 400; color: var(--miq-muted); }
.wcard-meta { display: flex; flex-wrap: wrap; gap: .15rem 1rem; font-size: .78rem; color: var(--miq-muted); }
.wcard-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1.1rem; border-top: 1px solid var(--miq-border); min-height: 52px; }
.wcard-price .price { font-size: 1.05rem; }
.wcard-registered { color: var(--miq-success); font-weight: 600; font-size: .85rem; }
.wcard-registered i { margin-right: .35rem; }
.wcard-link { color: var(--miq-primary); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.wcard-link i { font-size: .7rem; }
.wcard-state { font-weight: 600; font-size: .82rem; text-align: right; color: var(--miq-muted); }
.wcard-state.is-warn { color: var(--miq-amber-dark); }
.wcard-join { position: relative; z-index: 2; white-space: nowrap; }

/* Webinar details page */
.wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem 2rem; align-items: start; }
.wd-head { grid-column: 1; grid-row: 1; min-width: 0; }
.wd-buy { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 90px; }
.wd-body { grid-column: 1; grid-row: 2; min-width: 0; }
.wd-banner { position: relative; border-radius: var(--miq-radius-lg); overflow: hidden; background: var(--miq-navy); margin-bottom: 1.25rem; }
.wd-banner-empty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #fff; font-weight: 600; }
.wd-banner-empty i { font-size: 2.2rem; opacity: .75; }
.wd-live { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
.wd-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .4rem; }
.wd-sub { color: var(--miq-muted); margin: 0 0 .75rem; }
.wd-cancelled { color: var(--miq-danger); font-weight: 600; margin-bottom: .6rem; }
.wd-meta { display: flex; align-items: center; gap: .6rem; font-size: .9rem; margin-bottom: .35rem; color: var(--miq-muted); }
.wd-meta i { width: 1.1rem; text-align: center; }
.wd-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; padding: .9rem .25rem; background: var(--miq-surface); border: 1px solid var(--miq-border); border-radius: var(--miq-radius); box-shadow: var(--miq-shadow-card); }
.wd-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 0 .35rem; text-align: center; min-width: 0; }
.wd-stat i { color: var(--miq-amber-dark); font-size: 1.1rem; }
.wd-stat b { font-size: .95rem; margin-top: .25rem; }
.wd-stat span { font-size: .72rem; color: var(--miq-muted); }
.wd-box .wd-price .price { font-size: 1.75rem; }
.wd-state { font-weight: 700; font-size: 1.05rem; }
.wd-closed { background: rgba(198, 161, 91, .16); color: var(--miq-amber-dark); font-weight: 600; text-align: center; padding: .7rem 1rem; border-radius: 10px; }
.wd-registered { display: flex; gap: .6rem; padding: .85rem; border-radius: 12px; background: var(--miq-success-light); font-size: .85rem; }
.wd-registered i { color: var(--miq-success); margin-top: .15rem; }
.wd-tabs { margin: 0 0 1rem; }
.wd-h { font-size: 1.15rem; margin: 0 0 .75rem; }
.wd-text { white-space: pre-line; overflow-wrap: anywhere; margin: 0; line-height: 1.65; }
.wd-learn, .wd-agenda { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .8rem; }
.wd-learn li { display: flex; gap: .65rem; }
.wd-learn i { color: var(--miq-success); margin-top: .2rem; }
.wd-agenda li { display: flex; gap: .85rem; align-items: flex-start; }
.wd-agenda-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(198, 161, 91, .2); color: var(--miq-amber-dark); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wd-agenda-time { color: var(--miq-amber-dark); font-weight: 600; font-size: .85rem; }
.wd-presenter { text-align: center; }
.wd-avatar { width: 72px; height: 72px; margin: 0 auto .6rem; border-radius: 50%; overflow: hidden; background: rgba(198, 161, 91, .2); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--miq-amber-dark); }
.wd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wd-faq { padding: .85rem 1rem; border: 1px solid var(--miq-border); border-radius: 10px; margin-bottom: .65rem; }
@media (max-width: 991.98px) {
    .wd-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .wd-head, .wd-buy, .wd-body { grid-column: 1; grid-row: auto; }
    .wd-buy { position: static; }
}
@media (max-width: 575.98px) {
    .wd-stats { grid-template-columns: repeat(3, 1fr); row-gap: .9rem; }
    .wcard-body { padding: 1rem; }
}

/* ------------------------------------------------------------------ "Open this in the Market IQ app" prompt (2026-11-16)
   A slide-up sheet on Android/iPhone browsers (app.js, MIQ.appPrompt), then a small "Open app" pill. Never covers the article
   (it is not a full-screen wall), sits under the sign-in/announcement pop-ups (z-index 1040 < 1055) and respects the notch. */
.app-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; max-width: 560px; margin: 0 auto;
    background: var(--miq-surface); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(10, 21, 48, .24);
    padding: .55rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
}
.app-sheet.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.app-sheet-grab { width: 38px; height: 4px; border-radius: 4px; background: #CBD5E1; margin: 0 auto .7rem; }
.app-sheet-x {
    position: absolute; top: .55rem; right: .7rem; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: var(--miq-surface-muted); color: #475569; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem;
}
.app-sheet-head { display: flex; align-items: center; gap: .8rem; padding-right: 2rem; margin-bottom: .95rem; }
.app-sheet-icon { flex: none; width: 52px; height: 52px; border-radius: 13px; background: var(--miq-navy); padding: 8px; box-shadow: 0 2px 8px rgba(10, 21, 48, .25); }
.app-sheet-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-sheet-head strong { display: block; color: var(--miq-navy); font-size: 1.02rem; line-height: 1.25; }
.app-sheet-head span { display: block; color: #64748B; font-size: .86rem; line-height: 1.35; margin-top: .1rem; }
.app-sheet-go { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .8rem 1rem; border-radius: 14px; font-weight: 700; }
.app-sheet-stay {
    display: block; width: 100%; margin-top: .45rem; padding: .7rem 1rem; border: 0; background: transparent;
    color: #475569; font-weight: 600; font-size: .92rem; border-radius: 12px;
}
.app-sheet-stay:active { background: var(--miq-surface-muted); }
.app-pill {
    position: fixed; right: .9rem; bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)); z-index: 1035;
    display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem .5rem .55rem; border-radius: 999px;
    background: var(--miq-navy); color: #fff; font-weight: 700; font-size: .86rem; text-decoration: none; box-shadow: 0 6px 20px rgba(10, 21, 48, .35);
    transform: translateY(160%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.app-pill.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
/* The course page has a fixed buy bar along the bottom on phones (.sticky-buy, 76px): the pill rides above it, never over the Buy button. */
body.has-sticky-buy .app-pill { bottom: calc(76px + .9rem + env(safe-area-inset-bottom, 0px)); }
.app-pill:hover, .app-pill:focus { color: #fff; }
.app-pill img { width: 26px; height: 26px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
    .app-sheet, .app-sheet.is-open, .app-pill, .app-pill.is-open { transition: none; }
}
@media (min-width: 992px) { .app-sheet, .app-pill { display: none !important; } }   /* phones and tablets only */
