/* 
    1. Public View UI CSS
    2. Presence QR Admin UI CSS
    3. Scan Check-In Modal CSS
    4. Checkout Modal CSS
    5. Call Center UI CSS
    4. Public Event UI CSS
*/
.appointment-ticket-wrapper {
    width: 100%;
}

/* ------------------------------------------------------------ 
    1. Public View UI CSS 
 ------------------------------------------------------------ */
.appointment-success-card {
    border: 1px solid var(--ot-primary-border);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    text-align: left;
    margin-bottom: 16px;

    .appointment-ticket-header {
        padding: 14px 16px 8px 16px;
        text-align: center;
        background: #ffffff;
        border-bottom: 1px solid #f1f5f9;

        .appointment-ticket-logo {
            max-height: 32px;
            max-width: 150px;
            margin: 0 auto 4px auto;
            display: block;
        }

        .appointment-ticket-company {
            font-size: 14px;
            font-weight: 700;
            color: var(--ot-primary-title);
            letter-spacing: 0.5px;
            text-transform: uppercase;
            margin-bottom: 2px;
        }

        .appointment-ticket-branch {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            color: #64748b;
            font-weight: 500;
            background: #f1f5f9;
            padding: 2px 8px;
            border-radius: 4px;
        }
    }

    .appointment-ticket-hero {
        padding: 12px 16px;
        text-align: center;
        background: linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(139, 92, 246, 0.04) 100%
        );
        border-bottom: 1px dashed #cbd5e1;
        border-top: 1px dashed #cbd5e1;

        .appointment-ticket-tag {
            display: inline-block;
            background: var(--ot-primary);
            color: #ffffff;
            font-size: 8.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 3px 10px;
            border-radius: 4px;
            margin-bottom: 4px;
        }

        .appointment-ticket-num-label {
            display: block;
            font-size: 10.5px;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .appointment-ticket-num-value {
            display: block;
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
            color: var(--ot-primary);
            letter-spacing: 2px;
            margin-top: 2px;
        }
    }

    .appointment-ticket-qr-box {
        padding: 12px 16px 10px 16px;
        text-align: center;
        background: #ffffff;
        border-bottom: 1px dashed #cbd5e1;

        .appointment-qr-frame {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            padding: 8px;
            background: #ffffff;
            border: 1px solid var(--ot-primary-border);
            border-radius: 4px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

            .appointment-qr-img {
                width: 105px;
                height: 105px;
                display: block;
            }
        }
    }

    .appointment-ticket-details {
        padding: 4px 0;
        background: #ffffff;

        .appointment-ticket-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 3px 16px;

            &:not(:last-child) {
                border-bottom: 1px solid #f8fafc;
            }

            .appointment-ticket-label {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 12.5px;
                color: #64748b;
                font-weight: 500;

                i {
                    font-size: 14px;
                    color: var(--ot-primary);
                }
            }

            .appointment-ticket-value {
                font-size: 12px;
                font-weight: 600;
                color: var(--ot-primary-title);
                text-align: right;
                max-width: 60%;
            }
        }
    }

    .appointment-ticket-footer {
        padding: 10px 16px;
        background: #f8fafc;
        border-top: 1px dashed #cbd5e1;
        text-align: center;
        font-size: 10.5px;
        color: #64748b;
        line-height: 1.35;
    }
}

/* ------------------------------------------------------------ 
    2. Presence QR Admin UI CSS 
 ------------------------------------------------------------ */
@keyframes pq-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.85);
    }
}

