/* // @TODO: variables import missing

/* // @TODO: furhter more can we have PostCSS functions so you can say spacer(2); And it give you the output rem for spacer 2. */
/* // code example: */
/* henk {
    margin-left: $spacer * 2;
} */
:root {
  --font-family: #{'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif};
  --primary: #{#e8491d};
  --primary-light: #{#f47b50};
  --success: #{#22c55e};
  --danger: #{#ef4444};
  --warning: #{#f59e0b};
  --info: #{#06b6d4};

  --sidebar-bg: #{#0d0d14};
  --sidebar-menu-bg: #{#0d0d14};
  --sidebar-text: #{#ffffff};
  --sidebar-text-hover: #{#ffffff};
  --sidebar-active-bg: rgba(255, 255, 255, 0.06);
  --sidebar-width: #{300px};
  --sidebar-collapsed-width: #{0px};

  --navbar-bg: #{#0a0a0f};
  --navbar-shadow: #{none};

  --body-bg: #{#0a0a0f};
  --text-color: #{#e0e0e8};
  --heading-color: #{#ffffff};
  --border-color: #{#1f1f2e};

  --card-bg: #{#111118};
  --card-shadow: #{none};
  --card-border-radius: #{0};

  --footer-bg: #{transparent};
  --footer-text: #{#4b5563};

  --transition-speed: #{0.2s};

  --spacing-step: #{0.35rem};
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1.25rem;
  --spacing-5: 2rem;
  --spacing-6: 3.25rem;
  --spacing-7: 5.25rem;
  --spacing-8: 8.5rem;
}
/* // this should be ramped spacing, so basically 0.25 0.5 1 1.5 2 3 4 7 11 13 16. whole numbers at later stages, somewhat like a fibonacci sequence */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #e8491d; }
.text-success { color: #22c55e; }
.text-danger { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-muted { color: #b9b9c3; }
.font-weight-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.hidden { display: none; }
/* Display utilities */
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
/* Flexbox utilities */
.flex-column { flex-direction: column; }
/* Position utilities */
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
/* Background utilities */
.bg-white { background-color: #fff !important; }
.bg-white, .bg-white a { color: #333; }
/* Spacing utilities - padding */
.pt-3, .py-3 { padding-top: 1rem !important; }
.pb-3, .py-3 { padding-bottom: 1rem !important; }
/* Spacing utilities - margin */
.mr-4 { margin-right: calc(0.35rem * 4) !important; }
/* ============================================
   Responsive Breakpoints (matching live site)
   xs: 0, sm: 576px, md: 768px, lg: 1056px, xl: 1200px, xxl: 1420px
   ============================================ */
/* Large screens (lg): >= 1056px */
@media (min-width: 1056px) {
    /* Navbar */
    .navbar-expand-lg {
        flex-flow: row;
        justify-content: flex-start;
    }

    /* Display utilities */
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-inline-flex { display: inline-flex !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }

    /* Spacing utilities */
    .pt-lg-5, .py-lg-5 { padding-top: 2rem !important; }
    .pb-lg-5, .py-lg-5 { padding-bottom: 2rem !important; }
    .ml-lg-3 { margin-left: calc(0.35rem * 3) !important; }
}
/* Medium screens (md): >= 768px */
@media (min-width: 768px) {
    /* Display utilities */
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }

    /* Spacing utilities */
    .mr-md-4 { margin-right: calc(0.35rem * 4) !important; }
}
/* Extra extra large screens (xxl): >= 1420px */
@media (min-width: 1420px) {
    .d-xxl-inline { display: inline !important; }
    .d-xxl-inline-block { display: inline-block !important; }
    .d-xxl-inline-flex { display: inline-flex !important; }
    .d-xxl-block { display: block !important; }
    .d-xxl-flex { display: flex !important; }

    .ml-xxl-2 { margin-left: calc(0.35rem * 2) !important; }
    .mr-xxl-2 { margin-right: calc(0.35rem * 2) !important; }
}
/* Display none */
.d-none { display: none !important; }
/* ============================================
   Grid System
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}
.row.g-3 {
    margin: 0 -0.5rem;
}
.row.g-3 > [class*="col"] {
    padding: 0 0.5rem;
    margin-bottom: 1rem;
}
.col {
    flex: 1;
    padding: 0 0.75rem;
}
/* ============================================
   Spacing - Additional Values
   ============================================ */
/* Padding */
.p-3 { padding: calc(0.35rem * 3) !important; }
.p-4 { padding: calc(0.35rem * 4) !important; }
.p-5 { padding: calc(0.35rem * 5) !important; }
.p-6 { padding: calc(0.35rem * 6) !important; }
.p-7 { padding: calc(0.35rem * 7) !important; }
.p-9 { padding: calc(0.35rem * 9) !important; }
.py-6 { padding-top: calc(0.35rem * 6) !important; padding-bottom: calc(0.35rem * 6) !important; }
.py-9 { padding-top: calc(0.35rem * 9) !important; padding-bottom: calc(0.35rem * 9) !important; }
.pt-3 { padding-top: calc(0.35rem * 3) !important; }
.pt-6 { padding-top: calc(0.35rem * 6) !important; }
.pt-9 { padding-top: calc(0.35rem * 9) !important; }
.pl-3 { padding-left: calc(0.35rem * 3) !important; }
.pl-6 { padding-left: calc(0.35rem * 6) !important; }
.pl-7 { padding-left: calc(0.35rem * 7) !important; }
.pr-5 { padding-right: calc(0.35rem * 5) !important; }
.px-3 { padding-left: calc(0.35rem * 3) !important; padding-right: calc(0.35rem * 3) !important; }
.px-6 { padding-left: calc(0.35rem * 6) !important; padding-right: calc(0.35rem * 6) !important; }
/* Margin */
.m-3 { margin: calc(0.35rem * 3) !important; }
.m-4 { margin: calc(0.35rem * 4) !important; }
.m-5 { margin: calc(0.35rem * 5) !important; }
.my-3 { margin-top: calc(0.35rem * 3) !important; margin-bottom: calc(0.35rem * 3) !important; }
.my-4 { margin-top: calc(0.35rem * 4) !important; margin-bottom: calc(0.35rem * 4) !important; }
.my-5 { margin-top: calc(0.35rem * 5) !important; margin-bottom: calc(0.35rem * 5) !important; }
.my-6 { margin-top: calc(0.35rem * 6) !important; margin-bottom: calc(0.35rem * 6) !important; }
.my-7 { margin-top: calc(0.35rem * 7) !important; margin-bottom: calc(0.35rem * 7) !important; }
.mt-2 { margin-top: calc(0.35rem * 2) !important; }
.mt-3 { margin-top: calc(0.35rem * 3) !important; }
.mt-4 { margin-top: calc(0.35rem * 4) !important; }
.mt-5 { margin-top: calc(0.35rem * 5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: calc(0.35rem * 2) !important; }
.mb-3 { margin-bottom: calc(0.35rem * 3) !important; }
.mb-4 { margin-bottom: calc(0.35rem * 4) !important; }
.mb-5 { margin-bottom: calc(0.35rem * 5) !important; }
.mb-6 { margin-bottom: calc(0.35rem * 6) !important; }
.mr-2 { margin-right: calc(0.35rem * 2) !important; }
.mr-3 { margin-right: calc(0.35rem * 3) !important; }
.mr-5 { margin-right: calc(0.35rem * 5) !important; }
.ml-2 { margin-left: calc(0.35rem * 2) !important; }
.ml-3 { margin-left: calc(0.35rem * 3) !important; }
/* ============================================
   Responsive Spacing
   ============================================ */
@media (min-width: 768px) {
    .p-md-5 { padding: calc(0.35rem * 5) !important; }
    .px-md-6 { padding-left: calc(0.35rem * 6) !important; padding-right: calc(0.35rem * 6) !important; }
}
@media (min-width: 1056px) {
    .p-lg-7 { padding: calc(0.35rem * 7) !important; }
    .pt-lg-6 { padding-top: calc(0.35rem * 6) !important; }
    .pt-lg-9 { padding-top: calc(0.35rem * 9) !important; }
    .py-lg-6 { padding-top: calc(0.35rem * 6) !important; padding-bottom: calc(0.35rem * 6) !important; }
    .pl-lg-6 { padding-left: calc(0.35rem * 6) !important; }
    .pl-lg-7 { padding-left: calc(0.35rem * 7) !important; }
    .pr-lg-5 { padding-right: calc(0.35rem * 5) !important; }

    .my-lg-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
    .my-lg-7 { margin-top: calc(0.35rem * 7) !important; margin-bottom: calc(0.35rem * 7) !important; }
    .mr-lg-5 { margin-right: calc(0.35rem * 5) !important; }
    .mb-lg-9 { margin-bottom: calc(0.35rem * 9) !important; }
}
@media (min-width: 1200px) {
    .p-xl-4 { padding: calc(0.35rem * 4) !important; }
}
/* ============================================
   Width & Height
   ============================================ */
.w-100 { width: 100% !important; }
.maxw-100 { max-width: 100% !important; }
.maxw-50 { max-width: 50% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
/* ============================================
   Text Alignment
   ============================================ */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }
@media (min-width: 1056px) {
    .text-lg-left { text-align: left !important; }
}
@media (min-width: 1200px) {
    .text-xl-left { text-align: left !important; }
}
/* ============================================
   Typography
   ============================================ */
.h3 { font-size: 1.75rem; font-weight: 300; }
.small { font-size: 0.875em; }
/* ============================================
   Position & Z-Index
   ============================================ */
.position-relative { position: relative; }
.z-index-top { z-index: 10; }
/* ============================================
   Overflow
   ============================================ */
.overflow-hidden { overflow: hidden; }
/* ============================================
   Flexbox Order (only on large screens)
   ============================================ */
@media (min-width: 1056px) {
    .order-lg-1 { order: 1; }
    .order-lg-2 { order: 2; }
}
/* ============================================
   Background & Borders
   ============================================ */
.bg-white { background-color: #fff !important; }
.bg-dark { background-color: #333 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-light { border-color: #dee2e6 !important; }
/* ============================================
   Card Corner (skewed top corner effect)
   ============================================ */
.card-corner {
    position: relative;
    height: 200px;
}
.card-corner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 120px 200px;
    border-color: transparent transparent transparent transparent;
}
/* ============================================
   Background Size Cover
   ============================================ */
.background-size-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ============================================
   Skew Transformations
   ============================================ */
.skew-from-right {
    transform: skewY(-0.5deg);
    transform-origin: right;
}
.skew-from-left {
    transform: skewY(0.5deg);
    transform-origin: left;
}
@media (max-width: 1055px) {
    .skew-from-right-mobile {
        transform: skewY(0);
    }
    .skew-from-left-mobile {
        transform: skewY(0);
    }
}
/* ============================================
   Hero Image Column Height
   ============================================ */
.h-mobile-image {
    min-height: 300px;
}
@media (min-width: 1056px) {
    .h-mobile-image {
        min-height: 540px;
    }
}
/* ============================================
   Min Height Utilities
   ============================================ */
.min-height-sm-96px {
    min-height: 96px;
}
/* ============================================
   List Utilities
   ============================================ */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}
/* ============================================
   Image Fluid
   ============================================ */
.img-fluid {
    max-width: 100%;
    height: auto;
}
/* ============================================
   Font Size Base
   ============================================ */
.font-size-base {
    font-size: 1rem;
}
/* ============================================
   Text Wrap
   ============================================ */
.text-nowrap {
    white-space: nowrap !important;
}
/* ============================================
   Flex Grow
   ============================================ */
.flex-grow-1 {
    flex-grow: 1;
}
/* ============================================
   Scroll Margin (for fixed header offset)
   ============================================ */
.scroll-margin-header {
    scroll-margin-top: 100px;
}
/* ============================================
   Additional Utility Classes
   ============================================ */
/* Text utilities */
.text-dark { color: #333; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Flexbox align-self utilities */
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }
/* Margin utilities - left */
.ml-3 { margin-left: calc(0.35rem * 3) !important; }
.ml-auto { margin-left: auto !important; }
/* Margin utilities - xxl spacing */
.ml-xxl-2 { margin-left: calc(0.35rem * 2) !important; }
/* ============================================
   Responsive Breakpoints
   ============================================ */
/* Large screens (lg): >= 992px */
@media (min-width: 992px) {
    .ml-lg-3 { margin-left: calc(0.35rem * 3) !important; }
    .ml-lg-xxl-2 { margin-left: calc(0.35rem * 2) !important; }
}
/* Extra extra large screens (xxl): >= 1200px */
@media (min-width: 1200px) {
    .d-xxl-inline { display: inline !important; }
    .d-xxl-inline-block { display: inline-block !important; }
    .d-xxl-inline-flex { display: inline-flex !important; }
    .d-xxl-block { display: block !important; }
    .d-xxl-flex { display: flex !important; }
}
/* ==========================================================================
   Lambda-Inspired Admin Panel Styles
   Paratroopers Fieldkit
   ========================================================================== */
/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    font-size: 16.8px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #e0e0e8;
    background-color: #0a0a0f;
    overflow-x: hidden;
}
a {
    color: #e8491d;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #f47b50;
}
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-top: 0;
    font-weight: 500;
}
img {
    max-width: 100%;
}
/* --------------------------------------------------------------------------
   Layout: Vertical Menu Modern
   -------------------------------------------------------------------------- */
.vertical-layout {
    display: flex;
    min-height: 100vh;
}
/* --------------------------------------------------------------------------
   Sidebar / Main Menu
   -------------------------------------------------------------------------- */
.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 1031;
    background-color: #0d0d14;
    border-right: 1px solid #1f1f2e;
    transition: width 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.main-menu .navbar-header {
    padding: calc(0.35rem * 2) calc(0.35rem * 3);
    height: 62px;
    display: flex;
    align-items: center;
    background-color: #0d0d14;
    flex-shrink: 0;
    border-bottom: 1px solid #1f1f2e;
    gap: 0.5rem;
}
.main-menu .navbar-header .view-site-link {
    margin-left: auto;
    color: #64748b;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
}
.main-menu .navbar-header .view-site-link:hover {
    color: #ffffff;
}
.main-menu .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
}
.main-menu .brand-logo {
    flex-shrink: 0;
}
.main-menu .brand-logo svg {
    stroke: #e8491d;
}
.main-menu .brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.main-menu .menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem 0;
}
.main-menu .menu-content::-webkit-scrollbar {
    width: 6px;
}
.main-menu .menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}
.main-menu .menu-content::-webkit-scrollbar-thumb {
    background: rgba(241, 90, 36, 0.4);
}
.main-menu .menu-content::-webkit-scrollbar-thumb:hover {
    background: #e8491d;
}
/* Navigation list */
.navigation {
    list-style: none;
    margin: 0;
    padding: 0;
}
.navigation .nav-item {
    margin: 0;
}
.navigation .nav-item > a {
    display: flex;
    align-items: center;
    padding: calc(0.35rem * 2.5) calc(0.35rem * 5);
    color: #fff;
    gap: 0.75rem;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
    border-radius: 0;
}
.navigation .nav-item > a i,
.navigation .nav-item > a svg {
    flex-shrink: 0;
    color: #fff;
    stroke: #fff;
    transition: color 0.2s, stroke 0.2s;
}
.navigation .nav-item > a:hover {
    color: #0d0d14;
    background-color: #fff;
}
.navigation .nav-item > a:hover i,
.navigation .nav-item > a:hover svg {
    color: #0d0d14;
    stroke: #0d0d14;
}
.navigation .nav-item.active > a {
    color: #0d0d14;
    background-color: #fff;
    border-right: 2px solid #fff;
}
.navigation .nav-item.active > a i,
.navigation .nav-item.active > a svg {
    color: #0d0d14;
    stroke: #0d0d14;
}
.navigation .navigation-header {
    padding: 0.5rem 1.75rem 0.25rem;
    margin-top: 0;
}
.navigation .navigation-header span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
}
.navigation .menu-group-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}
.navigation .menu-group-toggle:hover span {
    color: #fff;
}
.navigation .menu-group-chevron {
    font-size: 10px;
    color: #cbd5e1;
    transition: transform 0.2s ease;
}
.navigation .menu-group-toggle:hover .menu-group-chevron {
    color: #fff;
}
.navigation .menu-group-toggle.collapsed .menu-group-chevron {
    transform: rotate(-90deg);
}
.navigation .menu-group-item.collapsed {
    display: none;
}
/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.header-navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 300px;
    z-index: 1030;
    background-color: #0a0a0f;
    border-bottom: 1px solid #1f1f2e;
    transition: left 0.2s ease;
    height: 62px;
}
.header-navbar .navbar-wrapper {
    height: 100%;
}
.header-navbar .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 calc(0.35rem * 6);
}
.header-navbar .navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-navbar .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #e0e0e8;
    line-height: 0;
}
.header-navbar .navbar-page-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.header-navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.navbar-dropdown {
    position: relative;
}
.navbar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #e0e0e8;
    transition: background-color 0.2s;
    border-radius: 0;
}
.navbar-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
.navbar-dropdown-toggle.nav-user-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    background-color: rgba(241, 90, 36, 0.1);
    color: #e8491d;
}
.navbar-dropdown-toggle.nav-user-icon:hover {
    background-color: rgba(241, 90, 36, 0.18);
}
.navbar-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    background-color: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    padding: 4px 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.navbar-dropdown-menu-right {
    left: auto;
    right: 0;
}
.navbar-dropdown.open .navbar-dropdown-menu {
    display: block;
}
.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #e0e0e8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.navbar-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e0e0e8;
}
.navbar-dropdown-item.active {
    color: #e8491d;
}
.navbar-dropdown-item img {
    width: 20px;
    height: auto;
}
/* --------------------------------------------------------------------------
   Content Area
   -------------------------------------------------------------------------- */
