:root {
    --ktv-bg: #07070a;
    --ktv-ink: #0e0e14;
    --ktv-panel: rgba(18, 18, 26, 0.88);
    --ktv-panel-solid: #14141c;
    --ktv-gold: #e0b84a;
    --ktv-gold-soft: #f3d27a;
    --ktv-gold-deep: #a8842a;
    --ktv-wine: #5c1f32;
    --ktv-text: #f4f1ea;
    --ktv-muted: #9b97a3;
    --ktv-line: rgba(224, 184, 74, 0.28);
    --ktv-danger: #e85d5d;
    --ktv-success: #3ecf8e;
    --ktv-radius: 1.15rem;
    --ktv-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Manrope", "Noto Sans", "Noto Sans Lao", "Noto Sans Thai", sans-serif;
    --font-lao: "Noto Sans Lao", "Phetsarath OT", "Saysettha OT", sans-serif;
    --font-vi: "Noto Sans", "Manrope", sans-serif;
    /* Above sidebar (1040) / tabbar (1045) / shell stacking contexts */
    --bs-backdrop-zindex: 2080;
    --bs-modal-zindex: 2090;
}

body > .modal {
    z-index: var(--bs-modal-zindex);
}

body > .modal-backdrop {
    z-index: var(--bs-backdrop-zindex);
}

/* POS add-item overlay — compact, content-sized */
.pos-add-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.75rem, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.pos-add-overlay.is-open,
.pos-add-overlay.is-open[hidden] {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto;
    perspective: 1400px;
}

.pos-add-overlay.is-open .pos-add-overlay__backdrop {
    animation: posOverlayFade 0.22s ease both;
}

.pos-add-overlay.is-open .pos-add-overlay__panel {
    animation: posOverlayRise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pos-add-overlay__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(224, 184, 74, 0.14), transparent 55%),
        rgba(5, 4, 8, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.pos-add-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    height: auto;
    max-height: min(88dvh, 100%);
    display: block;
    border: 1px solid rgba(224, 184, 74, 0.38);
    border-radius: 1.25rem;
    background:
        linear-gradient(165deg, rgba(224, 184, 74, 0.12) 0%, transparent 34%),
        linear-gradient(180deg, #221f2a 0%, #14121a 55%, #100e16 100%);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(224, 184, 74, 0.18) inset;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #fff;
}

.pos-add-overlay__panel.is-wide {
    width: min(420px, 100%);
}

.pos-add-overlay__panel > form {
    display: block;
}

.pos-add-overlay .pos-add__hero {
    padding: 1rem 1.05rem 0.85rem;
    background:
        linear-gradient(135deg, rgba(224, 184, 74, 0.22), rgba(92, 31, 50, 0.2) 58%, transparent),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border-bottom: 1px solid rgba(224, 184, 74, 0.18);
    position: relative;
}

.pos-add-overlay .pos-add__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pos-add-overlay .pos-add__close:hover {
    background: rgba(224, 184, 74, 0.18);
    border-color: rgba(224, 184, 74, 0.4);
}

.pos-add-overlay .pos-add__close:active {
    transform: scale(0.96);
}

.pos-add-overlay .pos-add__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 210, 122, 0.9);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pos-add-overlay .pos-add__name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 2.4rem 0.15rem 0;
    word-break: break-word;
}

.pos-add-overlay .pos-add__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.35rem;
}

.pos-add-overlay .pos-add__price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e0b84a;
    letter-spacing: 0.01em;
}

.pos-add-overlay .pos-add__stock {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.pos-add-overlay .pos-add__stock.is-low {
    background: rgba(232, 93, 93, 0.18);
    color: #ffb4ac;
}

.pos-add-overlay .pos-add__stock.is-out {
    background: rgba(232, 93, 93, 0.28);
    color: #ff8a80;
}

.pos-add-overlay .pos-add__body {
    padding: 1rem 1.05rem 1.1rem;
}

.pos-add-overlay .pos-add__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.35rem;
}

.pos-add-overlay .pos-add__label.mt-2 {
    margin-top: 0.75rem;
}

.pos-add-overlay .form-control,
.pos-add-overlay .form-select {
    min-height: 2.65rem;
    border-radius: 0.8rem;
    background: rgba(8, 7, 12, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pos-add-overlay .form-control:focus,
.pos-add-overlay .form-select:focus {
    border-color: rgba(224, 184, 74, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.16);
    outline: none;
}

.pos-add-overlay .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.pos-add-overlay .pos-add__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pos-add-overlay .pos-add__actions.is-single {
    grid-template-columns: 1fr;
}

.pos-add-overlay .pos-add__cancel {
    min-height: 2.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pos-add-overlay .pos-add__cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.pos-add-overlay .pos-add__cancel:active,
.pos-add-overlay .btn:active {
    transform: scale(0.98);
}

.pos-add-overlay .btn-warning {
    min-height: 2.85rem;
    border-radius: 0.85rem;
    font-weight: 800;
    border: 0;
    box-shadow: 0 10px 24px rgba(224, 184, 74, 0.28);
}

.pos-add-overlay .pos-add__qty-row {
    display: grid;
    grid-template-columns: 2.85rem minmax(0, 1fr) 2.85rem;
    gap: 0.45rem;
    align-items: stretch;
    margin-bottom: 0.2rem;
}

.pos-add-overlay .pos-add__qty-btn {
    min-height: 2.95rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(224, 184, 74, 0.42);
    background: rgba(224, 184, 74, 0.12);
    color: #f3d27a;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease, transform 0.15s ease;
}

.pos-add-overlay .pos-add__qty-btn:active {
    transform: scale(0.96);
    background: rgba(224, 184, 74, 0.22);
}

.pos-add-overlay #m-qty {
    min-height: 2.95rem;
    width: 100%;
    min-width: 0;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    border-radius: 0.85rem;
    border: 2px solid rgba(224, 184, 74, 0.55) !important;
    background: #0a0a10 !important;
    color: #fff !important;
    -moz-appearance: textfield;
    pointer-events: auto;
    user-select: text;
    caret-color: #f3d27a;
}

.pos-add-overlay #m-qty::-webkit-outer-spin-button,
.pos-add-overlay #m-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pos-add-overlay #m-qty:focus {
    border-color: #e0b84a !important;
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.18);
}

.pos-add-overlay .pos-add__field {
    margin-top: 0.75rem;
}

.pos-add-overlay .pos-add__comp {
    margin-top: 0.85rem;
    padding: 0;
    border-radius: 1rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background:
        linear-gradient(180deg, rgba(224, 184, 74, 0.1), rgba(224, 184, 74, 0.03)),
        rgba(12, 10, 16, 0.55);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pos-add-overlay .pos-add__comp.is-on {
    border-color: rgba(240, 215, 140, 0.72);
    box-shadow:
        0 0 0 1px rgba(224, 184, 74, 0.18),
        0 10px 28px rgba(224, 184, 74, 0.18);
    background:
        linear-gradient(180deg, rgba(224, 184, 74, 0.22), rgba(224, 184, 74, 0.06)),
        rgba(18, 14, 8, 0.72);
}

.pos-add-overlay .pos-add__comp-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.75rem 0.8rem;
    cursor: pointer;
    user-select: none;
}

.pos-add-overlay .pos-add__comp-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pos-add-overlay .pos-add__comp-icon {
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f0d78c;
    background: rgba(224, 184, 74, 0.14);
    border: 1px solid rgba(224, 184, 74, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pos-add-overlay .pos-add__comp-icon .ktv-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.pos-add-overlay .pos-add__comp.is-on .pos-add__comp-icon {
    color: #1a1408;
    background: linear-gradient(180deg, #f3d27a, #d4af37);
    border-color: #e0b84a;
    transform: scale(1.04);
}

.pos-add-overlay .pos-add__comp-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.pos-add-overlay .pos-add__comp-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f7e7b4;
    line-height: 1.2;
}

.pos-add-overlay .pos-add__comp-hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.25;
}

.pos-add-overlay .pos-add__comp.is-on .pos-add__comp-hint {
    color: rgba(243, 210, 122, 0.92);
}

.pos-add-overlay .pos-add__comp-switch {
    flex: 0 0 auto;
    width: 2.55rem;
    height: 1.42rem;
    border-radius: 999px;
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pos-add-overlay .pos-add__comp-switch::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.14rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.pos-add-overlay .pos-add__comp.is-on .pos-add__comp-switch {
    background: linear-gradient(180deg, #f3d27a, #d4af37);
    border-color: #e0b84a;
}

.pos-add-overlay .pos-add__comp.is-on .pos-add__comp-switch::after {
    transform: translateX(1.1rem);
    background: #1a1408;
}

.pos-add-overlay .pos-add__comp-toggle:focus-within .pos-add__comp-switch {
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.22);
}

.pos-add-overlay .pos-add__comp-reason {
    padding: 0 0.8rem 0.8rem;
}

.pos-add-overlay .pos-add__comp-reason .pos-add__label {
    margin-top: 0;
}

.pos-comp-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.28rem;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #1a1408;
    background: linear-gradient(180deg, #f3d27a, #d4af37);
    box-shadow: 0 2px 8px rgba(224, 184, 74, 0.28);
}

.pos-add-overlay #m-mods:empty {
    display: none;
}

.pos-add-overlay #m-mods .pos-add__mod {
    padding: 0.55rem 0.65rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    margin-bottom: 0.45rem;
}

.pos-add-overlay #m-mods label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.95rem;
    margin: 0.05rem 0.45rem 0.05rem 0;
    font-size: 0.9rem;
}

.pos-add-overlay .pos-alert {
    border-radius: 0.8rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
}

.pos-add-overlay .pos-alert-danger {
    background: rgba(231, 76, 60, 0.14);
    color: #ffb4ac;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.pos-add-overlay .form-check {
    margin-top: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.pos-add-overlay .form-check-input {
    background-color: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

.pos-add-overlay .form-check-input:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

/* POS payment method tiles (bottom) */
.pos-pay-bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#posPayModal .pos-pay-panel {
    overflow: hidden;
    max-height: min(92dvh, 100%);
    display: flex;
    flex-direction: column;
}

#posPayModal .pos-pay-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    flex: 1 1 auto;
}

#posPayModal .pos-pay-hero {
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem 0.55rem;
}

#posPayModal .pos-pay-hero .pos-add__name {
    font-size: 1.15rem;
    margin: 0;
}

#posPayModal .pos-pay-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.7rem 0.9rem 0.55rem;
}

#posPayModal .pos-pay-methods {
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    grid-template-columns: repeat(auto-fit, minmax(5.8rem, 1fr));
}

#posPayModal .pos-pay-method {
    min-height: 4.45rem;
    padding: 0.5rem 0.3rem;
    gap: 0.32rem;
}

#posPayModal .pos-pay-method__icon {
    width: 1.95rem;
    height: 1.95rem;
}

#posPayModal .pos-pay-method__icon svg {
    width: 1.08rem;
    height: 1.08rem;
}

#posPayModal .pos-pay-method__icon.is-pair {
    display: inline-flex;
    width: auto;
    min-width: 2.55rem;
    height: 1.95rem;
}

#posPayModal .pos-pay-method__icon.is-pair svg {
    width: 0.98rem;
    height: 0.98rem;
}

#posPayModal .pos-pay-method__label {
    font-size: 0.72rem;
}

#posPayModal .pos-pay-split-toggle {
    margin-top: 0.4rem;
    min-height: 2.2rem;
    font-size: 0.8rem;
}

#posPayModal .pos-pay-bottom {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0.65rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(20, 18, 26, 0.92), #14121a);
}

#posPayModal .pos-pay-bottom__actions .pos-add__cancel,
#posPayModal .pos-pay-bottom__actions .btn {
    min-height: 2.55rem;
}

#posPayModal.is-credit .pos-pay-method {
    min-height: 3.55rem;
    padding: 0.35rem 0.25rem;
}

#posPayModal.is-credit .pos-pay-split-toggle {
    display: none;
}

.pos-pay-split-toggle {
    width: 100%;
    margin-top: 0.75rem;
    min-height: 2.55rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(224, 184, 74, 0.45);
    background: rgba(224, 184, 74, 0.08);
    color: #f0d78c;
    font-weight: 750;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
}

.pos-pay-split-toggle:hover {
    background: rgba(224, 184, 74, 0.14);
}

.pos-pay-split-toggle.is-back {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.55rem;
}

.pos-pay-split-lines {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.pos-pay-split-line {
    padding: 0.7rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.pos-pay-split-line__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.pos-pay-chip {
    appearance: none;
    min-height: 2.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.pos-pay-chip.is-on {
    border-color: rgba(224, 184, 74, 0.7);
    background: rgba(224, 184, 74, 0.18);
    color: #fff4d0;
}

.pos-pay-chip__icon {
    display: grid;
    place-items: center;
    color: #f3d27a;
}

.pos-pay-chip__icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.pos-pay-chip__icon.is-pair svg {
    width: 0.92rem;
    height: 0.92rem;
}

.pos-pay-split-line__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: center;
}

.pos-pay-split-remove {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 138, 128, 0.35);
    background: rgba(255, 80, 80, 0.12);
    color: #ffb4ac;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.pos-pay-split-add {
    width: 100%;
    min-height: 2.45rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
}

.pos-pay-split-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#posPayRemainLabel.is-ok {
    color: #8dffb0 !important;
}

#posPayRemainLabel.is-over {
    color: #ff8e8e !important;
}

#posPayQrModal.pos-add-overlay {
    z-index: 10080 !important;
}

.pos-pay-qr__missing {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #ffb4b4;
    text-align: center;
}

/* Bank-app payment QR after check bill — fit one screen, no scroll */
.pos-pay-qr-panel {
    width: min(360px, calc(100vw - 1.5rem)) !important;
    max-height: min(92dvh, 100%) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column;
}

.pos-pay-qr {
    --qr-size: clamp(132px, 26dvh, 188px);
    position: relative;
    padding: 0.85rem 0.95rem 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.pos-pay-qr .pos-add__close {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
}

.pos-pay-qr__icon {
    width: 2.15rem;
    height: 2.15rem;
    margin: 0 auto 0.35rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    background: rgba(224, 184, 74, 0.16);
    border: 1px solid rgba(224, 184, 74, 0.4);
    color: #f3d27a;
    flex: 0 0 auto;
}

.pos-pay-qr__icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.pos-pay-qr__brand {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #7eb6ff;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.pos-pay-qr__payee {
    margin: 0.1rem 0 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    flex: 0 0 auto;
}

.pos-pay-qr__acct {
    margin: 0.05rem 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #7eb6ff;
    word-break: break-all;
    line-height: 1.25;
    flex: 0 0 auto;
}

.pos-pay-qr__title {
    margin: 0 0 0.2rem;
    font-size: clamp(0.98rem, 2.6vw, 1.12rem);
    font-weight: 800;
    color: #fff8e8;
    line-height: 1.25;
    flex: 0 0 auto;
}

.pos-pay-qr__hint {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.58);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
}

.pos-pay-qr__canvas-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.45rem;
    flex: 0 0 auto;
}

.pos-pay-qr__canvas {
    width: var(--qr-size);
    height: var(--qr-size);
    padding: 6px;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.pos-pay-qr__canvas img,
.pos-pay-qr__canvas canvas,
.pos-pay-qr__canvas svg,
.pos-pay-qr__canvas table {
    width: calc(var(--qr-size) - 12px) !important;
    height: calc(var(--qr-size) - 12px) !important;
    display: block;
}

/* qrcode.js hides the canvas after toDataURL and shows an img.
   Keep the canvas — otherwise both nodes end up hidden (blank white box). */
.pos-pay-qr__canvas canvas {
    display: block !important;
}

.pos-pay-qr__canvas canvas + img {
    display: none !important;
}

.pos-pay-qr__amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    background: rgba(224, 184, 74, 0.12);
    border: 1px solid rgba(224, 184, 74, 0.35);
    margin-bottom: 0.4rem;
    flex: 0 0 auto;
}

.pos-pay-qr__amount span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.pos-pay-qr__amount strong {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 800;
    color: #f0d78c;
    font-variant-numeric: tabular-nums;
}

.pos-pay-qr__meta {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.55rem;
    text-align: left;
    flex: 0 0 auto;
}

.pos-pay-qr__meta div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.74rem;
}

.pos-pay-qr__meta span {
    color: rgba(255, 255, 255, 0.45);
}

.pos-pay-qr__meta strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-align: right;
}

.pos-pay-qr__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.pos-pay-qr__actions .pos-confirm__btn {
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.86rem;
}

@media (max-height: 720px) {
    .pos-pay-qr {
        --qr-size: clamp(120px, 22dvh, 160px);
        padding: 0.7rem 0.85rem 0.7rem;
    }
    .pos-pay-qr__icon {
        width: 1.85rem;
        height: 1.85rem;
        margin-bottom: 0.25rem;
    }
    .pos-pay-qr__hint {
        margin-bottom: 0.4rem;
        -webkit-line-clamp: 1;
    }
}

@media (max-height: 620px) {
    .pos-pay-qr {
        --qr-size: clamp(108px, 20dvh, 140px);
    }
    .pos-pay-qr__icon {
        display: none;
    }
    .pos-pay-qr__meta {
        display: none;
    }
}

.pos-pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.pos-pay-method {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 5.4rem;
    padding: 0.65rem 0.4rem;
    border-radius: 0.95rem;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pos-pay-method:hover {
    border-color: rgba(224, 184, 74, 0.45);
    background: linear-gradient(165deg, rgba(224, 184, 74, 0.12), rgba(255, 255, 255, 0.02));
}

.pos-pay-method:active {
    transform: scale(0.97);
}

.pos-pay-method.is-on {
    border-color: rgba(224, 184, 74, 0.75);
    background:
        linear-gradient(165deg, rgba(224, 184, 74, 0.28), rgba(224, 184, 74, 0.08));
    box-shadow:
        0 0 0 1px rgba(224, 184, 74, 0.25) inset,
        0 10px 22px rgba(0, 0, 0, 0.28);
    color: #fff8e8;
}

.pos-pay-method__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3d27a;
}

.pos-pay-method.is-on .pos-pay-method__icon {
    background: rgba(224, 184, 74, 0.22);
    border-color: rgba(224, 184, 74, 0.4);
    color: #ffe6a0;
}

.pos-pay-method__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.pos-pay-method__icon.is-pair,
.pos-pay-chip__icon.is-pair,
.bill-pay__ico.is-pair,
.cr-pay__ico.is-pair {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: auto;
    min-width: 2.55rem;
    padding-inline: 0.38rem;
}