.pq-page {
    .pq-section {
        border: 1px solid var(--ot-primary-border);
        border-radius: var(--pq-radius);
        background: #fff;
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 4px;

        .pq-section__title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 700;
            color: var(--ot-primary-title);
            margin: 0 0 14px;

            i {
                color: var(--ot-primary);
                font-size: 18px;
            }
        }
    }

    .pq-swatch {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid #dee2e6;
        cursor: pointer;
        position: relative;
        transition:
            transform 0.15s ease,
            border-color 0.15s ease;
        padding: 0;

        &:hover {
            transform: translateY(-1px);
        }

        &.is-active {
            border-color: var(--ot-primary);

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                display: block;
                background-color: #fff;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
                    center / 16px 16px no-repeat;
                -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
                    center / 16px 16px no-repeat;
            }
        }

        &[data-light="1"].is-active::after {
            background-color: var(--ot-primary-title);
        }
    }

    .pq-swatch-label {
        font-size: 10px;
        color: var(--ot-primary-title);
        text-align: center;
        margin-top: 6px;
        font-weight: 600;
    }

    .pq-color-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;

        .pq-color-item {
            width: 56px;
            text-align: center;
        }
    }

    .pq-live-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 26px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(16, 185, 129, 0.14);
        border: 1px solid rgba(16, 185, 129, 0.35);
        color: #059669 !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1;
        white-space: nowrap;
        flex: 0 0 auto;

        .pq-live-badge__dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #10b981;
            animation: pq-live-pulse 1.6s ease-in-out infinite;
            flex: 0 0 auto;
        }
    }

    .pq-hex-box {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #f8fafc;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        padding: 6px 10px;

        input[type="color"] {
            width: 28px;
            height: 28px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
        }

        input[type="text"] {
            width: 84px;
            border: 0;
            background: transparent;
            font-size: 14px;
            font-weight: 600;
            outline: none;
            box-shadow: none;
        }
    }

    .pq-actions {
        position: sticky;
        bottom: 12px;
        z-index: 5;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        border: 1px solid #e8edf3;
        border-radius: 4px;
        padding: 12px;
    }

    .pq-preview-wrap {
        position: sticky;
        top: 58px;

        .pq-preview-frame {
            /* border-radius: 4px;
            overflow: hidden;
            border: 1px solid var(--ot-primary-border);
            background: #fff; */

            .pq-preview-screen {
                position: relative;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                text-align: center;
                transition:
                    background-color 0.2s ease,
                    color 0.2s ease;
                padding: 14px 16px;

                &::before {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background: radial-gradient(
                        circle at 50% 18%,
                        rgba(37, 99, 235, 0.16) 0%,
                        transparent 55%
                    );
                    pointer-events: none;
                }

                .pq-preview-inner {
                    position: relative;
                    z-index: 1;
                    width: 100%;
                    max-width: 100%;
                }

                .pq-preview-disabled {
                    position: absolute;
                    inset: 0;
                    z-index: 3;
                    display: none;
                    align-items: center;
                    justify-content: center;
                    background: rgba(15, 23, 42, 0.55);
                    backdrop-filter: blur(2px);
                    padding: 20px;

                    &.is-visible {
                        display: flex;
                    }
                }
            }
        }
    }

    .pq-url-box {
        display: flex;
        gap: 8px;
        align-items: center;
        background: #f8fafc;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        padding: 8px 10px;

        code {
            flex: 1;
            font-size: 12px;
            color: #475569;
            word-break: break-all;
            white-space: normal;
        }
    }

    .pq-checkin-card {
        border: 1px solid var(--ot-primary-border);
        background: #fff;
        transition: all 0.2s ease;
        cursor: pointer;

        &:hover {
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        &.is-active {
            border-color: var(--ot-primary, #6366f1) !important;
            background-color: rgba(99, 102, 241, 0.05) !important;
        }

        &.radio-wrap {
            input[type="radio"]:checked + label.pq-checkin-card__label,
            input[type="radio"]:not(:checked) + label.pq-checkin-card__label {
                display: block;
                width: 100%;
                height: 100%;
                padding: 14px 14px 14px 42px;
                margin-bottom: 0;
                font-weight: inherit;
                font-size: inherit;
                line-height: inherit;
                color: inherit;
            }

            input[type="radio"]:checked + label.pq-checkin-card__label:before,
            input[type="radio"]:not(:checked)
                + label.pq-checkin-card__label:before {
                top: 16px;
                left: 14px;
            }

            input[type="radio"]:checked + label.pq-checkin-card__label:after,
            input[type="radio"]:not(:checked)
                + label.pq-checkin-card__label:after {
                top: 20px;
                left: 18px;
            }

            &.is-active
                input[type="radio"]:checked
                + label.pq-checkin-card__label:before {
                border-color: var(--ot-primary);
            }
        }
    }
}

/* ------------------------------------------------------------ 
    3. Scan & Check-In Modal CSS 
 ------------------------------------------------------------ */
@keyframes appointment-scan-checkin-modal-dot-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

@keyframes appointment-scan-checkin-modal-laser-move {
    0% {
        top: 15px;
        opacity: 0.2;
    }

    50% {
        top: calc(100% - 20px);
        opacity: 1;
    }

    100% {
        top: 15px;
        opacity: 0.2;
    }
}

.appointment-scan-checkin-modal {
    .appointment-scan-checkin-modal__scan-tabs {
        display: flex;
        gap: 6px;
        padding: 8px;
        margin-bottom: 18px;
        background: var(--body-bg);
        border-radius: 4px;
        border: 1px solid var(--ot-primary-border);
    }

    .appointment-scan-checkin-modal__scan-tabs .nav-item {
        flex: 1;
    }

    .appointment-scan-checkin-modal__scan-tabs .nav-link {
        width: 100%;
        border: 0;
        border-radius: 4px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ot-primary-paragraph);
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid var(--ot-primary-border);
        transition:
            color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
    }

    .appointment-scan-checkin-modal__scan-tabs .nav-link::before {
        display: none;
    }

    .appointment-scan-checkin-modal__scan-tabs-icon {
        display: inline-flex;
        align-items: center;
        font-size: 18px;
        line-height: 1;
    }

    .appointment-scan-checkin-modal__scan-tabs .nav-link.active {
        color: #fff;
        background: var(--ot-primary);
        border: 1px solid transparent;
    }

    .appointment-scan-checkin-modal__viewport {
        border: 2px dashed #cbd5e1;
        border-radius: 4px;
        padding: 16px;
        min-height: 290px;
        background: #f8fafc;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .appointment-scan-checkin-modal__viewport:hover {
        border-color: var(--ot-primary);
        background: rgba(124, 58, 237, 0.04);
    }

    .appointment-scan-checkin-modal__qr-reader {
        width: 100%;
        height: 100%;
        display: none;
        border: 0 !important;
    }

    .appointment-scan-checkin-modal__qr-reader--active {
        display: block;
    }

    .appointment-scan-checkin-modal__qr-reader video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 4px;
    }

    .appointment-scan-checkin-modal__live-badge {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(8px);
        border: 1px solid var(--ot-primary-border);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        letter-spacing: 0.05em;
        z-index: 10;
    }

    .appointment-scan-checkin-modal__live-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 8px #10b981;
        animation: appointment-scan-checkin-modal-dot-pulse 1.5s infinite;
    }

    .appointment-scan-checkin-modal__placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 240px;
        text-align: center;
        padding: 16px;
    }

    .appointment-scan-checkin-modal__placeholder-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(124, 58, 237, 0.1);
        color: var(--ot-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        margin-bottom: 12px;
    }

    .appointment-scan-checkin-modal__reticle {
        position: absolute;
        width: 200px;
        height: 200px;
        pointer-events: none;
        z-index: 2;
        display: none;
    }

    .appointment-scan-checkin-modal__reticle--active {
        display: block;
    }

    .appointment-scan-checkin-modal__reticle-corner {
        position: absolute;
        width: 24px;
        height: 24px;
        border-color: var(--ot-primary);
        border-style: solid;
    }

    .appointment-scan-checkin-modal__reticle-corner--top-left {
        top: 0;
        left: 0;
        border-width: 3px 0 0 3px;
        border-top-left-radius: 6px;
    }

    .appointment-scan-checkin-modal__reticle-corner--top-right {
        top: 0;
        right: 0;
        border-width: 3px 3px 0 0;
        border-top-right-radius: 6px;
    }

    .appointment-scan-checkin-modal__reticle-corner--bottom-left {
        bottom: 0;
        left: 0;
        border-width: 0 0 3px 3px;
        border-bottom-left-radius: 6px;
    }

    .appointment-scan-checkin-modal__reticle-corner--bottom-right {
        bottom: 0;
        right: 0;
        border-width: 0 3px 3px 0;
        border-bottom-right-radius: 6px;
    }

    .appointment-scan-checkin-modal__laser {
        position: absolute;
        left: 10px;
        right: 10px;
        height: 2px;
        background: linear-gradient(
            90deg,
            transparent,
            var(--ot-primary, #7c3aed),
            transparent
        );
        box-shadow: 0 0 10px var(--ot-primary);
        top: 20px;
        display: none;
        animation: appointment-scan-checkin-modal-laser-move 2s infinite
            ease-in-out;
        z-index: 3;
        pointer-events: none;
    }

    .appointment-scan-checkin-modal__laser--active {
        display: block;
    }

    .appointment-scan-checkin-modal__dropzone {
        border: 2px dashed #cbd5e1;
        border-radius: 4px;
        padding: 36px 20px;
        background: rgba(var(--ot-primary-rgb), 0.06);
        text-align: center;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
    }

    .appointment-scan-checkin-modal__dropzone:hover,
    .appointment-scan-checkin-modal__dropzone--dragover {
        border-color: var(--ot-primary);
        background: rgba(124, 58, 237, 0.04);
    }

    .appointment-scan-checkin-modal__ticket-card {
        background: #ffffff;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    }

    .appointment-scan-checkin-modal__ticket-top {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%);
        padding: 14px 18px;
        color: #fff;
    }

    .appointment-scan-checkin-modal__ticket-top--already-checked {
        background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    }

    .appointment-scan-checkin-modal__ticket-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        font-size: 20px;
        flex-shrink: 0;
    }

    .appointment-scan-checkin-modal__badge-token {
        background: #ffffff;
        color: #059669;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.03em;
        padding: 5px 12px;
        border-radius: 999px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .appointment-scan-checkin-modal__ticket-top--already-checked
        .appointment-scan-checkin-modal__badge-token {
        color: #d97706;
    }

    .appointment-scan-checkin-modal__manual-field {
        margin-bottom: 16px;
    }

    .appointment-scan-checkin-modal__manual-label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ot-primary-title, #1e293b);
    }

    .appointment-scan-checkin-modal__manual-input-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 6px 8px 6px 10px;
        border: 1px solid rgba(var(--ot-primary-rgb), 0.35);
        border-radius: 4px;
        background: #ffffff;
        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    }

    .appointment-scan-checkin-modal__manual-input-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border-radius: 4px;
        background: rgba(var(--ot-primary-rgb), 0.1);
        color: var(--ot-primary);
        font-size: 18px;
    }

    .appointment-scan-checkin-modal__manual-input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        box-shadow: none;
        background: transparent;
        font-size: 14px;
        font-weight: 500;
        color: var(--ot-primary-title, #1e293b);
        padding: 0;
    }

    .appointment-scan-checkin-modal__manual-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    .appointment-scan-checkin-modal__manual-input-divider {
        width: 1px;
        align-self: stretch;
        margin: 6px 0;
        background: #e2e8f0;
        flex-shrink: 0;
    }

    .appointment-scan-checkin-modal__manual-paste-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 0;
        background: transparent;
        color: var(--ot-primary);
        font-size: 14px;
        font-weight: 600;
        padding: 8px 12px 8px 4px;
        border-radius: 4px;
        flex-shrink: 0;
        transition: background-color 0.2s ease;
    }

    .appointment-scan-checkin-modal__manual-paste-btn:hover {
        background: rgba(175, 82, 222, 0.08);
    }

    .appointment-scan-checkin-modal__manual-help {
        margin: 8px 0 0;
        font-size: 12px;
        color: var(--ot-primary-title);
    }

    .appointment-scan-checkin-modal__supported-panel {
        padding: 14px;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        background: #f8fafc;
    }

    .appointment-scan-checkin-modal__supported-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
    }

    .appointment-scan-checkin-modal__supported-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--ot-primary-title, #1e293b);
    }

    .appointment-scan-checkin-modal__supported-body {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .appointment-scan-checkin-modal__supported-formats {
        display: flex;
        align-items: stretch;
        gap: 10px;
        flex-wrap: wrap;
        flex: 1;
        min-width: 0;
    }

    .appointment-scan-checkin-modal__format-card {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 150px;
        padding: 10px 12px;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        background: #ffffff;
    }

    .appointment-scan-checkin-modal__format-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 4px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .appointment-scan-checkin-modal__format-icon--appointment {
        background: rgba(245, 158, 11, 0.14);
        color: #d97706;
    }

    .appointment-scan-checkin-modal__format-icon--phone {
        background: rgba(16, 185, 129, 0.14);
        color: #059669;
    }

    .appointment-scan-checkin-modal__format-icon--hash {
        background: rgba(59, 130, 246, 0.14);
        color: #2563eb;
    }

    .appointment-scan-checkin-modal__format-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--ot-primary-title, #1e293b);
        line-height: 1.2;
    }

    .appointment-scan-checkin-modal__format-subtitle {
        margin-top: 2px;
        font-size: 12px;
        color: #64748b;
        line-height: 1.2;
    }
}

