/* Local copy of custom_global_theme_1790758476.css (S3) with the corporate sidebar moved to --sb-* tokens. */
/* ==== PUBLIC WEBSITE THEME: Konplizil ==== */
/* Konplizil look for the public website (home, courses, login, checkout, plans…).
   Only CSS variables — the page HTML/structure is shared by every tenant.
   Keep this block at the very top of the file (the @import must come first). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..800;1,9..144,400..700&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* Brand */
    --site-primary: #2EC4B6;
    --site-primary-ink: #0B2E4A;
    --site-accent: #E8734A;
    --site-dark: #0B2E4A;
    --site-bg: #F6EFE3;
    --site-surface: #FFFFFF;
    --site-ink: #132430;
    --site-light: #FBF7EF;
    --site-success: #2F855A;
    --site-danger: #C2412D;

    /* Fonts */
    --site-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --site-font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --site-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Shape */
    --site-radius: 16px;
    --site-container: 1180px;
    --site-btn-radius: 999px;
    --site-chip-radius: 999px;

    /* Surfaces */
    --site-header-bg: color-mix(in srgb, #0B2E4A 96%, transparent);
    --site-header-fg: #FBF7EF;
    --site-hero-bg: radial-gradient(ellipse at 15% -10%, color-mix(in srgb, #2EC4B6 13%, transparent), transparent 55%), #0B2E4A;
    --site-hero-fg: #FBF7EF;
    --site-hero-accent: #2EC4B6;
    --site-footer-bg: #0B2E4A;
    --site-footer-fg: #FBF7EF;
    --site-footer-heading: #2EC4B6;

    /* Headings & labels */
    --site-heading-weight: 600;
    --site-heading-tracking: -0.01em;
    --site-heading-transform: none;
    --site-heading-em: italic;
    --site-heading-em-color: #2EC4B6;
    --site-eyebrow-transform: uppercase;
    --site-eyebrow-tracking: 0.14em;

    /* Buttons & cards */
    --site-btn-weight: 600;
    --site-btn-transform: none;
    --site-btn-lift: -1px;
    --site-card-hover-lift: -4px;

    /* Sector colours (Government / Industries / Individuals) */
    --site-cat-1: #2B6CB0;
    --site-cat-2: #38A169;
    --site-cat-3: #DD6B20;
}
/* ==== END PUBLIC WEBSITE THEME ==== */

/* =========================================================
 * COMPLIOPRO X - GLOBAL CUSTOM THEME CSS
 * Extracted from uploaded mockups
 * Applies to: Corporate Admin, User Dashboard, Game Hub
 * ========================================================= */

/* --- 1. FULL PAGE BACKGROUND & GLOBAL WRAPPER BLUR --- */
.corporate-admin-body,
.user-dashboard-body,
.game-hub-body {
    /* Background Image */
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073&auto=format&fit=crop') !important; 
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;
}

/* Base Wrapper for Blur */
.corporate-admin-body .corp-app,
.user-dashboard-body .ud-wrapper,
.game-hub-body .ud-wrapper,
.game-hub-body #app {
    /* Fonts */
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif !important;

    /* Theme Variables for Corp App */
    --primary: #FF7A59;
    --primary-hover: #FF9B70;
    --primary-foreground: #ffffff;
    --info: #06B6D4;
    --ring: #06B6D4;
    --card: rgba(255, 255, 255, 0.45);
    
    /* Theme Variables for User Dashboard & Game Hub */
    --ud-primary: #FF7A59;
    --ud-primary-dark: #FF9B70;
    --ud-secondary: #06B6D4;
    --ud-bg-color: transparent;
    --ud-card-bg: rgba(255, 255, 255, 0.45);
    --ud-text-primary: #0F172A;
    --ud-text-light: #ffffff;

    /* Blur the background image slightly using backdrop-filter on the main app wrapper */
    background: rgba(0, 0, 0, 0.15) !important; /* Slight dark overlay for readability */
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* Corporate admin: blur + overlay on a fixed layer behind the app instead of on .corp-app itself
   (a backdrop-filter on .corp-app would make the fixed sidebar scroll with the page). */
.corporate-admin-body .corp-app {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.corporate-admin-body .corp-app::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Force backgrounds of inner wrappers to be transparent */
.corporate-admin-body .corp-main,
.corporate-admin-body .corp-topbar,
.user-dashboard-body .ud-main,
.user-dashboard-body .ud-topbar,
.user-dashboard-body .ud-content,
.game-hub-body .ud-main,
.game-hub-body .ud-topbar,
.game-hub-body .ud-content,
.game-hub-body .page-content {
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
}

/* =========================================================
 * 2. SIDEBAR STYLING
 *    Corporate admin sidebar: only the --sb-* tokens are set here, the layout lives in
 *    corporate-layout.css (so the sidebar never breaks if this file is missing).
 * ========================================================= */
.corporate-admin-body .corp-sidebar {
    --sb-bg: linear-gradient(165deg, rgba(11, 46, 74, 0.92) 0%, rgba(6, 30, 48, 0.95) 100%);
    --sb-fg: rgba(255, 255, 255, 0.88);
    --sb-muted: rgba(255, 255, 255, 0.5);
    --sb-icon: rgba(255, 255, 255, 0.72);
    --sb-border: rgba(255, 255, 255, 0.1);
    --sb-hover: rgba(255, 255, 255, 0.08);
    --sb-active-bg: rgba(46, 196, 182, 0.16);
    --sb-active-fg: #ffffff;
    --sb-accent: #2EC4B6;
    --sb-accent-fg: #0B2E4A;
    --sb-radius: 0.75rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 8px 0 30px rgba(6, 30, 48, 0.18);
}

/* logo on the dark sidebar: small light chip so dark logos stay readable */
.corporate-admin-body .corp-sidebar .sidebar-brand-image {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
}

/* User dashboard / Game hub sidebars (unchanged look) */
.user-dashboard-body .ud-sidebar,
.game-hub-body .ud-sidebar {
    background: linear-gradient(160deg, rgba(3, 59, 68, 0.75) 0%, rgba(3, 30, 42, 0.85) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.user-dashboard-body .ud-sidebar .nav-link,
.user-dashboard-body .ud-sidebar .ud-brand-text,
.user-dashboard-body .ud-sidebar i,
.game-hub-body .ud-sidebar .nav-link,
.game-hub-body .ud-sidebar .ud-brand-text,
.game-hub-body .ud-sidebar i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.user-dashboard-body .ud-sidebar .nav-link:hover,
.game-hub-body .ud-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.user-dashboard-body .ud-sidebar .nav-link.active,
.game-hub-body .ud-sidebar .nav-link.active {
    background: linear-gradient(90deg, #2DD4BF 0%, #06B6D4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4) !important;
    border: none !important;
    border-radius: 8px !important;
}

/* =========================================================
 * 3. CARD STYLING (FROSTED GLASS)
 * ========================================================= */
.corporate-admin-body .corp-card,
.user-dashboard-body .ud-card,
.user-dashboard-body .card,
.user-dashboard-body .bg-white,
.game-hub-body .ud-card,
.game-hub-body .card,
.game-hub-body .bg-white {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
}

/* Prevent double-blur on nested elements */
.user-dashboard-body .ud-card .bg-light,
.user-dashboard-body .ud-card .bg-white,
.game-hub-body .ud-card .bg-light,
.game-hub-body .ud-card .bg-white,
.game-hub-body .bg-light {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Headings inside cards */
.corporate-admin-body h1, 
.corporate-admin-body h2, 
.corporate-admin-body h3,
.corporate-admin-body .corp-card-title,
.user-dashboard-body h1,
.user-dashboard-body h2,
.user-dashboard-body h3,
.user-dashboard-body h4,
.user-dashboard-body h5,
.user-dashboard-body h6,
.user-dashboard-body .text-dark,
.user-dashboard-body .ud-heading,
.game-hub-body h1,
.game-hub-body h2,
.game-hub-body h3,
.game-hub-body h4,
.game-hub-body h5,
.game-hub-body h6,
.game-hub-body .text-dark,
.game-hub-body .ud-heading {
    color: #0F172A !important;
}

/* =========================================================
 * 4. BUTTONS STYLING
 * ========================================================= */
/* Primary Button */
.corporate-admin-body .corp-btn-primary,
.user-dashboard-body .btn-primary,
.user-dashboard-body .ud-btn-primary,
.user-dashboard-body .btn[style*="#ec4899"],
.game-hub-body .btn-primary,
.game-hub-body .ud-btn-primary,
.game-hub-body .btn[style*="#ec4899"] {
    background: linear-gradient(90deg, #FF7A59 0%, #FF9B70 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(255, 122, 89, 0.4) !important;
    transition: all 0.2s ease-in-out !important;
}

.corporate-admin-body .corp-btn-primary:hover,
.user-dashboard-body .btn-primary:hover,
.user-dashboard-body .ud-btn-primary:hover,
.user-dashboard-body .btn[style*="#ec4899"]:hover,
.game-hub-body .btn-primary:hover,
.game-hub-body .ud-btn-primary:hover,
.game-hub-body .btn[style*="#ec4899"]:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
}

/* Ghost Button */
.corporate-admin-body .corp-btn-ghost,
.user-dashboard-body .btn-outline-primary,
.user-dashboard-body .ud-btn-secondary,
.game-hub-body .btn-outline-primary,
.game-hub-body .ud-btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #0F172A !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out !important;
}

.corporate-admin-body .corp-btn-ghost:hover,
.user-dashboard-body .btn-outline-primary:hover,
.user-dashboard-body .ud-btn-secondary:hover,
.game-hub-body .btn-outline-primary:hover,
.game-hub-body .ud-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Start / Pill Buttons */
.corporate-admin-body .corp-chart-btn.active,
.user-dashboard-body .rounded-pill,
.user-dashboard-body .btn[style*="border: 1px solid #ec4899"],
.game-hub-body .rounded-pill,
.game-hub-body .btn[style*="border: 1px solid #ec4899"] {
    background: #06B6D4 !important;
    color: white !important;
    border-color: #06B6D4 !important;
    border-radius: 8px !important;
}

.corporate-admin-body .corp-fab {
    background: #06B6D4 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4) !important;
}

/* =========================================================
 * 5. LOGGED-IN HEADER + GAME HUB — same shapes & colours as the website
 *    Uses the --site-* variables from the PUBLIC WEBSITE THEME block,
 *    so changing the theme changes these pages too.
 * ========================================================= */

/* ---- 5.1 Header bar (same as the public site header) ---- */
.game-hub-body .admin_header .main-header,
.game-hub-body .admin_header .main-header .navbar {
    background: var(--site-header-bg) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--site-header-border) !important;
    box-shadow: none !important;
    backdrop-filter: saturate(140%) blur(8px) !important;
    -webkit-backdrop-filter: saturate(140%) blur(8px) !important;
}
.game-hub-body .admin_header .main-header .navbar { border-bottom: 0 !important; padding: 0 !important; }
.game-hub-body .admin_header .main-header::before { display: none !important; }
.game-hub-body .main-header .navbar .container-fluid {
    max-width: var(--site-container);
    margin: 0 auto;
    min-height: var(--site-header-h);
    padding: 0 var(--site-gutter);
}
.game-hub-body .main-header .koala_logo { max-height: var(--site-logo-h); width: auto; }
.game-hub-body .main-header .koala_logo:hover { transform: none !important; }

/* ---- 5.2 Nav links: no lift, no shadow, no gradient — calm tint + underline ---- */
.game-hub-body .main-header nav .navbar-nav li a.nav-link,
.game-hub-body .main-header .nav-link {
    height: auto !important;
    margin: 0 2px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: var(--site-btn-radius) !important;
    background: transparent !important;
    color: var(--site-header-fg) !important;
    opacity: .8;
    font-family: var(--site-font-body) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: opacity .15s ease, background-color .15s ease !important;
}
.game-hub-body .main-header nav .navbar-nav li a.nav-link:hover,
.game-hub-body .main-header nav .navbar-nav li a.nav-link:focus,
.game-hub-body .main-header nav .navbar-nav li.active a.nav-link {
    opacity: 1;
    color: var(--site-header-fg) !important;
    background: color-mix(in srgb, var(--site-header-fg) 8%, transparent) !important;
    box-shadow: none !important;
    transform: none !important;
}
.game-hub-body .main-header nav .navbar-nav li a.nav-link:focus-visible {
    outline: 2px solid var(--site-primary) !important;
    outline-offset: 2px;
}
/* underline only marks the current page (Game Hub), never on hover */
.game-hub-body .main-header .nav-link::after {
    left: 14px !important;
    right: 14px !important;
    bottom: 2px !important;
    width: auto !important;
    height: 2px !important;
    border-radius: 2px;
    transform: none !important;
    background: var(--site-primary) !important;
    opacity: 0;
    transition: opacity .15s ease !important;
}
.game-hub-body .main-header .nav-link:hover::after { width: auto !important; }
.game-hub-body .main-header .nav-link[href$="/gamehub"]::after { opacity: 1; }
.game-hub-body .main-header .nav-link[href$="/gamehub"] { opacity: 1; }
.game-hub-body .main-header .link-text { margin: 0 !important; }

/* ---- 5.3 Round icon buttons (cart / profile / logout) ---- */
.game-hub-body .main-header .nav-icon-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    border: 1px solid color-mix(in srgb, var(--site-header-fg) 22%, transparent) !important;
    color: var(--site-header-fg) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color .15s ease, color .15s ease !important;
}
.game-hub-body .main-header .nav-icon-btn:hover {
    border-color: var(--site-primary) !important;
    color: var(--site-primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
.game-hub-body .main-header .logout-btn-style:hover {
    border-color: var(--site-danger) !important;
    color: color-mix(in srgb, var(--site-danger) 60%, var(--site-header-fg)) !important;
}
.game-hub-body .main-header .cart-nav-item { margin-left: 8px !important; }
.game-hub-body .main-header .cart-section { gap: 8px !important; padding: 0 !important; }
.game-hub-body .main-header .navbar-nav > li.d-flex { gap: 8px !important; margin-left: 8px; }
.game-hub-body .main-header .cart-badge {
    background: var(--site-accent) !important;
    color: var(--site-accent-ink) !important;
    box-shadow: none !important;
    animation: none !important;
}

/* ---- 5.4 Mobile menu panel follows the header colours ---- */
.game-hub-body .main-header .toggle-line { background: var(--site-header-fg) !important; }
@media (max-width: 768px) {
    .game-hub-body .main-header .collapse.navbar-collapse {
        background: var(--site-dark) !important;
        box-shadow: none !important;
        border-left: 1px solid var(--site-header-border);
    }
    .game-hub-body .main-header .collapse.navbar-collapse .nav-link {
        color: var(--site-light) !important;
        border-radius: var(--site-radius-sm) !important;
    }
}

/* ---- 5.5 Page panel: an inset frosted panel instead of an edge-to-edge sheet ---- */
.game-hub-body #layoutLeaderboard > .sidebar-view > section.min-vh-100.bg-white,
.game-hub-body #layoutLeaderboard > div > section.min-vh-100.bg-white {
    margin: 24px auto !important;
    max-width: calc(var(--site-container) + 2 * var(--site-gutter));
    min-height: calc(100vh - var(--site-header-h) - 48px) !important;
    border-radius: var(--site-radius-lg) !important;
    background: color-mix(in srgb, var(--site-surface) 55%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--site-surface) 60%, transparent) !important;
}
@media (max-width: 767px) {
    .game-hub-body #layoutLeaderboard section.min-vh-100.bg-white { margin: 12px !important; }
}

/* Same fonts as the website (icons keep their icon font) */
.game-hub-body #layoutLeaderboard *:not(i) { font-family: var(--site-font-body) !important; }
.game-hub-body #layoutLeaderboard .ud-heading {
    font-family: var(--site-font-display) !important;
    font-weight: var(--site-heading-weight) !important;
    letter-spacing: var(--site-heading-tracking) !important;
    color: var(--site-ink) !important;
}
.game-hub-body .ud-subheading { color: var(--site-muted) !important; font-size: 1.02rem !important; }

/* ---- 5.6 Tabs: theme underline, no filled background ---- */
.game-hub-body .ud-tabs { border-bottom: 0 !important; gap: 4px !important; }
.game-hub-body .ud-border-color { border-color: var(--site-line-strong) !important; }
.game-hub-body .ud-tab-link,
.game-hub-body .ud-tab-link.active,
.game-hub-body .ud-tab-link:focus {
    position: relative;
    padding: 10px 16px 14px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--site-muted) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}
.game-hub-body .ud-tab-link:hover { color: var(--site-ink) !important; background: transparent !important; }
.game-hub-body .ud-tab-link.active { color: var(--site-ink) !important; }
.game-hub-body .ud-tab-link::after { display: none; }
.game-hub-body .ud-tab-link.active::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 12px !important; right: 12px !important; bottom: 0 !important;
    width: auto !important;
    height: 3px !important;
    transform: none !important;
    border-radius: 3px 3px 0 0;
    background: var(--site-primary) !important;
}

/* ---- 5.7 Search: same pill shape as the buttons, theme focus ring ---- */
.game-hub-body .ud-search-wrapper { padding-bottom: 12px !important; }
.game-hub-body .ud-search-input-group {
    height: 46px;
    border-radius: var(--site-btn-radius) !important;
    border: 1.5px solid var(--site-line-strong) !important;
    background: color-mix(in srgb, var(--site-surface) 80%, transparent) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
.game-hub-body .ud-search-input-group:focus-within {
    background: var(--site-surface) !important;
    border-color: var(--site-primary-deep) !important;
    box-shadow: 0 0 0 4px var(--site-primary-ring) !important;
}
.game-hub-body .ud-search-icon { color: var(--site-muted) !important; margin: 0 4px 0 10px !important; }
.game-hub-body .ud-search-input { font-size: 0.95rem !important; color: var(--site-ink) !important; background: transparent !important; }
.game-hub-body .ud-search-input::placeholder { color: var(--site-placeholder) !important; }

/* ---- 5.8 Course cards: one radius, image follows the card corners ---- */
.game-hub-body .ud-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--site-card-radius) !important;
    border: 1px solid color-mix(in srgb, var(--site-surface) 70%, transparent) !important;
    background: color-mix(in srgb, var(--site-surface) 72%, transparent) !important;
    box-shadow: var(--site-card-shadow) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
.game-hub-body .ud-card:hover {
    transform: translateY(var(--site-card-hover-lift));
    box-shadow: var(--site-card-hover-shadow) !important;
}
.game-hub-body .ud-card-img {
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--site-line) !important;
    background: linear-gradient(135deg, var(--site-dark), var(--site-dark-2) 60%, var(--site-primary-deep));
}
.game-hub-body .ud-card .card-body { padding: 16px 18px 18px !important; gap: 10px; }
.game-hub-body .ud-card-title {
    color: var(--site-ink) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}