.pay-ico__slash {
    width: 1px;
    height: 0.85rem;
    flex: 0 0 1px;
    background: currentColor;
    opacity: 0.4;
    border-radius: 1px;
}

.pos-pay-method__label {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

.pos-pay-bottom__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.55rem;
}

.pos-pay-bottom__actions .pos-add__cancel,
.pos-pay-bottom__actions .btn {
    min-height: 2.85rem;
    width: 100%;
}

@media (max-width: 380px) {
    .pos-pay-methods {
        gap: 0.4rem;
    }

    .pos-pay-method {
        min-height: 4.9rem;
        padding: 0.5rem 0.3rem;
    }

    .pos-pay-method__label {
        font-size: 0.72rem;
    }
}

/* Merge / confirm dialog — compact, centered, no scroll */
.pos-confirm-overlay {
    z-index: 10060 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.pos-confirm-panel {
    width: min(360px, calc(100vw - 1.5rem)) !important;
    max-width: min(360px, calc(100vw - 1.5rem)) !important;
    max-height: min(86dvh, 100%) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    border-color: rgba(224, 184, 74, 0.48) !important;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(224, 184, 74, 0.12) !important;
}

.pos-confirm-overlay.is-open .pos-confirm-panel {
    animation-name: posOverlayRise !important;
}

.pos-confirm-panel::before {
    display: none !important;
}

.pos-confirm {
    position: relative;
    padding: 0.75rem 0.85rem 0.7rem;
    text-align: center;
    max-height: min(86dvh, 100%);
    overflow: hidden;
}

.pos-confirm__glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 55%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(224, 184, 74, 0.28), transparent 65%);
    pointer-events: none;
}

.pos-confirm__icon {
    position: relative;
    width: 2.65rem;
    height: 2.65rem;
    margin: 0 auto 0.55rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    background:
        linear-gradient(145deg, rgba(224, 184, 74, 0.28), rgba(224, 184, 74, 0.08));
    border: 1px solid rgba(224, 184, 74, 0.45);
    color: #f3d27a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    animation: posConfirmIconIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pos-confirm__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.pos-confirm__eyebrow {
    position: relative;
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 210, 122, 0.78);
}

.pos-confirm__title {
    position: relative;
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff8e8;
}

.pos-confirm__msg {
    position: relative;
    margin: 0 0 0.7rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.86);
}

.pos-confirm__rooms {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.45rem;
    align-items: stretch;
    margin: 0 0 0.75rem;
}

.pos-confirm__room {
    min-width: 0;
    padding: 0.7rem 0.55rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
}

.pos-confirm__room.is-from {
    border-color: rgba(255, 180, 120, 0.35);
    background: linear-gradient(160deg, rgba(255, 160, 90, 0.12), rgba(255, 255, 255, 0.02));
}

.pos-confirm__room.is-to {
    border-color: rgba(224, 184, 74, 0.45);
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.16), rgba(255, 255, 255, 0.02));
}

.pos-confirm__room-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
}

.pos-confirm__room-no {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    word-break: break-word;
}

.pos-confirm__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.1rem;
}

.pos-confirm__arrow span {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.16);
    border: 1px solid rgba(224, 184, 74, 0.4);
    position: relative;
}

.pos-confirm__arrow span::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #f3d27a;
    border-top: 2px solid #f3d27a;
    transform: rotate(45deg) translate(-1px, 1px);
}

.pos-confirm__hint {
    position: relative;
    margin: 0 0 1.15rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
}

.pos-confirm__actions {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 0.45rem;
}

.pos-confirm__btn {
    min-height: 2.55rem;
    border-radius: 0.8rem;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.pos-confirm__btn:active {
    transform: scale(0.98);
}

.pos-confirm__btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
}

.pos-confirm__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pos-confirm__btn--warn {
    background: linear-gradient(180deg, #f0d078 0%, #d4af37 100%);
    border-color: rgba(255, 230, 150, 0.35);
    color: #1a1408;
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.28);
}

.pos-confirm__btn--warn:hover {
    filter: brightness(1.05);
}

.pos-confirm__btn--warn svg {
    width: 1.05rem;
    height: 1.05rem;
}

body.pos-overlay-lock,
body.pos-overlay-lock .ktv-app {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@keyframes posConfirmIconIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 420px) {
    .pos-confirm__rooms {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .pos-confirm__arrow {
        transform: rotate(90deg);
        padding: 0.15rem 0;
    }

    .pos-confirm__actions {
        grid-template-columns: 1fr;
    }
}

@keyframes posOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes posOverlayRise {
    from {
        opacity: 0;
        transform: rotateY(-10deg) translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .pos-add-overlay__panel,
    .pos-add-overlay__panel.is-wide {
        width: min(360px, 100%);
    }
}

@media (max-width: 575.98px) {
    .pos-add-overlay {
        align-items: flex-end;
        padding: 0.4rem;
    }

    .pos-add-overlay__panel,
    .pos-add-overlay__panel.is-wide {
        width: 100%;
        max-height: min(92dvh, 100%);
        border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
    }

    .pos-add-overlay .pos-add__actions {
        grid-template-columns: 1fr 1.25fr !important;
    }

    .pos-add-overlay.is-open .pos-add-overlay__panel {
        animation-name: posOverlaySheet;
    }

    /* Confirm popups stay centered — no bottom-sheet scroll */
    .pos-confirm-overlay.pos-add-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
    }

    .pos-confirm-overlay .pos-confirm-panel,
    .pos-confirm-overlay .pos-add-overlay__panel {
        width: min(360px, calc(100vw - 1.5rem)) !important;
        max-height: min(86dvh, 100%) !important;
        border-radius: 1.15rem !important;
        border-bottom: 1px solid rgba(224, 184, 74, 0.48) !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }

    .pos-confirm-overlay.is-open .pos-confirm-panel,
    .pos-confirm-overlay.is-open .pos-add-overlay__panel {
        animation-name: posOverlayRise !important;
    }

    .pos-confirm-overlay .pos-confirm-panel::before,
    .pos-confirm-overlay .pos-add-overlay__panel::before {
        display: none !important;
    }

    .pos-confirm__actions {
        grid-template-columns: 1fr 1.35fr;
    }
}

@keyframes posOverlaySheet {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lao UI: use Noto Sans Lao for all text (body + headings) */
html[lang="lo"],
html[lang="lo"] body,
body.locale-lo {
    --font-display: var(--font-lao);
    --font-body: var(--font-lao);
    font-family: var(--font-lao);
    letter-spacing: 0;
}

html[lang="lo"] .ktv-brand,
html[lang="lo"] .ktv-brand-sm,
html[lang="lo"] .ktv-sidebar__mark,
html[lang="lo"] .ktv-topbar__title,
html[lang="lo"] .ktv-page-head__title,
html[lang="lo"] .ktv-section-title,
html[lang="lo"] .ktv-kpi__value,
html[lang="lo"] h1,
html[lang="lo"] h2,
html[lang="lo"] h3,
html[lang="lo"] h4,
html[lang="lo"] h5,
html[lang="lo"] h6,
body.locale-lo .ktv-brand,
body.locale-lo .ktv-brand-sm,
body.locale-lo .ktv-sidebar__mark,
body.locale-lo .ktv-topbar__title,
body.locale-lo .ktv-page-head__title,
body.locale-lo .ktv-section-title,
body.locale-lo .ktv-kpi__value,
body.locale-lo h1,
body.locale-lo h2,
body.locale-lo h3,
body.locale-lo h4,
body.locale-lo h5,
body.locale-lo h6,
body.locale-lo .btn,
body.locale-lo .form-control,
body.locale-lo .form-select,
body.locale-lo .nav-link,
body.locale-lo .ktv-side__link,
body.locale-lo .ktv-tab,
body.locale-lo .ktv-lang__btn,
body.locale-lo .ktv-lang__select {
    font-family: var(--font-lao) !important;
}

/* Vietnamese UI: Noto Sans covers ă, ơ, ư, đ and tone marks.
   Slightly smaller type — Vietnamese strings run longer than other locales. */
html[lang="vi"] {
    font-size: 90%;
}

html[lang="vi"],
html[lang="vi"] body,
body.locale-vi {
    --font-display: var(--font-vi);
    --font-body: var(--font-vi);
    font-family: var(--font-vi);
    letter-spacing: 0;
}

html[lang="vi"] .ktv-brand,
html[lang="vi"] .ktv-brand-sm,
html[lang="vi"] .ktv-sidebar__mark,
html[lang="vi"] .ktv-topbar__title,
html[lang="vi"] .ktv-page-head__title,
html[lang="vi"] .ktv-section-title,
html[lang="vi"] .ktv-kpi__value,
html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3,
html[lang="vi"] h4,
html[lang="vi"] h5,
html[lang="vi"] h6,
body.locale-vi .ktv-brand,
body.locale-vi .ktv-brand-sm,
body.locale-vi .ktv-sidebar__mark,
body.locale-vi .ktv-topbar__title,
body.locale-vi .ktv-page-head__title,
body.locale-vi .ktv-section-title,
body.locale-vi .ktv-kpi__value,
body.locale-vi h1,
body.locale-vi h2,
body.locale-vi h3,
body.locale-vi h4,
body.locale-vi h5,
body.locale-vi h6,
body.locale-vi .btn,
body.locale-vi .form-control,
body.locale-vi .form-select,
body.locale-vi .nav-link,
body.locale-vi .ktv-side__link,
body.locale-vi .ktv-tab,
body.locale-vi .ktv-lang__btn,
body.locale-vi .ktv-lang__select {
    font-family: var(--font-vi) !important;
}

@keyframes ktv-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ktv-shimmer {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.7; }
}

@keyframes ktv-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 184, 74, 0.0), var(--ktv-shadow); }
    50% { box-shadow: 0 0 40px rgba(224, 184, 74, 0.12), var(--ktv-shadow); }
}

.ktv-body {
    min-height: 100vh;
    color: var(--ktv-text);
    background: var(--ktv-bg);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

.ktv-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(92, 31, 50, 0.55), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(224, 184, 74, 0.12), transparent 50%),
        radial-gradient(ellipse 40% 35% at 8% 75%, rgba(60, 28, 22, 0.4), transparent 55%),
        linear-gradient(165deg, #07070a 0%, #121018 48%, #09090e 100%);
    z-index: 0;
    pointer-events: none;
}

.ktv-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    animation: ktv-shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

/* Brand */
.ktv-brand {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ktv-gold);
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0;
}

.ktv-brand-sm {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ktv-gold);
    text-transform: uppercase;
}

/* Panels / surfaces */
.ktv-panel {
    background: var(--ktv-panel);
    border: 1px solid var(--ktv-line);
    border-radius: var(--ktv-radius);
    box-shadow: var(--ktv-shadow);
    backdrop-filter: blur(14px);
    animation: ktv-fade-up 0.45s ease both;
}

.ktv-panel--soft {
    background: rgba(16, 16, 22, 0.78);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    animation: none;
}

.ktv-panel-hero {
    animation: ktv-fade-up 0.65s ease both, ktv-glow-pulse 5s ease-in-out infinite;
}

/* Admin page chrome */
.ktv-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.ktv-page-head__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ktv-muted);
}

.ktv-page-head__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 600;
    color: var(--ktv-text);
    letter-spacing: 0.02em;
}

.ktv-page-head__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.ktv-page-head__filters .form-select,
.ktv-page-head__filters .form-control {
    width: auto;
    min-width: 8.5rem;
}

.ktv-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.ktv-quick-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.35);
    background: rgba(224, 184, 74, 0.1);
    color: var(--ktv-gold-soft);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ktv-quick-actions__btn:hover {
    background: rgba(224, 184, 74, 0.2);
    border-color: rgba(224, 184, 74, 0.6);
    color: var(--ktv-gold);
    transform: translateY(-1px);
}

.ktv-quick-actions__btn--ghost {
    background: transparent;
    color: var(--ktv-muted);
    border-color: rgba(255, 255, 255, 0.12);
}

.ktv-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .ktv-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ktv-kpi-grid--compact {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.ktv-kpi {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(14, 14, 20, 0.72);
}

.ktv-kpi--primary {
    border-color: rgba(224, 184, 74, 0.28);
    background:
        linear-gradient(160deg, rgba(224, 184, 74, 0.12), transparent 55%),
        rgba(16, 16, 22, 0.85);
    animation: ktv-fade-up 0.5s ease both;
}

.ktv-kpi__label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ktv-muted);
    margin-bottom: 0.35rem;
}

.ktv-kpi__value {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--ktv-gold);
    line-height: 1.1;
}

.ktv-kpi__value--sm {
    font-size: 1.2rem;
    color: var(--ktv-text);
}

.ktv-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ktv-gold-soft);
    margin: 0 0 0.85rem;
    letter-spacing: 0.03em;
}

.ktv-list-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--ktv-text);
}

.ktv-list-row:last-child {
    border-bottom: 0;
}

.ktv-list-row__meta {
    color: var(--ktv-muted);
    white-space: nowrap;
}

.ktv-list-row--danger {
    color: #ffb0b0;
}

.ktv-list-row--warn {
    color: var(--ktv-gold-soft);
}

.ktv-empty {
    color: var(--ktv-muted);
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.ktv-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.ktv-bars__col {
    flex: 1;
    min-width: 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--ktv-gold-soft), var(--ktv-gold-deep));
    opacity: 0.85;
}

.ktv-live-dot {
    font-size: 0.75rem;
    color: var(--ktv-muted);
}

/* Public hero booking */
.ktv-public-hero {
    min-height: calc(100vh - 5.5rem);
    display: grid;
    align-items: center;
    padding: 1.5rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.ktv-public-hero__copy {
    animation: ktv-fade-up 0.6s ease both;
}

.ktv-public-hero__copy .ktv-brand {
    margin-bottom: 0.85rem;
}

.ktv-public-hero__lead {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    font-weight: 500;
    color: var(--ktv-text);
    line-height: 1.25;
    max-width: 18ch;
    margin-bottom: 0.75rem;
}

.ktv-public-hero__sub {
    color: var(--ktv-muted);
    font-size: 0.98rem;
    max-width: 36ch;
    margin-bottom: 0;
}

.ktv-step-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.ktv-step-pills li {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ktv-gold-soft);
    border: 1px solid rgba(224, 184, 74, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(224, 184, 74, 0.06);
}

/* Forms */
.form-control,
.form-select {
    background-color: rgba(8, 8, 12, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--ktv-text) !important;
    border-radius: 0.7rem !important;
    min-height: 2.65rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ktv-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(224, 184, 74, 0.18) !important;
}

.form-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ktv-muted) !important;
    margin-bottom: 0.4rem;
}

.form-control-sm,
.form-select-sm {
    min-height: 2.15rem;
    border-radius: 0.55rem !important;
}

/* Buttons */
.btn {
    border-radius: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-warning {
    --bs-btn-bg: var(--ktv-gold);
    --bs-btn-border-color: var(--ktv-gold);
    --bs-btn-hover-bg: var(--ktv-gold-soft);
    --bs-btn-hover-border-color: var(--ktv-gold-soft);
    --bs-btn-color: #1a1305;
    --bs-btn-hover-color: #1a1305;
    box-shadow: 0 10px 28px rgba(224, 184, 74, 0.22);
}

.btn-outline-warning {
    --bs-btn-color: var(--ktv-gold);
    --bs-btn-border-color: rgba(224, 184, 74, 0.65);
    --bs-btn-hover-bg: var(--ktv-gold);
    --bs-btn-hover-border-color: var(--ktv-gold);
    --bs-btn-hover-color: #1a1305;
}

.btn-outline-danger {
    --bs-btn-color: #ff8f8f;
    --bs-btn-border-color: rgba(232, 93, 93, 0.55);
}

/* Public / auth top nav (kept for public layout) */
.ktv-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(7, 7, 10, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 184, 74, 0.18) !important;
}

.ktv-nav .navbar-brand {
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--ktv-gold) !important;
}

.ktv-nav .nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(244, 241, 234, 0.78) !important;
    padding: 0.25rem 0.35rem !important;
    border-radius: 0.4rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.ktv-nav .nav-link:hover {
    color: var(--ktv-gold-soft) !important;
    background: rgba(224, 184, 74, 0.08);
}

/* Admin shell + sidebar (desktop-first, fixed chrome) */
.ktv-app {
    --ktv-sidebar-w: 272px;
    --ktv-topbar-h: 64px;
    --ktv-tabbar-h: 64px;
    --ktv-safe-top: env(safe-area-inset-top, 0px);
    --ktv-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ktv-touch: 48px;
}

.ktv-app .ktv-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: block;
}

.ktv-app .ktv-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: var(--ktv-sidebar-w);
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    background:
        linear-gradient(180deg, rgba(224, 184, 74, 0.05), transparent 28%),
        #121218;
    border-right: 1px solid rgba(224, 184, 74, 0.28);
    z-index: 1040;
    overflow: hidden;
}

.ktv-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 1.15rem 1rem 1rem;
    border-bottom: 1px solid rgba(224, 184, 74, 0.16);
}

.ktv-sidebar__logo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    min-width: 0;
}

.ktv-sidebar__mark {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ktv-gold);
    line-height: 1;
}

.ktv-sidebar__name {
    font-size: 0.68rem;
    color: var(--ktv-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.ktv-sidebar__fold {
    appearance: none;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: rgba(224, 184, 74, 0.08);
    color: var(--ktv-gold-soft);
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.ktv-sidebar__fold:hover {
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold);
}
.ktv-sidebar__fold-icon {
    width: 1.15rem;
    height: 1.15rem;
}
.ktv-sidebar__close {
    display: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ktv-muted);
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 0.25rem;
    cursor: pointer;
}

.ktv-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.7rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 184, 74, 0.35) transparent;
}

.ktv-side__group {
    margin-bottom: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ktv-side__group:last-of-type {
    border-bottom: none;
}
.ktv-side__details {
    margin-bottom: 0.2rem;
}

.ktv-side__label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ktv-muted);
    padding: 0.2rem 0.7rem 0.5rem;
}

/* Shared icons */
.ktv-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.2em;
    flex-shrink: 0;
    fill: currentColor;
}

.ktv-icon-text {
    margin-inline-start: 0.35em;
}

.ktv-heading,
.ktv-section-title,
.ktv-kpi__label,
.ktv-quick-actions__btn,
.form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.rooms-chip .ktv-icon,
.pkg-chip .ktv-icon {
    width: 0.95em;
    height: 0.95em;
    opacity: 0.9;
}