/* ------------------------------------------------------------
    4. Check-In Chooser Modal
 ------------------------------------------------------------ */
.check-in-chooser-modal__subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--ot-primary-title);
}

.check-in-chooser-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-in-chooser-modal__option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ot-primary-border);
    border-radius: 4px;
    background: #ffffff;
    text-align: left;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.check-in-chooser-modal__option:hover {
    border-color: var(--ot-primary);
    background: rgba(124, 58, 237, 0.04);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    .check-in-chooser-modal__option-arrow {
        color: var(--ot-primary);
    }
}

.check-in-chooser-modal__option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 20px;
}

.check-in-chooser-modal__option-icon--appointment {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.check-in-chooser-modal__option-icon--event {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.check-in-chooser-modal__option-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.check-in-chooser-modal__option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ot-primary-title, #1e293b);
    line-height: 1.3;
}

.check-in-chooser-modal__option-description {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.check-in-chooser-modal__option-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
    Appointment table note column
 ------------------------------------------------------------ */
.basic-table th.appt-note-col,
.basic-table td.appt-note-col {
    width: 220px;
    max-width: 220px;
    overflow: visible;
    vertical-align: middle;
}

.appt-note-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    resize: none;
    overflow: visible;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
    line-height: 1.35;
}

.appt-note-text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appt-note-trigger svg,
.appt-note-trigger i,
.appt-note-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    display: block !important;
    overflow: visible;
    color: #64748b;
    stroke-width: 2;
}

.appt-note-popover {
    max-width: 320px;
}

.appt-note-popover .popover-body {
    white-space: pre-wrap;
    word-break: break-word;
}

/* ------------------------------------------------------------
    Call Center
 ------------------------------------------------------------ */