.game-hub-body .ud-card .card-body > .d-flex.mb-2 { margin-bottom: 4px !important; }
.game-hub-body .ud-card .card-body > :last-child { margin-top: auto; }

/* ---- 5.9 Badges: pills in theme colours ---- */
.game-hub-body .ud-badge {
    display: inline-flex !important;
    align-items: center;
    padding: 4px 10px !important;
    border-radius: var(--site-chip-radius) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.game-hub-body .ud-badge-bestseller { background: var(--site-primary-soft) !important; border-color: var(--site-primary-line); color: var(--site-primary-deep) !important; }
.game-hub-body .ud-badge-progress { background: var(--site-cat-1-soft) !important; border-color: var(--site-cat-1-tint); color: var(--site-cat-1-deep) !important; }
.game-hub-body .ud-badge-new { background: var(--site-success-soft) !important; border-color: var(--site-success-line); color: var(--site-success) !important; }
.game-hub-body .ud-badge-neutral { background: var(--site-bg-2) !important; border-color: var(--site-line); color: var(--site-ink) !important; }

/* ---- 5.10 Buttons: same shape/colours as the website buttons ---- */
.game-hub-body .ud-btn-primary,
.game-hub-body .ud-btn-secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px !important;
    border-radius: var(--site-btn-radius) !important;
    font-size: 0.88rem !important;
    font-weight: var(--site-btn-weight) !important;
    text-transform: var(--site-btn-transform);
    letter-spacing: var(--site-btn-tracking);
    transform: none !important;
    opacity: 1 !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}