.ktv-topbar__title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ktv-topbar__icon {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--ktv-gold-soft);
}

.ktv-topbar__chip {
    gap: 0.35rem;
}

.ktv-side__icon {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.92;
}

.ktv-side__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ktv-side__label-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--ktv-gold-deep);
}

.ktv-side__text {
    min-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn .ktv-icon {
    width: 1.05em;
    height: 1.05em;
}

.ktv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
}

.ktv-empty .ktv-icon {
    width: 2rem;
    height: 2rem;
    opacity: 0.55;
    color: var(--ktv-gold-soft);
}

.ktv-side__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.8rem;
    margin-bottom: 0.18rem;
    border-radius: 0.65rem;
    color: rgba(244, 241, 234, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ktv-side__link:hover {
    color: var(--ktv-gold-soft);
    background: rgba(224, 184, 74, 0.1);
}

.ktv-side__link.is-active {
    color: #1a1305;
    background: linear-gradient(135deg, var(--ktv-gold), var(--ktv-gold-soft));
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(224, 184, 74, 0.18);
}

.ktv-side__link--quiet {
    font-size: 0.8rem;
    color: var(--ktv-muted);
    padding: 0.35rem 0.55rem;
}

.ktv-side__details {
    margin-bottom: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}

.ktv-side__details[open] {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.65rem;
}

.ktv-side__summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    color: var(--ktv-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ktv-side__summary::-webkit-details-marker {
    display: none;
}

.ktv-side__summary::after {
    content: "+";
    color: var(--ktv-gold-deep);
    font-size: 0.95rem;
    line-height: 1;
    margin-inline-start: auto;
}

.ktv-side__details[open] > .ktv-side__summary::after {
    content: "\2212";
}

.ktv-side__summary:hover {
    color: var(--ktv-gold-soft);
    background: rgba(224, 184, 74, 0.06);
}

.ktv-side__details-body {
    padding: 0.15rem 0.35rem 0.45rem;
}

.ktv-sidebar__foot {
    flex-shrink: 0;
    border-top: 1px solid rgba(224, 184, 74, 0.16);
    padding: 0.85rem 0.85rem 1rem;
    background: rgba(8, 8, 12, 0.55);
}

.ktv-sidebar__user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--ktv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.45rem;
}

.ktv-sidebar__foot-actions {
    display: grid;
    gap: 0.25rem;
}

.ktv-side__logout {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(232, 93, 93, 0.35);
    background: rgba(232, 93, 93, 0.08);
    color: #ffb0b0;
    border-radius: 0.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ktv-side__logout:hover {
    background: rgba(232, 93, 93, 0.16);
}

.ktv-app .ktv-main {
    margin-left: var(--ktv-sidebar-w);
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .ktv-app .ktv-sidebar {
        transition: width 0.22s ease;
    }
    .ktv-app .ktv-main {
        transition: margin-left 0.22s ease;
    }
    html.ktv-side-collapsed .ktv-app {
        --ktv-sidebar-w: 76px;
    }
    html.ktv-side-collapsed .ktv-sidebar__name,
    html.ktv-side-collapsed .ktv-side__text,
    html.ktv-side-collapsed .ktv-side__label,
    html.ktv-side-collapsed .ktv-side__summary::after {
        display: none !important;
    }
    html.ktv-side-collapsed .ktv-sidebar__brand {
        flex-direction: column;
        align-items: center;
        padding: 0.85rem 0.4rem 0.7rem;
        gap: 0.55rem;
    }
    html.ktv-side-collapsed .ktv-sidebar__logo {
        align-items: center;
    }
    html.ktv-side-collapsed .ktv-sidebar__mark {
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }
    html.ktv-side-collapsed .ktv-sidebar__nav {
        padding: 0.45rem 0.35rem 0.7rem;
    }
    html.ktv-side-collapsed .ktv-side__group {
        padding-bottom: 0.2rem;
        margin-bottom: 0.45rem;
    }
    html.ktv-side-collapsed .ktv-side__link,
    html.ktv-side-collapsed .ktv-side__summary,
    html.ktv-side-collapsed .ktv-side__logout {
        justify-content: center;
        padding-inline: 0.35rem;
        gap: 0;
    }
    html.ktv-side-collapsed .ktv-side__details-body {
        padding: 0.1rem 0 0.25rem;
    }
    html.ktv-side-collapsed .ktv-sidebar__foot {
        padding: 0.65rem 0.4rem 0.85rem;
    }
    html.ktv-side-collapsed .ktv-sidebar__user {
        justify-content: center;
        margin-bottom: 0.35rem;
    }
    html.ktv-side-collapsed .ktv-side__logout {
        width: 100%;
        justify-content: center;
        padding-inline: 0.3rem;
    }
    html.ktv-side-collapsed .ktv-sidebar__fold-icon {
        transform: scaleX(-1);
    }
}

.ktv-app .ktv-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--ktv-topbar-h);
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.35rem;
    background: rgba(12, 12, 18, 0.92);
    border-bottom: 1px solid rgba(224, 184, 74, 0.28);
    backdrop-filter: blur(12px);
    visibility: visible !important;
    opacity: 1 !important;
}

.ktv-topbar__left,
.ktv-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.ktv-topbar__titles {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.ktv-topbar__brand {
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ktv-gold);
    font-size: 0.95rem;
    line-height: 1;
}

.ktv-topbar__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ktv-text);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ktv-topbar__chip {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.25);
    background: rgba(224, 184, 74, 0.08);
    color: var(--ktv-gold-soft);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ktv-notify {
    position: relative;
    flex: 0 0 auto;
}
.ktv-notify__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f0ebe0;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.ktv-notify__btn:hover,
.ktv-notify.is-open .ktv-notify__btn {
    border-color: rgba(224, 184, 74, 0.55);
    background: rgba(224, 184, 74, 0.12);
    color: #fff;
}
.ktv-notify__icon {
    width: 1.2rem;
    height: 1.2rem;
}
.ktv-notify__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #f0b429, #d4af37);
    color: #1a1408;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px #121218;
    font-variant-numeric: tabular-nums;
}
.ktv-notify__badge.is-on {
    animation: ktv-notify-pulse 1.6s ease-in-out infinite;
}
@keyframes ktv-notify-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.ktv-notify__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: linear-gradient(165deg, #1a1a24 0%, #12121a 80%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 1100;
}
.ktv-notify__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ktv-notify__head strong {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 750;
}
.ktv-notify__mark-all {
    border: none;
    background: transparent;
    color: #f0d78c;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.15rem 0.2rem;
}
.ktv-notify__mark-all:hover { text-decoration: underline; }
.ktv-notify__list {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 6rem;
    max-height: 18rem;
}
.ktv-notify__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--ktv-muted);
    font-size: 0.86rem;
}
.ktv-notify__item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: inherit;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    transition: background .12s;
}
.ktv-notify__item:hover { background: rgba(224, 184, 74, 0.08); }
.ktv-notify__item.is-unread { background: rgba(224, 184, 74, 0.05); }
.ktv-notify__item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.ktv-notify__item-title {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
}
.ktv-notify__dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.3rem;
    border-radius: 50%;
    background: #d4af37;
    flex: 0 0 auto;
}
.ktv-notify__item-body {
    margin-top: 0.2rem;
    color: var(--ktv-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ktv-notify__item-meta {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 650;
}
.ktv-notify__foot {
    display: block;
    padding: 0.7rem 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0d78c;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}
.ktv-notify__foot:hover { background: rgba(224, 184, 74, 0.08); color: #fff; }

@media (max-width: 575.98px) {
    .ktv-notify__panel {
        position: fixed;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top) + 0.35rem);
        right: 0.55rem;
        left: 0.55rem;
        width: auto;
    }
}

.ktv-user {
    position: relative;
    flex: 0 0 auto;
}
.ktv-user__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}
.ktv-user__avatar {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1408;
    background: linear-gradient(145deg, #f0d78c, #d4af37);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.28);
    transition: transform .15s, box-shadow .15s;
}
.ktv-user__btn:hover .ktv-user__avatar,
.ktv-user.is-open .ktv-user__avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}
.ktv-user__avatar--lg {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.15rem;
    flex: 0 0 auto;
}
.ktv-user__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(17.5rem, calc(100vw - 1.5rem));
    border-radius: 1rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: linear-gradient(165deg, #1a1a24 0%, #12121a 80%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 1100;
}
.ktv-user__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(224, 184, 74, 0.06);
}
.ktv-user__who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ktv-user__who strong {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ktv-user__who span {
    color: var(--ktv-muted);
    font-size: 0.76rem;
    font-weight: 650;
}
.ktv-user__menu {
    padding: 0.35rem;
}
.ktv-user__logout {
    margin: 0;
    padding: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ktv-user__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.7rem;
    border: 0;
    background: transparent;
    color: #e8e4dc;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.ktv-user__item .ktv-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    opacity: 0.9;
}
.ktv-user__item:hover {
    background: rgba(224, 184, 74, 0.12);
    color: #fff;
}
.ktv-user__item--danger {
    color: #f0a8a8;
}
.ktv-user__item--danger:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #ffc9c9;
}
@media (max-width: 575.98px) {
    .ktv-user__panel {
        position: fixed;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top) + 0.35rem);
        right: 0.55rem;
        left: auto;
        width: min(17.5rem, calc(100vw - 1.1rem));
    }
}

.ktv-topbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.45rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(224, 184, 74, 0.55);
    background: rgba(224, 184, 74, 0.12);
    cursor: pointer;
}

.ktv-topbar__toggle span {
    display: block;
    height: 2px;
    background: var(--ktv-gold);
    border-radius: 2px;
}

.ktv-content {
    flex: 1;
    padding: 1.35rem 1.35rem 2rem;
    position: relative;
    z-index: 1;
    /* Opacity-only: transform fill-mode would trap position:fixed modals inside content. */
    animation: ktv-fade-in 0.35s ease both;
}

@keyframes ktv-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ktv-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1035;
}

/* Mobile / tablet app chrome */
.ktv-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    min-height: calc(var(--ktv-tabbar-h) + var(--ktv-safe-bottom));
    padding: 0.35rem 0.35rem calc(0.35rem + var(--ktv-safe-bottom));
    background: rgba(10, 10, 14, 0.96);
    border-top: 1px solid rgba(224, 184, 74, 0.28);
    backdrop-filter: blur(16px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    justify-content: space-around;
    align-items: stretch;
    gap: 0.15rem;
}

.ktv-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--ktv-muted);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    min-height: var(--ktv-touch);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border-radius: 0.85rem;
    padding: 0.35rem 0.2rem;
    font: inherit;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ktv-tab__icon {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
}

.ktv-tab__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.ktv-tab__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ktv-tab:active {
    transform: scale(0.96);
}

.ktv-tab.is-active,
.ktv-tab[aria-expanded="true"] {
    color: #1a1305;
    background: linear-gradient(135deg, var(--ktv-gold), var(--ktv-gold-soft));
}

@media (max-width: 991.98px) {
    .ktv-bg::after {
        animation: none;
    }

    .ktv-app .ktv-sidebar {
        width: min(86vw, 320px) !important;
        height: 100% !important;
        height: 100dvh !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(.22, .8, .3, 1);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
        border-radius: 0 1.1rem 1.1rem 0;
        padding-top: var(--ktv-safe-top);
    }

    .ktv-app.sidebar-open .ktv-sidebar {
        transform: translateX(0) !important;
    }

    .ktv-app.sidebar-open .ktv-sidebar-backdrop {
        display: block;
    }

    .ktv-app .ktv-main {
        margin-left: 0;
        min-height: 100dvh;
        padding-bottom: calc(var(--ktv-tabbar-h) + var(--ktv-safe-bottom));
    }

    .ktv-app .ktv-topbar {
        position: sticky;
        top: 0;
        padding-top: calc(0.55rem + var(--ktv-safe-top));
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        min-height: calc(var(--ktv-topbar-h) + var(--ktv-safe-top));
        background: rgba(10, 10, 14, 0.96);
    }

    .ktv-sidebar__fold {
        display: none !important;
    }

    .ktv-sidebar__close {
        display: inline-flex !important;
        min-width: var(--ktv-touch);
        min-height: var(--ktv-touch);
        align-items: center;
        justify-content: center;
    }

    .ktv-topbar__toggle {
        display: none !important;
    }

    .ktv-content {
        padding: 0.95rem 0.85rem calc(1.25rem + var(--ktv-safe-bottom));
    }

    .ktv-topbar__chip {
        display: none;
    }

    .ktv-tabbar {
        display: flex;
    }

    .ktv-side__link,
    .ktv-side__summary,
    .btn,
    .form-control,
    .form-select {
        min-height: var(--ktv-touch);
    }

    .ktv-quick-actions__btn {
        min-height: 2.6rem;
        padding-inline: 1rem;
    }

    .ktv-page-head__filters {
        width: 100%;
    }

    .ktv-page-head__filters .form-select,
    .ktv-page-head__filters .form-control {
        flex: 1;
        min-width: 0;
    }

    /* Compact tables for phones */
    .table-responsive {
        border-radius: 0.9rem;
    }

    .ktv-panel,
    .ktv-panel--soft {
        border-radius: 1rem;
    }
}

/* Tablet: roomier app chrome + 2-column content */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ktv-app {
        --ktv-tabbar-h: 64px;
        --ktv-topbar-h: 56px;
    }

    .ktv-tab__label {
        font-size: 0.72rem;
    }

    .ktv-tab {
        min-width: 0;
        padding-inline: 0.35rem;
    }

    .ktv-content {
        padding: 1rem 1.1rem 1.35rem !important;
    }

    .ktv-app .ktv-sidebar {
        width: min(360px, 40vw) !important;
    }

    .ktv-topbar__title {
        display: none !important;
    }

    .rooms-grid,
    .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .bk-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .bk-card {
        height: 100%;
        align-content: space-between;
    }

    .ktv-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .ktv-kpi-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pos-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pos-grid {
        grid-template-columns: 1.4fr 1fr !important;
        align-items: start;
    }

    .pos-cart-dock {
        position: sticky;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top) + 0.5rem);
        bottom: auto !important;
        max-height: calc(100dvh - var(--ktv-topbar-h) - var(--ktv-tabbar-h) - 2rem);
        overflow: auto;
    }

    .rooms-page__actions,
    .pkg-page__actions,
    .bk-page__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bk-page__actions .btn-warning {
        grid-column: auto;
    }

    .modal.fade .modal-dialog {
        align-items: center;
        max-width: 520px;
        min-height: auto;
        margin: 1.5rem auto;
    }

    .modal-content {
        border-radius: 1.15rem !important;
        padding-bottom: 0;
    }

    .pos-add-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 1.25rem !important;
    }

    .pos-add-overlay__panel,
    .pos-add-overlay__panel.is-wide {
        width: min(440px, 100%) !important;
        border-radius: 1.25rem !important;
        max-height: min(86dvh, 860px);
    }

    .pos-add-overlay__panel::before {
        display: none;
    }
}

/* POS app layout helpers */
.pos-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .pos-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .pos-cart-dock {
        position: sticky;
        bottom: calc(var(--ktv-tabbar-h) + var(--ktv-safe-bottom) + 0.5rem);
        z-index: 5;
    }

    .pos-products {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
    }

    .pos-prod {
        min-height: 96px !important;
    }

    .pos-cat {
        position: sticky;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top));
        z-index: 4;
        background: #07070a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0.35rem 0;
        margin-inline: -0.15rem;
    }
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(224, 184, 74, 0.06);
    --bs-table-color: var(--ktv-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
}

.table-dark thead th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ktv-muted);
    font-weight: 600;
    border-bottom-color: rgba(224, 184, 74, 0.25) !important;
}

/* Alerts */
.alert {
    border-radius: 0.85rem;
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
}

.alert-danger {
    background: rgba(232, 93, 93, 0.12);
    border-color: rgba(232, 93, 93, 0.35);
    color: #ffc9c9;
}

.alert-success {
    background: rgba(62, 207, 142, 0.12);
    border-color: rgba(62, 207, 142, 0.35);
    color: #b8f5d6;
}

/* Links */
a.link-warning,
.link-warning {
    color: var(--ktv-gold-soft) !important;
    text-decoration: none;
}

a.link-warning:hover {
    color: var(--ktv-gold) !important;
    text-decoration: underline;
}

/* Room cards (availability) */
.ktv-room-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .ktv-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ktv-room-card {
    background: rgba(12, 12, 18, 0.75);
    border: 1px solid rgba(224, 184, 74, 0.2);
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    animation: ktv-fade-up 0.5s ease both;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ktv-room-card:hover {
    border-color: rgba(224, 184, 74, 0.55);
    transform: translateY(-2px);
}

.ktv-room-card__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--ktv-gold-soft);
    margin: 0 0 0.15rem;
}

.ktv-room-card__meta {
    color: var(--ktv-muted);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

/* Confirmation / status */
.ktv-confirm {
    text-align: center;
    padding: 2.5rem 1.75rem;
    max-width: 520px;
    margin: 2rem auto;
    animation: ktv-fade-up 0.6s ease both;
}

.ktv-confirm__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    border: 1px solid rgba(224, 184, 74, 0.5);
    display: grid;
    place-items: center;
    color: var(--ktv-gold);
    font-family: var(--font-display);
    font-size: 1.8rem;
    background: rgba(224, 184, 74, 0.08);
}

.ktv-confirm h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ktv-status-chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(224, 184, 74, 0.12);
    color: var(--ktv-gold-soft);
    border: 1px solid rgba(224, 184, 74, 0.35);
}

/* QR menu */
.ktv-qr-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    animation: ktv-fade-up 0.45s ease both;
}

.ktv-qr-head h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--ktv-gold-soft);
}

.ktv-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ktv-menu-item:last-child {
    border-bottom: 0;
}

.ktv-menu-item__name {
    font-weight: 600;
    color: var(--ktv-text);
}

.ktv-menu-item__price {
    font-family: var(--font-display);
    color: var(--ktv-gold);
    font-size: 1.1rem;
}

.ktv-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ktv-service-actions .btn {
    border-radius: 999px;
    font-size: 0.8rem;
}

/* Language switcher — icon + dropdown */
.ktv-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.ktv-lang__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f0ebe0;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.ktv-lang__btn:hover,
.ktv-lang.is-open .ktv-lang__btn {
    border-color: rgba(224, 184, 74, 0.55);
    background: rgba(224, 184, 74, 0.12);
    color: #fff;
}