.cc-page {
    .cc-booking-type-toggle .cc-type-btn.breadcrumb-btn {
        background: transparent;
        border: 0;
        box-shadow: none;
        cursor: pointer;
        color: var(--ot-primary-paragraph);
    }

    .cc-booking-type-toggle .cc-type-btn.breadcrumb-btn.active {
        color: var(--ot-primary) !important;
    }

    .cc-booking-type-toggle .cc-type-btn.breadcrumb-btn.active.item::before {
        background: var(--ot-primary) !important;
    }

    .cc-lookup-row {
        display: flex;
        align-items: stretch;
        gap: 8px;

        .ot-contact-form {
            flex: 1;
            min-width: 0;
            margin-bottom: 0;
        }
    }

    .cc-hint {
        display: none;
        margin-top: 8px;
        font-size: 12px;
        font-weight: 600;
        padding: 8px 12px;
        border-radius: 4px;

        &.is-found {
            display: block;
            background: #ecfdf5;
            color: #047857;
            border: 1px solid #a7f3d0;
        }

        &.is-empty {
            display: block;
            background: #f8fafc;
            color: #64748b;
            border: 1px solid var(--ot-primary-border);
        }
    }

    .cc-side-panel {
        .cc-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            background: rgba(var(--ot-primary-rgb), 0.12);
            color: var(--ot-primary);
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
        }

        .nav-link {
            .cc-count {
                margin-left: 2px;
            }
        }
    }

    .cc-booking-item {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 8px;
        margin: 0 -8px;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.15s ease;

        &:last-child {
            border-bottom: 0;
        }

        &:hover,
        &:focus-visible {
            outline: none;
        }
    }

    .cc-booking-num {
        font-weight: 700;
        color: var(--ot-primary-title);
        font-size: 14px;
    }

    .cc-booking-meta {
        font-size: 12px;
        color: var(--ot-primary-paragraph);
        margin-top: 2px;
    }

    .cc-empty {
        text-align: center;
        padding: 32px 12px;
        color: var(--ot-primary-paragraph);
        font-size: 14px;
    }
    /* 
    .cc-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    } */

    .cc-keep {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--ot-primary-paragraph);
        margin-right: auto;
    }

    .cc-preview {
        padding: 4px 0 0;
    }

    .cc-preview-hero {
        text-align: center;
        padding: 16px 12px 14px;
        border-radius: 4px;
        background: rgba(var(--ot-primary-rgb), 0.06);
        border: 1px solid rgba(var(--ot-primary-rgb), 0.14);
        margin-bottom: 14px;
    }

    .cc-preview-qr {
        display: none;
        max-width: 210px;
        min-width: 200px;
        &.is-visible {
            display: block;
        }
    }

    .cc-preview-qr-img {
        display: block;
        width: 200px;
        height: 200px;
        margin: 0 auto;
        padding: 8px;
        background: #ffffff;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        object-fit: contain;
    }

    .cc-preview-qr-caption {
        margin-top: 6px;
        font-size: 12px;
        font-weight: 600;
        color: var(--ot-primary-paragraph);
    }

    .cc-preview-kicker {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--ot-primary);
        margin-bottom: 4px;
    }

    .cc-preview-number {
        font-size: 22px;
        font-weight: 800;
        color: var(--ot-primary-title);
        letter-spacing: 0.02em;
        word-break: break-all;
    }

    .cc-preview-token {
        display: none;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 4px;
        background: #fff;
        border: 1px dashed rgba(var(--ot-primary-rgb), 0.35);

        &.is-visible {
            display: block;
        }
    }

    .cc-preview-token-label {
        font-size: 12px;
        font-weight: 700;
        color: var(--ot-primary-paragraph);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .cc-preview-token-value {
        font-size: 20px;
        font-weight: 800;
        color: var(--ot-primary);
        margin-top: 2px;
    }

    .cc-preview-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;

        &:last-of-type {
            border-bottom: 0;
        }
    }

    .cc-preview-label {
        color: var(--ot-primary-paragraph);
        font-weight: 600;
    }

    .cc-preview-value {
        color: var(--ot-primary-title);
        font-weight: 700;
        text-align: right;
    }

    .cc-preview-note {
        margin-top: 14px;
        padding: 10px 12px;
        border-radius: 4px;
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;

        &.is-token {
            background: #ecfdf5;
            border-color: #a7f3d0;
            color: #047857;
        }
    }

    #ccBookBtn {
        svg,
        i {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
    }

    .cc-event-info-card {
        background: #f8fafc;
        border: 1px solid var(--ot-primary-border);
        border-radius: 4px;
        padding: 14px 16px;
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .cc-event-info-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .cc-event-info-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--ot-primary-title);
    }

    .cc-event-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
        font-size: 12px;
        margin-top: 4px;
    }

    .cc-event-info-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #475569;

        i,
        svg {
            width: 14px;
            height: 14px;
            color: var(--ot-primary);
            flex-shrink: 0;
        }
    }

    .cc-history-user-card {
        background: #f8fafc;
        border-radius: 4px;
        padding: 14px 16px;
        margin-bottom: 12px;
        border: 1px solid var(--ot-primary-border);
    }

    .cc-history-user-name {
        font-size: 16px;
        font-weight: 800;
        color: var(--ot-primary-title);
    }

    .cc-history-user-meta {
        font-size: 12px;
        color: var(--ot-primary-paragraph);
        margin-top: 2px;
    }

    .cc-history-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px dashed #cbd5e1;
        font-size: 12px;
        font-weight: 600;
        color: var(--ot-primary-paragraph);
    }

    .cc-history-pill-bar,
    .cc-today-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
    }

    .cc-hist-filter-btn {
        padding: 4px 12px;
        border-radius: 4px;
        border: 1px solid var(--ot-primary-border);
        background: #ffffff;
        color: var(--ot-primary-paragraph);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        line-height: 1;

        &.active {
            background: var(--ot-primary);
            color: #ffffff;
            border-color: var(--ot-primary);
        }
    }

    .cc-history-list,
    .cc-today-list,
    #ccTodayList {
        max-height: min(480px, calc(100vh - 360px));
        overflow-y: auto;
    }

    @media (min-width: 992px) {
        > .row {
            align-items: flex-start;

            > [class*="col-"] + [class*="col-"] .ot-card {
                position: sticky;
                top: 16px;
            }
        }
    }
}

/* ------------------------------------------------------------
    Event banner preview (create / edit)
 ------------------------------------------------------------ */
.col-lg-4:has(.banner-preview-card) {
    min-width: 0;
    max-width: 100%;
}

.banner-preview-card {
    border: 2px dashed #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8fafc;
    transition: all 0.2s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px;
}

.banner-preview-card:hover {
    border-color: var(--ot-primary);
}

.banner-preview-card.has-banner {
    border-style: solid;
}

.banner-img-element,
#banner_img_preview {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 180px !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
}

.banner-img-element.d-none,
#banner_img_preview.d-none {
    display: none !important;
}

.banner-preview-card #banner_placeholder {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.banner-preview-card #banner_placeholder.d-none {
    display: none !important;
}

.banner-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.banner-badge-tag.d-none {
    display: none !important;
}

/* .section-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #eef2ff;
    color: var(--ot-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
} */

.selection-tile {
    border: 1px solid var(--ot-primary-border);
    border-radius: 4px;
    padding: 12px 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selection-tile:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.selection-tile.active {
    border-color: var(--ot-primary);
    background: #eef2ff;
}

/* ------------------------------------------------------------
    Event details / show page
 ------------------------------------------------------------ */
.event-hero-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
    padding: 16px;
}

.event-hero-banner-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 240px;
    overflow: hidden;
}

.event-hero-banner-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        3deg,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(15, 23, 42, 0.15) 70%,
        rgba(15, 23, 42, 0) 100%,
        rgba(15, 23, 42, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 16px;
    padding: 24px 28px;
}

.hero-event-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.25;
    max-width: 800px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--body-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--ot-primary-title);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
}

.config-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .event-hero-banner-wrap {
        height: 220px;
    }

    .event-hero-overlay {
        padding: 16px;
    }

    .hero-event-title {
        font-size: 20px;
    }
}

/* ------------------------------------------------------------
    Presence QR - Admin Settings & Live Preview
 ------------------------------------------------------------ */

.pq-section:first-child {
    padding-top: 0;
}

.pq-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pq-section__title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pq-section__title i {
    font-size: 18px;
    color: var(--ot-primary);
}