.game-hub-body .ud-btn-primary {
    background: var(--site-primary) !important;
    border: 1px solid var(--site-primary) !important;
    color: var(--site-primary-ink) !important;
    box-shadow: none !important;
}
.game-hub-body .ud-btn-primary:hover {
    background: var(--site-primary-deep) !important;
    border-color: var(--site-primary-deep) !important;
    color: var(--site-primary-hover-ink) !important;
}
.game-hub-body .ud-btn-secondary {
    background: color-mix(in srgb, var(--site-surface) 60%, transparent) !important;
    border: 1px solid var(--site-line-strong) !important;
    color: var(--site-ink) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.game-hub-body .ud-btn-secondary:hover {
    background: var(--site-surface) !important;
    border-color: var(--site-ink) !important;
}
.game-hub-body .ud-btn-primary[disabled],
.game-hub-body .ud-btn-secondary[disabled] { opacity: .55 !important; cursor: not-allowed; }
.game-hub-body .ud-card .d-flex.gap-2 { gap: 8px !important; }
/* =========================================================
 * 6. CORPORATE DASHBOARD v2 (Konplizil colours)
 *    The dashboard layout comes from the app CSS; here we only set colours.
 * ========================================================= */
.corporate-admin-body .corp-app {
    --accent: #2EC4B6;
    --accent-2: #0B2E4A;
    --brand-gradient: linear-gradient(130deg, #FF7A59 0%, #F4A261 28%, #2EC4B6 70%, #0B2E4A 100%);
}

/* hero sits on a coloured gradient: keep its text white (the heading rule above forces dark) */
.corporate-admin-body .dash-hero h1,
.corporate-admin-body .dash-hero h1 * {
    color: #ffffff !important;
}

/* stat cards: same frosted glass as the other cards */
.corporate-admin-body .corp-stat-card {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1) !important;
}

/* sticky top bar: light glass so content scrolling underneath stays readable */
.corporate-admin-body .corp-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
}