.app-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-left: 300px;
    padding-top: 62px;
    min-height: 0;
    transition: margin-left 0.2s ease;
}
.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1029;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.content-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: calc(0.35rem * 8);
    min-height: 0;
    min-width: 0;
}
body.vertical-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: calc(0.35rem * 6);
    flex-wrap: wrap;
    gap: calc(0.35rem * 3);
}
.content-header-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: calc(0.35rem * 2);
    font-size: 0.8rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: calc(0.35rem * 2);
    color: #4b5563;
}
.breadcrumb-item a {
    color: #e0e0e8;
}
.breadcrumb-item a:hover {
    color: #e8491d;
}
.content-header-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    background-color: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    margin-bottom: 2rem;
    transition: border-color 0.2s;
}
.card:hover {
    border-color: #2a2a3a;
}
.card-header {
    padding: calc(0.35rem * 5) calc(0.35rem * 6) 0;
    background-color: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}
.card-body {
    padding: calc(0.35rem * 5) calc(0.35rem * 6);
}
.card-footer {
    padding: calc(0.35rem * 5) calc(0.35rem * 6);
    border-top: 1px solid #1f1f2e;
    background-color: transparent;
}
/* Statistic cards - dashboard */
.statistics-card {
    position: relative;
    overflow: hidden;
}
.statistics-card .card-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.statistics-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0;
    flex-shrink: 0;
}
.statistics-card .stat-icon svg {
    width: 20px;
    height: 20px;
}
.statistics-card .stat-icon.bg-primary {
    background-color: rgba(241, 90, 36, 0.12);
    color: #e8491d;
}
.statistics-card .stat-icon.bg-primary svg {
    stroke: #e8491d;
}
.statistics-card .stat-icon.bg-success {
    background-color: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}