.pq-checkin-card {
    background: #ffffff;
    border: 1px solid var(--ot-primary-border);
    transition: all 0.2s ease;
    min-height: 92px;
    cursor: pointer;
}

.pq-checkin-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.pq-checkin-card.is-active {
    border-color: #6366f1 !important;
    background: #f5f7ff !important;
}

.pq-checkin-card.radio-wrap
    input[type="radio"]:checked
    + label.pq-checkin-card__label,
.pq-checkin-card.radio-wrap
    input[type="radio"]:not(:checked)
    + label.pq-checkin-card__label {
    display: block;
    width: 100%;
    height: 100%;
    padding: 14px 14px 14px 42px;
    margin-bottom: 0;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.pq-checkin-card.radio-wrap
    input[type="radio"]:checked
    + label.pq-checkin-card__label:before,
.pq-checkin-card.radio-wrap
    input[type="radio"]:not(:checked)
    + label.pq-checkin-card__label:before {
    top: 16px;
    left: 14px;
}

.pq-checkin-card.radio-wrap
    input[type="radio"]:checked
    + label.pq-checkin-card__label:after,
.pq-checkin-card.radio-wrap
    input[type="radio"]:not(:checked)
    + label.pq-checkin-card__label:after {
    top: 20px;
    left: 18px;
}

.pq-checkin-card.is-active.radio-wrap
    input[type="radio"]:checked
    + label.pq-checkin-card__label:before {
    border-color: var(--ot-primary);
}

.pq-swatch-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pq-swatch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--ot-primary-border);
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pq-swatch:hover {
    border-color: var(--ot-primary);
}

.pq-swatch.is-active {
    border-color: var(--ot-primary);
    background: #eef2ff;
    color: var(--ot-primary);
}

.pq-swatch__color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.pq-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.pq-preview-wrap {
    position: sticky;
    top: 16px;
}

/* ------------------------------------------------------------
    Presence QR - Shared Display & Preview Screen Styles
 ------------------------------------------------------------ */
html.presence-display-page,
body:has(.presence-display-page) {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.presence-display-page {
    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        min-height: 100vh;
        background-color: var(--bg-dark, #070a13);
        color: var(--text-main, #ffffff);
        font-family:
            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
            Arial, sans-serif;
        position: relative;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .ambient-bg {
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(
                circle at 50% 15%,
                rgba(99, 102, 241, 0.15) 0%,
                transparent 60%
            ),
            radial-gradient(
                circle at 80% 80%,
                rgba(139, 92, 246, 0.08) 0%,
                transparent 50%
            ),
            radial-gradient(
                circle at 20% 80%,
                rgba(16, 185, 129, 0.08) 0%,
                transparent 50%
            );
        z-index: 0;
        overflow: hidden;
    }

    .ambient-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
        pointer-events: none;

        &.ambient-orb--1 {
            width: 450px;
            height: 450px;
            background: var(--ot-primary);
            top: -100px;
            left: 20%;
            animation: orb-float 18s ease-in-out infinite alternate;
        }

        &.ambient-orb--2 {
            width: 350px;
            height: 350px;
            background: #8b5cf6;
            bottom: -80px;
            right: 25%;
            animation: orb-float 22s ease-in-out infinite alternate-reverse;
        }
    }

    .presence-display-canvas {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
        padding: 24px 36px;
        box-sizing: border-box;
    }

    .scaner-header,
    .display-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        padding-bottom: 6px;
    }

    .brand-box {
        display: inline-flex;
        align-items: center;
    }

    .brand-logo {
        max-height: 32px;
        max-width: 130px;
        object-fit: contain;
        display: block;
    }

    .brand-name {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--text-main, #ffffff);
    }

    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .display-clock-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        border-radius: 9999px;
        background: var(--card-bg, rgba(255, 255, 255, 0.05));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
        color: var(--text-main, #ffffff);
        font-size: 12px;
        font-weight: 600;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .clock-time {
        font-family:
            ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .clock-ampm {
        font-size: 12px;
        opacity: 0.75;
        font-weight: 700;
    }

    .live-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        border-radius: 9999px;
        background: rgba(16, 185, 129, 0.15);
        border: 1px solid rgba(52, 211, 153, 0.4);
        color: #34d399;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: capitalize;
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #34d399;
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
        animation: pulse-green 2s infinite;
    }

    .btn-fullscreen {
        background: var(--card-bg, rgba(255, 255, 255, 0.06));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
        color: var(--text-main, #ffffff);
        width: 34px;
        height: 28px;
        border-radius: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover {
            background: var(--card-border, rgba(255, 255, 255, 0.18));
            transform: scale(1.05);
        }
    }

    .center-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 16px 0;
        flex: 1;
    }

    .hero-tag-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border-radius: 9999px;
        background: var(--ot-primary);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        text-transform: capitalize;
        margin-bottom: 10px;
    }

    .display-title {
        font-size: 42px;
        font-weight: 800;
        letter-spacing: -0.03em;
        margin: 0 0 6px 0;
        color: var(--text-main, #ffffff);
        line-height: 1.15;
    }

    .display-subtitle {
        font-size: 16px;
        color: var(--text-sub, rgba(255, 255, 255, 0.72));
        margin: 0 auto 20px auto;
        max-width: 620px;
        line-height: 1.45;
    }

    .presence-display__disabled {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(248, 113, 113, 0.4);
        color: #f87171;
        padding: 14px 24px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
    }

    .presence-display__qr-container {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .qr-glow-aura {
        position: absolute;
        inset: -15px;
        background: radial-gradient(
            circle,
            rgba(99, 102, 241, 0.45) 0%,
            rgba(139, 92, 246, 0.2) 50%,
            transparent 70%
        );
        filter: blur(28px);
        border-radius: 40px;
        pointer-events: none;
        z-index: 0;
        animation: glow-pulse 4s ease-in-out infinite alternate;
    }

    .qr-outer-frame {
        position: relative;
        z-index: 1;
        background: #ffffff;
        padding: 22px;
        border-radius: 4px;
        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .presence-display__qr {
        display: block;
        width: 270px;
        height: 270px;
        border-radius: 4px;
    }

    .qr-laser-scanner {
        position: absolute;
        top: 0;
        left: 10px;
        right: 10px;
        height: 3px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.8) 50%,
            transparent 100%
        );
        box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.6);
        pointer-events: none;
        z-index: 3;
        animation: laser-scan 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .qr-corner {
        position: absolute;
        width: 22px;
        height: 22px;
        border-color: var(--ot-primary);
        border-style: solid;
        pointer-events: none;
        z-index: 4;

        &.qr-tl {
            top: 8px;
            left: 8px;
            border-width: 3px 0 0 3px;
            border-top-left-radius: 6px;
        }

        &.qr-tr {
            top: 8px;
            right: 8px;
            border-width: 3px 3px 0 0;
            border-top-right-radius: 6px;
        }

        &.qr-bl {
            bottom: 8px;
            left: 8px;
            border-width: 0 0 3px 3px;
            border-bottom-left-radius: 6px;
        }

        &.qr-br {
            bottom: 8px;
            right: 8px;
            border-width: 0 3px 3px 0;
            border-bottom-right-radius: 6px;
        }
    }

    .presence-display__meta {
        margin-top: 14px;
    }

    .meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 18px;
        border-radius: 9999px;
        background: var(--card-bg, rgba(255, 255, 255, 0.06));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
        color: var(--text-muted, rgba(255, 255, 255, 0.55));
        font-size: 12px;
        font-weight: 600;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .presence-display__countdown {
        color: var(--text-main, #ffffff);
        font-family: ui-monospace, SFMono-Regular, monospace;
        font-weight: 700;
    }

    .instructions-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        padding-top: 6px;
    }

    .instruction-card {
        background: var(--card-bg, rgba(255, 255, 255, 0.05));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
        border-radius: 4px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;

        &:hover {
            transform: translateY(-2px);
            border-color: rgba(99, 102, 241, 0.4);
        }
    }

    .step-num-badge {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--ot-primary);
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .step-info {
        display: flex;
        flex-direction: column;
        text-align: left;
        min-width: 0;
    }

    .step-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--text-main, #ffffff);
        line-height: 1.25;
    }

    .step-desc {
        font-size: 12px;
        color: var(--text-muted, rgba(255, 255, 255, 0.52));
        line-height: 1.35;
        margin-top: 2px;
    }

    &.is-light-bg {
        .live-status {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.4);
            color: #059669;
        }

        .pulse-dot {
            background-color: #059669;
        }

        .hero-tag-pill {
            background: var(--ot-primary);
            color: #fff;
        }
    }

    @media (max-width: 768px) {
        .presence-display-canvas {
            padding: 16px;
        }

        .display-title {
            font-size: 28px;
        }

        .presence-display__qr {
            width: 220px;
            height: 220px;
        }

        .instructions-row {
            grid-template-columns: 1fr;
            gap: 10px;
        }
    }
}