.ktv-lang__icon {
    width: 1.15rem;
    height: 1.15rem;
}

.ktv-lang__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(11.5rem, calc(100vw - 1.5rem));
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: linear-gradient(165deg, #1a1a24 0%, #12121a 80%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 1100;
    overflow: hidden;
}

.ktv-lang__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.7rem;
    color: #e8e4dc;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background .12s, color .12s;
}

.ktv-lang__item:hover {
    background: rgba(224, 184, 74, 0.12);
    color: #fff;
}

.ktv-lang__item.is-active {
    background: rgba(224, 184, 74, 0.18);
    color: #f0d78c;
}

.ktv-lang__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ktv-lang__item.is-active .ktv-lang__code {
    background: rgba(224, 184, 74, 0.2);
    border-color: rgba(224, 184, 74, 0.35);
    color: #f0d78c;
}

.ktv-lang__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ktv-lang-float {
    position: fixed;
    top: calc(0.85rem + env(safe-area-inset-top, 0px));
    right: 0.85rem;
    z-index: 20;
}

@media (max-width: 575.98px) {
    .ktv-lang__panel {
        position: fixed;
        top: calc(var(--ktv-topbar-h, 52px) + var(--ktv-safe-top, 0px) + 0.35rem);
        right: 0.55rem;
        width: min(11.5rem, calc(100vw - 1.1rem));
    }
    .ktv-lang-float .ktv-lang__panel {
        position: absolute;
        top: calc(100% + 0.45rem);
    }
}
/* Login shell */
.ktv-auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.ktv-auth-card {
    width: min(420px, 100%);
    padding: 2rem 1.75rem;
}

.ktv-pass {
    position: relative;
}
.ktv-pass .form-control {
    padding-right: 2.85rem;
}
.ktv-pass__toggle {
    position: absolute;
    top: 50%;
    right: 0.28rem;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--ktv-muted);
    cursor: pointer;
}
.ktv-pass__toggle:hover,
.ktv-pass__toggle:focus-visible,
.ktv-pass__toggle[aria-pressed="true"] {
    color: var(--ktv-gold-soft);
}
.ktv-pass__toggle:focus-visible {
    outline: 2px solid rgba(224, 184, 74, 0.55);
    outline-offset: 1px;
}
.ktv-pass__toggle .ktv-icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* Page titles in admin */
main.container > .d-flex > h1.h3,
main.container > h1.h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge.text-bg-warning {
    background: rgba(224, 184, 74, 0.2) !important;
    color: var(--ktv-gold-soft) !important;
}

.badge.text-bg-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--ktv-muted) !important;
}

/* Soften default Bootstrap dark tables inside panels */
.ktv-panel .table {
    margin-bottom: 0;
}

.text-warning {
    color: var(--ktv-gold) !important;
}

.text-secondary {
    color: var(--ktv-muted) !important;
}

/* =========================================================
   Global admin polish — lifts every page without markup rewrites
   ========================================================= */

.ktv-content {
    max-width: 1400px;
}

.ktv-content > .container-fluid {
    animation: ktv-fade-in 0.3s ease both;
}

/* Standard page header rows used across ~80 views */
.ktv-content > .container-fluid > .d-flex.justify-content-between,
.ktv-content .container-fluid > .d-flex.justify-content-between {
    gap: 0.85rem 1rem;
    margin-bottom: 1.15rem !important;
    align-items: center;
}

.ktv-content h1.h3,
.ktv-content h1.h4,
.ktv-content .h3.text-light {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ktv-text) !important;
    line-height: 1.25;
}

.ktv-content h1.h3 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.ktv-content h2.h6.text-warning,
.ktv-content .h6.text-warning {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.85rem;
}

/* Panels: calmer, more consistent */
.ktv-content .ktv-panel {
    background: rgba(16, 16, 22, 0.82);
    border: 1px solid rgba(224, 184, 74, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    animation: none;
}

.ktv-content .ktv-panel.p-0 {
    overflow: hidden;
}

.ktv-content .ktv-panel.p-3,
.ktv-content .ktv-panel.p-4 {
    padding: 1.15rem 1.2rem !important;
}

/* Tables */
.ktv-content .table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.015);
    --bs-table-hover-bg: rgba(224, 184, 74, 0.07);
    --bs-table-color: var(--ktv-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
    --bs-table-active-bg: rgba(224, 184, 74, 0.1);
}

.ktv-content .table-dark thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(14, 14, 20, 0.96);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ktv-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(224, 184, 74, 0.22) !important;
    white-space: nowrap;
    padding: 0.85rem 1rem;
}

.ktv-content .table-dark tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.ktv-content .table-dark tbody tr {
    transition: background 0.15s ease;
}

.ktv-content .table-responsive {
    border-radius: inherit;
}

/* Empty rows */
.ktv-content .table td.text-center.text-secondary,
.ktv-content .table .text-center.text-secondary.py-3,
.ktv-content .table .text-center.text-secondary.py-4 {
    padding: 2rem 1rem !important;
    color: var(--ktv-muted) !important;
    font-size: 0.95rem;
}

/* Forms & filters */
.ktv-content .form-control.bg-dark,
.ktv-content .form-select.bg-dark,
.ktv-content .input-group .form-control,
.ktv-content .input-group .form-select {
    background-color: rgba(8, 8, 12, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--ktv-text) !important;
}

.ktv-content form.mb-3 .input-group,
.ktv-content form.row.g-2,
.ktv-content form.row.g-3 {
    margin-bottom: 1rem;
}

