/* Premium kiosk gate modal — dark + gold, always-on dark theme */
.checkin-modal-overlay {
    --cm-gold: #facc15;
    --cm-gold-deep: #ca8a04;
    --cm-gold-gradient: linear-gradient(135deg, #fde047 0%, #eab308 45%, #ca8a04 100%);
    --cm-green: #22c55e;
    --cm-green-muted: #14532d;
    --cm-green-surface: rgba(20, 83, 45, 0.35);
    --cm-surface: #111827;
    --cm-surface-raised: #1a2332;
    --cm-surface-card: #0f172a;
    --cm-border: rgba(148, 163, 184, 0.18);
    --cm-border-strong: rgba(148, 163, 184, 0.28);
    --cm-text: #f8fafc;
    --cm-text-muted: #94a3b8;
    --cm-radius: 0.875rem;
    --cm-radius-lg: 1.125rem;

    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 5.5rem;
    overflow: auto;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(4px);
}

.checkin-modal-shell {
    width: 100%;
    max-width: 32rem;
    display: flex;
    flex-direction: column;
}

.checkin-modal-panel {
    width: 100%;
    border-radius: var(--cm-radius-lg);
    padding: 0;
    background: var(--cm-surface-raised);
    color: var(--cm-text);
    border: 1px solid var(--cm-border-strong);
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.06),
        0 25px 60px -12px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.checkin-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cm-border);
    background: rgba(15, 23, 42, 0.55);
}

.checkin-modal-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.checkin-modal-topbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(250, 204, 21, 0.12);
    color: var(--cm-gold);
    flex-shrink: 0;
}

.checkin-modal-topbar-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.checkin-modal-logo {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cm-text);
    line-height: 1.2;
}

.checkin-modal-station {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(34, 197, 94, 0.35);
    white-space: nowrap;
}

.checkin-modal-station::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--cm-green);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.checkin-modal-station--checkout {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
}

.checkin-modal-station--checkout::before {
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
}

.checkin-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--cm-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.checkin-modal-close:hover {
    background: rgba(148, 163, 184, 0.12);
    color: var(--cm-text);
}

.checkin-modal-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.checkin-modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkin-modal-action-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    border-radius: var(--cm-radius);
    background: var(--cm-green-surface);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: left;
}

.checkin-modal-action-badge--staff {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.35);
    color: #fde68a;
}

.checkin-modal-action-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    color: var(--cm-green);
    flex-shrink: 0;
}

.checkin-modal-action-badge--staff .checkin-modal-action-badge-icon {
    background: rgba(250, 204, 21, 0.15);
    color: var(--cm-gold);
}

.checkin-modal-action-badge-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.checkin-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--cm-radius);
    background: var(--cm-surface-card);
    border: 1px solid var(--cm-border);
}

.checkin-modal-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
    border: 2px solid var(--cm-border-strong);
}

.checkin-modal-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cm-text-muted);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.checkin-modal-identity {
    flex: 1;
    min-width: 0;
}

.checkin-modal-identity-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.checkin-modal-kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cm-text-muted);
}

.checkin-modal-title {
    margin: 0.15rem 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cm-text);
}

.checkin-modal-sub {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: var(--cm-text-muted);
    line-height: 1.45;
}

.checkin-modal-sub--tight {
    margin-top: 0.35rem;
}

.checkin-modal-sub--gap {
    margin-top: 0.65rem;
}

.checkin-modal-strong {
    color: var(--cm-text);
    font-weight: 600;
}

.checkin-modal-muted-inline {
    color: var(--cm-text-muted);
}

.checkin-modal-badge {
    display: inline-block;
    margin-top: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.checkin-modal-badge--green {
    background: var(--cm-green-muted);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}

.checkin-modal-badge--yellow {
    background: #422006;
    color: #fcd34d;
    border-color: rgba(250, 204, 21, 0.35);
}

.checkin-modal-badge--red {
    background: #450a0a;
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
}

.checkin-modal-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--cm-radius);
    background: var(--cm-surface-card);
    border: 1px solid var(--cm-border);
    overflow: hidden;
}

.checkin-modal-time-cell {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkin-modal-time-cell:first-child {
    border-right: 1px solid var(--cm-border);
}

.checkin-modal-time-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--cm-text-muted);
    font-weight: 500;
}

.checkin-modal-time-label svg {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--cm-gold);
    flex-shrink: 0;
}

.checkin-modal-time-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cm-text);
    line-height: 1.2;
}

.checkin-modal-section {
    background: var(--cm-surface-card);
    border-radius: var(--cm-radius);
    padding: 0.9rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #e2e8f0;
    border: 1px solid var(--cm-border);
}

.checkin-modal-section--locker {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkin-modal-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkin-modal-section-header svg {
    width: 1rem;
    height: 1rem;
    color: var(--cm-text-muted);
    flex-shrink: 0;
}

.checkin-modal-section-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkin-modal-section ul {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.checkin-modal-alert {
    background: rgba(66, 32, 6, 0.65);
    border: 1px solid rgba(202, 138, 4, 0.55);
    color: #fef08a;
    border-radius: var(--cm-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.checkin-modal-alert p {
    margin: 0.15rem 0;
}

.checkin-modal-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: var(--cm-radius);
    background: var(--cm-surface-card);
    border: 1px solid var(--cm-border);
}

.checkin-modal-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--cm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkin-modal-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid var(--cm-border-strong);
    background-color: var(--cm-surface);
    background-image: none;
    background-repeat: no-repeat;
    color: var(--cm-text);
    font-size: 0.9rem;
}

select.checkin-modal-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

select.checkin-modal-input::-ms-expand {
    display: none;
}

.checkin-modal-input:focus {
    outline: 2px solid var(--cm-gold);
    outline-offset: 1px;
}

.checkin-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--cm-border);
    background: rgba(15, 23, 42, 0.4);
}