.pq-preview-screen {
    position: relative;
    padding: 14px 16px;
    min-height: 480px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.52);
    overflow: hidden;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;

    &.is-light-bg {
        --card-bg: rgba(0, 0, 0, 0.04);
        --card-border: rgba(0, 0, 0, 0.1);
        --text-main: var(--ot-primary-title);
        --text-sub: rgba(15, 23, 42, 0.75);
        --text-muted: rgba(15, 23, 42, 0.55);

        .live-status {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.4);
            color: #059669;
        }

        .pulse-dot {
            background-color: #059669;
        }

        .hero-tag-pill {
            background: var(--ot-primary);
            color: #fff;
        }
    }

    .ambient-bg {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(
                circle at 50% 15%,
                rgba(99, 102, 241, 0.15) 0%,
                transparent 60%
            ),
            radial-gradient(
                circle at 80% 80%,
                rgba(139, 92, 246, 0.08) 0%,
                transparent 50%
            ),
            radial-gradient(
                circle at 20% 80%,
                rgba(16, 185, 129, 0.08) 0%,
                transparent 50%
            );
        z-index: 0;
        overflow: hidden;
    }

    .ambient-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(40px);
        opacity: 0.25;
        pointer-events: none;

        &.ambient-orb--1 {
            width: 250px;
            height: 250px;
            background: var(--ot-primary);
            top: -50px;
            left: 10%;
            animation: orb-float 18s ease-in-out infinite alternate;
        }

        &.ambient-orb--2 {
            width: 200px;
            height: 200px;
            background: #8b5cf6;
            bottom: -40px;
            right: 10%;
            animation: orb-float 22s ease-in-out infinite alternate-reverse;
        }
    }

    .scaner-header,
    .display-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
        padding-bottom: 6px;
    }

    .brand-box {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        border-radius: 4px;
    }

    .brand-logo {
        max-height: 18px;
        max-width: 70px;
        object-fit: contain;
        display: block;
    }

    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .display-clock-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        border-radius: 9999px;
        background: var(--card-bg, rgba(255, 255, 255, 0.05));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
        color: var(--text-main, #ffffff);
        font-size: 9.5px;
        font-weight: 600;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .clock-time {
        font-family:
            ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    .clock-ampm {
        font-size: 8.5px;
        opacity: 0.75;
        font-weight: 700;
    }

    .live-status {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        border-radius: 9999px;
        background: rgba(16, 185, 129, 0.15);
        border: 1px solid rgba(52, 211, 153, 0.4);
        color: #34d399;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: capitalize;
    }

    .pulse-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: #34d399;
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
        animation: pulse-green 2s infinite;
    }

    .hero-tag-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border-radius: 9999px;
        background: var(--ot-primary);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        text-transform: capitalize;
        margin-bottom: 10px;
    }

    .presence-display__qr-container {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .qr-glow-aura {
        position: absolute;
        inset: -8px;
        background: radial-gradient(
            circle,
            rgba(99, 102, 241, 0.45) 0%,
            rgba(139, 92, 246, 0.2) 50%,
            transparent 70%
        );
        filter: blur(14px);
        border-radius: 40px;
        pointer-events: none;
        z-index: 0;
        animation: glow-pulse 4s ease-in-out infinite alternate;
    }

    .qr-outer-frame {
        position: relative;
        z-index: 1;
        background: #ffffff;
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .qr-laser-scanner {
        position: absolute;
        top: 0;
        left: 10px;
        right: 10px;
        height: 3px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.8) 50%,
            transparent 100%
        );
        box-shadow: 0 0 12px 2px rgba(99, 102, 241, 0.6);
        pointer-events: none;
        z-index: 3;
        animation: laser-scan 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    }

    .qr-corner {
        position: absolute;
        width: 13px;
        height: 13px;
        border-color: var(--ot-primary);
        border-style: solid;
        pointer-events: none;
        z-index: 4;

        &.qr-tl {
            top: 6px;
            left: 6px;
            border-width: 2px 0 0 2px;
            border-top-left-radius: 4px;
        }

        &.qr-tr {
            top: 6px;
            right: 6px;
            border-width: 2px 2px 0 0;
            border-top-right-radius: 4px;
        }

        &.qr-bl {
            bottom: 6px;
            left: 6px;
            border-width: 0 0 2px 2px;
            border-bottom-left-radius: 4px;
        }

        &.qr-br {
            bottom: 6px;
            right: 6px;
            border-width: 0 2px 2px 0;
            border-bottom-right-radius: 4px;
        }
    }

    .presence-display__meta {
        margin-top: 14px;
    }

    .meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 12px;
        border-radius: 9999px;
        background: var(--card-bg, rgba(255, 255, 255, 0.06));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.12));
        color: var(--text-muted, rgba(255, 255, 255, 0.55));
        font-size: 10px;
        font-weight: 600;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .presence-display__countdown {
        color: var(--text-main, #ffffff);
        font-family: ui-monospace, SFMono-Regular, monospace;
        font-weight: 700;
    }

    .instructions-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
        padding-top: 6px;
    }

    .instruction-card {
        background: var(--card-bg, rgba(255, 255, 255, 0.05));
        border: 1px solid var(--card-border, rgba(255, 255, 255, 0.1));
        border-radius: 4px;
        padding: 6px 8px;
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition:
            transform 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;

        &:hover {
            transform: translateY(-2px);
            border-color: rgba(99, 102, 241, 0.4);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        }
    }

    .step-num-badge {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--ot-primary);
        color: #ffffff;
        font-size: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(99, 102, 241, 0.45);
    }

    .step-info {
        display: flex;
        flex-direction: column;
        text-align: left;
        min-width: 0;
    }

    .step-title {
        font-size: 10.5px;
        font-weight: 700;
        color: var(--text-main, #ffffff);
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .step-desc {
        font-size: 8px;
        color: var(--text-muted, rgba(255, 255, 255, 0.52));
        line-height: 1.2;
        margin-top: 0;
        opacity: 0.72;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.pq-preview-disabled {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;

    &.is-visible {
        display: flex !important;
    }
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -20px) scale(0.95);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes glow-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.96);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@keyframes laser-scan {
    0% {
        top: 6px;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 8px);
        opacity: 0;
    }
}

/* ------------------------------------------------------------
    Public Event Registration & Event Pass Page Styles
 ------------------------------------------------------------ */

/* Container expansion when on public event page */
.auth-layout:has(.public-event-wrapper),
.auth-layout:has(.event-pass-wrap) {
    background-color: #f8fafc;
}
.ot-login-card:has(.public-event-body) .login-logo,
.ot-login-card:has(.public-event-body) .login-title {
    display: none !important;
}
.ot-login-card:has(.appointment-ticket-wrapper) .login-logo,
.ot-login-card:has(.appointment-ticket-wrapper) .login-title {
    display: none !important;
}

/* Fallback if :has selector not fully supported in old browsers */
.public-event-wrapper,
.event-pass-wrap {
    width: 100%;
    margin: 0 auto;
}

.public-event-hero {
    position: relative;
    width: 100%;
    height: 240px;
    max-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.public-event-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 576px) {
    .public-event-body {
        padding: 20px 18px 28px;
    }
    .public-event-hero {
        height: 220px;
    }
}

.event-description-card {
    background: #f8fafc;
    border-left: 3.5px solid var(--ot-primary);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.custom-reg-input,
.custom-reg-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13.5px;
    color: var(--ot-primary-title);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.custom-reg-input:focus,
.custom-reg-textarea:focus {
    border-color: var(--ot-primary);
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.12);
    outline: none;
}

.custom-file-box {
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    padding: 14px 16px;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.custom-file-box:hover {
    border-color: var(--ot-primary);
}

.btn-register-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-register-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: #ffffff;
}

.btn-register-action:active {
    transform: translateY(0);
}

/* Event Pass Success Card */
.event-pass-wrap {
    padding: 24px;
}

.confirmation-banner {
    text-align: center;
    margin-bottom: 24px;
}

.status-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.status-icon-circle.approved {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

.status-icon-circle.pending {
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.12);
}

.vip-ticket {
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid var(--ot-primary-border);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.vip-ticket-head {
    position: relative;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.vip-ticket-head.has-banner .vip-ticket-head-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 27, 75, 0.9) 100%
    );
}