.ktv-content form.row.g-2,
.ktv-content .row.g-2.mb-3 {
    background: rgba(14, 14, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 0.85rem;
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.ktv-content label.form-label,
.ktv-content .form-label.text-secondary,
.ktv-content .form-label.small {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ktv-muted) !important;
    margin-bottom: 0.35rem;
}

/* Buttons */
.ktv-content .btn {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.ktv-content .btn-sm {
    min-height: 2.1rem;
}

.ktv-content .btn-warning {
    box-shadow: 0 8px 22px rgba(224, 184, 74, 0.18);
}

.ktv-content .d-flex.gap-2 .btn,
.ktv-content .d-flex.flex-wrap.gap-2 .btn {
    flex: 0 0 auto;
}

/* Badges */
.ktv-content .badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 0.4em 0.7em;
}

.badge.text-bg-success {
    background: rgba(62, 207, 142, 0.16) !important;
    color: #9af0c8 !important;
}

.badge.text-bg-danger {
    background: rgba(232, 93, 93, 0.16) !important;
    color: #ffb4b4 !important;
}

.badge.text-bg-info {
    background: rgba(90, 170, 255, 0.16) !important;
    color: #b7d9ff !important;
}

/* Alerts */
.ktv-content .alert {
    border-radius: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

/* Detail / show pages */
.ktv-content dl.row,
.ktv-content .row > .col-md-6 .ktv-panel {
    margin-bottom: 0;
}

.ktv-content pre,
.ktv-content code {
    border-radius: 0.75rem;
}

.ktv-content pre.bg-black,
.ktv-content pre.bg-dark {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(224, 184, 74, 0.18);
    padding: 1rem;
    color: var(--ktv-gold-soft) !important;
    overflow: auto;
}

/* Nested bordered boxes (settings etc.) */
.ktv-content .border.border-secondary,
.ktv-content .border.rounded {
    border-color: rgba(224, 184, 74, 0.18) !important;
    border-radius: 0.9rem !important;
    background: rgba(255, 255, 255, 0.02);
}

/* Links in tables */
.ktv-content .table a.link-warning,
.ktv-content .table a:not(.btn) {
    color: var(--ktv-gold-soft);
    text-decoration: none;
    font-weight: 500;
}

.ktv-content .table a:not(.btn):hover {
    color: var(--ktv-gold);
    text-decoration: underline;
}

/* Soft empty helper */
.ktv-empty {
    color: var(--ktv-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

/* Mobile / tablet usability */
@media (max-width: 991.98px) {
    .ktv-content h1.h3 {
        font-size: 1.3rem;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between > .d-flex,
    .ktv-content > .container-fluid > .d-flex.justify-content-between > form,
    .ktv-content > .container-fluid > .d-flex.justify-content-between > a.btn {
        width: 100%;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .ktv-content .table-dark thead th,
    .ktv-content .table-dark tbody td {
        padding: 0.7rem 0.75rem;
    }

    .ktv-content form.row.g-2,
    .ktv-content .row.g-2.mb-3 {
        padding: 0.75rem;
    }

    .ktv-content .input-group {
        max-width: none !important;
        width: 100%;
    }
}

/* Reduce visual noise on dense admin screens */
@media (prefers-reduced-motion: reduce) {
    .ktv-content > .container-fluid,
    .ktv-panel,
    .ktv-kpi--primary {
        animation: none !important;
    }
}

/* Single-branch mode: branch switchers are removed by JS; this is a safety net */
body.single-branch select[name="branch_id"] {
    display: none !important;
}

/* ==========================================================================
   Mobile Application Mode — native-feeling shell & screens
   ========================================================================== */
@media (max-width: 991.98px) {
    html,
    body.ktv-app {
        height: auto;
        min-height: 100%;
        -webkit-text-size-adjust: 100%;
        touch-action: manipulation;
    }

    body.ktv-app {
        background: #07070a;
    }

    body.ktv-app .ktv-bg {
        opacity: 0.55;
    }

    /* App top bar — native iOS/Android chrome: menu | brand | actions */
    .ktv-app .ktv-topbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.35rem;
        padding-top: calc(0.22rem + var(--ktv-safe-top));
        padding-bottom: 0.28rem;
        padding-left: 0.55rem;
        padding-right: 0.5rem;
        min-height: calc(48px + var(--ktv-safe-top));
        background: #0c0c12 !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }

    .ktv-topbar__left,
    .ktv-topbar__right {
        position: relative;
        z-index: 1;
        min-width: 0;
        flex: 0 0 auto;
        gap: 0.22rem;
    }

    .ktv-topbar__left {
        flex: 1 1 auto;
    }

    .ktv-topbar__titles {
        position: static;
        left: auto;
        transform: none;
        width: auto;
        max-width: none;
        text-align: left;
        pointer-events: none;
        z-index: 0;
    }

    .ktv-topbar__title {
        display: none !important;
    }

    .ktv-topbar__brand {
        display: block !important;
        font-family: var(--font-display);
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--ktv-gold);
        line-height: 1;
        margin: 0;
        padding-left: 0.35rem;
    }

    .ktv-topbar__toggle {
        display: none !important;
    }

    .ktv-topbar__right .ktv-topbar__fs,
    .ktv-topbar__right .ktv-notify__btn,
    .ktv-topbar__right .ktv-lang__btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 11px;
        border: 0;
        background: transparent;
        color: #ece8df;
    }

    .ktv-topbar__right .ktv-topbar__fs {
        border: 0;
        background: transparent;
        color: #f0d78c;
    }

    .ktv-topbar__right .ktv-lang {
        gap: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ktv-topbar__right .ktv-lang__mark,
    .ktv-topbar__right .ktv-lang__select {
        display: none !important;
    }

    .ktv-topbar__right .ktv-user__btn {
        width: 40px;
        height: 40px;
    }

    .ktv-topbar__right .ktv-user__avatar {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.82rem;
        border-width: 0;
        box-shadow: none;
    }

    /* Content as app canvas */
    .ktv-content {
        padding: 0.75rem 0.7rem calc(1rem + var(--ktv-safe-bottom)) !important;
    }

    .ktv-content > .container-fluid {
        max-width: 100%;
    }

    .rooms-page__sub,
    .pkg-page__sub,
    .bk-page__sub,
    .ktv-page-head__eyebrow {
        margin-top: 0;
        font-size: 0.84rem;
    }

    .rooms-page__head,
    .pkg-page__head,
    .bk-page__head,
    .ktv-page-head {
        margin-bottom: 0.85rem;
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .rooms-page__actions,
    .pkg-page__actions,
    .bk-page__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .rooms-page__actions .btn,
    .pkg-page__actions .btn,
    .bk-page__actions .btn {
        width: 100%;
        min-height: 46px;
        border-radius: 0.9rem;
        font-size: 0.9rem;
    }

    .bk-page__actions .btn-warning {
        grid-column: 1 / -1;
    }

    /* Toolbars as app filter bars */
    .rooms-toolbar,
    .pkg-toolbar,
    .bk-toolbar {
        position: sticky;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top));
        z-index: 6;
        margin-inline: -0.15rem;
        margin-bottom: 0.85rem;
        padding: 0.7rem;
        border-radius: 1rem;
        background: #12121a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .rooms-chips,
    .pkg-chips,
    .bk-chips {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.1rem;
        scroll-snap-type: x proximity;
    }

    .rooms-chips::-webkit-scrollbar,
    .pkg-chips::-webkit-scrollbar,
    .bk-chips::-webkit-scrollbar {
        display: none;
    }

    .rooms-chip,
    .pkg-chip,
    .bk-chip {
        flex: 0 0 auto;
        min-height: 36px;
        scroll-snap-align: start;
    }

    .rooms-grid,
    .pkg-grid {
        grid-template-columns: 1fr !important;
        gap: 0.7rem;
    }

    /* Dashboard as home app screen */
    .ktv-quick-actions {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
        margin-bottom: 0.9rem;
        padding-bottom: 0.15rem;
    }

    .ktv-quick-actions::-webkit-scrollbar {
        display: none;
    }

    .ktv-quick-actions__btn {
        flex: 0 0 auto;
        min-height: 44px;
        border-radius: 0.95rem;
        padding-inline: 1rem;
    }

    .ktv-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem;
    }

    .ktv-kpi {
        border-radius: 1rem;
        padding: 0.85rem;
    }

    .ktv-kpi__value {
        font-size: 1.35rem;
    }

    .ktv-page-head__filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Generic list/header pages */
    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.65rem;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 > .d-flex {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 > .d-flex > .btn,
    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 > .d-flex > a.btn {
        width: 100%;
        min-height: 44px;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 > .d-flex > form {
        grid-column: 1 / -1;
    }

    body.sidebar-open {
        overflow: hidden;
        touch-action: none;
    }

    body.is-standalone .ktv-topbar {
        padding-top: calc(0.55rem + var(--ktv-safe-top));
    }

    .room-card,
    .pkg-card {
        border-radius: 1.2rem;
        padding: 1rem 1rem 0.95rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    }

    .room-card__no {
        font-size: 2.15rem;
    }

    .room-card__actions,
    .room-card__actions--3,
    .pkg-card__actions,
    .pkg-card__actions--3 {
        grid-template-columns: 1fr 1fr !important;
    }

    .room-card__actions--3 form,
    .pkg-card__actions--3 form:last-child {
        grid-column: 1 / -1;
    }

    .pkg-form {
        position: static !important;
        margin-top: 0.35rem;
        border-radius: 1.2rem;
        padding: 1rem;
    }

    .pkg-layout {
        gap: 0.85rem;
    }

    /* Tab bar — iOS / Android style */
    .ktv-tabbar {
        min-height: calc(58px + var(--ktv-safe-bottom));
        padding: 0.28rem 0.4rem calc(0.28rem + var(--ktv-safe-bottom));
        background: #09090c !important;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ktv-tab {
        min-height: 50px;
        border-radius: 0.95rem;
        gap: 0.15rem;
    }

    .ktv-tab__icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .ktv-tab__icon svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    .ktv-tab__label {
        font-size: 0.62rem;
        font-weight: 700;
    }

    .ktv-tab.is-active,
    .ktv-tab[aria-expanded="true"] {
        color: #1a1305;
        background: linear-gradient(160deg, #e0b84a, #f3d27a);
        box-shadow: 0 6px 16px rgba(224, 184, 74, 0.28);
    }

    .ktv-app .ktv-main {
        padding-bottom: calc(var(--ktv-tabbar-h) + var(--ktv-safe-bottom));
    }

    /* Sidebar drawer */
    .ktv-app .ktv-sidebar {
        width: min(88vw, 340px) !important;
        border-right: 0 !important;
        border-radius: 0 1.25rem 1.25rem 0 !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.55);
        padding-bottom: calc(0.75rem + var(--ktv-safe-bottom));
    }

    .ktv-side__link {
        border-radius: 0.85rem;
        margin-inline: 0.35rem;
        padding: 0.75rem 0.9rem !important;
        font-weight: 600;
    }

    .ktv-side__link.is-active {
        background: rgba(224, 184, 74, 0.16);
        color: var(--ktv-gold-soft);
    }

    /* Buttons & forms — finger friendly */
    .btn {
        border-radius: 0.9rem;
        font-weight: 700;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .form-control,
    .form-select {
        border-radius: 0.85rem !important;
        min-height: 48px !important;
        font-size: 16px !important; /* prevents iOS zoom */
    }

    .alert {
        border-radius: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Tables → denser, scrollable cards feel */
    .ktv-panel.p-0 .table-responsive {
        margin: 0;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .ktv-content .table-dark thead {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #14141c;
    }

    .ktv-content .table-dark tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* POS — app workspace */
    .pos-grid {
        gap: 0.65rem !important;
    }

    .pos-cart-dock {
        bottom: calc(var(--ktv-tabbar-h) + var(--ktv-safe-bottom) + 0.35rem) !important;
        margin-inline: 0;
        border-radius: 1.15rem !important;
        border: 1px solid rgba(224, 184, 74, 0.28);
        background: rgba(14, 14, 20, 0.96) !important;
        backdrop-filter: blur(16px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
        padding: 0.75rem !important;
    }

    .pos-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }

    .bk-card.is-pressing,
    .ktv-quick-actions__btn.is-pressing {
        transform: scale(0.98);
    }

    .pos-prod {
        min-height: 92px !important;
        border-radius: 1rem !important;
        padding: 0.7rem !important;
    }

    .pos-cat {
        top: calc(52px + var(--ktv-safe-top)) !important;
        margin-inline: -0.35rem;
        padding-inline: 0.35rem;
        background: rgba(7, 7, 10, 0.94) !important;
    }

    .pos-cat button {
        min-height: 42px !important;
        font-weight: 700;
    }

    .pos-bill-actions .btn {
        min-height: 50px !important;
        font-size: 0.95rem;
        border-radius: 0.95rem;
    }

    /* Overlays feel like sheets */
    .pos-add-overlay {
        align-items: flex-end !important;
        justify-content: stretch !important;
        padding: 0 !important;
    }

    .pos-add-overlay__panel,
    .pos-add-overlay__panel.is-wide {
        width: 100% !important;
        max-width: none !important;
        border-radius: 1.35rem 1.35rem 0 0 !important;
        max-height: min(92dvh, 920px);
        border-bottom: 0 !important;
        padding-bottom: calc(0.5rem + var(--ktv-safe-bottom));
    }

    .pos-add-overlay.is-open .pos-add-overlay__panel {
        animation: ktvSheetUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .pos-add-overlay__panel::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        margin: 0.55rem auto 0.15rem;
    }

    /* Confirm popups: keep centered & compact (no sheet / no scroll) */
    .pos-confirm-overlay.pos-add-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.75rem max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
    }

    .pos-confirm-overlay .pos-confirm-panel,
    .pos-confirm-overlay .pos-add-overlay__panel {
        width: min(360px, calc(100vw - 1.5rem)) !important;
        max-width: min(360px, calc(100vw - 1.5rem)) !important;
        max-height: min(86dvh, 100%) !important;
        border-radius: 1.15rem !important;
        border-bottom: 1px solid rgba(224, 184, 74, 0.48) !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    .pos-confirm-overlay.is-open .pos-confirm-panel,
    .pos-confirm-overlay.is-open .pos-add-overlay__panel {
        animation: posOverlayRise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both !important;
    }

    .pos-confirm-overlay .pos-confirm-panel::before,
    .pos-confirm-overlay .pos-add-overlay__panel::before {
        display: none !important;
        content: none !important;
        margin: 0 !important;
        height: 0 !important;
    }

    /* Bootstrap modals as bottom sheets on phone */
    .modal.fade .modal-dialog {
        transform: translateY(24px);
        margin: 0 auto 0;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    .modal.show .modal-dialog {
        transform: none;
    }

    .modal-content {
        border-radius: 1.25rem 1.25rem 0 0 !important;
        border-bottom: 0 !important;
        padding-bottom: var(--ktv-safe-bottom);
    }

    .modal-footer .btn {
        min-height: 48px;
        flex: 1;
    }

    /* Language switcher stays an icon in the app header */
    .ktv-topbar__right .ktv-lang {
        gap: 0;
        max-width: none;
        overflow: visible;
        flex-wrap: nowrap;
    }

    .ktv-topbar__right .ktv-lang__select {
        display: none !important;
    }

    .ktv-topbar__right .ktv-lang__btn {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        text-transform: none;
    }

    .is-pressing {
        transform: scale(0.985);
        opacity: 0.92;
        transition: transform 0.08s ease, opacity 0.08s ease;
    }

    .room-card.is-pressing,
    .pkg-card.is-pressing,
    .pos-prod.is-pressing,
    .bk-card.is-pressing {
        transform: scale(0.98);
    }
}

/* Tablet refinements (must follow phone rules so 2-col layouts win) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .rooms-grid,
    .pkg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .bk-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ktv-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .ktv-kpi-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pos-products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pos-grid {
        grid-template-columns: 1.35fr 1fr !important;
    }

    .pos-cart-dock {
        position: sticky !important;
        top: calc(var(--ktv-topbar-h) + var(--ktv-safe-top) + 0.5rem) !important;
        bottom: auto !important;
        max-height: calc(100dvh - var(--ktv-topbar-h) - var(--ktv-tabbar-h) - 2rem);
        overflow: auto;
    }

    .rooms-page__actions,
    .pkg-page__actions,
    .bk-page__actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bk-page__actions .btn-warning {
        grid-column: auto;
    }

    .ktv-content > .container-fluid > .d-flex.justify-content-between.mb-3 > .d-flex {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Centered dialogs on tablet (less “phone sheet”) */
    .modal.fade .modal-dialog {
        align-items: center;
        max-width: 520px;
        min-height: auto;
        margin: 1.75rem auto;
    }

    .modal-content {
        border-radius: 1.15rem !important;
        padding-bottom: 0;
    }

    .pos-add-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 1.25rem !important;
    }

    .pos-add-overlay__panel,
    .pos-add-overlay__panel.is-wide {
        width: min(440px, 100%) !important;
        border-radius: 1.25rem !important;
    }

    .pos-add-overlay__panel::before {
        display: none;
    }
}

@keyframes ktvSheetUp {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Very small phones */
@media (max-width: 379.98px) {
    .ktv-tab__label {
        font-size: 0.56rem;
    }

    .rooms-page__actions,
    .pkg-page__actions {
        grid-template-columns: 1fr;
    }
}

/* ========== Online booking (public) ========== */
.ob-body {
    --ob-safe-top: env(safe-area-inset-top, 0px);
    --ob-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ob-appbar-h: 56px;
    --ob-max: min(1280px, calc(100% - 2rem));
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

.ob-body .ob-main {
    position: relative;
    z-index: 1;
    width: var(--ob-max);
    margin: 0 auto;
    padding: 0.75rem 0 calc(2.5rem + var(--ob-safe-bottom));
}

/* Native-style app header */
.ob-appbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: var(--ob-safe-top);
    background: rgba(8, 8, 12, 0.88);
    backdrop-filter: saturate(1.35) blur(20px);
    -webkit-backdrop-filter: saturate(1.35) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ob-appbar__inner {
    width: var(--ob-max);
    margin: 0 auto;
    min-height: var(--ob-appbar-h);
    display: grid;
    grid-template-columns: 1fr minmax(0, 2.4fr) 1fr;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0;
}

.ob-appbar__side {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.ob-appbar__side--left {
    justify-content: flex-start;
}

.ob-appbar__side--right {
    justify-content: flex-end;
}

.ob-appbar__center {
    text-align: center;
    min-width: 0;
}

.ob-appbar__brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ktv-gold);
    line-height: 1.1;
}

.ob-appbar__title {
    margin: 0.1rem 0 0;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ktv-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-appbar__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.55rem;
    height: 2.55rem;
    padding: 0 0.45rem;
    border-radius: 0.85rem;
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.28), rgba(224, 184, 74, 0.08));
    border: 1px solid rgba(224, 184, 74, 0.4);
    color: var(--ktv-gold-soft);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ob-appbar__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ktv-gold-soft);
    text-decoration: none;
    flex-shrink: 0;
}

.ob-appbar__icon-btn:active {
    transform: scale(0.96);
    background: rgba(224, 184, 74, 0.12);
}

.ob-appbar__icon-btn .ktv-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.ob-appbar__link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.55rem;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: rgba(224, 184, 74, 0.1);
    color: var(--ktv-gold-soft);
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    max-width: 11rem;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.15;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ob-appbar__link-btn:hover {
    border-color: rgba(224, 184, 74, 0.55);
    background: rgba(224, 184, 74, 0.16);
    color: #f0d78c;
}

.ob-appbar__link-btn:active {
    transform: scale(0.97);
}

.ob-appbar__link-btn .ktv-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.ob-appbar__link-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ob-appbar__lang .ktv-lang {
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.ob-appbar__lang .ktv-lang__mark {
    display: none;
}

.ob-appbar__lang .ktv-lang__select {
    min-height: 2.35rem;
    min-width: 6.5rem;
    border-radius: 0.85rem;
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
}

.ob-appbar__lang .ktv-lang__btn {
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    border-radius: 0.55rem;
}

@media (max-width: 575.98px) {
    .ob-body {
        --ob-appbar-h: 52px;
        --ob-max: 100%;
    }

    .ob-appbar__inner {
        width: 100%;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .ob-body .ob-main {
        width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        box-sizing: border-box;
    }

    .ob-hero__brand {
        display: none;
    }

    .ob-hero__intro {
        margin-bottom: 0.85rem;
    }

    .ob-hero__sub {
        max-width: none;
        font-size: 0.95rem;
    }

    .ob-hero {
        min-height: calc(100dvh - var(--ob-appbar-h) - var(--ob-safe-top) - 1rem);
        align-content: start;
        padding-top: 0.75rem;
    }

    .ob-appbar__lang .ktv-lang__select {
        min-height: 2.1rem;
        min-width: 5.9rem;
        font-size: 0.72rem;
    }

    .ob-appbar__link-btn {
        min-height: 2.2rem;
        max-width: 8.5rem;
        padding: 0.28rem 0.55rem 0.28rem 0.45rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .ob-appbar__lang .ktv-lang__btn {
        min-width: 1.65rem;
        height: 1.65rem;
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .ob-body {
        --ob-max: min(1100px, calc(100% - 3rem));
    }

    .ob-appbar__brand {
        font-size: 0.75rem;
    }

    .ob-appbar__title {
        font-size: 1.05rem;
    }
}

@media (min-width: 1200px) {
    .ob-body {
        --ob-max: min(1320px, calc(100% - 4rem));
    }
}

.ob-bg {
    background:
        radial-gradient(ellipse 90% 60% at 50% -5%, rgba(92, 31, 50, 0.62), transparent 58%),
        radial-gradient(ellipse 45% 40% at 100% 70%, rgba(224, 184, 74, 0.14), transparent 50%),
        radial-gradient(ellipse 35% 30% at 0% 80%, rgba(70, 28, 40, 0.35), transparent 55%),
        linear-gradient(170deg, #060608 0%, #141018 45%, #08080c 100%) !important;
}

.ob-hero {
    min-height: calc(100dvh - 5rem);
    display: grid;
    place-items: center;
    padding: 1rem 0 2rem;
}

.ob-hero__stage {
    width: 100%;
    text-align: center;
    animation: ktv-fade-up 0.55s ease both;
}

.ob-hero__intro {
    margin-bottom: 1.25rem;
}

.ob-hero__brand {
    font-size: clamp(2.75rem, 9vw, 4.25rem) !important;
    margin-bottom: 0.55rem !important;
    animation: ktv-fade-up 0.5s ease both;
    line-height: 0.95;
}

.ob-hero__sub {
    color: var(--ktv-muted);
    font-size: 1.02rem;
    max-width: 28ch;
    margin: 0 auto;
    line-height: 1.45;
    animation: ktv-fade-up 0.6s ease 0.08s both;
}

@media (min-width: 992px) {
    .ob-hero {
        min-height: calc(100dvh - var(--ob-appbar-h) - var(--ob-safe-top) - 2rem);
        place-items: stretch;
        align-content: center;
        padding: 1.5rem 0 2.5rem;
    }

    .ob-hero__stage {
        display: grid;
        grid-template-columns: minmax(280px, 0.85fr) minmax(440px, 1.15fr);
        gap: 2rem 3.25rem;
        align-items: center;
        text-align: left;
    }

    .ob-hero__intro {
        margin-bottom: 0;
        align-self: center;
        padding-right: 0.5rem;
    }

    .ob-hero__brand {
        font-size: clamp(3.5rem, 5.2vw, 5.2rem) !important;
        margin-bottom: 0.85rem !important;
        max-width: 11ch;
    }

    .ob-hero__sub {
        margin: 0;
        max-width: 24ch;
        font-size: 1.14rem;
    }

    .ob-hero__stage > .alert {
        grid-column: 1 / -1;
    }

    .ob-hero__stage > .ob-sheet {
        grid-column: 2;
        align-self: center;
    }
}

.ob-sheet {
    background: linear-gradient(165deg, rgba(28, 24, 32, 0.94), rgba(12, 12, 18, 0.96));
    border: 1px solid rgba(224, 184, 74, 0.28);
    border-radius: 1.4rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    text-align: left;
    padding: 1.15rem 1.05rem 1.15rem;
    animation: ktv-fade-up 0.65s ease 0.12s both;
}

.ob-sheet--checkout {
    animation: none;
}

@media (min-width: 576px) {
    .ob-sheet {
        padding: 1.55rem 1.65rem 1.65rem;
    }
}

.ob-card {
    background: rgba(14, 14, 20, 0.82);
    border: 1px solid rgba(224, 184, 74, 0.28);
    border-radius: 1.35rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    text-align: left;
}

.ob-card--form {
    padding: 1.35rem 1.25rem 1.5rem;
    animation: ktv-fade-up 0.65s ease 0.12s both, ktv-glow-pulse 6s ease-in-out infinite;
}

@media (min-width: 576px) {
    .ob-card--form {
        padding: 1.75rem 1.85rem 1.9rem;
    }
}

.ob-block {
    margin-bottom: 1.05rem;
}

.ob-block--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ob-block--split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 0.85rem 1.1rem;
    align-items: end;
}

.ob-block__label {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 210, 122, 0.92);
}

.ob-block__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.18);
    color: var(--ktv-gold-soft);
    font-size: 0.7rem;
    font-weight: 800;
    vertical-align: middle;
}

.ob-control {
    width: 100%;
    min-height: 46px;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0a0a10;
    color: #fff;
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
}

.ob-control:focus {
    outline: none;
    border-color: rgba(224, 184, 74, 0.55);
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.15);
}

.ob-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.ob-pills--time {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ob-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ktv-muted);
    border-radius: 0.8rem;
    min-height: 2.45rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}

.ob-pill:hover {
    border-color: rgba(224, 184, 74, 0.4);
    color: #fff;
}

.ob-pill.is-on {
    border-color: rgba(224, 184, 74, 0.6);
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.22), rgba(224, 184, 74, 0.08));
    color: #fff;
    transform: translateY(-1px);
}

.ob-durs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
}

.ob-durs--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ob-dur {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ob-dur input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ob-dur span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ktv-muted);
    border-radius: 0.9rem;
    min-height: 2.85rem;
    padding: 0.4rem 0.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}

.ob-dur__main {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.ob-dur__sub {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.75;
}

.ob-dur input:checked + span {
    border-color: rgba(224, 184, 74, 0.6);
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.22), rgba(224, 184, 74, 0.08));
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.ob-dur:hover span {
    border-color: rgba(224, 184, 74, 0.4);
    color: #fff;
}

.ob-foot {
    position: sticky;
    bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    margin-top: 0.35rem;
    padding: 0.45rem;
    border: 1px solid rgba(224, 184, 74, 0.22);
    border-radius: 0.95rem;
    background: rgba(14, 14, 20, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.ob-adv {
    margin: 0 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.ob-adv > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 750;
    color: #e8e4dc;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ob-adv > summary::-webkit-details-marker {
    display: none;
}

.ob-adv > summary::after {
    content: "+";
    color: var(--ktv-gold-soft);
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
}

.ob-adv[open] > summary::after {
    content: "\2212";
}

.ob-adv[open] > summary {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(224, 184, 74, 0.06);
}

.ob-adv__body {
    padding: 0.85rem;
}

.ob-adv--soft {
    margin-bottom: 0.85rem;
    border-style: dashed;
    background: transparent;
}

.ob-adv--soft > summary {
    padding: 0.55rem 0.15rem;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--ktv-muted);
}

.ob-adv--soft[open] > summary {
    border-bottom: 0;
    background: transparent;
    color: var(--ktv-gold-soft);
}

.ob-result-count {
    margin: 0 0 0.75rem;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.ob-room__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.ob-room__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 198, 150, 0.35);
    background: rgba(110, 198, 150, 0.12);
    color: #9eecc4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ob-empty__title {
    color: #fff;
    font-weight: 750;
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.ob-empty__hint {
    margin: 0 auto 1rem;
    max-width: 22rem;
    line-height: 1.45;
}

.ob-confirm__hint {
    color: var(--ktv-muted);
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .ob-pills--time {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ob-durs,
    .ob-durs--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ob-block--split {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.ob-steps {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0.15rem 0 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ob-steps__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.ob-steps__item.is-active,
.ob-steps__item.is-done {
    opacity: 1;
}

.ob-steps__num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ktv-muted);
    background: rgba(0, 0, 0, 0.25);
}

.ob-steps__item.is-active .ob-steps__num {
    border-color: var(--ktv-gold);
    color: #1a1408;
    background: linear-gradient(180deg, var(--ktv-gold-soft), var(--ktv-gold));
}

.ob-steps__item.is-done .ob-steps__num {
    border-color: rgba(224, 184, 74, 0.55);
    color: var(--ktv-gold);
    background: rgba(224, 184, 74, 0.12);
}

.ob-steps__label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ktv-muted);
}

.ob-steps__item.is-active .ob-steps__label {
    color: var(--ktv-gold-soft);
}

.ob-field {
    margin-bottom: 1rem;
}

.ob-field--full {
    grid-column: 1 / -1;
}

.ob-field--action {
    display: flex;
    align-items: flex-end;
}

.ob-grid {
    display: grid;
    gap: 0.85rem;
}

.ob-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.ob-grid--refine {
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
    .ob-grid--refine {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ob-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ob-chip {
    cursor: pointer;
    margin: 0;
}

.ob-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ob-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: var(--ktv-text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ob-chip input:checked + span {
    border-color: rgba(224, 184, 74, 0.7);
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold-soft);
    transform: translateY(-1px);
}

.ob-chip:hover span {
    border-color: rgba(224, 184, 74, 0.4);
}

.ob-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    padding: 0.25rem;
}

.ob-stepper__btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.65rem;
    background: rgba(224, 184, 74, 0.12);
    color: var(--ktv-gold-soft);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.ob-stepper__btn:hover {
    background: rgba(224, 184, 74, 0.22);
}

.ob-stepper__input {
    width: 3.2rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ktv-text) !important;
    min-height: 2.5rem;
    -moz-appearance: textfield;
}

.ob-stepper__input::-webkit-outer-spin-button,
.ob-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ob-cta {
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ob-page {
    padding: 0.5rem 0 2rem;
    animation: ktv-fade-up 0.45s ease both;
}

.ob-page--narrow {
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .ob-page--narrow {
        max-width: 960px;
    }

    .ob-page--checkout-desktop {
        display: grid;
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
        gap: 1.25rem;
        align-items: start;
        max-width: none;
    }

    .ob-page--checkout-desktop .ob-page__head,
    .ob-page--checkout-desktop .ob-steps,
    .ob-page--checkout-desktop > .alert {
        grid-column: 1 / -1;
    }

    .ob-page--checkout-desktop .ob-summary {
        position: sticky;
        top: calc(var(--ob-appbar-h) + var(--ob-safe-top) + 0.75rem);
        margin-bottom: 0;
    }
}

.ob-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.ob-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.5vw, 2rem);
    font-weight: 600;
    color: var(--ktv-text);
    margin: 0 0 0.25rem;
}

.ob-page__meta {
    color: var(--ktv-muted);
    font-size: 0.9rem;
    margin: 0;
}

.ob-link-back {
    color: var(--ktv-gold-soft);
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    font-weight: 500;
}

.ob-link-back:hover {
    color: var(--ktv-gold);
    text-decoration: underline;
}

.ob-refine {
    margin-bottom: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: rgba(10, 10, 14, 0.55);
    padding: 0.65rem 0.9rem;
}

.ob-refine summary {
    cursor: pointer;
    color: var(--ktv-muted);
    font-size: 0.88rem;
    list-style: none;
}

.ob-refine summary::-webkit-details-marker {
    display: none;
}

.ob-refine[open] summary {
    margin-bottom: 0.75rem;
    color: var(--ktv-gold-soft);
}

.ob-refine__form {
    padding-bottom: 0.35rem;
}

.ob-room-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 560px) {
    .ob-room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ob-room-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1280px) {
    .ob-room-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ob-room {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(224, 184, 74, 0.22);
    background: linear-gradient(165deg, rgba(26, 22, 30, 0.95), rgba(12, 12, 18, 0.92));
    animation: ktv-fade-up 0.45s ease both;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ob-room:hover {
    border-color: rgba(224, 184, 74, 0.55);
    transform: translateY(-2px);
    background: linear-gradient(165deg, rgba(32, 26, 34, 0.98), rgba(16, 14, 22, 0.95));
}

.ob-room__number {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--ktv-gold-soft);
    margin: 0;
    line-height: 1.1;
}

.ob-room__name {
    margin: 0.15rem 0 0;
    font-weight: 600;
    color: var(--ktv-text);
}

.ob-room__meta {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--ktv-muted);
}

