/* Arenio app shell — extracted from base.html, brand-retokenized */

")
                    format("truetype-variations");
                font-weight: 100 900;
                font-style: normal;
                font-display: swap;
            }

            :root {
                --app-header-height: 70px;
            }

            body {
                font-family: var(--font-main), system-ui, -apple-system,
                    BlinkMacSystemFont, "Segoe UI", sans-serif;
                background-color: var(--gray);
                color: var(--black);
            }
            body.app-header-revealed {
                padding-top: var(--app-header-height);
            }

            h1,
            h2,
            h3,
            h4 {
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                text-transform: uppercase;
            }

            /* Base styles for Django-rendered form fields (e.g. allauth signup, password reset) */
            input[type="text"],
            input[type="email"],
            input[type="password"],
            input[type="url"],
            input[type="number"],
            input[type="date"],
            input[type="time"],
            select,
            textarea {
                width: 100%;
                max-width: 28rem;
                padding: 0.5rem 0.75rem;
                border: 1px solid #d1d5db;
                border-radius: 0;
                font-size: 1rem;
            }
            input:focus,
            select:focus,
            textarea:focus {
                outline: none;
                border-color: var(--main);
                box-shadow: 0 0 0 2px rgba(12, 31, 71, 0.25);
            }

            /* Mobile nav panel: smooth slide transition */
            #nav-panel.nav-panel-transition {
                overflow: hidden;
                transition: max-height 0.3s ease-in-out;
            }
            #nav-panel:not(.nav-panel-open) {
                max-height: 0;
            }
            #nav-panel.nav-panel-open {
                max-height: 20rem;
            }

            /* Custom scrollbar for dropdown panels (e.g. custom selects) */
            .custom-select-scrollbar {
                scrollbar-width: thin;
                scrollbar-color: var(--navy) #f1f5f9;
            }
            /* Keep native selects for form submission, but hide them when wrapped by custom select UI */
            .custom-select-wrapper > select[data-custom-select] {
                display: none !important;
            }
            .custom-select-dropdown-panel {
                z-index: 1500 !important;
                pointer-events: auto;
            }
            .custom-select-backdrop {
                position: fixed;
                inset: 0;
                background: transparent;
                pointer-events: auto;
                z-index: 1499 !important;
            }
            body.bo-backoffice-modal-open .custom-select-dropdown-panel {
                z-index: 1600 !important;
            }
            .custom-select-options [role="option"] {
                transition: background-color 0.15s ease;
            }
            .custom-select-dropdown-panel .custom-select-options [role="option"]:hover,
            .custom-select-dropdown-panel .custom-select-options [role="option"].custom-select-option-selected {
                background-color: #f3f4f6;
            }
            .custom-select-dropdown-panel[data-custom-select-theme="dashboard"] .custom-select-options [role="option"]:hover,
            .custom-select-dropdown-panel[data-custom-select-theme="dashboard"] .custom-select-options [role="option"].custom-select-option-selected {
                background-color: rgba(12, 31, 71, 0.05);
            }
            .custom-select-scrollbar::-webkit-scrollbar {
                width: 8px;
            }
            .custom-select-scrollbar::-webkit-scrollbar-track {
                background: #f1f5f9;
                border-radius: 0;
            }
            .custom-select-scrollbar::-webkit-scrollbar-thumb {
                background-color: var(--navy);
                border-radius: 0;
            }

            /* Global page scrollbar */
            html {
                scrollbar-width: thin;
                scrollbar-color: var(--navy) #f1f5f9;
                overflow-y: scroll;
            }
            html::-webkit-scrollbar {
                width: 10px;
            }
            html::-webkit-scrollbar-track {
                background: #f1f5f9;
                border-radius: 0;
            }
            html::-webkit-scrollbar-thumb {
                background-color: var(--navy);
                border-radius: 0;
            }

            /* Confirm email button (allauth confirm-email page) */
            .confirm-email-btn {
                background-color: var(--navy);
            }
            .confirm-email-btn:hover {
                background-color: var(--court-blue);
            }

            /* Footer: darker purple gradient */
            .footer-dark-gradient {
                background: linear-gradient(90deg, var(--court-blue) 0%, var(--court-blue) 50%, var(--navy) 100%);
            }

            /* Backoffice liquid glass header */
            .backoffice-liquid-header {
                position: relative;
                isolation: isolate;
            }
            .backoffice-liquid-header::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: 0;
                border-radius: 0;
                box-shadow: inset 0 0 6px -3px rgba(255, 255, 255, 0.7);
                background-color: rgba(255, 255, 255, 0);
                pointer-events: none;
            }
            .backoffice-liquid-header::after {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                border-radius: 0;
                backdrop-filter: blur(18px);
                -webkit-backdrop-filter: blur(18px);
                filter: url(#glass-distortion);
                -webkit-filter: url(#glass-distortion);
                pointer-events: none;
            }

            /* Mobile language selector: full-width custom select */
            #lang-form-mobile .custom-select-wrapper {
                width: 100%;
            }
            #lang-form-mobile .custom-select-wrapper > button {
                width: 100%;
            }

            /* Backoffice sidebar shell */
            .backoffice-shell {
                min-height: calc(100vh - 6.25rem);
            }
            .backoffice-layout {
                flex-direction: column;
            }
            @media (min-width: 1024px) {
                .backoffice-layout {
                    flex-direction: row;
                }
            }
            .backoffice-sidebar {
                width: 16rem;
                transition: width 0.2s ease;
            }
            .backoffice-sidebar.is-collapsed {
                width: 5rem;
            }
            .backoffice-sidebar .sidebar-label {
                transition: opacity 0.2s ease;
            }
            .backoffice-sidebar.is-collapsed .sidebar-label {
                opacity: 0;
                pointer-events: none;
            }
            .backoffice-drawer-overlay {
                transition: opacity 0.2s ease;
            }
            .backoffice-drawer {
                transition: width 0.2s ease;
                min-height: calc(100vh - 4rem);
                margin-bottom: 24px;
            }
            .sidebar-drawer-toggle-mobile {
                display: none;
            }
            .backoffice-drawer .drawer-mobile-title {
                display: none;
            }
            @media (max-width: 1023.98px) {
                .backoffice-drawer .drawer-header {
                    display: none;
                }
                .backoffice-drawer {
                    display: block;
                    min-height: 0;
                    height: auto;
                    overflow: hidden;
                    margin-bottom: 0;
                    width: 100%;
                    transition: max-height 0.25s ease, margin-bottom 0.2s ease;
                }
                .backoffice-drawer nav {
                    display: flex;
                    align-items: center;
                    gap: 0.25rem;
                    padding: 0.5rem;
                    overflow-x: auto;
                    overflow-y: hidden;
                    position: relative;
                }
                .sidebar-drawer-toggle-mobile {
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    width: 2.5rem;
                    height: 2.5rem;
                    margin-left: auto;
                    flex: 0 0 auto;
                }
                .backoffice-drawer nav a {
                    justify-content: center;
                    align-items: center;
                    width: 2.5rem;
                    height: 2.5rem;
                    padding: 0;
                    margin: 0;
                    gap: 0;
                    flex: 0 0 auto;
                }
                .backoffice-drawer .drawer-label {
                    opacity: 0;
                    pointer-events: none;
                    width: 0;
                    overflow: hidden;
                }
                .backoffice-drawer.is-open {
                    max-height: 75vh;
                    margin-bottom: 24px;
                }
                .backoffice-drawer.is-open nav {
                    display: block;
                    max-height: calc(75vh - 3.5rem);
                    overflow-y: auto;
                    overflow-x: hidden;
                    padding-top: 3rem;
                }
                .backoffice-drawer.is-open .drawer-mobile-title {
                    display: flex;
                    align-items: center;
                    position: absolute;
                    top: 0.5rem;
                    left: 0.75rem;
                    right: 3.5rem;
                    min-height: 2.5rem;
                    margin: 0;
                }
                .backoffice-drawer.is-open .sidebar-drawer-toggle-mobile {
                    display: inline-flex;
                    position: absolute;
                    top: 0.5rem;
                    right: 0.5rem;
                    margin: 0;
                    z-index: 1;
                }
                .backoffice-drawer.is-open nav a {
                    justify-content: flex-start;
                    width: auto;
                    height: auto;
                    padding: 0.5rem 0.75rem;
                    margin-left: 0;
                    margin-right: 0;
                    gap: 0.75rem;
                }
                .backoffice-drawer.is-open .drawer-label {
                    opacity: 1;
                    pointer-events: auto;
                    width: auto;
                }
            }
            @media (min-width: 1024px) {
                .backoffice-drawer .drawer-header {
                    display: flex;
                }
                .backoffice-drawer {
                    position: sticky;
                    top: 6.25rem;
                    margin-top: 1.5rem;
                    align-self: flex-start;
                    width: 14.5rem;
                    height: calc(100vh - 7.75rem);
                    min-height: calc(100vh - 7.75rem);
                    overflow-y: auto;
                }
            }
            .backoffice-drawer .drawer-label {
                transition: opacity 0.2s ease;
            }
            .backoffice-drawer.is-collapsed {
                width: 5rem;
            }
            .backoffice-drawer.is-collapsed .drawer-header {
                justify-content: center;
            }
            .backoffice-drawer.is-collapsed .drawer-header #sidebar-drawer-close {
                margin-left: auto;
                margin-right: auto;
            }
            .backoffice-drawer.is-collapsed .drawer-header .drawer-label {
                display: none;
            }
            .backoffice-drawer.is-collapsed .drawer-label {
                opacity: 0;
                pointer-events: none;
                width: 0;
                overflow: hidden;
            }
            .backoffice-drawer.is-collapsed nav a {
                justify-content: center;
                align-items: center;
                width: 2.5rem;
                height: 2.5rem;
                padding: 0;
                margin-left: auto;
                margin-right: auto;
                gap: 0;
            }
            .backoffice-drawer nav a {
                min-height: 2.5rem;
            }

            .app-header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                width: 100%;
                box-sizing: border-box;
                height: var(--app-header-height);
                min-height: var(--app-header-height);
                z-index: 1200;
                transform: translateY(0);
                transition: transform 0.24s ease;
                will-change: transform;
                background: linear-gradient(
                    90deg,
                    rgba(18, 19, 23, 0.9) 0%,
                    rgba(27, 29, 34, 0.9) 55%,
                    rgba(18, 19, 23, 0.9) 100%
                );
                border-bottom: 1px solid rgba(255, 255, 255, 0.09);
                box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }
            .app-header.app-header--hidden {
                transform: translateY(-100%);
                pointer-events: none;
            }
            body.app-mobile-menu-open .app-header {
                transform: translateY(0);
                pointer-events: auto;
            }
            body.app-mobile-menu-open {
                padding-top: var(--app-header-height);
            }
            .calendar-schedule-popover-layer {
                z-index: 1300 !important;
            }
            .app-header-inner {
                max-width: 1450px;
                margin: 0 auto;
                height: 100%;
                min-height: 0;
                padding: 0 1.5rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1.25rem;
            }
            .app-header-logo,
            .app-footer-logo,
            .app-mobile-menu-logo {
                color: #fff;
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                font-weight: 800;
                letter-spacing: 0.02em;
                line-height: 1;
                text-decoration: none;
                text-transform: none;
            }
            .app-header-logo {
                font-size: 19px;
                padding-left: 0;
            }
            .app-main-nav {
                display: none;
                margin-left: 1.5rem;
            }
            .app-main-menu {
                display: flex;
                align-items: center;
                gap: 3.8rem;
                margin: 0;
                padding: 0;
                list-style: none;
            }
            .app-main-menu li {
                position: relative;
            }
            .app-main-menu a {
                text-transform: uppercase;
                color: #fff;
                font-size: 17px;
                line-height: 1;
                letter-spacing: 0.01em;
                font-weight: 800;
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                text-decoration: none;
                opacity: 0.98;
                transition: color 260ms ease, transform 260ms ease, opacity 260ms ease;
                will-change: transform;
            }
            .app-main-menu > li > a:hover {
                color: var(--navy); /* Theme purple */
                opacity: 1;
                transform: translateY(-1px);
            }
            .app-main-menu .has-submenu > a > span::after {
                content: " »";
                font-size: 0.8em;
                margin-left: 0.22rem;
                opacity: 0.85;
            }
            .app-main-menu .sub-menu {
                position: absolute;
                /* Align right under the parent link so hover doesn't "gap". */
                top: 100%;
                left: 0;
                min-width: 13rem;
                display: none;
                margin: 0;
                padding: 0.6rem 0;
                list-style: none;
                background: #1f1f23;
                z-index: 60;
                border: 1px solid rgba(255, 255, 255, 0.09);
            }
            .app-main-menu li:hover > .sub-menu {
                display: block;
            }
            .app-main-menu .sub-menu a {
                display: block;
                padding: 0.5rem 0.85rem;
                text-transform: none;
                font-size: 1rem;
                letter-spacing: 0;
                font-weight: 600;
                color: #fff;
            }
            .app-main-menu .sub-menu a:hover {
                background: rgba(255, 255, 255, 0.08);
                color: #fff;
            }
            .app-header-controls {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                margin-left: 1.5rem;
            }
            .app-search-btn,
            .app-mobile-toggle {
                width: 2.75rem;
                height: 2.75rem;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border: none;
                background: transparent;
                color: #fff;
            }
            .app-search-btn svg {
                width: 1.2rem;
                height: 1.2rem;
            }
            .app-mobile-toggle .bar {
                display: block;
                width: 1.15rem;
                height: 2px;
                background: #fff;
                margin: 2px 0;
            }
            body.app-mobile-menu-open {
                overflow: hidden;
            }
            .app-mobile-menu {
                position: fixed;
                inset: 0;
                width: 100%;
                height: 100dvh;
                min-height: 100dvh;
                background: rgba(0, 0, 0, 0.65);
                z-index: 1300;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 220ms ease, visibility 220ms ease;
            }
            .app-mobile-menu.is-open {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }
            .app-mobile-menu-panel {
                width: min(100%, 760px);
                height: 100dvh;
                min-height: 100dvh;
                margin-left: 0;
                margin-right: auto;
                background: #1f1f23;
                overflow-y: auto;
                padding: 1.2rem 2.2rem 1.8rem;
                transform: translateX(-100%);
                transition: transform 250ms ease;
            }
            .app-mobile-menu.is-open .app-mobile-menu-panel {
                transform: translateX(0);
            }
            .app-mobile-menu-panel.is-swipe-dragging,
            .app-sidebar.is-swipe-dragging {
                transition: none !important;
            }
            .app-mobile-menu-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
                margin-bottom: 1.8rem;
                position: relative;
                width: 100%;
            }
            .app-mobile-menu-logo {
                font-size: clamp(1.25rem, 5.5vw, 2.25rem);
                flex: 1 1 auto;
                min-width: 0;
                word-break: break-word;
                line-height: 1.15;
            }
            .app-mobile-menu-close {
                position: relative;
                flex-shrink: 0;
                margin-left: auto;
                width: 2.75rem;
                height: 2.75rem;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border: none;
                background: transparent;
                color: #fff;
                font-size: 1rem;
                line-height: 1;
                font-family: inherit;
                cursor: pointer;
                z-index: 2;
            }
            .app-mobile-menu-close-icon {
                display: inline-block;
                font-size: 2.75rem;
                font-weight: 300;
                line-height: 0.9;
                transition: color 160ms ease;
            }
            .app-mobile-menu-close:hover .app-mobile-menu-close-icon,
            .app-mobile-menu-close:focus-visible .app-mobile-menu-close-icon {
                color: var(--navy);
            }
            .app-mobile-list,
            .app-mobile-list .sub-menu {
                margin: 0;
                padding: 0;
                list-style: none;
            }
            .app-mobile-list {
                display: flex;
                flex-direction: column;
                gap: 0.2rem;
            }
            .app-mobile-list > li > a,
            .app-mobile-list > li > button,
            .app-mobile-link {
                display: block;
                width: 100%;
                border: none;
                background: transparent;
                color: #fff;
                text-align: left;
                text-transform: uppercase;
                text-decoration: none;
                padding: 0.55rem 0;
                font-size: 2.2rem;
                line-height: 1.05;
                letter-spacing: 0.01em;
                font-weight: 800;
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                transition: color 160ms ease;
            }
            .app-mobile-list > li > a:hover,
            .app-mobile-list > li > a:focus-visible,
            .app-mobile-list > li > button:hover,
            .app-mobile-list > li > button:focus-visible,
            .app-mobile-link:hover,
            .app-mobile-link:focus-visible {
                color: var(--navy);
            }
            .app-mobile-list > li > button {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
            .app-mobile-submenu-header {
                display: flex;
                align-items: stretch;
                width: 100%;
                gap: 0;
            }
            .app-mobile-submenu-header > .app-mobile-submenu-title.app-mobile-link {
                flex: 0 0 auto;
                width: fit-content;
                max-width: 100%;
                padding-right: 0.5rem;
            }
            .app-mobile-submenu-header > .submenu-toggle {
                flex: 1 1 auto;
                width: auto;
                min-width: 0;
                display: inline-flex;
                align-items: center;
                justify-content: flex-end;
                padding: 0.55rem 0 0.55rem 1rem;
                margin: 0;
                border: none;
                background: transparent;
                color: #fff;
                cursor: pointer;
            }
            .app-mobile-submenu-header > .submenu-toggle:hover,
            .app-mobile-submenu-header > .submenu-toggle:focus-visible {
                color: var(--navy);
            }
            .app-mobile-list .submenu-indicator {
                font-size: 2.25rem;
                line-height: 0.9;
                color: #fff;
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                font-weight: 300;
                min-width: 1.2rem;
                text-align: center;
                transition: color 160ms ease;
            }
            .app-mobile-list > li > button:hover .submenu-indicator,
            .app-mobile-list > li > button:focus-visible .submenu-indicator {
                color: var(--navy);
            }
            .app-mobile-list li .sub-menu {
                display: none;
                margin: 0.2rem 0 0.75rem;
            }
            .app-mobile-list li .sub-menu a {
                display: block;
                text-decoration: none;
                color: #fff;
                padding: 0.28rem 0;
                font-size: 1.85rem;
                line-height: 1.03;
                text-transform: uppercase;
                letter-spacing: 0.01em;
                font-weight: 700;
                font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
                transition: color 160ms ease;
            }
            .app-mobile-list li .sub-menu a:hover,
            .app-mobile-list li .sub-menu a:focus-visible {
                color: var(--navy);
            }
            .app-mobile-list li.is-open .sub-menu {
                display: block;
            }
            .app-mobile-search {
                margin-top: 2.3rem;
                border: 1px solid rgba(255, 255, 255, 0.55);
                display: flex;
                align-items: center;
                height: 4.35rem;
                padding: 0 1.2rem;
            }
            .app-mobile-search input {
                flex: 1;
                max-width: none;
                border: none;
                background: transparent;
                color: rgba(255, 255, 255, 0.9);
                font-size: 1.6rem;
                line-height: 1;
                padding: 0;
            }
            .app-mobile-search input:focus {
                box-shadow: none;
                border-color: transparent;
            }
            .app-mobile-search input::placeholder {
                color: rgba(255, 255, 255, 0.55);
            }
            .app-mobile-search button {
                border: none;
                background: transparent;
                color: #fff;
                font-size: 1.55rem;
                padding: 0 0.1rem;
            }
            .app-shell {
                min-height: calc(100vh - 6.25rem);
                display: flex;
                align-items: stretch;
            }
            .backoffice-shell .app-shell {
                min-height: 0;
            }
            .app-sidebar {
                /* Layout/behavior owned by css/app_sidebar.css (homepage canonical). */
                width: auto;
                flex: 0 0 auto;
                display: flex;
                flex-direction: column;
                position: fixed;
                overflow: hidden;
            }
            .app-sidebar.is-restoring-state,
            .app-sidebar.is-restoring-state .sidebar-label {
                transition: none !important;
            }
            .app-sidebar.is-restoring-state .app-sidebar-nav,
            .app-sidebar.is-restoring-state .app-sidebar-lang {
                transition: none !important;
            }
            .app-sidebar.is-restoring-state .app-sidebar-submenu,
            .app-sidebar.is-restoring-state .app-sidebar-submenu-inner,
            .app-sidebar.is-restoring-state .app-sidebar-group-chevron {
                transition: none !important;
            }
            .app-sidebar.is-collapsed {
                width: 4.5rem;
                flex-basis: 4.5rem;
            }
            html.app-sidebar-collapsed .app-sidebar {
                width: 4.5rem;
                flex-basis: 4.5rem;
            }
            .app-sidebar-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0.75rem;
                border-bottom: 1px solid #e5e7eb;
                flex-shrink: 0;
            }
            .app-sidebar-title {
                font-size: 0.85rem;
                font-weight: 700;
                text-transform: uppercase;
                color: #4b5563;
                letter-spacing: 0.08em;
            }
            .app-sidebar-title-icons {
                display: none;
                align-items: center;
                gap: 0.35rem;
                margin-right: auto;
                overflow-x: auto;
                overflow-y: hidden;
            }
            .app-sidebar-title-icon-link {
                width: 2.15rem;
                height: 2.15rem;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                color: #374151;
                text-decoration: none;
                flex: 0 0 auto;
            }
            .app-sidebar-title-icon-link.is-active {
                color: var(--volt);
            }
            .app-sidebar-toggle {
                height: 2.25rem;
                width: 2.25rem;
                border: none;
                border-radius: 0.375rem;
                background: transparent;
                color: #374151;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0;
                cursor: pointer;
                transition: background-color 0.15s ease, color 0.15s ease;
            }
            .app-sidebar-toggle:hover {
                border-radius: 0;
                background: #f3f4f6;
                color: #1f2937;
            }
            .app-sidebar-toggle-icon {
                width: 1.25rem;
                height: 1.25rem;
                flex-shrink: 0;
            }
            .app-sidebar-toggle-icon--right {
                display: none;
            }
            .app-sidebar-toggle[aria-expanded="false"] .app-sidebar-toggle-icon--left,
            html.app-sidebar-collapsed .app-sidebar-toggle .app-sidebar-toggle-icon--left {
                display: none;
            }
            .app-sidebar-toggle[aria-expanded="false"] .app-sidebar-toggle-icon--right,
            html.app-sidebar-collapsed .app-sidebar-toggle .app-sidebar-toggle-icon--right {
                display: block;
            }
            .app-sidebar-nav {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                min-height: 0;
                gap: 0.25rem;
                padding: 0.5rem;
                overflow-y: auto;
                overscroll-behavior: contain;
            }
            .app-sidebar-link {
                display: flex;
                align-items: center;
                gap: 0.6rem;
                padding: 0.65rem 0.75rem;
                color: #374151;
                text-decoration: none;
                font-weight: 600;
            }
            .app-sidebar-link-icon {
                width: 1rem;
                text-align: center;
                flex: 0 0 1rem;
                font-size: 1rem;
                line-height: 1;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .app-sidebar-link-icon svg {
                display: block;
                width: 1rem;
                height: 1rem;
            }
            .app-sidebar-link-icon-tennis {
                width: 1rem;
                height: 1rem;
                flex: 0 0 1rem;
            }
            .app-sidebar-link:hover {
                background: #f3f4f6;
            }
            .app-sidebar-link.is-active {
                color: var(--navy);
                background: color-mix(in srgb, var(--volt) 22%, transparent);
            }
            #backoffice-drawer nav a.bo-nav-active,
            #backoffice-sidebar nav a.bo-nav-active {
                color: var(--navy);
            }
            .app-sidebar-backdrop {
                position: fixed;
                inset: 0;
                z-index: 1240;
                background: rgba(15, 23, 42, 0.36);
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 0.2s ease, visibility 0.2s ease;
            }
            .app-sidebar-backdrop.is-visible {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }
            .app-sidebar-fab {
                /* Visibility/position owned by css/app_sidebar.css */
                position: fixed;
                right: 1rem;
                bottom: 1rem;
                width: 3rem;
                height: 3rem;
                border: none;
                border-radius: 0;
                background: var(--navy);
                color: #fff;
                align-items: center;
                justify-content: center;
                box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.14);
                z-index: 1160;
            }
            .app-sidebar-fab i {
                font-size: 1rem;
            }
            .app-sidebar-submenu {
                display: grid;
                grid-template-rows: 1fr;
                transition: grid-template-rows 0.22s ease;
            }
            .app-sidebar-submenu-inner {
                overflow: hidden;
                min-height: 0;
                display: flex;
                flex-direction: column;
                gap: 0.1rem;
                margin-left: 1.1rem;
                border-left: 1px solid #e5e7eb;
                padding-left: 0.35rem;
                opacity: 1;
                transition: opacity 0.18s ease;
            }
            .app-sidebar-group {
                display: flex;
                flex-direction: column;
                gap: 0.1rem;
            }
            .app-sidebar-group-toggle {
                width: 100%;
                margin: 0;
                border: none;
                background: transparent;
                cursor: pointer;
                border-radius: 0;
                text-align: left;
            }
            .app-sidebar-group-toggle:hover,
            .app-sidebar-group-toggle:focus-visible {
                background: #f3f4f6;
            }
            .app-sidebar-group-chevron {
                margin-left: auto;
                font-size: 0.65rem;
                color: #6b7280;
                transition: transform 0.22s ease;
            }
            .app-sidebar-group-toggle.is-active .app-sidebar-group-chevron {
                color: inherit;
            }
            .app-sidebar-group.is-collapsed .app-sidebar-group-chevron {
                transform: rotate(-90deg);
            }
            .app-sidebar-group.is-collapsed .app-sidebar-submenu {
                grid-template-rows: 0fr;
            }
            .app-sidebar-group.is-collapsed .app-sidebar-submenu-inner {
                opacity: 0;
            }
            .app-sidebar-child-link {
                padding: 0.45rem 0.6rem;
                font-size: 0.84rem;
                font-weight: 500;
                color: #4b5563;
            }
            .app-sidebar-child-link .app-sidebar-link-icon {
                width: 0.85rem;
                flex: 0 0 0.85rem;
                font-size: 0.75rem;
            }
            .app-sidebar-section {
                display: flex;
                flex-direction: column;
                gap: 0.25rem;
            }
            .app-sidebar-section-title {
                display: block;
                font-size: 0.68rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.08em;
                color: #6b7280;
                padding: 0 0.55rem;
            }
            .app-sidebar-lang {
                padding: 0.75rem;
                border-top: 1px solid #e5e7eb;
                margin-top: auto;
                flex-shrink: 0;
            }
            .app-sidebar.is-collapsed .sidebar-label,
            .app-sidebar.is-collapsed .app-sidebar-title,
            .app-sidebar.is-collapsed .app-sidebar-lang,
            .app-sidebar.is-collapsed .app-sidebar-section-title,
            .app-sidebar.is-collapsed .app-sidebar-group-chevron {
                display: none;
            }
            .app-sidebar.is-collapsed .app-sidebar-submenu {
                display: none;
                margin-left: 0;
                border-left: 0;
                padding-left: 0;
            }
            html.app-sidebar-collapsed .app-sidebar .sidebar-label,
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-title,
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-lang,
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-section-title,
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-group-chevron {
                display: none;
            }
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-submenu {
                display: none;
                margin-left: 0;
                border-left: 0;
                padding-left: 0;
            }
            .app-sidebar.is-collapsed .app-sidebar-nav {
                /* Ensure the icon links center within the collapsed width */
                padding-left: 0;
                padding-right: 0;
            }
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-nav {
                padding-left: 0;
                padding-right: 0;
            }
            .app-sidebar.is-collapsed .app-sidebar-header {
                /* When collapsed, the title is hidden, so remove horizontal padding
                   to center the toggle button in the remaining width. */
                padding-left: 0;
                padding-right: 0;
                justify-content: center;
            }
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-header {
                padding-left: 0;
                padding-right: 0;
                justify-content: center;
            }
            .app-sidebar.is-collapsed .app-sidebar-link {
                justify-content: center;
                text-align: center;
                padding-left: 0;
                padding-right: 0;
            }
            html.app-sidebar-collapsed .app-sidebar .app-sidebar-link {
                justify-content: center;
                text-align: center;
                padding-left: 0;
                padding-right: 0;
            }
            .app-footer-wrapper {
                margin-top: 2rem;
                background: #04060b;
                color: #fff;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                width: 100%;
                position: relative;
                z-index: 1260;
                padding: 0 !important;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .app-footer-main {
                position: relative;
                min-height: 395px;
                padding: 0;
                overflow: hidden;
                background: #04060b;
            }
            .app-footer-bg-mark {
                position: absolute;
                inset: 0;
                opacity: 1;
                background-image: url("{% static 'images/scm-footer-bg-mark.webp' %}");
                background-repeat: no-repeat;
                background-position: center center;
                background-size: cover;
                filter: brightness(1.2) contrast(0.92);
                pointer-events: none;
            }
            .app-footer-main::before {
                content: none;
            }
            .app-footer-main::after {
                content: none;
            }
            .app-footer-inner {
                position: relative;
                z-index: 1;
                width: min(calc(100% - 30px), 1508px);
                min-height: 395px;
                margin: 0 auto;
                padding: 42px 1rem 0.5rem;
                text-align: center;
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            .app-footer-logo {
                display: inline-block;
                margin-top: 20px;
                font-size: 2rem;
            }
            .app-footer-text {
                margin: 1.25rem auto 0;
                max-width: 58rem;
                color: #ececf1;
                font-size: 16px;
                line-height: 1.38;
            }
            .app-footer-text em {
                display: inline-block;
                margin-bottom: 0.65rem;
                font-size: 16px;
                font-style: italic;
            }
            .app-footer-privacy {
                margin-top: 2.6rem;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                flex-direction: column;
            }
            .app-footer-privacy a {
                color: var(--court-blue);
                text-decoration: none;
                font-size: 16px;
                font-style: italic;
            }
            .app-footer-anpc {
                margin-top: 2rem;
                margin-bottom: 2rem;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                gap: 0.25rem;
            }
            .app-footer-anpc-logo {
                display: inline-block;
                border: 0;
                width: 250px;
                margin: 5px;
                height: auto;
            }
            .app-footer-social {
                margin: 2.95rem 0 1.5rem;
                padding: 0;
                list-style: none;
                display: flex;
                justify-content: center;
                gap: 2.5rem;
            }
            .app-footer-social a {
                color: var(--court-blue);
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 1.25rem;
                height: 1.25rem;
                font-size: 1.05rem;
                transition: color 180ms ease;
            }
            .app-footer-social a:hover,
            .app-footer-social a:focus-visible {
                color: #fff;
            }
            .app-footer-copyright {
                border-top: none;
                text-align: center;
                padding: 0.85rem 1rem !important;
                min-height: 52px;
                font-size: 14px;
                color: #f0f0f3;
                background: inherit;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                box-sizing: border-box;
            }
            .app-footer-copyright p {
                margin: 0 !important;
                line-height: 1.4;
                text-align: center;
            }
            .app-footer-copyright a {
                color: var(--court-blue);
                text-decoration: none;
                transition: color 180ms ease;
            }
            .app-footer-copyright a:hover,
            .app-footer-copyright a:focus-visible {
                color: #fff;
            }
            @media (min-width: 1200px) {
                .app-main-nav {
                    display: block;
                }
                .app-mobile-toggle {
                    display: none;
                }
                .app-mobile-menu {
                    display: none;
                }
            }
            @media (max-width: 1023.98px) {
                :root {
                    --app-header-height: 70px;
                }
                .app-header {
                    min-height: var(--app-header-height);
                }
                .app-header-inner {
                    min-height: 0;
                    height: 100%;
                }
                .app-header-logo {
                    font-size: 19px;
                }
                .app-shell {
                    flex-direction: column;
                }
                .app-sidebar {
                    /* Drawer layout owned by css/app_sidebar.css */
                    margin-top: 0;
                }
                .app-sidebar .app-sidebar-nav {
                    flex: 1 1 auto;
                    min-height: 0;
                    overflow-y: auto;
                }
                .app-sidebar .app-sidebar-nav,
                .app-sidebar .app-sidebar-lang {
                    transition: none;
                    overflow: visible;
                }
                html.app-sidebar-mobile-open body {
                    overflow: hidden;
                }
                .app-mobile-menu-panel {
                    width: 100%;
                    height: 100dvh;
                    min-height: 100dvh;
                    padding: 1rem 1.5rem 1.4rem;
                }
                .app-mobile-menu-logo {
                    font-size: clamp(1.15rem, 5vw, 1.85rem);
                }
                .app-mobile-list > li > a,
                .app-mobile-list > li > button,
                .app-mobile-link {
                    font-size: 2rem;
                }
                .app-mobile-list li .sub-menu a {
                    font-size: 1.6rem;
                }
                .app-mobile-search {
                    height: 3.7rem;
                }
                .app-mobile-search input {
                    font-size: 1.35rem;
                }
            }
        

/* ===== Arenio brand shell overrides (Navy + Volt + Chalk) ===== */
body {
    background-color: var(--chalk);
    color: var(--ink);
}

h1, h2, h3, h4 {
    font-family: var(--font-display), var(--font-main), system-ui, sans-serif;
    color: var(--navy);
}

/* Dark navy headers (backoffice liquid banners, etc.) keep light titles */
.bg-primary.text-white h1,
.bg-primary.text-white h2,
.bg-primary.text-white h3,
.bg-primary.text-white h4,
.backoffice-liquid-header h1,
.backoffice-liquid-header h2,
.backoffice-liquid-header h3,
.backoffice-liquid-header h4,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4 {
    color: var(--chalk) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
    border-radius: var(--radius-sm);
    max-width: 28rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--court-blue);
    box-shadow: 0 0 0 2px rgba(23, 53, 111, 0.22);
}

.app-header {
    background: #fff;
    border-bottom: 1px solid #ECE6DD;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-header-logo,
.app-footer-logo,
.app-mobile-menu-logo {
    color: var(--navy);
    font-family: var(--font-display), system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.app-header-logo .arenio-o,
.app-footer-logo .arenio-o,
.app-mobile-menu-logo .arenio-o {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    flex-shrink: 0;
}

.app-main-menu a {
    color: var(--navy);
    font-family: var(--font-display), system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.app-main-menu > li > a:hover {
    color: var(--court-blue);
}

.app-search-btn,
.app-mobile-toggle {
    color: var(--navy);
}

.app-mobile-toggle .bar {
    background: var(--navy);
}

.app-mobile-menu-panel {
    background: var(--navy);
}

.app-mobile-menu-logo {
    color: var(--chalk);
}

.app-mobile-list a,
.app-mobile-link {
    color: var(--chalk) !important;
}

.app-footer-wrapper {
    background: var(--navy);
    color: var(--chalk);
    padding: 0 !important;
    position: relative;
    z-index: 1260;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem !important;
    min-height: 52px;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

.app-footer-copyright p {
    margin: 0 !important;
    line-height: 1.4;
    text-align: center;
}

.app-footer-logo {
    color: var(--chalk);
}

.app-footer-text,
.app-footer-privacy a,
.app-footer-copyright,
.app-footer-copyright a {
    color: color-mix(in srgb, var(--chalk) 82%, transparent);
}

.app-footer-copyright a:hover,
.app-footer-privacy a:hover {
    color: var(--volt);
}

.footer-dark-gradient {
    background: linear-gradient(90deg, var(--navy) 0%, var(--court-blue) 55%, var(--navy) 100%);
}

.confirm-email-btn {
    background-color: var(--volt);
    color: var(--navy);
    border-radius: var(--radius-sm);
}
.confirm-email-btn:hover {
    background-color: #c5e31a;
    color: var(--navy);
}

.custom-select-scrollbar {
    scrollbar-color: var(--navy) var(--chalk);
}
.custom-select-scrollbar::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background-color: var(--navy);
    border-radius: 6px;
}
html {
    scrollbar-color: var(--navy) var(--chalk);
}

/* Sidebar: Hard Court Navy + Volt on a chalk column */
.app-sidebar {
    background: #fff;
    border-right: 1px solid #ece6dd;
    color: var(--navy);
}

.app-sidebar-header {
    border-bottom-color: #ece6dd;
}

.app-sidebar-title {
    font-family: var(--font-display), system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--navy);
}

.app-sidebar-title-icon-link,
.app-sidebar-toggle {
    color: var(--navy);
    border-radius: 8px;
}

.app-sidebar-toggle:hover {
    background: color-mix(in srgb, var(--volt) 28%, #fff);
    color: var(--navy);
}

.app-sidebar-link {
    color: var(--navy);
    font-family: var(--font-display), system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
}

.app-sidebar-link:hover,
.app-sidebar-group-toggle:hover,
.app-sidebar-group-toggle:focus-visible {
    background: color-mix(in srgb, var(--navy) 5%, #fff);
    color: var(--navy);
}

.app-sidebar a.is-active,
.app-sidebar .is-active > a,
.app-sidebar-link.is-active,
.app-sidebar-link.is-active:hover,
.backoffice-drawer nav a.is-active {
    color: var(--navy);
    border-color: var(--volt);
    background: color-mix(in srgb, var(--volt) 42%, #fff);
}

.app-sidebar-child-link {
    color: var(--slate);
    font-family: var(--font-main), system-ui, sans-serif;
    font-weight: 500;
}

.app-sidebar-child-link.is-active,
.app-sidebar-child-link.is-active:hover {
    color: var(--navy);
    background: color-mix(in srgb, var(--navy) 12%, #fff);
}

.app-sidebar-group-chevron,
.app-sidebar-section-title {
    color: var(--slate);
}

.app-sidebar-section-title {
    font-family: var(--font-display), system-ui, sans-serif;
    letter-spacing: 0.12em;
}

.app-sidebar-submenu-inner {
    border-left-color: #ece6dd;
}

.app-sidebar-lang {
    border-top-color: #ece6dd;
}

.app-sidebar-lang-select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ece6dd;
    border-radius: 8px;
    background: var(--chalk);
    color: var(--navy);
    font-family: var(--font-main), system-ui, sans-serif;
    font-size: 0.875rem;
}

.app-sidebar-backdrop {
    background: rgba(12, 31, 71, 0.42);
}

.app-sidebar-fab {
    background: var(--volt);
    color: var(--navy);
    border-radius: 8px;
}

@media (max-width: 1023.98px) {
    .app-sidebar {
        box-shadow: 0 12px 28px rgba(12, 31, 71, 0.16);
    }
}

.app-footer-endorsement {
    margin: 0.35rem 0 0.75rem;
    font-family: var(--font-main), system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, var(--chalk) 75%, transparent);
    text-transform: none;
}
.app-mobile-menu-close {
    color: var(--chalk);
}
.app-mobile-menu-close-icon {
    color: var(--chalk);
}

.app-mobile-menu-cta {
    display: inline-flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 14px 24px !important;
    min-height: 52px !important;
    border-radius: 12px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}
.app-mobile-menu-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

/* Homepage-matching header density */
.app-header-inner {
    max-width: 1100px;
}
.app-main-menu {
    gap: 1.1rem;
}
.app-header-controls {
    gap: 1.1rem;
}
