@keyframes queue-spin {
    to { transform: rotate(360deg); }
}
.queue-stepper {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.queue-stepper-inner {
    display: flex;
    align-items: stretch;
    max-width: 940px;
    margin: 0 auto;
}
.queue-stepper-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 19px 12px;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    cursor: default;
    white-space: nowrap;
}
.queue-stepper-step--active { color: #00398c; border-bottom-color: #00398c; }
.queue-stepper-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 4px;
    margin-bottom: -1px;
}
.queue-stepper-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.queue-stepper-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-top-color: #00398c;
    border-radius: 50%;
    animation: queue-spin 0.75s linear infinite;
}
.queue-stepper-step--active .queue-stepper-spinner { display: inline-block; }
.queue-stepper-check {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00398c;
    position: relative;
}
.queue-stepper-check::after {
    content: '';
    position: absolute;
    top: 5px; left: 8px;
    width: 6px; height: 9px;
    border: 1px solid #fff;
    border-left: none; border-top: none;
    transform: rotate(45deg);
}
.queue-stepper-step--complete .queue-stepper-check { display: inline-block; }
.queue-stepper-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #F2F2F2;
    color: #545F6F;
    font-size: 12px;
    font-weight: 600;
}
.queue-stepper-step--active .queue-stepper-num,
.queue-stepper-step--complete .queue-stepper-num { display: none; }
.queue-stepper-label { font-size: 14px; color: #545F6F; }
.queue-stepper-step--complete .queue-stepper-label { color: #00398c; }
@media (max-width: 480px) {
    .queue-stepper-step:not(.queue-stepper-step--active) .queue-stepper-label { display: none; }
}
.queue-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 67vh;
    padding: 40px 20px;
}
.queue-screen-inner { text-align: center; max-width: 600px; width: 100%; }
.queue-countdown-timer { font-size: 60px; font-weight: 600; color: #00398c; line-height: 1.1; margin-bottom: 8px; }
.queue-countdown-label { font-size: 16px; font-weight: 500; color: #000; margin-bottom: 24px; }
.queue-static-date-label { font-size: 18px; color: #333; margin-bottom: 8px; }
.queue-static-date-value { font-size: 36px; font-weight: 700; color: #00398c; margin-bottom: 24px; }
.queue-position-number { font-size: 60px; font-weight: 600; color: #00398c; line-height: 1.1; margin-bottom: 8px; }
.queue-position-label { font-size: 16px; color: #000; margin-bottom: 24px; font-weight: 500; }
.queue-progress-bar-wrapper { width: 100%; max-width: 600px; height: 12px; background: #e0e0e0; border-radius: 6px; margin: 0 auto 32px; overflow: hidden; }
.queue-progress-bar { height: 100%; background: #00398c; border-radius: 6px; transition: width 0.5s ease; }
.queue-approx-time { color: #000; font-weight: 500; font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.queue-screen-hint { font-size: 14px; font-weight: 400; color: #545F6F; line-height: 20px; max-width: 400px; margin: 0 auto 32px; }
.queue-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #01398C;
    border: 1px solid #BDBDBD;
    text-transform: none;
    cursor: pointer;
    margin-bottom: 24px;
}
.queue-email-btn:hover, .queue-email-btn:focus { background: #f5f5f5; color: #01398C; border-color: #9e9e9e; box-shadow: none; }
.queue-email-action-btn {
    border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 500; line-height: 20px;
    background: #fff; color: #01398C; border: 1px solid #BDBDBD; text-transform: none; cursor: pointer;
}
.queue-email-action-btn:hover, .queue-email-action-btn:focus { background: #f5f5f5; color: #01398C; border-color: #9e9e9e; box-shadow: none; }
.queue-email-action-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.queue-code-cooldown { font-size: 12px; color: #9e9e9e; margin: 2px 0 0; text-align: center; }
.queue-email-form { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 320px; margin: 0 auto; }
.queue-email-input { width: 100%; padding: 9px 16px; border: 1px solid #ccc; border-radius: 24px; font-size: 15px; outline: none; text-align: center; }
.queue-email-input:focus { border-color: #0d6efd; }
.queue-email-actions { display: flex; gap: 8px; justify-content: center; }
.queue-email-success { font-size: 14px; color: #198754; }
.queue-email-code-hint { font-size: 13px; color: #545F6F; margin: 0 0 4px; text-align: center; }
.queue-email-code-error { font-size: 13px; color: #dc3545; margin: 4px 0 0; text-align: center; }
.queue-leave-confirm {
    margin-top: 8px; padding: 12px 16px; background: #fff8e1;
    border: 1px solid #BDBDBD; border-radius: 8px; font-size: 13px; color: #333;
    max-width: 320px; margin-left: auto; margin-right: auto;
}
.queue-leave-confirm p { margin: 0 0 10px; line-height: 1.5; }
.queue-leave-confirm-actions { display: flex; gap: 8px; justify-content: center; }
@media (max-width: 767px) {
    .queue-countdown-timer { font-size: 56px; }
    .queue-position-number { font-size: 72px; }
}
.queue-seq-info { font-size: 13px; color: #999; margin-top: -8px; margin-bottom: 32px; }
.queue-drop-area { margin-top: 64px; }
.queue-status-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.purchase-ttl-bar { background: #fff8e6; border-bottom: 1px solid #ffc107; text-align: center; padding: 7px 16px; font-size: 14px; }
.purchase-ttl-label { color: #555; margin-right: 6px; }
.purchase-ttl-timer { font-weight: 700; font-variant-numeric: tabular-nums; color: #d97706; font-size: 15px; font-family: monospace; }
.purchase-ttl-timer.is-expiring { color: #dc3545; }