.ob-room__btn {
    margin-top: auto;
    font-weight: 700;
}

.ob-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: 1.15rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--ktv-muted);
}

.ob-empty p {
    margin-bottom: 1rem;
}

.ob-summary {
    border-radius: 1.15rem;
    border: 1px solid rgba(224, 184, 74, 0.22);
    background: rgba(12, 12, 18, 0.7);
    padding: 1rem 1.15rem;
    margin-bottom: 1.1rem;
}

.ob-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

.ob-summary__row:last-child {
    border-bottom: 0;
}

.ob-summary__row span {
    color: var(--ktv-muted);
}

.ob-summary__row strong {
    color: var(--ktv-text);
    text-align: right;
    font-weight: 600;
}

.ob-hold-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.35);
    background: rgba(224, 184, 74, 0.08);
    color: var(--ktv-gold-soft);
    font-size: 0.78rem;
}

.ob-deposit {
    margin: 0.25rem 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0.7rem 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

.ob-deposit summary {
    cursor: pointer;
    color: var(--ktv-muted);
    font-size: 0.88rem;
    list-style: none;
}

.ob-deposit summary::-webkit-details-marker {
    display: none;
}

.ob-lookup {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 520px) {
    .ob-lookup {
        grid-template-columns: 1fr auto;
    }
}

/* Status lookup page */
.ob-status {
    max-width: 560px;
    margin: 0 auto;
    padding-top: 0.75rem;
}

.ob-status__intro {
    text-align: center;
    margin-bottom: 1.25rem;
    animation: ktv-fade-up 0.45s ease both;
}

.ob-status__eyebrow {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ktv-gold);
}

.ob-status__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--ktv-text);
    line-height: 1.1;
}

.ob-status__help {
    margin: 0 auto;
    max-width: 32ch;
    color: var(--ktv-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ob-status__lookup {
    margin-bottom: 1.15rem;
    padding: 1.1rem 1.1rem 1.15rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: linear-gradient(165deg, rgba(28, 24, 32, 0.94), rgba(12, 12, 18, 0.96));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    animation: ktv-fade-up 0.5s ease 0.05s both;
}

.ob-status__lookup .ob-block__label {
    text-align: left;
}

.ob-status__card {
    border-radius: 1.35rem;
    border: 1px solid rgba(224, 184, 74, 0.3);
    background:
        radial-gradient(ellipse at top right, rgba(224, 184, 74, 0.18), transparent 55%),
        linear-gradient(165deg, rgba(30, 24, 18, 0.96), rgba(12, 12, 18, 0.96));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: ktv-fade-up 0.55s ease 0.08s both;
}

.ob-status__card-top {
    text-align: center;
    padding: 1.35rem 1.2rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ob-status__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.4);
    background: rgba(224, 184, 74, 0.12);
    color: var(--ktv-gold-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ob-status__badge--confirmed,
.ob-status__badge--arrived,
.ob-status__badge--checked_in {
    border-color: rgba(110, 198, 150, 0.4);
    background: rgba(110, 198, 150, 0.14);
    color: #9eecc4;
}

.ob-status__badge--pending {
    border-color: rgba(224, 184, 74, 0.45);
    background: rgba(224, 184, 74, 0.14);
    color: var(--ktv-gold-soft);
}

.ob-status__badge--cancelled,
.ob-status__badge--expired,
.ob-status__badge--no_show {
    border-color: rgba(220, 120, 120, 0.4);
    background: rgba(220, 120, 120, 0.12);
    color: #f0b4b4;
}

.ob-status__badge--completed {
    border-color: rgba(140, 160, 200, 0.4);
    background: rgba(140, 160, 200, 0.12);
    color: #c5d0e8;
}

.ob-status__no-label {
    margin: 0 0 0.2rem;
    color: var(--ktv-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ob-status__no {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.5vw, 1.95rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.ob-status__rows {
    padding: 0.35rem 1.15rem 0.5rem;
}

.ob-status__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ob-status__row:last-child {
    border-bottom: 0;
}

.ob-status__row span {
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.ob-status__row strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 750;
    text-align: right;
}

.ob-status__to {
    color: var(--ktv-muted);
    font-weight: 650;
}

.ob-status__cancel {
    padding: 0 1.15rem 1.15rem;
}

.ob-status__footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.ob-status__empty {
    margin-top: 0.25rem;
}

.ob-status__hint-card {
    text-align: center;
    padding: 1.35rem 1.2rem;
    border-radius: 1.15rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--ktv-muted);
    animation: ktv-fade-up 0.5s ease 0.1s both;
}

.ob-status__hint-card p {
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .ob-status {
        max-width: 640px;
        padding-top: 1.25rem;
    }

    .ob-status__lookup {
        padding: 1.25rem 1.35rem 1.35rem;
    }
}

.ob-confirm {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(224, 184, 74, 0.3);
    background: rgba(14, 14, 20, 0.85);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
    animation: ktv-fade-up 0.55s ease both;
}

.ob-confirm__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: var(--ktv-gold);
    border: 1px solid rgba(224, 184, 74, 0.5);
    background: rgba(224, 184, 74, 0.1);
    animation: ktv-fade-up 0.5s ease 0.05s both;
}

.ob-confirm__brand {
    font-family: var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ktv-gold);
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.ob-confirm__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: var(--ktv-text);
}

.ob-confirm__no {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ktv-gold-soft);
    margin: 0 0 0.75rem;
    letter-spacing: 0.04em;
}

.ob-confirm__status,
.ob-confirm__when,
.ob-confirm__deposit {
    color: var(--ktv-muted);
    margin: 0 0 0.5rem;
}

.ob-confirm__deposit {
    margin-bottom: 1.25rem;
}

.ob-confirm__deposit strong {
    color: var(--ktv-text);
}

@media (max-width: 419.98px) {
    .ob-grid--2 {
        grid-template-columns: 1fr;
    }

    .ob-hero__brand {
        letter-spacing: 0.08em !important;
    }
}

/* ========== Booking calendar ========== */
.bcal {
    --bcal-line: rgba(224, 184, 74, 0.22);
    padding-bottom: 1.5rem;
}

.bcal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.bcal__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--ktv-text);
    margin: 0;
    line-height: 1.1;
}

.bcal__sub {
    margin: 0.3rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.9rem;
}

.bcal__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bcal__actions .btn {
    min-height: 44px;
    font-weight: 600;
}

.bcal__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--bcal-line);
    border-radius: 1.1rem;
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.08), rgba(18, 18, 26, 0.55));
}

.bcal__branch {
    min-width: min(100%, 180px);
    flex: 0 1 200px;
}

.bcal__nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
}

.bcal__nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
}

.bcal__nav-btn:hover {
    border-color: rgba(224, 184, 74, 0.5);
    color: var(--ktv-gold-soft);
    background: rgba(224, 184, 74, 0.1);
}

.bcal__date {
    min-width: 9.5rem;
    max-width: 11rem;
}

.bcal__today {
    min-height: 42px;
    border-radius: 0.85rem;
    font-weight: 700;
}

.bcal__views {
    display: inline-flex;
    padding: 0.2rem;
    gap: 0.2rem;
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: auto;
}

.bcal__view {
    margin: 0;
    cursor: pointer;
}

.bcal__view input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bcal__view span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2rem;
    min-height: 2.35rem;
    padding: 0 0.85rem;
    border-radius: 0.7rem;
    color: var(--ktv-muted);
    font-weight: 700;
    font-size: 0.88rem;
}

.bcal__view.is-on span,
.bcal__view:has(input:checked) span {
    background: rgba(224, 184, 74, 0.18);
    color: var(--ktv-gold-soft);
}

.bcal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.9rem;
}

.bcal__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ktv-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.bcal__legend-item i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}

.bcal__empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ktv-muted);
}

/* Day timeline */
.bcal-day {
    padding: 0.85rem;
    overflow: hidden;
}

.bcal-day__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bcal-day__hours {
    display: grid;
    grid-template-columns: 7.5rem minmax(640px, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    min-width: 740px;
}

.bcal-day__hours-track {
    position: relative;
    height: 1.25rem;
}

.bcal-day__hours-track span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: var(--ktv-muted);
    font-variant-numeric: tabular-nums;
}

.bcal-day__row {
    display: grid;
    grid-template-columns: 7.5rem minmax(640px, 1fr);
    gap: 0.65rem;
    align-items: stretch;
    margin-bottom: 0.55rem;
    min-width: 740px;
    animation: ktv-fade-up 0.4s ease both;
}

.bcal-day__room {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.35rem 0.15rem;
    min-width: 0;
}

.bcal-day__room strong {
    color: var(--ktv-gold-soft);
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.1;
}

.bcal-day__room span {
    color: var(--ktv-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcal-day__lane {
    position: relative;
    height: 52px;
    border-radius: 0.85rem;
    background: rgba(8, 8, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bcal-day__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bcal-day__grid i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.045);
}

.bcal-day__free {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(155, 151, 163, 0.55);
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}

.bcal-block {
    position: absolute;
    top: 5px;
    bottom: 5px;
    border-radius: 0.55rem;
    background: var(--bcal-bg, #6b7280);
    color: #111;
    text-decoration: none;
    padding: 0.2rem 0.45rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
    z-index: 1;
}

.bcal-block:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #111;
    z-index: 2;
}

.bcal-block strong {
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.bcal-block span {
    font-size: 0.62rem;
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
}

/* Week */
.bcal-week {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .bcal-week {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .bcal-week {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

.bcal-week__day {
    border-radius: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, #1a1a24 0%, #12121a 75%);
    min-height: 11rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ktv-fade-up 0.4s ease both;
}

.bcal-week__day.is-today {
    border-color: rgba(224, 184, 74, 0.45);
    box-shadow: 0 0 0 1px rgba(224, 184, 74, 0.12);
}

.bcal-week__day.is-selected {
    border-color: rgba(224, 184, 74, 0.65);
}

.bcal-week__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.75rem 0.55rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bcal-week__dow {
    color: var(--ktv-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bcal-week__num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ktv-text);
    line-height: 1;
}

.bcal-week__day.is-today .bcal-week__num {
    color: var(--ktv-gold-soft);
}

.bcal-week__count {
    margin-left: auto;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.14);
    color: var(--ktv-gold-soft);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bcal-week__list {
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.bcal-week__empty {
    margin: auto;
    color: rgba(155, 151, 163, 0.55);
    font-size: 0.78rem;
    text-align: center;
}

.bcal-week__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--bcal-bg);
    text-decoration: none;
    color: var(--ktv-text);
    min-width: 0;
}

.bcal-week__item:hover {
    filter: brightness(1.1);
    color: var(--ktv-text);
}

.bcal-week__time {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
    font-variant-numeric: tabular-nums;
}

.bcal-week__guest {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bcal-week__room {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ktv-muted);
}

.bcal-week__more {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ktv-gold-soft);
    text-decoration: none;
    padding: 0.25rem;
}

/* Month */
.bcal-month {
    padding: 1rem;
}

.bcal-month__dows {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.bcal-month__dows span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ktv-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bcal-month__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.bcal-month__cell {
    aspect-ratio: 1 / 1;
    max-height: 5.5rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 18, 0.65);
    text-decoration: none;
    color: var(--ktv-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.bcal-month__cell:hover {
    border-color: rgba(224, 184, 74, 0.45);
    background: rgba(224, 184, 74, 0.08);
    transform: translateY(-1px);
    color: var(--ktv-text);
}

.bcal-month__cell.is-out {
    opacity: 0.35;
}

.bcal-month__cell.is-today {
    border-color: rgba(224, 184, 74, 0.55);
    box-shadow: inset 0 0 0 1px rgba(224, 184, 74, 0.2);
}

.bcal-month__cell.has-events {
    background: rgba(224, 184, 74, 0.07);
}

.bcal-month__num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
}

.bcal-month__badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.2);
    color: var(--ktv-gold-soft);
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bcal-month__hint {
    margin: 0.85rem 0 0;
    text-align: center;
    color: var(--ktv-muted);
    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    .bcal__title {
        display: none;
    }

    .bcal__head {
        margin-bottom: 0.75rem;
    }

    .bcal__actions {
        width: 100%;
    }

    .bcal__actions .btn {
        flex: 1;
    }

    .bcal__toolbar {
        padding: 0.7rem;
    }

    .bcal__views {
        width: 100%;
        margin-left: 0;
    }

    .bcal__view {
        flex: 1;
    }

    .bcal__view span {
        width: 100%;
        min-width: 0;
    }

    .bcal__nav {
        width: 100%;
    }

    .bcal__date {
        flex: 1;
        max-width: none;
    }

    .bcal-day__hours,
    .bcal-day__row {
        grid-template-columns: 4.5rem minmax(560px, 1fr);
        min-width: 620px;
    }

    .bcal-day__room span {
        display: none;
    }

    .bcal-month__cell {
        max-height: 4.25rem;
        border-radius: 0.65rem;
    }

    .bcal-month__num {
        font-size: 0.95rem;
    }
}

/* ===== Billing list ===== */
.billing-page {
    display: grid;
    gap: 1.1rem;
}

.billing-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--ktv-radius);
    border: 1px solid rgba(224, 184, 74, 0.22);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(224, 184, 74, 0.16), transparent 55%),
        linear-gradient(160deg, rgba(28, 24, 18, 0.95), rgba(12, 12, 18, 0.92));
    box-shadow: var(--ktv-shadow);
}

.billing-hero__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ktv-muted);
    font-weight: 700;
}

.billing-hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 600;
    color: var(--ktv-text);
    letter-spacing: 0.02em;
}

.billing-hero__shift {
    margin: 0.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--ktv-gold-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.billing-hero__shift--warn {
    color: #f0c27a;
}

.billing-hero__shift a {
    color: var(--ktv-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.billing-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    display: inline-block;
}

.billing-dot--ok {
    background: var(--ktv-success);
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.18);
}

.billing-dot--warn {
    background: #e0a23a;
    box-shadow: 0 0 0 3px rgba(224, 162, 58, 0.2);
}

.billing-hero__actions {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    min-width: min(280px, 100%);
}

.billing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.billing-btn svg {
    width: 1.1rem;
    height: 1.1rem;
}

.billing-btn--primary {
    background: linear-gradient(135deg, var(--ktv-gold-soft), var(--ktv-gold));
    color: #1a1408;
    box-shadow: 0 10px 28px rgba(224, 184, 74, 0.28);
}

.billing-btn--primary:hover {
    transform: translateY(-1px);
    color: #1a1408;
    box-shadow: 0 14px 32px rgba(224, 184, 74, 0.36);
}

.billing-hero__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.billing-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ktv-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.billing-tool:hover {
    color: var(--ktv-gold-soft);
    border-color: rgba(224, 184, 74, 0.35);
}

.billing-tool svg {
    width: 0.95rem;
    height: 0.95rem;
}

.billing-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.billing-stat {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(18, 18, 26, 0.72);
}

.billing-stat span {
    display: block;
    color: var(--ktv-muted);
    font-size: 0.78rem;
    font-weight: 650;
    margin-bottom: 0.25rem;
}

.billing-stat strong {
    display: block;
    color: var(--ktv-text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.billing-stat strong small {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ktv-muted);
}

.billing-stat--due {
    border-color: rgba(224, 184, 74, 0.28);
    background: linear-gradient(160deg, rgba(224, 184, 74, 0.12), rgba(18, 18, 26, 0.8));
}

.billing-stat--due strong {
    color: var(--ktv-gold-soft);
}

.billing-toolbar {
    display: grid;
    gap: 0.75rem;
}

.billing-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.billing-field {
    display: grid;
    gap: 0.3rem;
    min-width: min(220px, 100%);
}

.billing-field span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ktv-muted);
}

.billing-select,
.billing-search__input {
    appearance: none;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 14, 0.85);
    color: var(--ktv-text);
    font-weight: 600;
}

.billing-select:focus,
.billing-search__input:focus {
    outline: none;
    border-color: rgba(224, 184, 74, 0.55);
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.12);
}

.billing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.billing-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ktv-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.billing-chip:hover {
    color: var(--ktv-text);
    border-color: rgba(224, 184, 74, 0.3);
}

.billing-chip.is-active {
    color: #1a1408;
    background: linear-gradient(135deg, var(--ktv-gold-soft), var(--ktv-gold));
    border-color: transparent;
}

.billing-search {
    display: block;
    max-width: 360px;
}

.billing-list {
    display: grid;
    gap: 0.65rem;
}

.billing-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(18, 18, 26, 0.78);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.billing-card:hover {
    border-color: rgba(224, 184, 74, 0.38);
    background: rgba(28, 24, 18, 0.88);
    transform: translateY(-1px);
    color: inherit;
}

.billing-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.35rem;
}

.billing-card__no {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ktv-text);
    letter-spacing: 0.01em;
}

.billing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.billing-card__money {
    display: grid;
    grid-auto-flow: column;
    gap: 1rem;
    text-align: right;
}

.billing-card__money small {
    display: block;
    color: var(--ktv-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.billing-card__money strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ktv-text);
}

.billing-card__money .is-due strong {
    color: var(--ktv-gold-soft);
}

.billing-card__money .is-clear strong {
    color: var(--ktv-success);
}

.billing-card__go {
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(224, 184, 74, 0.55);
    font-weight: 300;
}