.statistics-card .stat-icon.bg-success svg {
    stroke: #22c55e;
}
.statistics-card .stat-icon.bg-warning {
    background-color: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.statistics-card .stat-icon.bg-warning svg {
    stroke: #f59e0b;
}
.statistics-card .stat-icon.bg-info {
    background-color: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}
.statistics-card .stat-icon.bg-info svg {
    stroke: #06b6d4;
}
.statistics-card .stat-icon.bg-danger {
    background-color: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.statistics-card .stat-icon.bg-danger svg {
    stroke: #ef4444;
}
.statistics-card .stat-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}
.statistics-card .stat-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}
/* --------------------------------------------------------------------------
   Grid System (simple)
   -------------------------------------------------------------------------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}
.col {
    flex: 1;
    padding: 0 0.75rem;
}
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 0.75rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 0.75rem; }
/* Responsive grid columns (full-width on mobile, sized on md+) */
.col-md-3, .col-md-4, .col-md-8 {
    flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem;
}
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
    .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
}
/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #111118;
    border-radius: 0;
    border: 1px solid #1f1f2e;
}
.table-responsive {
    overflow: auto clip;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    border-bottom: none;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(241, 90, 36, 0.4);
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #e8491d;
}
.cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
thead {
    background-color: rgba(255, 255, 255, 0.03);
}
thead th {
    padding: calc(0.35rem * 3) calc(0.35rem * 4);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    text-align: left;
    border-bottom: 1px solid #1f1f2e;
    white-space: nowrap;
}
thead th.sortable-th {
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    transition: color 0.2s;
}
thead th.sortable-th:hover {
    color: #ffffff;
}
thead th.sort-active {
    color: #e8491d;
}
.sort-indicator {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}
tbody td {
    padding: calc(0.35rem * 3) calc(0.35rem * 4);
    border-bottom: 1px solid #1f1f2e;
    font-size: 0.9rem;
    vertical-align: middle;
    color: #e0e0e8;
}
tbody tr:last-child td {
    border-bottom: none;
}
tbody tr:hover {
    background-color: rgba(241, 90, 36, 0.04);
}
.search-highlight {
    background: rgba(241, 90, 36, 0.25);
    color: #f47b50;
    padding: 1px 2px;
}
th.actions-header {
    position: sticky;
    right: 0;
    z-index: 3;
    background-color: #111118;
    border-left: 1px solid #1f1f2e;
}
td.actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: #111118;
    border-left: 1px solid #1f1f2e;
    white-space: nowrap;
}
td.actions .actions-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
tbody tr:hover td.actions {
    background-color: #13131b;
}
/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: calc(0.35rem * 2.5) calc(0.35rem * 5);
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    text-decoration: none;
}
.btn-primary, button[type="submit"] {
    background-color: #fff;
    color: #0a0a0f;
    border-width: 2px;
    border-style: solid;
    border-top-color: #3b82f6;
    border-right-color: #22c55e;
    border-bottom-color: #eab308;
    border-left-color: #ef4444;
}
.btn-primary:hover, button[type="submit"]:hover {
    background-color: #e8491d;
    color: #fff;
    border-color: #e8491d;
    box-shadow: 0 0 20px rgba(241, 90, 36, 0.4);
}
.btn-success {
    background-color: #22c55e;
    color: #fff;
    border-color: #22c55e;
}
.btn-success:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}
.btn-danger {
    background-color: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.btn-danger:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.btn-outline-primary {
    background-color: transparent;
    color: #e8491d;
    border-color: #1f1f2e;
}
.btn-outline-primary:hover {
    background-color: rgba(241, 90, 36, 0.1);
    border-color: #e8491d;
    color: #f47b50;
}
.btn-sm {
    padding: calc(0.35rem * 2) calc(0.35rem * 2.5);
    font-size: 0.8rem;
}
/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.content-body > form {
    max-width: 600px;
}
.form-group {
    margin-bottom: calc(0.35rem * 4);
}
label {
    display: block;
    margin-bottom: calc(0.35rem * 2);
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: calc(0.35rem * 2.5) calc(0.35rem * 3);
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    background-color: #111118;
    color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #e8491d;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}
input[type="text"]::-moz-placeholder, input[type="email"]::-moz-placeholder, input[type="password"]::-moz-placeholder, input[type="search"]::-moz-placeholder, textarea::-moz-placeholder {
    color: #4b5563;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: #4b5563;
}
select option {
    background-color: #111118;
    color: #ffffff;
}
input[type="checkbox"] {
    accent-color: #e8491d;
    width: 16px;
    height: 16px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e0e0e8;
    text-transform: none;
    letter-spacing: normal;
}
/* --------------------------------------------------------------------------
   Alerts / Flash Messages
   -------------------------------------------------------------------------- */
.alert {
    padding: calc(0.35rem * 3) calc(0.35rem * 5);
    border-radius: 0;
    margin-bottom: calc(0.35rem * 4);
    font-size: 0.9rem;
}
.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.alert-error, .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.alert-info {
    background-color: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.alert-message {
    margin: 0;
}
/* --------------------------------------------------------------------------
   Entity Cards Grid (Dashboard)
   -------------------------------------------------------------------------- */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.entity-card {
    background-color: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    display: block;
    color: #e0e0e8;
}
.entity-card:hover {
    transform: translateY(-2px);
    border-color: #e8491d;
    color: #e0e0e8;
}
.entity-card .entity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background-color: rgba(241, 90, 36, 0.1);
    margin: 0 auto calc(0.35rem * 4);
}
.entity-card .entity-icon svg {
    stroke: #e8491d;
    width: 22px;
    height: 22px;
}
.entity-card .entity-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}
.entity-card .entity-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    padding: 0;
    margin: 1rem 0;
    justify-content: center;
}
.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0;
    font-size: 0.85rem;
    color: #e0e0e8;
    background-color: #111118;
    border: 1px solid #1f1f2e;
    transition: all 0.2s;
}
.pagination li a:hover {
    background-color: rgba(241, 90, 36, 0.1);
    color: #e8491d;
    border-color: #e8491d;
}
.pagination li.active span {
    background-color: #e8491d;
    color: #fff;
    border-color: #e8491d;
}
/* --------------------------------------------------------------------------
   Sidenav Overlay (mobile)
   -------------------------------------------------------------------------- */
