:root {
    --app-touch-min: 44px;
    --app-safe-top: env(safe-area-inset-top, 0px);
    --app-safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-safe-left: env(safe-area-inset-left, 0px);
    --app-safe-right: env(safe-area-inset-right, 0px);
    --header-height: 60px;
    --footer-height: 52px;
    --app-primary: #0b5ed7;
    --app-login-end: #212529;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-left: var(--app-safe-left);
    padding-right: var(--app-safe-right);
    padding-bottom: calc(var(--footer-height) + var(--app-safe-bottom));
}

main {
    flex: 1;
}

.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--app-primary, #0d6efd) 0%, var(--app-login-end, #212529) 100%);
}

.page-footer {
    position: fixed;
    left: var(--app-safe-left);
    right: var(--app-safe-right);
    bottom: 0;
    z-index: 200;
    height: calc(var(--footer-height) + var(--app-safe-bottom));
    padding: 0.65rem 0;
    padding-bottom: calc(0.65rem + var(--app-safe-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 249, 250, 0.98);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.page-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.82);
    backdrop-filter: blur(2px);
}

.app-loading-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.14);
}

.app-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.35rem solid rgba(var(--bs-primary-rgb), 0.18);
    border-top-color: var(--app-primary, #0b5ed7);
    border-radius: 50%;
    animation: app-loading-spin 0.8s linear infinite;
}

.app-loading-message {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    text-align: center;
}

@keyframes app-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.menu-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.menu-card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.btn-settings {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #6c757d;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    text-decoration: none;
    z-index: 2;
}