.vip-ticket-head-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ticket-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vip-ticket-body {
    padding: 24px;
}

.attendee-hero-card {
    background: #f8fafc;
    border: 1px solid var(--ot-primary-border);
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.meta-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #eef2ff;
    color: var(--ot-primary);
    flex-shrink: 0;
}

.qr-ticket-box {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    padding: 16px;
    display: inline-block;
}

.action-buttons-wrap {
    margin-top: 24px;
}

.btn-action-primary {
    height: 48px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-action-secondary {
    height: 48px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 600;
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-secondary:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

@media print {
    body * {
        visibility: hidden !important;
    }

    html,
    body {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .ot-login-area,
    .login-bg,
    .main-content,
    #layout-wrapper,
    .container,
    .row,
    .col-xxl-4,
    .col-xl-5,
    .col-lg-6,
    .col-md-8,
    .ot-login-card,
    .event-pass-wrap,
    .appointment-ticket-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #printable_event_pass,
    #printable_event_pass *,
    #printable_appointment_pass,
    #printable_appointment_pass *,
    .appointment-success-card,
    .appointment-success-card * {
        visibility: visible !important;
    }

    #printable_event_pass {
        position: absolute !important;
        left: 50% !important;
        top: 20px !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 540px !important;
        border: 1.5px solid #4f46e5 !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    #printable_appointment_pass,
    .appointment-success-card {
        position: absolute !important;
        left: 50% !important;
        top: 20px !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 440px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        margin: 0 auto !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .appointment-ticket-hero,
    .appointment-ticket-tag,
    .appointment-ticket-branch,
    .appointment-ticket-footer,
    .appointment-ticket-header,
    .appointment-qr-frame,
    .vip-ticket-head {
        background-color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .vip-ticket-head.has-banner {
        background-size: cover !important;
        background-position: center !important;
    }

    .vip-ticket-head-overlay {
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .badge,
    .ticket-badge-pill,
    .meta-icon-badge,
    .attendee-hero-card,
    .qr-ticket-box {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .ticket-actions-group,
    .confirmation-banner,
    .action-buttons-wrap,
    .login-back-btn,
    .login-logo,
    .login-title,
    footer,
    .terms-condition,
    .no-print {
        display: none !important;
    }
}

/* ==========================================================================
   Participant Details Modal Styling (.pdm-*)
   ========================================================================== */
.participant-modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.pdm-header {
    padding: 18px 24px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.pdm-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: #eef2ff;
    color: var(--ot-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pdm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pdm-status-badge.checked_in {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pdm-status-badge.approved {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.pdm-status-badge.rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pdm-status-badge.scheduled {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.pdm-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pdm-status-dot.checked_in {
    background: #10b981;
}

.pdm-status-dot.approved {
    background: #3b82f6;
}

.pdm-status-dot.rejected {
    background: #ef4444;
}

.pdm-status-dot.scheduled {
    background: #f59e0b;
}

/* ==========================================================================
   Service Preview & About Service Component
   ========================================================================== */
.service-preview {
    overflow: hidden;
    margin-bottom: 2px;
    border: 1px solid var(--ot-primary-border, #e6edf5);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.service-preview-media {
    position: relative;
    height: 148px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.28),
            transparent 42%
        ),
        linear-gradient(135deg, var(--service-accent), #4f46e5);
}

.service-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-preview-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.service-preview-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}

.service-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px 16px;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0) 28%,
        rgba(15, 23, 42, 0.72) 100%
    );
}

.service-preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.service-preview-name {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.service-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.service-preview-body {
    padding: 14px 16px 16px;
    background: linear-gradient(
        180deg,
        rgba(124, 58, 237, 0.03),
        rgba(255, 255, 255, 0)
    );
}

.service-preview-scroll {
    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}

.service-preview-scroll::-webkit-scrollbar {
    width: 6px;
}

.service-preview-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.35);
}

.service-preview-label {
    margin: 0 0 12px;
    color: var(--ot-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-about-profile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--ot-primary-border, #e8eef6);
    border-radius: 4px;
    background: #fff;
}

.service-about-photo {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    background: #f1f5f9;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.service-about-identity {
    min-width: 0;
    flex: 1;
}

.service-about-title {
    margin: 0 0 6px;
    color: var(--ot-primary-title, #0f172a);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

.service-about-meta {
    margin: 0 0 4px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.service-about-meta:last-child {
    margin-bottom: 0;
}

.service-about-facts {
    display: grid;
    gap: 0;
    margin: 0 0 12px;
    border: 1px solid var(--ot-primary-border, #e8eef6);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.service-about-fact {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border-top: 1px solid #f1f5f9;
}

.service-about-fact:first-child {
    border-top: 0;
}

.service-about-fact dt {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.service-about-fact dt i {
    margin-top: 1px;
    color: var(--ot-primary);
    font-size: 14px;
}

.service-about-fact dd {
    margin: 0;
    color: var(--ot-primary-title, #1e293b);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}

.service-about-fact dd a {
    display: inline-block;
    margin-right: 8px;
    color: var(--ot-primary);
    text-decoration: none;
    font-weight: 700;
}

.service-about-fact dd a:hover {
    text-decoration: underline;
}

.service-about-bio,
.service-preview-desc {
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    text-transform: none;
    white-space: normal;
}

.service-about-bio p,
.service-about-bio ul,
.service-about-bio ol,
.service-preview-desc p,
.service-preview-desc ul,
.service-preview-desc ol {
    margin: 0 0 8px;
}

.service-about-bio strong,
.service-about-bio b,
.service-preview-desc strong,
.service-preview-desc b {
    color: var(--ot-primary-title, #1e293b) !important;
    background: none !important;
    font-weight: 700;
}

.service-about-bio a,
.service-preview-desc a {
    color: var(--ot-primary, #7c3aed) !important;
}

.service-about-bio > :last-child,
.service-preview-desc > :last-child {
    margin-bottom: 0;
}

.service-about-bio img,
.service-preview-desc img {
    display: block;
    max-width: 88px;
    height: auto;
    margin: 0 0 10px;
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 420px) {
    .service-about-profile {
        flex-direction: column;
    }
    .service-about-fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ==========================================================================
   Public Appointment Booking & Verification Styles
   ========================================================================== */
.appointment-inline-error {
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
    line-height: 1.4;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.select2-container .border-danger {
    border: 1px solid #dc3545 !important;
    border-radius: 4px;
}

#appointment_ajax_error_container {
    border-left: 4px solid #dc3545 !important;
}

.appo-picker-list-item.disabled input[type="button"],
.appo-picker-list-item input[type="button"]:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background-color: #f1f3f5 !important;
    color: #adb5bd !important;
    pointer-events: none !important;
}

#appointment_form .error-message:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#appointment_form .select2-container {
    width: 100% !important;
}

#appointment_form .ot-contact-label {
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--ot-primary-title, #1e293b);
    display: block;
}

#appointment_form #kioskApp {
    width: 100%;
}

#qgAptOtpModal {
    z-index: 100050 !important;
}

#qgAptOtpModal .modal-dialog {
    z-index: 100060 !important;
    position: relative;
}

#qgAptOtpModal .modal-content {
    background-color: #ffffff !important;
    background: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

#qgAptOtpModal .btn-close {
    --bs-btn-close-bg: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.85;
    transition: all 0.2s ease;
}

#qgAptOtpModal .btn-close:hover {
    opacity: 1;
    background: #fee2e2 !important;
}

#qgAptOtpModal .btn-close:hover i {
    color: #ef4444 !important;
}

/* .modal-backdrop {
    z-index: 100040 !important;
} */

/* ==========================================================================
   Event Awaiting Confirmation Card
   ========================================================================== */
.awaiting-confirmation-card {
    max-width: 580px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid var(--ot-primary-border);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    padding: 40px 32px;
    text-align: center;
}

.icon-circle-mail {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #eef2ff;
    color: var(--ot-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.email-highlight {
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--ot-primary-title);
    display: inline-block;
    margin: 12px 0 20px 0;
    word-break: break-all;
}

/* Public Link Event Register & Join */

.upcoming-events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-event-card {
    background: #ffffff;
    border: 1px solid var(--ot-primary-border);
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;

    &:hover {
        border-color: var(--ot-primary);
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.08);
        transform: translateY(-1px);
    }
}

.event-card-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.event-date-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 115px;
    background: rgba(var(--ot-primary-rgb), 0.1);
    height: 57px;
    padding: 10px;
    border-radius: 4px;
}

.event-date-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--ot-primary-title, #0f172a);
    line-height: 1;
    letter-spacing: -0.5px;
}

.event-date-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-day-text {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    line-height: 1;
}

.event-time-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--ot-primary);
    line-height: 1;
    white-space: nowrap;
}

.event-card-divider {
    width: 1px;
    height: 47px;
    background: var(--ot-primary-border);
    margin: 0 16px;
    flex-shrink: 0;
}

.event-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

.event-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ot-primary-title, #0f172a);
    text-transform: capitalize;
    margin-bottom: 4px;
    line-height: 1.3;
}

.event-card-venue {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.event-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.event-countdown-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.countdown-boxes {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border: 1px solid #dded;
    border-radius: 6px;
    background: #725ee905;
}

.countdown-box-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.countdown-box {
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: 2px;
}

.countdown-box-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.countdown-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--ot-primary-title);
    line-height: 1;
    letter-spacing: -0.5px;
    z-index: 1;
    font-family: inherit;
}

.countdown-label {
    font-size: 10px;
    font-weight: 600;
    color: #747a82;
    text-transform: capitalize;
    line-height: 1;
}

.countdown-separator {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 10px;

    .sep-dot {
        width: 3px;
        height: 3px;
        background: #f97316;
        border-radius: 1px;
    }
}

.event-badge-capacity {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.event-card-action {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .upcoming-event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .upcoming-event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .event-card-divider {
        display: none;
    }

    .event-card-left {
        width: 100%;
        padding-bottom: 8px;
        border-bottom: 1px dashed #e2e8f0;
    }

    .event-countdown-widget {
        width: 100%;
        justify-content: center;
    }

    .event-card-action {
        width: 100%;

        .btn-primary-fill {
            width: 100%;
            justify-content: center;
        }
    }
}