.billing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.billing-badge--open {
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold-soft);
}

.billing-badge--partially_paid {
    background: rgba(90, 160, 255, 0.16);
    color: #9ec5ff;
}

.billing-badge--paid {
    background: rgba(62, 207, 142, 0.16);
    color: #7ee0b0;
}

.billing-badge--refunded,
.billing-badge--voided {
    background: rgba(232, 93, 93, 0.14);
    color: #f0a0a0;
}

.billing-badge--draft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ktv-muted);
}

.billing-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: var(--ktv-radius);
    border: 1px dashed rgba(224, 184, 74, 0.28);
    background: rgba(18, 18, 26, 0.55);
}

.billing-empty__icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.85rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: rgba(224, 184, 74, 0.12);
    color: var(--ktv-gold);
}

.billing-empty__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.billing-empty h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: var(--ktv-text);
}

.billing-empty p {
    margin: 0 0 1rem;
    color: var(--ktv-muted);
}

.billing-no-match {
    margin: 0;
    text-align: center;
    color: var(--ktv-muted);
    padding: 1rem;
}

@media (max-width: 900px) {
    .billing-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .billing-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .billing-card__money {
        grid-column: 1 / -1;
        grid-auto-flow: row;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .billing-card__go {
        grid-row: 1;
        grid-column: 2;
    }

    .billing-search {
        max-width: none;
    }
}

/* ===== Bill detail ===== */
.bill-show__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.95fr);
    gap: 1.1rem;
    align-items: start;
}

.bill-show__main,
.bill-show__side {
    display: grid;
    gap: 0.85rem;
}

.bill-panel,
.bill-checkout,
.bill-more {
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
        rgba(16, 16, 22, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.bill-panel {
    padding: 1rem 1.1rem 1.15rem;
}

.bill-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.bill-panel__head h2,
.bill-pay h2,
.bill-mini-form h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
    letter-spacing: 0.02em;
}

.bill-panel__head span {
    min-width: 1.7rem;
    height: 1.7rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.bill-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.bill-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bill-item:hover {
    border-color: rgba(224, 184, 74, 0.22);
    background: rgba(224, 184, 74, 0.05);
}

.bill-item.is-comp {
    opacity: 0.55;
}

.bill-item__n {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
    background: rgba(224, 184, 74, 0.12);
    border: 1px solid rgba(224, 184, 74, 0.18);
}

.bill-item__body {
    min-width: 0;
}

.bill-item__body strong {
    display: block;
    color: var(--ktv-text);
    font-size: 0.98rem;
    font-weight: 750;
    margin-bottom: 0.18rem;
    line-height: 1.3;
}

.bill-item__body span {
    color: var(--ktv-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.bill-item__amt {
    font-weight: 800;
    color: var(--ktv-gold-soft);
    white-space: nowrap;
    font-size: 1.02rem;
    font-variant-numeric: tabular-nums;
}

.bill-empty {
    margin: 0;
    color: var(--ktv-muted);
    padding: 1rem 0.25rem;
}

.bill-checkout {
    position: sticky;
    top: 0.85rem;
    overflow: hidden;
}

.bill-summary {
    padding: 1.15rem 1.2rem 0.4rem;
}

.bill-summary__due {
    display: grid;
    gap: 0.55rem;
    padding: 1.15rem 1.15rem 1.2rem;
    border-radius: 1.1rem;
    margin-bottom: 0.95rem;
    border: 1px solid rgba(224, 184, 74, 0.3);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(224, 184, 74, 0.2), transparent 58%),
        linear-gradient(165deg, rgba(224, 184, 74, 0.12), rgba(10, 10, 14, 0.65));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bill-summary__due-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
}

.bill-summary__due-top > span {
    color: var(--ktv-muted);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bill-summary__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.bill-summary__chip {
    display: inline-flex;
    align-items: center;
    max-width: 9rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: rgba(0, 0, 0, 0.28);
    color: var(--ktv-gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bill-summary__chip--muted {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--ktv-muted);
    font-weight: 700;
}

button.billing-tool {
    cursor: pointer;
    font: inherit;
}

.bill-summary__chip--btn {
    cursor: pointer;
    font: inherit;
    max-width: 12.5rem;
    gap: 0.28rem;
}

.bill-summary__chip--btn svg {
    width: 0.85rem;
    height: 0.85rem;
    flex: 0 0 auto;
}

.bill-cust-row {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.bill-cust-row .billing-select {
    flex: 1;
    min-width: 0;
}

.bill-app__cust-btn {
    margin-top: 0.65rem;
    width: 100%;
}

#billCustomerModal .pos-add-overlay__panel {
    width: min(420px, 100%);
}

#billCustomerModal .bill-pay__credit-results {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.45rem;
    max-height: min(40vh, 14rem);
    overflow: auto;
}

#billCustomerModal .bill-pay__credit-results .billing-tool {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border-radius: 0.75rem;
}

#billCustCurrent {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    align-items: center;
    margin: 0.15rem 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.1);
}

#billCustCurrent[hidden] {
    display: none !important;
}

#billCustCurrent strong {
    color: #bbf7d0;
}

.bill-summary__due > strong {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: clamp(1.75rem, 2.6vw, 2.05rem);
    font-weight: 800;
    color: var(--ktv-gold-soft);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.bill-summary__due > strong small {
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--ktv-muted);
    letter-spacing: 0.04em;
}

.bill-summary__due.is-clear {
    border-color: rgba(62, 207, 142, 0.28);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(62, 207, 142, 0.18), transparent 58%),
        linear-gradient(165deg, rgba(62, 207, 142, 0.1), rgba(10, 10, 14, 0.65));
}

.bill-summary__due.is-clear > strong {
    color: #7ee0b0;
}

.bill-summary__rows {
    margin: 0;
    display: grid;
    gap: 0.5rem;
    padding-bottom: 1.05rem;
}

.bill-summary__rows > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.bill-summary__rows dt {
    margin: 0;
    color: var(--ktv-muted);
    font-weight: 650;
}

.bill-summary__rows dd {
    margin: 0;
    color: var(--ktv-text);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.bill-summary__rows .is-total {
    padding-top: 0.55rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.bill-summary__rows .is-total dt,
.bill-summary__rows .is-total dd {
    color: var(--ktv-gold-soft);
    font-weight: 800;
}

.bill-app__desktop-pay {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bill-pay {
    padding: 1rem 1.15rem 1.15rem;
    display: grid;
    gap: 0.8rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.bill-pay__warn {
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    background: rgba(224, 162, 58, 0.14);
    color: #f0c27a;
    font-size: 0.84rem;
    font-weight: 650;
}

.bill-pay__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr));
    gap: 0.5rem;
}

.bill-pay__credit {
    margin: 0.75rem 0 0.25rem;
    padding: 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(224, 184, 74, 0.32);
    background: rgba(224, 184, 74, 0.08);
    display: grid;
    gap: 0.45rem;
}

.bill-pay__credit-hint {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.bill-pay__credit-row {
    display: flex;
    gap: 0.45rem;
    align-items: stretch;
}

.bill-pay__credit-row .billing-select {
    flex: 1;
}

.bill-pay__credit-results {
    display: grid;
    gap: 0.35rem;
}

.bill-pay__method {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-height: 4.35rem;
    padding: 0.55rem 0.4rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ktv-text);
    font-weight: 750;
    font-size: 0.82rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.bill-pay__method:hover {
    border-color: rgba(224, 184, 74, 0.35);
    color: var(--ktv-gold-soft);
}

.bill-pay__method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bill-pay__method-label {
    display: block;
    line-height: 1.2;
    font-weight: 800;
    font-size: 0.78rem;
    max-width: 100%;
}

.bill-pay__ico {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f3d27a;
}

.bill-pay__ico svg {
    width: 1.1rem;
    height: 1.1rem;
}

.bill-pay__method.is-active .bill-pay__ico,
.bill-pay__method:has(input:checked) .bill-pay__ico {
    background: rgba(26, 20, 8, 0.18);
    border-color: rgba(26, 20, 8, 0.18);
    color: #1a1408;
}

.bill-pay__ico.is-pair {
    width: auto;
    min-width: 2.55rem;
}

.bill-pay__method.is-active,
.bill-pay__method:has(input:checked) {
    color: #1a1408;
    border-color: transparent;
    background: linear-gradient(145deg, #f0d78a, var(--ktv-gold));
    box-shadow: 0 10px 24px rgba(224, 184, 74, 0.28);
    transform: translateY(-1px);
}

.bill-pay__amount {
    display: grid;
    gap: 0.4rem;
}

.bill-pay__amount > span {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--ktv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bill-pay__amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(224, 184, 74, 0.3);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bill-pay__amount-row input {
    border: 0;
    background: transparent;
    color: var(--ktv-gold-soft);
    font-size: 1.6rem;
    font-weight: 800;
    min-height: 2.9rem;
    width: 100%;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.bill-pay__amount-row em {
    font-style: normal;
    font-weight: 800;
    color: var(--ktv-muted);
}

.bill-pay__cur-select {
    appearance: none;
    border: 0;
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold-soft);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 0.7rem;
    padding: 0.35rem 0.65rem;
    min-height: 2.2rem;
    cursor: pointer;
}
.bill-pay__cur-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.bill-pay__fx,
.bill-pay__change {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: rgba(240, 215, 140, 0.9);
    line-height: 1.35;
}
.bill-pay__change {
    color: #bbf7d0;
}
.bill-pay__qr-live {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.7rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background: rgba(0, 0, 0, 0.22);
}
.bill-pay__qr-canvas {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    background: #fff;
    border-radius: 0.55rem;
    padding: 4px;
}
.bill-pay__qr-canvas img,
.bill-pay__qr-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.bill-pay__qr-live strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 0.15rem;
}
.bill-pay__qr-live span {
    font-size: 0.74rem;
    color: rgba(240, 215, 140, 0.9);
    line-height: 1.35;
}

.bill-pay__ref {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.bill-pay__ref > span {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--ktv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bill-pay__extra {
    border-radius: 0.85rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
    padding: 0 0.75rem;
}

.bill-pay__extra > summary {
    cursor: pointer;
    list-style: none;
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    color: var(--ktv-muted);
    font-weight: 700;
    font-size: 0.84rem;
}

.bill-pay__extra > summary::-webkit-details-marker {
    display: none;
}

.bill-pay__extra[open] {
    padding-bottom: 0.75rem;
    border-style: solid;
    background: rgba(255, 255, 255, 0.02);
}

.bill-pay__extra[open] > summary {
    color: var(--ktv-gold-soft);
}

.bill-pay__extra label {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.55rem;
}

.bill-pay__extra label span {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--ktv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bill-pay__submit {
    min-height: 3.1rem;
    font-size: 1.02rem;
    justify-content: center;
    gap: 0.45rem;
}

.bill-pay__submit small {
    margin-left: 0.15rem;
    opacity: 0.85;
    font-weight: 800;
}

.bill-app__meta-line {
    margin: 0.75rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
}

.bill-app__amount {
    display: none;
}

.bill-pay__lines {
    display: grid;
    gap: 0.65rem;
}

.bill-pay__line {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
}

.bill-pay__line label,
.bill-mini-form label {
    display: grid;
    gap: 0.28rem;
}

.bill-pay__line label span {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--ktv-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bill-pay__row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0.5rem;
}

.bill-pay__add {
    justify-self: start;
}

.bill-pay__submit {
    width: 100%;
}

.bill-pay__submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.billing-btn--ghost {
    background: transparent;
    border-color: rgba(224, 184, 74, 0.35);
    color: var(--ktv-gold-soft);
}

.billing-btn--ghost:hover {
    background: rgba(224, 184, 74, 0.1);
    color: var(--ktv-gold-soft);
}

.billing-btn--danger {
    background: rgba(232, 93, 93, 0.16);
    border-color: rgba(232, 93, 93, 0.35);
    color: #f0a0a0;
}

.billing-btn--danger:hover {
    background: rgba(232, 93, 93, 0.24);
    color: #ffc0c0;
}

.bill-more {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.bill-more > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    font-weight: 750;
    color: var(--ktv-muted);
    font-size: 0.9rem;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bill-more > summary i {
    font-style: normal;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(224, 184, 74, 0.12);
    color: var(--ktv-gold-soft);
    font-weight: 800;
}

.bill-more > summary::-webkit-details-marker {
    display: none;
}

.bill-more > summary:hover,
.bill-more[open] > summary {
    color: var(--ktv-gold-soft);
    border-color: rgba(224, 184, 74, 0.35);
    background: rgba(224, 184, 74, 0.06);
}

.bill-more[open] {
    padding: 0 0 0.15rem;
}

.bill-more[open] > summary {
    margin-bottom: 0.65rem;
}

.bill-more[open] > summary i {
    transform: rotate(45deg);
}

.bill-more__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.bill-mini-form {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.16);
}

.bill-mini-form p {
    margin: 0;
    color: var(--ktv-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.bill-simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.bill-simple-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ktv-text);
    font-size: 0.88rem;
}

.bill-simple-list em {
    display: block;
    margin-top: 0.15rem;
    color: var(--ktv-muted);
    font-style: normal;
    font-size: 0.78rem;
}

@media (max-width: 980px) {
    .bill-show__grid {
        grid-template-columns: 1fr;
    }

    .bill-checkout {
        position: static;
    }

    .bill-more__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bill-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .bill-pay__methods {
        grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr));
    }

    .bill-pay__row {
        grid-template-columns: 1fr;
    }
}
/* ===== Bill detail — mobile app shell ===== */
.bill-app__nav,
.bill-app__amount,
.bill-app__tabs,
.bill-app__dock,
.bill-sheet {
    display: none;
}

.bill-app__desktop-only {
    display: block;
}

.bill-summary__due.bill-app__desktop-only {
    display: grid;
}

.bill-panel__head.bill-app__desktop-only {
    display: flex;
}

.is-pane-hidden {
    display: none !important;
}

html.bill-sheet-open,
html.bill-sheet-open body {
    overflow: hidden;
}

@media (max-width: 980px) {
    .ktv-content:has(.bill-app) > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: calc(5.5rem + var(--ktv-tabbar-h, 58px) + var(--ktv-safe-bottom, 0px)) !important;
    }

    .bill-app {
        gap: 0.75rem;
        padding-bottom: 0.25rem;
    }

    .bill-app__desktop-hero,
    .bill-app__desktop-pay,
    .bill-app__desktop-only,
    .bill-panel__head.bill-app__desktop-only {
        display: none !important;
    }

    .bill-app__nav {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        align-items: center;
        gap: 0.4rem;
        position: sticky;
        top: calc(var(--ktv-topbar-h, 52px) + var(--ktv-safe-top, 0px));
        z-index: 20;
        margin: -0.15rem -0.15rem 0;
        padding: 0.35rem 0.15rem;
        background: #07070a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .bill-app__nav-btn {
        width: 2.75rem;
        height: 2.75rem;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.04);
        color: var(--ktv-text);
        text-decoration: none;
        font-size: 1.35rem;
        line-height: 1;
        padding: 0;
    }

    .bill-app__nav-btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .bill-app__nav-title {
        min-width: 0;
        text-align: center;
        display: grid;
        gap: 0.2rem;
        justify-items: center;
    }

    .bill-app__nav-title strong {
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--ktv-text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .bill-app__amount {
        display: block;
        text-align: center;
        padding: 1.15rem 1rem 1rem;
        border-radius: 1.25rem;
        border: 1px solid rgba(224, 184, 74, 0.28);
        background:
            radial-gradient(120% 100% at 50% 0%, rgba(224, 184, 74, 0.2), transparent 60%),
            rgba(18, 18, 26, 0.9);
    }

    .bill-app__amount > span {
        display: block;
        font-size: 0.78rem;
        font-weight: 750;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ktv-muted);
        margin-bottom: 0.25rem;
    }

    .bill-app__amount > strong {
        display: block;
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        font-weight: 800;
        color: var(--ktv-gold-soft);
        line-height: 1.1;
    }

    .bill-app__amount > strong small {
        font-size: 0.9rem;
        color: var(--ktv-muted);
    }

    .bill-app__amount.is-clear > strong {
        color: #7ee0b0;
    }

    .bill-app__amount .bill-app__cust-btn {
        margin-top: 0.75rem;
        width: 100%;
        min-height: 2.6rem;
    }

    .bill-app__chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.85rem;
    }

    .bill-app__chips span {
        padding: 0.28rem 0.65rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--ktv-muted);
        font-size: 0.78rem;
        font-weight: 700;
    }

    .bill-app__tabs {
        display: flex;
        gap: 0.35rem;
        padding: 0.3rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
        position: sticky;
        top: calc(var(--ktv-topbar-h, 52px) + var(--ktv-safe-top, 0px) + 3.35rem);
        z-index: 19;
        background: #12121a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .bill-app__tab {
        flex: 1;
        min-height: 2.5rem;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--ktv-muted);
        font-weight: 750;
        font-size: 0.86rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }

    .bill-app__tab em {
        font-style: normal;
        min-width: 1.25rem;
        height: 1.25rem;
        padding: 0 0.35rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        font-size: 0.72rem;
        display: inline-grid;
        place-items: center;
    }

    .bill-app__tab.is-active {
        background: linear-gradient(135deg, var(--ktv-gold-soft), var(--ktv-gold));
        color: #1a1408;
    }

    .bill-app__tab.is-active em {
        background: rgba(26, 20, 8, 0.15);
        color: #1a1408;
    }

    .bill-show__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bill-show__side {
        display: contents;
    }

    .bill-show__main {
        display: grid;
        gap: 0.75rem;
    }

    .bill-app__amount {
        display: block;
    }

    .bill-app__meta-line {
        margin-top: 0.65rem;
        font-size: 0.82rem;
    }

    .bill-item {
        min-height: 3.5rem;
        padding: 0.9rem 0.95rem;
        border-radius: 1rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .bill-checkout {
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .bill-summary {
        position: static;
        padding: 0.95rem 1rem;
        border-radius: 1.15rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(16, 16, 22, 0.92);
    }

    .bill-summary__rows > div {
        min-height: 2.1rem;
        align-items: center;
        font-size: 0.95rem;
    }

    .bill-pay {
        display: grid;
        gap: 0.85rem;
    }

    .bill-pay__methods {
        grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr));
    }

    .bill-pay__submit {
        width: 100%;
        min-height: 3.15rem;
        justify-content: center;
    }

    .bill-more > summary {
        min-height: 3rem;
    }

    .bill-app__dock {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.65rem;
        align-items: center;
        position: fixed;
        left: 0.65rem;
        right: 0.65rem;
        bottom: calc(var(--ktv-tabbar-h, 58px) + var(--ktv-safe-bottom, 0px) + 0.55rem);
        z-index: 1030;
        padding: 0.7rem 0.75rem;
        border-radius: 1.2rem;
        border: 1px solid rgba(224, 184, 74, 0.28);
        background: rgba(14, 14, 18, 0.94);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .bill-app__dock-due span {
        display: block;
        font-size: 0.7rem;
        font-weight: 750;
        color: var(--ktv-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .bill-app__dock-due strong {
        display: block;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--ktv-gold-soft);
    }

    .bill-app__dock-due.is-clear strong {
        color: #7ee0b0;
    }

    .bill-app__dock-pay,
    .bill-app__dock .billing-btn {
        min-height: 3rem;
        min-width: 8.5rem;
        padding-inline: 1rem;
        border-radius: 0.95rem;
        font-size: 0.95rem;
    }

    .bill-app__dock-pay:disabled {
        opacity: 0.45;
    }

    .bill-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 11000;
    }

    .bill-sheet[hidden] {
        display: none !important;
    }

    .bill-sheet__backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
        backdrop-filter: blur(3px);
    }

    .bill-sheet__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(88dvh, 100%);
        display: flex;
        flex-direction: column;
        border-radius: 1.35rem 1.35rem 0 0;
        background: #121218;
        border: 1px solid rgba(224, 184, 74, 0.22);
        border-bottom: 0;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
        padding: 0.35rem 0.9rem calc(0.9rem + var(--ktv-safe-bottom, 0px));
        animation: billSheetUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes billSheetUp {
        from { transform: translateY(108%); }
        to { transform: translateY(0); }
    }

    .bill-sheet__grab {
        width: 2.6rem;
        height: 0.28rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        margin: 0.35rem auto 0.55rem;
    }

    .bill-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .bill-sheet__head h2 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--ktv-text);
    }

    .bill-sheet__body {
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .bill-sheet .bill-pay {
        border: 0;
        background: transparent;
        padding: 0;
        gap: 0.75rem;
    }

    .bill-sheet .billing-select,
    .bill-app .billing-select {
        min-height: 3rem;
        font-size: 1rem;
        border-radius: 0.95rem;
    }

    .bill-sheet .bill-pay__submit {
        min-height: 3.15rem;
        font-size: 1.05rem;
        position: sticky;
        bottom: 0;
    }
}