.btn-settings:hover {
    color: var(--app-primary, #0d6efd);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.15);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.recharge-summary {
    text-align: left;
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.balance-box {
    background: #f8f9fa;
    border-radius: 0.85rem;
    padding: 1.25rem;
    height: 100%;
}

.balance-box-bonus {
    background: #fff8e6;
}

.balance-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.balance-credits {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--app-primary, #0d6efd);
    line-height: 1.1;
}

.balance-credits-unit {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.balance-euro {
    display: block;
    font-size: 0.95rem;
    color: #6c757d;
}

.account-display {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 360px;
    margin: 0 auto;
}

.numpad-key {
    min-height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
    touch-action: manipulation;
    user-select: none;
}

.numpad-key:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.numpad-key-action {
    background: #f8f9fa;
    font-size: 1.1rem;
}

.numpad-key-clear {
    background: #fff5f5;
    color: #dc3545;
    font-size: 0.9rem;
}

.numpad-key-correction {
    background: #fff7ed;
    color: #b45309;
    font-size: 0.82rem;
    line-height: 1.1;
    padding: 0 0.25rem;
}

.quick-credits {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    max-width: 360px;
    margin: 0 auto;
}

.quick-credits-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 0 0.15rem;
    color: #212529;
    background: #f8f9fa;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.quick-credits-btn:active {
    background: #e9ecef;
}

.numpad-key-validate {
    background: #198754;
    border-color: #198754;
    color: #fff;
    font-size: 1rem;
}

.numpad-key-validate:active {
    background: #157347;
}

.credits-display {
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
}

.ma-carte-number {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--app-primary, #0d6efd);
    word-break: break-word;
}

.branding-preview {
    display: block;
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: #fff;
}

.branding-preview-favicon {
    max-width: 64px;
    max-height: 64px;
}

.convertisseur-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    min-height: calc(
        100dvh - var(--header-height) - var(--app-safe-top) - var(--footer-height) - var(--app-safe-bottom)
    );
}

.convertisseur-inner {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.convertisseur-settings {
    top: 0;
    right: 0;
}

.convertisseur-title {
    margin-bottom: 1rem;
    padding-right: 2.75rem;
}

.cashless-card {
    width: 100%;
    overflow: hidden;
}

.cashless-content {
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
}

.cashless-field {
    display: grid;
    gap: 0.5rem;
}

.cashless-field label {
    color: #212529;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cashless-input-wrap {
    position: relative;
}

.cashless-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    font-weight: 600;
    z-index: 1;
}

.cashless-input-wrap input {
    height: 52px;
    padding-left: 38px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cashless-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.cashless-key {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    min-height: 52px;
    color: #212529;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.cashless-key:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.cashless-key-cancel {
    color: #dc3545;
    background: #fff5f5;
    border-color: rgba(220, 53, 69, 0.25);
    font-size: 0.95rem;
}

.cashless-key-correction {
    color: #b45309;
    background: #fff7ed;
    border-color: rgba(245, 158, 11, 0.45);
    font-size: 0.8rem;
    line-height: 1.1;
    padding: 0 0.35rem;
}

.cashless-key-correction:active {
    background: #ffedd5;
}

.cashless-key-validate {
    color: #fff;
    background: #198754;
    border-color: #198754;
}

.cashless-key-validate:active {
    background: #157347;
}

.cashless-quick {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.cashless-quick button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 0 0.15rem;
    color: #212529;
    background: #f8f9fa;
    font-size: 0.72rem;
    font-weight: 700;
    touch-action: manipulation;
}

.cashless-quick button:active {
    background: #e9ecef;
}

.cashless-result {
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    background: #f8f9fa;
    display: grid;
    gap: 0.5rem;
}

.cashless-result-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.cashless-helper {
    margin: 0;
    color: #6c757d;
    line-height: 1.4;
    font-size: 0.95rem;
    font-weight: 600;
}

.cashless-price {
    margin: 0;
    font-size: clamp(1.75rem, 5.5vw, 2.35rem);
    font-weight: 700;
    color: var(--app-primary, #0d6efd);
    text-align: right;
}

.cashless-state {
    margin: 0;
    font-size: 0.875rem;
    color: #198754;
    min-height: 1.2em;
}

.cashless-state.error {
    color: #dc3545;
}

.cashless-state:empty {
    display: none;
}

.cashless-rate {
    margin: 0;
    color: #6c757d;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 540px) {
    .cashless-content {
        padding: 1rem;
    }

    .cashless-input-wrap input {
        height: 50px;
    }

    .cashless-quick button {
        font-size: 0.65rem;
    }
}

@media (min-width: 768px) {
    .numpad {
        max-width: 320px;
    }

    .numpad-key {
        min-height: 52px;
    }
}

.intercard-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.95;
    cursor: pointer;
    touch-action: manipulation;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.app-hero {
    background: linear-gradient(135deg, var(--app-primary, #0d6efd) 0%, var(--app-login-end, #212529) 100%);
    color: #fff;
    padding: 1.75rem 0 2.25rem;
    margin-bottom: -1rem;
}

.app-hero h1,
.app-hero p {
    color: #fff;
}

.app-hero .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: var(--app-primary, #0d6efd);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem 0.25rem 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.page-back-link:hover,
.page-back-link:focus-visible {
    color: color-mix(in srgb, var(--app-primary, #0d6efd) 80%, #000);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.app-hero .page-back-link {
    color: rgba(255, 255, 255, 0.92);
}

.app-hero .page-back-link:hover,
.app-hero .page-back-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.page-back-link svg {
    display: block;
    flex-shrink: 0;
}

.app-content {
    position: relative;
    z-index: 1;
}

.navbar-app {
    position: fixed;
    top: 0;
    left: var(--app-safe-left);
    right: var(--app-safe-right);
    z-index: 200;
    background: linear-gradient(135deg, var(--app-primary, #0b5ed7) 0%, var(--app-login-end, #1a1d20) 100%) !important;
    padding-top: max(0.5rem, var(--app-safe-top));
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-spacer {
    height: calc(var(--header-height) + var(--app-safe-top));
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 0.5rem;
}

.brand-logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.login-logo {
    display: block;
    width: min(100%, 340px);
    height: auto;
    margin: 0 auto;
}

.navbar-mobile {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--header-height);
}

.navbar-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    margin-left: auto;
}

.navbar-user {
    display: inline-flex;
    align-items: center;
    min-height: var(--app-touch-min);
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-nav-icon,
.btn-nav-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--app-touch-min);
    min-width: var(--app-touch-min);
    padding: 0 0.5rem;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease;
}

.btn-nav-icon {
    padding: 0;
}

.btn-nav-icon svg {
    display: block;
}

.btn-nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.btn-nav-icon:hover,
.btn-nav-icon:focus-visible,
.btn-nav-text:hover,
.btn-nav-text:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.btn-nav,
.btn-touch,
.site-list-actions .btn,
.navbar-actions .btn,
.mobile-stack-table .btn {
    min-height: var(--app-touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.site-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-left: 0;
    border-right: 0;
}

.site-list-item:first-child {
    border-top: 0;
}

.site-list-item:last-child {
    border-bottom: 0;
}

.site-list-name {
    font-weight: 600;
    color: #212529;
    line-height: 1.35;
}

.site-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.hs-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    min-width: 6rem;
    height: 2rem;
    padding: 0 0.35rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.hs-count-ok {
    background: #198754;
}

.hs-count-alert {
    background: #dc3545;
}

.site-list-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.content-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stat-badge {
    font-size: 0.9rem;
}

.history-message {
    white-space: pre-wrap;
    word-break: break-word;
}

.table td {
    vertical-align: middle;
}

.mac-input {
    min-width: 0;
    width: 100%;
    max-width: 220px;
    font-size: 16px;
}

.qr-reader-box {
    width: 100%;
    min-height: 280px;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #000;
}

.card-reader-wrap {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-scanner-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.card-scanner-line {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: #ff2b2b;
    box-shadow: 0 0 6px rgba(255, 43, 43, 0.95), 0 0 14px rgba(255, 43, 43, 0.45);
}

#card-reader video {
    object-fit: cover;
}

#card-reader #qr-shaded-region {
    border-color: rgba(255, 43, 43, 0.55) !important;
}

#card-reader .scan-region-highlight,
#card-reader .scan-region-highlight-svg {
    display: none !important;
}

@media (max-width: 767.98px) {
    .mac-cell .mac-input {
        max-width: none;
    }
}

.form-control,
.form-select {
    font-size: 16px;
}

.unlock-toast {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(var(--footer-height) + 1rem + var(--app-safe-bottom));
    z-index: 1080;
    display: none;
}

.pwa-install-prompt {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(var(--footer-height) + 1rem + var(--app-safe-bottom));
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    border: 0;
}

.pwa-install-prompt-text {
    flex: 1;
    min-width: 12rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pwa-install-prompt-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-ios-icon {
    display: inline-block;
    font-weight: 700;
}

.mobile-stack-table td.empty-cell::before {
    display: none;
}

@media (max-width: 767.98px) {
    .site-list-item {
        flex-direction: column;
        align-items: stretch;
    }

    .site-list-actions {
        width: 100%;
        align-items: center;
        justify-content: flex-start;
    }

    .site-list-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

    .app-hero h1 {
        font-size: 1.35rem;
    }

    .mobile-stack-table thead {
        display: none;
    }

    .mobile-stack-table tbody,
    .mobile-stack-table tr,
    .mobile-stack-table td {
        display: block;
        width: 100%;
    }

    .mobile-stack-table tr {
        margin-bottom: 0.85rem;
        padding: 0.85rem 1rem;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0.85rem;
    }

    .mobile-stack-table tr.table-empty-row {
        padding: 2rem 1rem;
        text-align: center;
    }

    .mobile-stack-table td {
        border: 0;
        padding: 0.35rem 0;
        text-align: right;
    }

    .mobile-stack-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #6c757d;
        text-align: left;
        max-width: 45%;
        padding-right: 0.75rem;
    }

    .mobile-stack-table td.action-cell {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        text-align: center;
    }

    .mobile-stack-table td.action-cell::before {
        display: none;
    }

    .mobile-stack-table td.action-cell .btn,
    .mobile-stack-table td.action-cell form {
        width: 100%;
    }

    .mobile-stack-table td.action-cell .btn {
        width: 100%;
    }

    .mobile-stack-table td.mac-cell::before {
        float: none;
        display: block;
        max-width: none;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .mobile-stack-table td.mac-cell {
        text-align: left;
    }

    .mobile-stack-table td.mac-cell .mac-input {
        max-width: none;
    }

    .table-responsive {
        overflow: visible;
    }
}

@media (min-width: 768px) {
    .unlock-toast {
        left: auto;
        right: 1.5rem;
        max-width: 320px;
    }
}

.history-tx-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-tx {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    background: #fff;
}

.history-tx-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
}

.history-tx-main {
    flex: 1;
    min-width: 0;
}

.history-tx-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    flex-shrink: 0;
}

.history-tx-aside-refund {
    justify-content: space-between;
}

.history-tx-type {
    display: block;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.35rem;
}

.history-tx-credit {
    border-left: 4px solid var(--app-primary, #0d6efd);
}

.history-tx-comped {
    border-left: 4px solid #fd7e14;
}

.history-tx-game {
    border-left: 4px solid #6f42c1;
}

.history-tx-time {
    font-variant-numeric: tabular-nums;
    color: #6c757d;
    font-size: 0.95rem;
}

.history-tx-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0;
}

.history-tx-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.history-tx-amounts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.history-tx-amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.history-refund-btn {
    white-space: nowrap;
}

.menu-order-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.85rem;
    background: #fff;
}

.menu-order-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.menu-order-label {
    color: #212529;
}

.menu-order-desc {
    font-size: 0.9rem;
}

.menu-order-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.menu-order-actions .btn {
    min-width: 44px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--app-primary) 86%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--app-primary) 86%, #000);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--app-primary) 74%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--app-primary) 74%, #000);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--app-primary) 86%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--app-primary) 86%, #000);
    --bs-btn-disabled-color: var(--app-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--app-primary);
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--app-primary) 65%, #fff);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