.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1029;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
/* --------------------------------------------------------------------------
   Responsive: Tablet and below
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .main-menu {
        transform: translateX(-100%);
    }

    .header-navbar {
        left: 0;
    }

    .header-navbar .menu-toggle {
        display: block;
    }

    .app-content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        margin-left: 0;
        padding-top: 62px;
        min-height: 0;
        min-width: 0;
    }

    body.vertical-layout {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .content-wrapper {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        min-height: 0;
    }

    .footer {
        margin-left: 0;
    }

    body.menu-open .main-menu {
        transform: translateX(0);
    }

    body.menu-open .sidenav-overlay {
        opacity: 1;
        visibility: visible;
    }

    .col-4, .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 576px) {
    .content-wrapper {
        padding: 1rem;
    }

    .entity-grid {
        grid-template-columns: 1fr;
    }

    .col-4, .col-3, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-header {
        flex-direction: column;
    }

    .content-header-title {
        font-size: 1.2rem;
    }
}
/* Autocomplete badge remove button */
.autocomplete-selected {
    display: flex;
    flex-wrap: wrap;
    gap: calc(0.35rem * 2);
}
.autocomplete-item {
    display: inline-flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    padding: calc(0.35rem * 1.5) calc(0.35rem * 3);
    background-color: rgba(241, 90, 36, 0.1);
    color: #f47b50;
    border: 1px solid rgba(241, 90, 36, 0.2);
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.4;
}
.autocomplete-item .remove-item {
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}
.autocomplete-item .remove-item:hover {
    color: #f87171;
}
/* Autocomplete wrapper positioning */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.mt-3 { margin-top: calc(0.35rem * 3); }
/* Autocomplete dropdown container */
.autocomplete-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background-color: #161620;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-top: 0.35rem;
    padding: calc(0.35rem * 2) 0;
    display: none;
    z-index: 2000;
}
.autocomplete-dropdown .autocomplete-option {
    padding: calc(0.35rem * 2) calc(0.35rem * 4);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    white-space: nowrap;
    color: #e0e0e8;
}
.autocomplete-dropdown .autocomplete-option:hover,
.autocomplete-dropdown .autocomplete-option.active {
    background-color: rgba(241, 90, 36, 0.08);
    color: #ffffff;
}
.floating-label-wrapper {
    position: relative;
    width: 100%;
}
.floating-label-wrapper input,
.floating-label-wrapper select,
.floating-label-wrapper .multiple-entity-autocomplete-container {
    min-height: 50px;
}
.floating-label-wrapper .floating-label {
    position: absolute;
    top: 50%;
    left: calc(0.35rem * 3);
    transform: translateY(-50%) skew(-15deg);
    pointer-events: none;
    color: #4b5563;
    background: transparent;
    transition: all 0.2s ease;
    z-index: 1;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    margin: 0;
}
.floating-label-wrapper input:not(:-moz-placeholder) ~ .floating-label, .floating-label-wrapper textarea:not(:-moz-placeholder) ~ .floating-label, .floating-label-wrapper .multiple-entity-autocomplete-container:not(:-moz-placeholder) ~ .floating-label {
    top: 0;
    left: calc(0.35rem * 3);
    transform: translateY(-50%) skew(0deg);
    padding: 0 5px;
    background: #111118;
    color: #e8491d;
    font-size: 0.75rem;
    font-weight: 600;
}
.floating-label-wrapper input:focus ~ .floating-label,
.floating-label-wrapper input:not(:placeholder-shown) ~ .floating-label,
.floating-label-wrapper input.has-values ~ .floating-label,
.floating-label-wrapper select:focus ~ .floating-label,
.floating-label-wrapper select.has-value ~ .floating-label,
.floating-label-wrapper textarea:focus ~ .floating-label,
.floating-label-wrapper textarea:not(:placeholder-shown) ~ .floating-label,
.floating-label-wrapper .multiple-entity-autocomplete-container:focus ~ .floating-label,
.floating-label-wrapper .multiple-entity-autocomplete-container:not(:placeholder-shown) ~ .floating-label,
.floating-label-wrapper .multiple-entity-autocomplete-container.has-values ~ .floating-label,
.floating-label-wrapper .floating-label.floated {
    top: 0;
    left: calc(0.35rem * 3);
    transform: translateY(-50%) skew(0deg);
    padding: 0 5px;
    background: #111118;
    color: #e8491d;
    font-size: 0.75rem;
    font-weight: 600;
}
.input-icon-wrapper.floating-label-wrapper .floating-label {
    margin-left: 2rem;
}
.input-icon-wrapper .input-icon {
    position: absolute;
    left: calc(0.35rem * 3);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #4b5563;
}
.input-icon-wrapper input {
    padding-left: calc(0.35rem * 10) !important;
}
.input-icon-wrapper input + .floating-label {
    left: calc(0.35rem * 10);
}
.input-icon-wrapper input:not(:-moz-placeholder) ~ .floating-label {
    left: calc(0.35rem * 10);
}
.input-icon-wrapper input:focus ~ .floating-label,
.input-icon-wrapper input:not(:placeholder-shown) ~ .floating-label {
    left: calc(0.35rem * 10);
}
/* --------------------------------------------------------------------------
   Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0f;
    padding: 2rem;
}
.auth-wrapper {
    width: 100%;
    max-width: 900px;
}
.auth-card {
    display: flex;
    background: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    overflow: hidden;
    min-height: 520px;
}
.auth-card-left {
    flex: 1;
    background: #0d0d14;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-right: 1px solid #1f1f2e;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.auth-brand svg {
    stroke: #e8491d;
}
.auth-brand h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}
.auth-illustration {
    margin-bottom: 2rem;
}
.auth-tagline {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}
.auth-card-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form-header {
    margin-bottom: 2rem;
    text-align: center;
}
.auth-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem;
}
.auth-form-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}
.auth-form {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    color: #4b5563;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1f1f2e;
}
.dev-tools {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.btn-block {
    width: 100%;
}
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-card-left {
        padding: 2rem;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #1f1f2e;
    }

    .auth-illustration {
        display: none;
    }

    .auth-card-right {
        padding: 2rem;
    }
}
/* Trumbowyg richtext editor — dark theme matching the admin inputs */
.trumbowyg-box,
.trumbowyg-editor {
    width: 100%;
}
.trumbowyg-box {
    border: 1px solid #1f1f2e !important;
    background: #111118;
    margin-top: 0 !important;
    /* Establish a positioning context so absolute modals / overlays land
       inside the editor instead of falling through to <body>. Trumbowyg's
       own stylesheet doesn't set this. */
    position: relative !important;
}
.trumbowyg-box.trumbowyg-editor-visible:focus-within {
    border-color: #e8491d !important;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}
.trumbowyg-box textarea {
    display: none !important;
}
.trumbowyg-button-pane {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 !important;
    padding: 4px 6px !important;
    background-color: #0d0d14 !important;
    border-color: #1f1f2e !important;
    border-bottom: 1px solid #1f1f2e !important;
    min-height: 0 !important;
}
/* Trumbowyg's stylesheet draws two horizontal pseudo lines across the toolbar
   (matching its own light-theme styling). Hide them so we're not left with
   stray pale strips. */
.trumbowyg-button-pane::before,
.trumbowyg-button-pane::after {
    display: none !important;
}
/* Subtle vertical dividers between button groups so the toolbar reads as
   semantic clusters instead of one long row of icons. */
.trumbowyg-button-pane .trumbowyg-button-group {
    display: flex;
    align-items: center;
    padding: 0 4px;
    position: relative;
}
.trumbowyg-button-pane .trumbowyg-button-group:not(:last-child)::after {
    content: "" !important;
    position: relative !important;
    display: inline-block !important;
    width: 1px !important;
    height: 18px !important;
    background: #1f1f2e !important;
    margin: 0 2px 0 6px !important;
    top: auto !important;
}
/* Drop the divider on the right-aligned group (fullscreen) — it's already
   visually separated by the auto-margin space. */
.trumbowyg-button-pane .trumbowyg-right {
    margin-left: auto !important;
}
.trumbowyg-button-pane button {
    width: auto !important;
    height: 26px !important;
    min-width: 26px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #e0e0e8;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background 0.12s, color 0.12s;
}
/* Hover: subtle bg tint, keep the icon colour neutral so the user can tell
   it's a hover, not an applied format. */
.trumbowyg-button-pane button:hover:not(.trumbowyg-disable):not([disabled]) {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}
.trumbowyg-button-pane button:hover:not(.trumbowyg-disable):not([disabled]) svg {
    fill: #fff !important;
}
/* Active: format is currently applied at the cursor — stronger orange tint and
   icon colour, so it stands out clearly vs. hover. */
.trumbowyg-button-pane button.trumbowyg-active {
    background: rgba(241, 90, 36, 0.18) !important;
    color: #e8491d !important;
    box-shadow: inset 0 -2px 0 0 #e8491d !important;
}
.trumbowyg-button-pane button.trumbowyg-active svg {
    fill: #e8491d !important;
}
.trumbowyg-button-pane svg {
    width: 16px;
    height: 16px;
    fill: #e0e0e8;
}
.trumbowyg-editor {
    min-height: 180px;
    padding: 1rem;
    background: #111118;
    border: 0 !important;
    border-radius: 0;
    color: #ffffff;
    outline: none;
}
.trumbowyg-editor:focus {
    outline: none;
}
.trumbowyg-editor a {
    color: #e8491d;
}
.trumbowyg-editor::-moz-placeholder {
    color: #4b5563;
}
.trumbowyg-editor::placeholder,
.trumbowyg-editor[contenteditable=true]:empty:before {
    color: #4b5563;
}
/* Trumbowyg's bundled `.trumbowyg-reset-css` forces the editor body to a light
   #fefefe background with #333 text. Override so the editor body stays dark. */
.trumbowyg-editor.trumbowyg-reset-css {
    color: #ffffff !important;
    background: #111118 !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}
.trumbowyg-editor.trumbowyg-reset-css a {
    color: #e8491d !important;
    text-decoration: underline !important;
}
/* Distinct sizes per header level so users get visible hierarchy when they
   pick H1 / H2 / H3 / H4 from the Formatting dropdown. Trumbowyg's reset
   forces these sizes too — we just keep the cascade visible. */
.trumbowyg-editor.trumbowyg-reset-css h1,
.trumbowyg-editor.trumbowyg-reset-css h2,
.trumbowyg-editor.trumbowyg-reset-css h3,
.trumbowyg-editor.trumbowyg-reset-css h4 {
    color: #ffffff !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}
.trumbowyg-editor.trumbowyg-reset-css h1 { font-size: 1.85rem !important; line-height: 1.2 !important; margin: 0 0 0.6em !important; }
.trumbowyg-editor.trumbowyg-reset-css h2 { font-size: 1.5rem !important; line-height: 1.25 !important; margin: 0 0 0.55em !important; }
.trumbowyg-editor.trumbowyg-reset-css h3 { font-size: 1.2rem !important; line-height: 1.3 !important; margin: 0 0 0.5em !important; }
.trumbowyg-editor.trumbowyg-reset-css h4 { font-size: 1.05rem !important; line-height: 1.35 !important; margin: 0 0 0.5em !important; }
.trumbowyg-editor.trumbowyg-reset-css blockquote {
    color: #9ca3af !important;
    border-left: 3px solid #e8491d !important;
    padding-left: calc(0.35rem * 3) !important;
    margin: 0 0 1em calc(0.35rem * 2) !important;
    font-style: italic !important;
    background: rgba(241, 90, 36, 0.04);
}
.trumbowyg-editor.trumbowyg-reset-css p,
.trumbowyg-editor.trumbowyg-reset-css ol,
.trumbowyg-editor.trumbowyg-reset-css ul,
.trumbowyg-editor.trumbowyg-reset-css div {
    color: #ffffff !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.trumbowyg-editor.trumbowyg-reset-css hr {
    border-top-color: #1f1f2e !important;
}
/* Overlay shown behind modals — already dark from Trumbowyg's dark theme, just nudge it darker. */
.trumbowyg-overlay {
    background-color: rgba(0, 0, 0, 0.55) !important;
}
/* --------------------------------------------------------------------------
   Trumbowyg dropdowns (Formatting, Link, color pickers, etc.)
   -------------------------------------------------------------------------- */
.trumbowyg-dropdown {
    background: #111118 !important;
    border: 1px solid #1f1f2e !important;
    border-radius: 0 !important;
    padding: calc(0.35rem * 1) 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    min-width: 180px !important;
}
.trumbowyg-dropdown button {
    background: transparent !important;
    color: #e0e0e8 !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    padding: calc(0.35rem * 2) calc(0.35rem * 4) !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: calc(0.35rem * 2) !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transition: background 0.12s, color 0.12s !important;
}
.trumbowyg-dropdown button:hover,
.trumbowyg-dropdown button:focus {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
}
/* Dropdown item that matches the format currently applied at the cursor
   (e.g. you're in an H2 → the H2 item lights up) — Trumbowyg marks it with
   `.trumbowyg-active`. */
.trumbowyg-dropdown button.trumbowyg-active {
    background: rgba(241, 90, 36, 0.12) !important;
    color: #e8491d !important;
    box-shadow: inset 3px 0 0 0 #e8491d !important;
}
.trumbowyg-dropdown button svg {
    float: none !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    fill: #e0e0e8 !important;
}
.trumbowyg-dropdown button:hover svg,
.trumbowyg-dropdown button:focus svg {
    fill: #fff !important;
}
.trumbowyg-dropdown button.trumbowyg-active svg {
    fill: #e8491d !important;
}
/* Table size picker dropdown — visible cell grid, compact enough to fit
   without scrolling. */
.trumbowyg-dropdown-table {
    padding: calc(0.35rem * 2) !important;
    min-width: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
.trumbowyg-dropdown-table table {
    border-collapse: separate !important;
    border-spacing: 2px !important;
    margin: 0 auto !important;
}
.trumbowyg-dropdown-table table td {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #1f1f2e !important;
    background: rgba(255, 255, 255, 0.03) !important;
    cursor: pointer;
    transition: background 0.08s, border-color 0.08s;
}
.trumbowyg-dropdown-table table td:hover {
    border-color: rgba(241, 90, 36, 0.5) !important;
}
.trumbowyg-dropdown-table table td.trumbowyg-table-cell-on {
    background: #e8491d !important;
    border-color: #e8491d !important;
}
.trumbowyg-dropdown-table .trumbowyg-table-size {
    text-align: center;
    margin-top: calc(0.35rem * 2);
    font-size: 0.7rem;
    color: #e0e0e8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
/* Color picker dropdowns (cell background + table border) */
.trumbowyg-dropdown-tableCellBackgroundColor,
.trumbowyg-dropdown-tableBorderColor,
.trumbowyg-dropdown-foreColor,
.trumbowyg-dropdown-backColor {
    max-width: 240px !important;
    padding: calc(0.35rem * 2) !important;
    min-width: 0 !important;
}
.trumbowyg-dropdown-tableCellBackgroundColor button,
.trumbowyg-dropdown-tableBorderColor button,
.trumbowyg-dropdown-foreColor button,
.trumbowyg-dropdown-backColor button {
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border: 1px solid #1f1f2e !important;
    margin: 1px !important;
    display: inline-block !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}
.trumbowyg-dropdown-tableCellBackgroundColor button:hover,
.trumbowyg-dropdown-tableBorderColor button:hover,
.trumbowyg-dropdown-foreColor button:hover,
.trumbowyg-dropdown-backColor button:hover {
    border-color: #e8491d !important;
    box-shadow: 0 0 0 1px #e8491d !important;
    transform: scale(1.08);
}
/* --------------------------------------------------------------------------
   Trumbowyg modals (Insert image / Insert link / etc.)
   -------------------------------------------------------------------------- */
/* Trumbowyg's insertImage / insertLink modals are appended outside the editor
   box (somewhere higher in the DOM), so the default absolute-relative-to-box
   positioning collapses to wherever the body lands them. Force viewport-fixed
   centering so they read as a real centered modal regardless of where in the
   DOM they were attached. */
.trumbowyg-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 520px !important;
    height: auto !important;
    min-height: 220px !important;
    z-index: 10001 !important;
}
.trumbowyg-modal-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 520px !important;
    background: #111118 !important;
    border: 1px solid #1f1f2e !important;
    border-radius: 0 !important;
    padding-bottom: 60px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #e0e0e8 !important;
}
.trumbowyg-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
}
.trumbowyg-modal-box .trumbowyg-modal-title {
    color: #ffffff !important;
    border-bottom: 1px solid #1f1f2e !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: calc(0.35rem * 4) 0 calc(0.35rem * 3) !important;
    margin: 0 0 calc(0.35rem * 4) !important;
    background: transparent !important;
}
.trumbowyg-modal-box .trumbowyg-progress {
    background: rgba(255, 255, 255, 0.04) !important;
    height: 2px !important;
    top: 48px !important;
}
.trumbowyg-modal-box .trumbowyg-progress .trumbowyg-progress-bar {
    background: #e8491d !important;
}
.trumbowyg-modal-box .trumbowyg-input-row {
    border: 1px solid #1f1f2e !important;
    background: rgba(255, 255, 255, 0.02) !important;
    margin: calc(0.35rem * 3) calc(0.35rem * 5) !important;
    height: 44px !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.trumbowyg-modal-box .trumbowyg-input-row:focus-within {
    border-color: #e8491d !important;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}
.trumbowyg-modal-box .trumbowyg-input-infos {
    background: transparent !important;
    border-right: 1px solid #1f1f2e !important;
    width: 140px !important;
    padding: 0 calc(0.35rem * 3) !important;
    top: 0 !important;
    bottom: 0 !important;
}
.trumbowyg-modal-box .trumbowyg-input-infos label {
    color: #6b7280 !important;
    line-height: 42px !important;
    height: 42px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    font-weight: 600 !important;
}
.trumbowyg-modal-box label .trumbowyg-input-infos {
    color: #6b7280 !important;
}
.trumbowyg-modal-box label input,
.trumbowyg-modal-box .trumbowyg-input-row input,
.trumbowyg-modal-box input[type="text"],
.trumbowyg-modal-box input[type="url"],
.trumbowyg-modal-box input[type="number"] {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
    width: calc(100% - 140px) !important;
    margin-left: 140px !important;
    height: 42px !important;
    padding: 0 calc(0.35rem * 3) !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    outline: none !important;
}
.trumbowyg-modal-box label.trumbowyg-input-checkbox {
    margin: calc(0.35rem * 2) calc(0.35rem * 4) !important;
    display: flex !important;
    align-items: center !important;
    gap: calc(0.35rem * 2) !important;
}
.trumbowyg-modal-box .error,
.trumbowyg-modal-box label.error input {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
/* Submit / Reset buttons inside modal */
.trumbowyg-modal-box .trumbowyg-modal-button {
    position: absolute !important;
    bottom: calc(0.35rem * 3) !important;
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 calc(0.35rem * 5) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.trumbowyg-modal-box .trumbowyg-modal-submit {
    right: calc(0.35rem * 4) !important;
    background: #e8491d !important;
    color: #fff !important;
    border: 1px solid #e8491d !important;
}
.trumbowyg-modal-box .trumbowyg-modal-submit:hover,
.trumbowyg-modal-box .trumbowyg-modal-submit:focus {
    background: #d94f1d !important;
    border-color: #d94f1d !important;
    box-shadow: 0 0 14px rgba(241, 90, 36, 0.35) !important;
}
.trumbowyg-modal-box .trumbowyg-modal-reset {
    right: calc((0.35rem * 8) + 100px) !important;
    background: transparent !important;
    color: #9ca3af !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.trumbowyg-modal-box .trumbowyg-modal-reset:hover,
.trumbowyg-modal-box .trumbowyg-modal-reset:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
/* SVGs inside modals (e.g. tiny icons) */
.trumbowyg-modal svg {
    fill: #e0e0e8 !important;
    color: #e0e0e8 !important;
}
/* Fullscreen mode — keep the panel dark all the way out */
.trumbowyg-fullscreen {
    background: #0a0a0f !important;
}
.trumbowyg-fullscreen .trumbowyg-box {
    background: #111118 !important;
}
/* Language picker (flag buttons) */
.language-input {
    position: relative;
}
.language-input .language-select {
    display: flex;
    gap: calc(0.35rem * 2);
    margin-top: calc(0.35rem * 3);
}
.language-input .language-select button,
.language-input .language-select .js-language-select-button {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #1f1f2e;
    border-radius: 0;
    padding: calc(0.35rem * 2) calc(0.35rem * 3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.language-input .language-select button:hover {
    border-color: #e8491d;
    background: rgba(241, 90, 36, 0.06);
}
.language-input .language-select button.active {
    border-color: #e8491d;
    background: rgba(241, 90, 36, 0.1);
    box-shadow: 0 0 0 1px #e8491d inset;
}
.language-input .language-select button img {
    display: block;
}
/* --------------------------------------------------------------------------
   Page Editor - Section Editor
   -------------------------------------------------------------------------- */
.section-editor-container {
    position: relative;
    min-height: 100vh;
    background-color: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(0.35rem * 8) calc(0.35rem * 6);
}
.section-editor-content {
    width: 100%;
    max-width: 1000px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(0.35rem * 4);
}
.section-editor-content-header {
    text-align: center;
    margin-bottom: calc(0.35rem * 2);
}
.section-editor-content-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 calc(0.35rem * 2);
}
.section-editor-content-header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}
.section-list {
    display: flex;
    flex-direction: column;
    gap: calc(0.35rem * 4);
}
#dynamic-sections {
    display: flex;
    flex-direction: column;
    gap: calc(0.35rem * 4);
    flex: 1;
}
.section-item {
    position: relative;
    background: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    padding: calc(0.35rem * 6);
    transition: all 0.2s ease;
    cursor: move;
    display: flex;
    align-items: center;
    gap: calc(0.35rem * 3);
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    -webkit-user-drag: element;
}
.section-item:hover {
    border-color: #e8491d;
    transform: translateY(-1px);
}
.section-item.dragging {
    opacity: 0.5;
    border-color: #e8491d;
    border-style: dashed;
}
.section-item.drag-over {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.drop-zone {
    height: calc(0.35rem * 8);
    margin: calc(0.35rem * 2) 0;
    border: 2px dashed #1f1f2e;
    border-radius: 0;
    transition: height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.drop-zone-active {
    height: calc(0.35rem * 14);
    border-color: #e8491d;
    background-color: rgba(241, 90, 36, 0.06);
}
.section-item.locked {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: #1f1f2e;
}
.section-item.locked:hover {
    transform: none;
    border-color: #1f1f2e;
}
.section-item-actions {
    display: flex;
    gap: calc(0.35rem * 2);
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}
.section-item:hover .section-item-actions {
    opacity: 1;
}
.section-item.locked:hover .section-item-actions {
    opacity: 1;
}
.section-item-icon {
    flex-shrink: 0;
    color: #4b5563;
    cursor: grab;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    text-align: center;
}
.section-item-icon i {
    font-size: 1rem;
    line-height: 1;
}
.section-item:hover .section-item-icon {
    color: #e8491d;
}
.section-item.locked .section-item-icon {
    cursor: not-allowed;
    color: #374151;
}
.section-item-icon i,
.section-item-action i {
    font-size: 1.1rem;
    line-height: 1;
}
.section-item-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}
.section-item-action.drag {
    color: #6b7280;
}
.section-item-action.remove {
    color: #ef4444;
}
.section-item-action.drag:hover {
    background: rgba(241, 90, 36, 0.1);
    color: #e8491d;
}
.section-item-action.remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}
.section-item-content {
    display: flex;
    align-items: center;
    gap: calc(0.35rem * 4);
    flex: 1;
}
.section-item-type {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    min-width: 120px;
}
.section-item-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}
.section-item.locked .section-item-title {
    color: #6b7280;
}
.section-editor-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(0.35rem * 4);
    margin-top: auto;
    padding-top: calc(0.35rem * 6);
}
.add-section-btn-wrapper {
    position: relative;
}
.add-section-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    padding: calc(0.35rem * 3) calc(0.35rem * 8);
    background: #e8491d;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.add-section-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(241, 90, 36, 0.4);
    background: #f47b50;
}
.add-section-btn i {
    font-size: 1.1rem;
}
.clear-sections-btn {
    display: inline-flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    padding: calc(0.35rem * 3) calc(0.35rem * 6);
    background: transparent;
    color: #ef4444;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: calc(0.35rem * 3);
}
.clear-sections-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}
.clear-sections-popover {
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 320px;
    background: #161620;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 2000;
    margin-bottom: calc(0.35rem * 4);
    overflow: hidden;
}
.clear-sections-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.clear-sections-popover .popover-body {
    padding: calc(0.35rem * 5);
    display: flex;
    flex-direction: column;
    gap: calc(0.35rem * 4);
}
.clear-sections-popover .popover-text {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}
.clear-sections-popover .popover-checkbox {
    display: flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    color: #e0e0e8;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}
.clear-sections-popover .popover-actions {
    display: flex;
    justify-content: flex-end;
    gap: calc(0.35rem * 2);
}
.btn-clear-confirm {
    display: inline-flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    padding: calc(0.35rem * 2) calc(0.35rem * 5);
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-clear-confirm:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.add-section-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 280px;
    background: #161620;
    border: 1px solid #1f1f2e;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 2000;
    margin-bottom: calc(0.35rem * 4);
    overflow: hidden;
}
.add-section-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}
.add-section-dropdown .dropdown-header {
    padding: calc(0.35rem * 4) calc(0.35rem * 5);
    background: rgba(241, 90, 36, 0.1);
    color: #f47b50;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #1f1f2e;
}
.add-section-dropdown .dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}
.add-section-dropdown .dropdown-item {
    padding: calc(0.35rem * 3) calc(0.35rem * 5);
    display: flex;
    align-items: center;
    gap: calc(0.35rem * 3);
    color: #e0e0e8;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.add-section-dropdown .dropdown-item:hover {
    background: rgba(241, 90, 36, 0.06);
    color: #ffffff;
    border-left-color: #e8491d;
}
.add-section-dropdown .dropdown-item .icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 90, 36, 0.08);
    border-radius: 0;
    flex-shrink: 0;
}
.add-section-dropdown .dropdown-item .icon svg {
    stroke: #e8491d;
    width: 18px;
    height: 18px;
}
.add-section-dropdown .dropdown-item .info {
    flex: 1;
}
.add-section-dropdown .dropdown-item .name {
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0 2px;
    color: #ffffff;
}
.add-section-dropdown .dropdown-item .check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    flex-shrink: 0;
}
.add-section-dropdown .dropdown-item .check i {
    font-size: 0.65rem;
}
.add-section-dropdown .dropdown-item.selected .check {
    display: inline-flex;
}
.section-editor-actions-buttons {
    display: flex;
    gap: calc(0.35rem * 4);
}
.section-editor-actions-buttons a,
.section-editor-actions-buttons button {
    display: inline-flex;
    align-items: center;
    gap: calc(0.35rem * 2);
    padding: calc(0.35rem * 3) calc(0.35rem * 6);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e8;
    border: 1px solid #1f1f2e;
}
.btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.btn-save {
    background: #e8491d;
    color: #fff;
}
.btn-save:hover {
    box-shadow: 0 0 24px rgba(241, 90, 36, 0.4);
    background: #f47b50;
}
/* --------------------------------------------------------------------------
   File Upload Component
   -------------------------------------------------------------------------- */