/* ===== Cashier shifts ===== */
.billing-badge--closed {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ktv-muted);
}

.billing-stat--warn strong {
    color: #f0a0a0;
}

.shift-open {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(224, 184, 74, 0.28);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(224, 184, 74, 0.16), transparent 55%),
        rgba(16, 16, 22, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.shift-open__copy h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
}

.shift-open__copy p {
    margin: 0;
    color: var(--ktv-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.shift-open__fields {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.shift-current,
.shift-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 22, 0.9);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.shift-current {
    border-color: rgba(224, 184, 74, 0.35);
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(224, 184, 74, 0.16), transparent 55%),
        rgba(18, 16, 12, 0.95);
}

.shift-current:hover,
.shift-card:hover {
    border-color: rgba(224, 184, 74, 0.4);
    transform: translateY(-1px);
    color: inherit;
}

.shift-current__main,
.shift-card__main {
    min-width: 0;
}

.shift-current__main strong,
.shift-card__no {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ktv-text);
    margin: 0.35rem 0 0.2rem;
}

.shift-current__main em,
.shift-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    color: var(--ktv-muted);
    font-size: 0.84rem;
    font-weight: 650;
    font-style: normal;
}

.shift-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
}

.shift-current__money,
.shift-card__money {
    display: grid;
    grid-auto-flow: column;
    gap: 0.85rem;
    text-align: right;
}

.shift-current__money small,
.shift-card__money small {
    display: block;
    color: var(--ktv-muted);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.shift-current__money strong,
.shift-card__money strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ktv-text);
    font-variant-numeric: tabular-nums;
}

.shift-card__money .is-diff strong {
    color: #f0a0a0;
}

.shift-list {
    display: grid;
    gap: 0.65rem;
}

.shift-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.shift-panel {
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
        rgba(16, 16, 22, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.shift-panel--muted {
    padding-top: 0.35rem;
}

.shift-panel--muted > summary {
    cursor: pointer;
    list-style: none;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    color: var(--ktv-muted);
    font-weight: 750;
    font-size: 0.95rem;
}

.shift-panel--muted > summary::-webkit-details-marker {
    display: none;
}

.shift-panel--muted[open] > summary {
    color: var(--ktv-gold-soft);
    margin-bottom: 0.25rem;
}

.shift-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
}

.shift-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
}

.shift-panel__head p {
    margin: 0.25rem 0 0;
    width: 100%;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.shift-panel__head span {
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.14);
    color: var(--ktv-gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.shift-panel__amount {
    font-size: 1.35rem !important;
    font-weight: 800;
    color: var(--ktv-gold-soft) !important;
    min-height: 3rem;
}

.shift-move-form {
    display: grid;
    gap: 0.65rem;
}

.shift-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.shift-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.shift-lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shift-lines strong {
    color: var(--ktv-text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.shift-lines em {
    display: block;
    margin-top: 0.15rem;
    color: var(--ktv-muted);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 650;
}

.shift-lines .is-in {
    color: #7ee0b0;
}

.shift-lines .is-out {
    color: #f0a0a0;
}

.shift-empty {
    margin: 0;
    color: var(--ktv-muted);
    font-size: 0.9rem;
    padding: 0.35rem 0.1rem;
}

@media (max-width: 900px) {
    .shift-open__fields,
    .shift-actions,
    .shift-columns {
        grid-template-columns: 1fr;
    }

    .shift-current,
    .shift-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .shift-current__money,
    .shift-card__money {
        grid-column: 1 / -1;
        justify-content: start;
        text-align: left;
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shift-current .billing-card__go,
    .shift-card .billing-card__go {
        grid-row: 1;
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .shift-current__money,
    .shift-card__money {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Refunds ===== */
.billing-badge--pending {
    background: rgba(224, 162, 58, 0.16);
    color: #f0c27a;
}

.billing-badge--completed {
    background: rgba(62, 207, 142, 0.16);
    color: #7ee0b0;
}

.refund-list {
    display: grid;
    gap: 0.7rem;
}

.refund-card {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%),
        rgba(16, 16, 22, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.refund-card.is-pending {
    border-color: rgba(224, 162, 58, 0.32);
    background:
        radial-gradient(100% 140% at 100% 0%, rgba(224, 162, 58, 0.12), transparent 55%),
        rgba(18, 16, 12, 0.94);
}

.refund-card__main {
    min-width: 0;
}

.refund-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.35rem;
}

.refund-card__no {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ktv-text);
}

.refund-card__type {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ktv-muted);
    font-size: 0.74rem;
    font-weight: 750;
}

.refund-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.refund-card__meta a {
    color: var(--ktv-gold-soft);
    font-weight: 750;
    text-decoration: none;
}

.refund-card__meta a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.refund-card__reason {
    margin: 0.45rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}

.refund-card__amt {
    text-align: right;
}

.refund-card__amt small {
    display: block;
    color: var(--ktv-muted);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.refund-card__amt strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
    font-variant-numeric: tabular-nums;
}

.refund-card__actions {
    display: grid;
    justify-items: end;
    gap: 0.4rem;
}

.refund-card__actions .billing-btn {
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .refund-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .refund-card__actions {
        grid-column: 1 / -1;
        justify-items: stretch;
    }

    .refund-card__actions .billing-btn,
    .refund-card__actions .billing-tool {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Pricing ===== */
.pricing-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.6fr);
    gap: 1rem;
    align-items: start;
}

.pricing-side,
.pricing-main {
    display: grid;
    gap: 0.85rem;
}

.pricing-panel {
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
        rgba(16, 16, 22, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 1.05rem 1.15rem;
}

.pricing-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.pricing-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
}

.pricing-panel__head p {
    margin: 0.25rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.pricing-panel__head span {
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.14);
    color: var(--ktv-gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.pricing-panel--muted {
    padding-top: 0.35rem;
}

.pricing-panel--muted > summary {
    cursor: pointer;
    list-style: none;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    color: var(--ktv-muted);
    font-weight: 750;
    font-size: 0.95rem;
}

.pricing-panel--muted > summary::-webkit-details-marker {
    display: none;
}

.pricing-panel--muted[open] > summary {
    color: var(--ktv-gold-soft);
    margin-bottom: 0.65rem;
}

.pricing-plan-list,
.pricing-rule-list {
    display: grid;
    gap: 0.5rem;
}

.pricing-plan {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pricing-plan strong {
    color: var(--ktv-text);
    font-weight: 800;
}

.pricing-plan em {
    font-style: normal;
    color: var(--ktv-muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.pricing-plan:hover,
.pricing-plan.is-active {
    border-color: rgba(224, 184, 74, 0.4);
    background: rgba(224, 184, 74, 0.08);
    color: inherit;
}

.pricing-plan.is-active strong {
    color: var(--ktv-gold-soft);
}

.pricing-rule {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.pricing-rule.is-off {
    opacity: 0.55;
}

.pricing-rule__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.3rem;
}

.pricing-rule__top strong {
    color: var(--ktv-text);
    font-weight: 800;
}

.pricing-rule__type {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ktv-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.pricing-rule__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    color: var(--ktv-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.pricing-rule__rate {
    text-align: right;
}

.pricing-rule__rate small {
    display: block;
    color: var(--ktv-muted);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.12rem;
}

.pricing-rule__rate strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ktv-gold-soft);
    font-variant-numeric: tabular-nums;
}

.pricing-rule__action .billing-btn {
    min-height: 2.45rem;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
}

.pricing-form {
    display: grid;
    gap: 0.7rem;
}

.pricing-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pricing-form--rule .pricing-form__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ktv-muted);
    font-weight: 650;
    font-size: 0.9rem;
}

.pricing-check input {
    accent-color: var(--ktv-gold);
}

.pricing-advanced {
    border-radius: 0.9rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 0.15rem 0.85rem 0.85rem;
}

.pricing-advanced > summary {
    cursor: pointer;
    list-style: none;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    color: var(--ktv-muted);
    font-weight: 700;
    font-size: 0.86rem;
}

.pricing-advanced > summary::-webkit-details-marker {
    display: none;
}

.pricing-advanced[open] > summary {
    color: var(--ktv-gold-soft);
    margin-bottom: 0.45rem;
}

.pricing-empty {
    margin: 0;
    color: var(--ktv-muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .pricing-form--rule .pricing-form__grid,
    .pricing-form__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .pricing-rule {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pricing-rule__action {
        grid-column: 1 / -1;
    }

    .pricing-rule__action .billing-btn {
        width: 100%;
    }

    .pricing-form--rule .pricing-form__grid,
    .pricing-form__grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Kitchen / Bar KDS ========== */
.kds-page {
    --kds-line: rgba(224, 184, 74, 0.22);
    width: 100%;
    max-width: none;
    padding-bottom: 0.75rem;
}

/* Use full main area on desktop KDS screens */
.ktv-content:has(.kds-page) {
    max-width: none;
    width: 100%;
}

@media (min-width: 992px) {
    .ktv-content:has(.kds-page) {
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-inline: 1rem 1.25rem;
    }

    .kds-page {
        min-height: calc(100dvh - 5.5rem);
        display: flex;
        flex-direction: column;
    }

    .kds-board {
        flex: 1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: stretch;
        min-height: calc(100dvh - 11rem);
    }

    .kds-col {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        height: 100%;
        padding: 0.85rem;
    }

    .kds-col__list {
        flex: 1;
        align-content: start;
    }

    .kds-ticket {
        padding: 1.05rem 1.05rem 0.95rem;
    }

    .kds-ticket__room {
        font-size: 1.65rem;
    }

    .kds-ticket__btn {
        min-height: 50px;
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .ktv-content:has(.kds-page) {
        padding-inline: 1.35rem 1.6rem;
    }

    .kds-board {
        gap: 1.15rem;
    }

    .kds-col {
        padding: 1rem;
        border-radius: 1.25rem;
    }
}

@media (min-width: 1800px) {
    .ktv-content:has(.kds-page) {
        padding-inline: 1.75rem 2rem;
    }

    .kds-board {
        gap: 1.35rem;
    }
}

.kds-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.kds-head__h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--ktv-text);
    line-height: 1.1;
}

.kds-head__sub {
    margin: 0.3rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.9rem;
}

.kds-head__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.kds-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kds-select {
    min-height: 42px;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0e0e14;
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 650;
}

.kds-select:focus {
    outline: none;
    border-color: rgba(224, 184, 74, 0.55);
    box-shadow: 0 0 0 3px rgba(224, 184, 74, 0.14);
}

.kds-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ktv-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.kds-live__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 0 0 rgba(110, 198, 150, 0.4);
}

.kds-live.is-ok .kds-live__dot {
    background: #6ec696;
    animation: kds-pulse 1.8s ease-in-out infinite;
}

.kds-live.is-error .kds-live__dot {
    background: #e07878;
}

.kds-live__time {
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
}

@keyframes kds-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(110, 198, 150, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(110, 198, 150, 0); }
}

.kds-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.kds-col {
    min-width: 0;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 14, 0.55);
    padding: 0.7rem;
    min-height: 12rem;
}

.kds-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding: 0.15rem 0.25rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kds-col__title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 210, 122, 0.92);
}

.kds-col__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(224, 184, 74, 0.14);
    color: var(--ktv-gold-soft);
    font-size: 0.75rem;
    font-weight: 800;
}

.kds-col__list {
    display: grid;
    gap: 0.65rem;
}

.kds-ticket {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.95rem 0.95rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(224, 184, 74, 0.22);
    background: linear-gradient(165deg, rgba(28, 24, 32, 0.96), rgba(12, 12, 18, 0.96));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    animation: ktv-fade-up 0.35s ease both;
}

.kds-ticket.is-warn {
    border-color: rgba(224, 160, 70, 0.55);
    box-shadow: 0 0 0 1px rgba(224, 160, 70, 0.18), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.kds-ticket.is-late {
    border-color: rgba(220, 100, 100, 0.55);
    background: linear-gradient(165deg, rgba(42, 20, 24, 0.98), rgba(14, 10, 12, 0.98));
}

.kds-ticket__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
}

.kds-ticket__room {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.kds-ticket__order {
    margin: 0.2rem 0 0;
    color: var(--ktv-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.kds-ticket__age {
    flex-shrink: 0;
    min-width: 3.4rem;
    text-align: center;
    padding: 0.35rem 0.45rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kds-ticket.is-ok .kds-ticket__age {
    color: #9eecc4;
    border-color: rgba(110, 198, 150, 0.3);
    background: rgba(110, 198, 150, 0.1);
}

.kds-ticket.is-warn .kds-ticket__age {
    color: #f0d78c;
    border-color: rgba(224, 184, 74, 0.4);
    background: rgba(224, 184, 74, 0.12);
}

.kds-ticket.is-late .kds-ticket__age {
    color: #f0b4b4;
    border-color: rgba(220, 120, 120, 0.4);
    background: rgba(220, 120, 120, 0.14);
}

.kds-ticket__age-val {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.kds-ticket__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.kds-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.55rem;
    align-items: start;
    padding: 0.45rem 0.55rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kds-item__qty {
    grid-row: 1 / span 3;
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    background: rgba(224, 184, 74, 0.16);
    color: var(--ktv-gold-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.kds-item__name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.25;
}

.kds-item__mod,
.kds-item__note {
    grid-column: 2;
    color: var(--ktv-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.kds-item__note {
    color: #f0d78c;
}

.kds-ticket__actions {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.kds-ticket__form {
    margin: 0;
}

.kds-ticket__btn {
    width: 100%;
    min-height: 46px;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 0.8rem;
}

.kds-ticket__btn--ghost {
    min-height: 38px;
    font-size: 0.82rem;
    font-weight: 700;
}

.kds-empty {
    text-align: center;
    padding: 3rem 1.25rem;
    border-radius: 1.2rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--ktv-muted);
}

.kds-empty__title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 750;
}

.kds-empty__hint {
    margin: 0;
    max-width: 24rem;
    margin-inline: auto;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .kds-board {
        grid-template-columns: 1fr;
    }

    .kds-col {
        min-height: 0;
    }

    .kds-col__list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .kds-head {
        align-items: stretch;
    }

    .kds-head__tools,
    .kds-filters {
        width: 100%;
    }

    .kds-select,
    .kds-live {
        flex: 1;
    }

    .kds-col__list {
        grid-template-columns: 1fr;
    }
}

/* App-wide kiosk / full-screen mode */
.ktv-topbar__fs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 0.85rem;
    border: 1px solid rgba(224, 184, 74, 0.35);
    background: rgba(224, 184, 74, 0.08);
    color: #f0d78c;
    cursor: pointer;
    flex: 0 0 auto;
}
.ktv-topbar__fs:hover {
    border-color: rgba(224, 184, 74, 0.65);
    background: rgba(224, 184, 74, 0.16);
}
.ktv-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.ktv-fs-btn__enter,
.ktv-fs-btn__exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ktv-fs-btn__enter[hidden],
.ktv-fs-btn__exit[hidden] {
    display: none !important;
}
html.ktv-fs .ktv-fs-btn__enter {
    display: none !important;
}
html.ktv-fs .ktv-fs-btn__exit,
html.ktv-fs .ktv-fs-btn__exit[hidden] {
    display: inline-flex !important;
}
html.ktv-fs .ktv-fs-btn {
    border-color: rgba(224, 184, 74, 0.7);
    background: rgba(224, 184, 74, 0.2);
    color: #f0d78c;
}
html.ktv-fs .pos-add-overlay,
html.ktv-fs .modal {
    z-index: 11000;
}
@media (max-width: 991.98px) {
    html.ktv-fs .ktv-content {
        padding-bottom: calc(1rem + var(--ktv-safe-bottom));
    }
}

.ktv-offline-banner {
    position: relative;
    z-index: 4000;
    margin: 0;
    padding: 0.45rem 0.9rem;
    padding-top: max(0.45rem, env(safe-area-inset-top, 0px));
    background: #5c1f32;
    color: #f4f1ea;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(224, 184, 74, 0.35);
}
.ktv-offline-banner[hidden] {
    display: none !important;
}

input[data-ktv-money="1"] {
    font-variant-numeric: tabular-nums;
}