/* 7. Corporate dashboard v3: chart + KPI colours follow the Konplizil palette */
.corporate-admin-body .corp-app {
    --chart-1: #2EC4B6;
    --chart-2: #FF7A59;
    --chart-3: #F4A261;
    --chart-4: #0B2E4A;
    --chart-5: #5AA9E6;
}

/* 8. Corporate pages: popovers stay readable on the photo background */
.corporate-admin-body .corp-modal,
.corporate-admin-body .corp-topbar-dropdown {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}
.corporate-admin-body .corp-modal-overlay {
    background: rgba(6, 30, 48, 0.45) !important;
}
/* icon-only ghost buttons in tables / dialogs: quiet, no glass chip */
.corporate-admin-body .corp-btn-ghost.corp-btn-icon {
    background: transparent !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #334155 !important;
}
.corporate-admin-body .corp-btn-ghost.corp-btn-icon:hover {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* 9. Learner dashboard (/user-dashboard) v2: tokens only, the layout lives in public/css/user-dashboard.css */
.user-dashboard-body .ud-wrapper {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    --chart-1: #2EC4B6;
    --chart-2: #FF7A59;
    --chart-3: #F4A261;
    --chart-4: #0B2E4A;
    --chart-5: #5AA9E6;
}
/* blur + overlay on a fixed layer (a backdrop-filter on .ud-wrapper would make the sidebar scroll away) */
.user-dashboard-body .ud-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
/* page shell stays flat; only cards are glass */
.user-dashboard-body .ud-main,
.user-dashboard-body .ud-content {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.user-dashboard-body .ud-topbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.user-dashboard-body .ud-sidebar {
    --sb-bg: linear-gradient(165deg, rgba(11, 46, 74, 0.92) 0%, rgba(6, 30, 48, 0.95) 100%);
    --sb-fg: rgba(255, 255, 255, 0.88);
    --sb-muted: rgba(255, 255, 255, 0.5);
    --sb-icon: rgba(255, 255, 255, 0.72);
    --sb-border: rgba(255, 255, 255, 0.1);
    --sb-hover: rgba(255, 255, 255, 0.08);
    --sb-active-bg: rgba(46, 196, 182, 0.18);
    --sb-active-fg: #ffffff;
    --sb-accent: #2EC4B6;
    --sb-accent-fg: #0B2E4A;
}
.user-dashboard-body .ud-sidebar .ud-brand {
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
}
/* KPI / course cards and popovers */
.user-dashboard-body .ud-kpi,
.user-dashboard-body .ud-course,
.user-dashboard-body .ud-continue {
    background-color: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.user-dashboard-body .ud-menu-panel,
.user-dashboard-body .modal-content {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}