.file-upload-wrapper {
    margin-bottom: calc(0.35rem * 4);
}
.file-upload-input {
    display: none;
}
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(0.35rem * 8) calc(0.35rem * 6);
    border: 1px dashed #1f1f2e;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.file-upload-label:hover {
    border-color: #e8491d;
    background-color: rgba(241, 90, 36, 0.04);
}
.file-upload-label.drag-over {
    border-color: #22c55e;
    background-color: rgba(34, 197, 94, 0.06);
}
.file-upload-input:focus ~ .file-upload-label {
    border-color: #e8491d;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.08);
}
.file-upload-icon {
    margin-bottom: calc(0.35rem * 3);
    color: #e8491d;
}
.file-upload-icon svg {
    width: 40px;
    height: 40px;
}
.file-upload-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: calc(0.35rem * 1);
}
.file-upload-hint {
    font-size: 0.8rem;
    color: #4b5563;
}
.current-image-preview {
    margin-top: calc(0.35rem * 4);
    display: none;
    flex-direction: column;
    align-items: center;
}
.current-image-preview.has-preview {
    display: flex;
}
.current-image-preview .preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0;
    border: 1px solid #1f1f2e;
    display: block;
}
.file-name {
    margin-top: calc(0.35rem * 2);
    font-size: 0.85rem;
    color: #6b7280;
}
/* Broken image references panel (admin dashboard) */
.broken-images-card {
    border-left: 4px solid #f59e0b;
}
.broken-images-card .card-title {
    color: #f59e0b;
}
.broken-images-card .card-title i {
    margin-right: calc(0.35rem * 2);
}
.broken-images-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.broken-images-list li {
    padding: calc(0.35rem * 2) 0;
    border-bottom: 1px solid #1f1f2e;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(0.35rem * 2);
}
.broken-images-list li:last-child {
    border-bottom: none;
}
.broken-images-list code {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    padding: 2px 6px;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}
/* System (non-uploads) folder chips in the image-select gallery. Tones the
   chip down so user uploads stay the visual default, and system content
   (flags, branding) reads as secondary/read-only. */
.image-folder-chip.is-system:not(.active) {
    background: transparent;
    color: #4b5563;
    border-color: #1f1f2e;
    border-style: dashed;
}
.image-folder-chip.is-system:not(.active):hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e0e0e8;
    border-color: #4b5563;
    box-shadow: none;
}