/* ═══════════════════════════════════════════════════════════
   Working Hours Block — قفل خارج از ساعات کاری ویزیتور
   ═══════════════════════════════════════════════════════════ */

.wh-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
}

.wh-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.wh-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 40px 34px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: whFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes whFadeUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══ Icon ═══ */
.wh-icon-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
}

.wh-icon-before {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.2);
}

.wh-icon-after {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #6d28d9;
    box-shadow: 0 14px 34px rgba(109, 40, 217, 0.2);
}

.wh-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 30px;
    border: 2px dashed rgba(217, 119, 6, 0.2);
    animation: whRotate 25s linear infinite;
}

.wh-icon-after::after {
    border-color: rgba(109, 40, 217, 0.2);
}

@keyframes whRotate {
    to { transform: rotate(360deg); }
}

/* ═══ Title ═══ */
.wh-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.5px;
}

.wh-subtitle {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.8;
}

.wh-subtitle strong {
    color: #d97706;
    font-weight: 900;
}

/* ═══ Hours Box ═══ */
.wh-hours-box {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.wh-hours-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e8edf4;
}

.wh-hours-row:last-child {
    border-bottom: 0;
}

.wh-hours-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.wh-icon-start {
    background: #d1fae5;
    color: #059669;
}

.wh-icon-end {
    background: #fee2e2;
    color: #dc2626;
}

.wh-hours-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #6b7280;
    flex: 1;
    text-align: right;
}

.wh-hours-value {
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    direction: ltr;
    letter-spacing: 0.5px;
}

/* ═══ Timer ═══ */
.wh-timer-box {
    margin-bottom: 22px;
    padding: 18px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fcd34d;
    border-radius: 18px;
}

.wh-timer-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.wh-timer {
    font-size: 34px;
    font-weight: 900;
    color: #92400e;
    letter-spacing: 2px;
    direction: ltr;
    font-family: 'Vazirmatn', 'Courier New', monospace;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(180, 83, 9, 0.1);
}

/* ═══ Goodbye (بعد از پایان) ═══ */
.wh-goodbye {
    padding: 16px 18px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 2px solid #c4b5fd;
    border-radius: 16px;
    color: #5b21b6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 22px;
}

.wh-goodbye strong {
    color: #6d28d9;
    font-weight: 900;
    direction: ltr;
    display: inline-block;
}

/* ═══ Actions ═══ */
.wh-actions {
    display: flex;
    justify-content: center;
}

.wh-btn-logout {
    padding: 12px 26px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wh-btn-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
    transform: translateY(-1px);
}

/* ═══ Mobile ═══ */
@media (max-width: 480px) {
    .wh-card {
        padding: 30px 22px;
        border-radius: 22px;
    }
    .wh-icon-wrap {
        width: 76px;
        height: 76px;
        font-size: 32px;
        border-radius: 22px;
    }
    .wh-title {
        font-size: 20px;
    }
    .wh-timer {
        font-size: 28px;
    }
    .wh-hours-value {
        font-size: 14px;
    }
}