.checkin-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 0.65rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.checkin-modal-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.checkin-modal-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.checkin-modal-btn--ghost {
    background: transparent;
    color: var(--cm-text);
    border: 1px solid var(--cm-border-strong);
}

.checkin-modal-btn--ghost:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.08);
}

.checkin-modal-btn--primary {
    background: var(--cm-gold-gradient);
    color: #111827;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
}

.checkin-modal-btn--primary:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35);
}

.checkin-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkin-modal-title-link,
.checkin-modal-avatar-link {
    color: inherit;
    text-decoration: none;
}

.checkin-modal-title-link:hover .checkin-modal-title,
.checkin-modal-avatar-link:hover {
    text-decoration: underline;
}

.checkin-modal-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkin-modal-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    cursor: pointer;
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    transition: border-color 0.15s ease;
}

.checkin-modal-check:has(input:checked) {
    border-color: rgba(250, 204, 21, 0.5);
    background: rgba(250, 204, 21, 0.08);
}

.checkin-modal-check input {
    accent-color: var(--cm-gold);
}

.checkin-modal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.checkin-modal-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.65);
    color: var(--cm-text);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--cm-border);
}

.checkin-modal-package-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkin-modal-package {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.55rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    font-size: 0.85rem;
    color: #e2e8f0;
    transition: border-color 0.15s ease;
}

.checkin-modal-package:has(input:checked) {
    border-color: rgba(250, 204, 21, 0.45);
}

.checkin-modal-package.is-disabled {
    opacity: 0.5;
}

.checkin-modal-package small {
    display: block;
    color: var(--cm-text-muted);
    margin-top: 0.15rem;
}

.checkin-locker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
    gap: 0.4rem;
    max-height: 14rem;
    overflow: auto;
    padding: 0.25rem 0;
}

.checkin-locker-seat {
    aspect-ratio: 1;
    border-radius: 0.45rem;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, outline 0.1s ease;
}

.checkin-locker-seat.is-free {
    background: #166534;
    color: #dcfce7;
}

.checkin-locker-seat.is-occupied {
    background: #7f1d1d;
    color: #fecaca;
    cursor: not-allowed;
}

.checkin-locker-seat.is-selected {
    outline: 2px solid var(--cm-gold);
    outline-offset: 1px;
    background: var(--cm-gold-deep);
    color: #111;
}

.checkin-locker-seat.is-free:hover:not(:disabled) {
    transform: scale(1.04);
}

/* Gym Attendance — Checkout Manual (Filament modal, same visual language as gate approval) */
.fi-modal-window.manual-checkout-modal {
    --cm-gold: #facc15;
    --cm-gold-deep: #ca8a04;
    --cm-gold-gradient: linear-gradient(135deg, #fde047 0%, #eab308 45%, #ca8a04 100%);
    --cm-surface: #111827;
    --cm-surface-raised: #1a2332;
    --cm-surface-card: #0f172a;
    --cm-border: rgba(148, 163, 184, 0.18);
    --cm-border-strong: rgba(148, 163, 184, 0.28);
    --cm-text: #f8fafc;
    --cm-text-muted: #94a3b8;
    background: var(--cm-surface-raised) !important;
    color: var(--cm-text);
    border: 1px solid var(--cm-border-strong);
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.06),
        0 25px 60px -12px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.fi-modal-window.manual-checkout-modal .fi-modal-header {
    display: none;
}

.fi-modal-window.manual-checkout-modal .fi-modal-content {
    padding: 0 1.25rem 1rem;
    background: transparent;
}

.fi-modal-window.manual-checkout-modal .fi-modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.65rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--cm-border);
    background: rgba(15, 23, 42, 0.4);
}

.fi-modal-window.manual-checkout-modal .fi-modal-footer .fi-modal-footer-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.65rem;
    width: 100%;
}

.fi-modal-window.manual-checkout-modal .fi-modal-footer .fi-btn {
    width: 100%;
    justify-content: center;
    border-radius: 0.65rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.fi-modal-window.manual-checkout-modal .fi-modal-footer .fi-btn-color-warning {
    background: var(--cm-gold-gradient) !important;
    color: #111827 !important;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25);
    border: none;
}

.fi-modal-window.manual-checkout-modal .fi-fo-field-wrp-label span,
.fi-modal-window.manual-checkout-modal .fi-fo-field-wrp-helper-text {
    color: var(--cm-text-muted) !important;
}

.fi-modal-window.manual-checkout-modal .fi-input-wrp,
.fi-modal-window.manual-checkout-modal .fi-select-input {
    background-color: var(--cm-surface) !important;
    color: var(--cm-text);
}

.fi-modal-window.manual-checkout-modal .fi-checkbox-input {
    accent-color: var(--cm-gold);
}
